[openstack-dev] [nova]Can't run tests

Eduard Matei eduard.matei at cloudfounders.com
Tue Nov 18 09:11:01 UTC 2014


Thanks Vineet.
Indeed missing packages was the problem, for completeness here are the
packages i needed in order to get virtual env running on Ubuntu 14.04.1 LTS
-  libmysqlclient-dev
- pkg-config
- libvirt-dev

Maybe they can be included in the script that sets up the virtual env.

Thanks,
Eduard

On Tue, Nov 18, 2014 at 10:27 AM, Vineet Menon <mvineetmenon at gmail.com>
wrote:

> Hi,
>
> You should install mysql-dev for your distro using apt-get or yum.
>
> Regards,
>
> Vineet Menon
>
>
> On 18 November 2014 09:16, Eduard Matei <eduard.matei at cloudfounders.com>
> wrote:
>
>>
>> Hi,
>> I'm trying to run nova's unittests to validate some changes we made for a
>> LibvirtVolumeDriver class, but i only got errors:
>>
>> with virtual env:
>> ...
>> Downloading/unpacking MySQL-python (from -r
>> /opt/stack/nova/test-requirements.txt (line 13))
>>   Downloading MySQL-python-1.2.5.zip (108kB): 108kB downloaded
>>   Running setup.py
>> (path:/opt/stack/nova/.venv/build/MySQL-python/setup.py) egg_info for
>> package MySQL-python
>>     sh: 1: mysql_config: not found
>>     Traceback (most recent call last):
>>       File "<string>", line 17, in <module>
>>       File "/opt/stack/nova/.venv/build/MySQL-python/setup.py", line 17,
>> in <module>
>>         metadata, options = get_config()
>>       File "setup_posix.py", line 43, in get_config
>>         libs = mysql_config("libs_r")
>>       File "setup_posix.py", line 25, in mysql_config
>>         raise EnvironmentError("%s not found" % (mysql_config.path,))
>>     EnvironmentError: mysql_config not found
>>     Complete output from command python setup.py egg_info:
>>     sh: 1: mysql_config: not found
>>
>> Traceback (most recent call last):
>>
>>   File "<string>", line 17, in <module>
>>
>>   File "/opt/stack/nova/.venv/build/MySQL-python/setup.py", line 17, in
>> <module>
>>
>>     metadata, options = get_config()
>>
>>   File "setup_posix.py", line 43, in get_config
>>
>>     libs = mysql_config("libs_r")
>>
>>   File "setup_posix.py", line 25, in mysql_config
>>
>>     raise EnvironmentError("%s not found" % (mysql_config.path,))
>>
>> EnvironmentError: mysql_config not found
>>
>> ----------------------------------------
>> Cleaning up...
>> Command python setup.py egg_info failed with error code 1 in
>> /opt/stack/nova/.venv/build/MySQL-python
>> Storing debug log for failure in /root/.pip/pip.log
>> Command "tools/with_venv.sh pip install --upgrade -r
>> /opt/stack/nova/requirements.txt -r /opt/stack/nova/test-requirements.txt"
>> failed.
>> None
>>
>> without virtual env:
>> :/opt/stack/nova# ./run_tests.sh -N
>> Running ` python -m nova.openstack.common.lockutils python setup.py testr
>> --testr-args='--subunit --concurrency 0  '`
>> Non-zero exit code (2) from test listing.
>> error: testr failed (3)
>>
>>
>> Ran 0 tests in 4.792s
>>
>> OK
>> Running flake8 ...
>> **WARNING**:
>> Running flake8 without virtual env may miss OpenStack HACKING detection
>> bash: flake8: command not found
>>
>> nova-manage --version
>> 2014.2.1
>>
>>
>> Any idea how to fix this?
>>
>> Thanks, Eduard
>> --
>>
>> *Eduard Biceri Matei, Senior Software Developer*
>> www.cloudfounders.com
>>  | eduard.matei at cloudfounders.com
>>
>>
>>
>> *CloudFounders, The Private Cloud Software Company*
>>
>> Disclaimer:
>> This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
>> If you are not the named addressee or an employee or agent responsible for delivering this message to the named addressee, you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this email in error we request you to notify us by reply e-mail and to delete all electronic files of the message. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.
>> E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the content of this message, and shall have no liability for any loss or damage suffered by the user, which arise as a result of e-mail transmission.
>>
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 

*Eduard Biceri Matei, Senior Software Developer*
www.cloudfounders.com
 | eduard.matei at cloudfounders.com



*CloudFounders, The Private Cloud Software Company*

Disclaimer:
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed.
If you are not the named addressee or an employee or agent responsible
for delivering this message to the named addressee, you are hereby
notified that you are not authorized to read, print, retain, copy or
disseminate this message or any part of it. If you have received this
email in error we request you to notify us by reply e-mail and to
delete all electronic files of the message. If you are not the
intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
information is strictly prohibited.
E-mail transmission cannot be guaranteed to be secure or error free as
information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses. The sender therefore does not
accept liability for any errors or omissions in the content of this
message, and shall have no liability for any loss or damage suffered
by the user, which arise as a result of e-mail transmission.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141118/91fdc396/attachment.html>


More information about the OpenStack-dev mailing list