<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>On CentOS 6.5 (Python 2.6!)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>git init /var/jenkins/workspace/Tempest # timeout=10<o:p></o:p></p><p class=MsoNormal>Fetching upstream changes from <a href="https://github.com/redhat-openstack/tempest.git">https://github.com/redhat-openstack/tempest.git</a><o:p></o:p></p><p class=MsoNormal> > git --version # timeout=10<o:p></o:p></p><p class=MsoNormal> > git fetch --tags --progress <a href="https://github.com/redhat-openstack/tempest.git">https://github.com/redhat-openstack/tempest.git</a> +refs/heads/*:refs/remotes/origin/*<o:p></o:p></p><p class=MsoNormal> > git config remote.origin.url <a href="https://github.com/redhat-openstack/tempest.git">https://github.com/redhat-openstack/tempest.git</a> # timeout=10<o:p></o:p></p><p class=MsoNormal> > git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10<o:p></o:p></p><p class=MsoNormal> > git config remote.origin.url <a href="https://github.com/redhat-openstack/tempest.git">https://github.com/redhat-openstack/tempest.git</a> # timeout=10<o:p></o:p></p><p class=MsoNormal>Fetching upstream changes from <a href="https://github.com/redhat-openstack/tempest.git">https://github.com/redhat-openstack/tempest.git</a><o:p></o:p></p><p class=MsoNormal> > git fetch --tags --progress <a href="https://github.com/redhat-openstack/tempest.git">https://github.com/redhat-openstack/tempest.git</a> +refs/heads/*:refs/remotes/origin/*<o:p></o:p></p><p class=MsoNormal> > git rev-parse refs/remotes/origin/icehouse^{commit} # timeout=10<o:p></o:p></p><p class=MsoNormal> > git rev-parse refs/remotes/origin/origin/icehouse^{commit} # timeout=10<o:p></o:p></p><p class=MsoNormal>Checking out Revision fe12b3d0e2fb713efe923a44393880b0d4d9b0ba (refs/remotes/origin/icehouse)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>…<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>TEMPEST_CONF=/var/jenkins/workspace/Tempest/etc/tempest.conf<o:p></o:p></p><p class=MsoNormal>+ tools/config_tempest.py --create identity.uri <a href="http://10.103.234.141:5000/v2.0/">http://10.103.234.141:5000/v2.0/</a> identity.admin_username admin identity.admin_password secret identity.admin_tenant_name admin<o:p></o:p></p><p class=MsoNormal>/usr/lib64/python2.6/site-packages/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.<o:p></o:p></p><p class=MsoNormal> _warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)<o:p></o:p></p><p class=MsoNormal>Traceback (most recent call last):<o:p></o:p></p><p class=MsoNormal> File "tools/config_tempest.py", line 654, in <module><o:p></o:p></p><p class=MsoNormal> main()<o:p></o:p></p><p class=MsoNormal> File "tools/config_tempest.py", line 141, in main<o:p></o:p></p><p class=MsoNormal> configure_cli(conf)<o:p></o:p></p><p class=MsoNormal> File "tools/config_tempest.py", line 528, in configure_cli<o:p></o:p></p><p class=MsoNormal> cli_dir = get_program_dir("nova")<o:p></o:p></p><p class=MsoNormal> File "tools/config_tempest.py", line 595, in get_program_dir<o:p></o:p></p><p class=MsoNormal> path = subprocess.check_output(["which", program], stderr=devnull)<o:p></o:p></p><p class=MsoNormal>AttributeError: 'module' object has no attribute 'check_output'<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Looks similar to <a href="https://bugs.launchpad.net/nova/+bug/1029014">https://bugs.launchpad.net/nova/+bug/1029014</a> ?<o:p></o:p></p><p class=MsoNormal>Seems to be added in:<o:p></o:p></p><p class=MsoNormal>commit 76ca1350749ea5e3c877813c6e7268122b5214ce<o:p></o:p></p><p class=MsoNormal>Author: Martina Kollarova <mkollaro@redhat.com><o:p></o:p></p><p class=MsoNormal>Date: Wed Sep 3 18:53:05 2014 +0200<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> Refactored cli_dir setting<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>And possibly because of:<o:p></o:p></p><p class=MsoNormal>+def get_program_dir(program):<o:p></o:p></p><p class=MsoNormal>+ """Get directory path of the external program.<o:p></o:p></p><p class=MsoNormal>+<o:p></o:p></p><p class=MsoNormal>+ :param program: name of program, e.g. 'ls' or 'cat'<o:p></o:p></p><p class=MsoNormal>+ :returns: None if it wasn't found, '/path/to/it/' if found<o:p></o:p></p><p class=MsoNormal>+ """<o:p></o:p></p><p class=MsoNormal>+ devnull = open(os.devnull, 'w')<o:p></o:p></p><p class=MsoNormal>+ try:<o:p></o:p></p><p class=MsoNormal>+ path = subprocess.check_output(["which", program], stderr=devnull)<o:p></o:p></p><p class=MsoNormal>+ return os.path.dirname(path.strip())<o:p></o:p></p><p class=MsoNormal>+ except subprocess.CalledProcessError:<o:p></o:p></p><p class=MsoNormal>+ return None<o:p></o:p></p><p class=MsoNormal>+<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Y.<o:p></o:p></p></div></body></html>