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

2014-11-18 Thread Eduard Matei
Aha, didn't catch that.
I just wanted to run the tests, didn't look at setting up a development
environment.

Thanks,
Eduard

On Tue, Nov 18, 2014 at 12:24 PM, Sylvain Bauza  wrote:

>
> Le 18/11/2014 10:11, Eduard Matei a écrit :
>
> 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.
>
>
> No, please. This script is distro-agnostic, we don't need to carry all the
> dependencies issues.
> Actually, these installation instructions are already documented...
>
>
> http://git.openstack.org/cgit/openstack/nova/tree/doc/source/devref/development.environment.rst
>
> -Sylvain
>
>
>  Thanks,
> Eduard
>
> On Tue, Nov 18, 2014 at 10:27 AM, Vineet Menon 
> 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 
>> 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 "", line 17, in 
>>>   File "/opt/stack/nova/.venv/build/MySQL-python/setup.py", line 17,
>>> in 
>>> 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 "", line 17, in 
>>>
>>>File "/opt/stack/nova/.venv/build/MySQL-python/setup.py", line 17,
>>> in 
>>>
>>>  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.ma...@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 suffer

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

2014-11-18 Thread Sylvain Bauza


Le 18/11/2014 10:11, Eduard Matei a écrit :

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.



No, please. This script is distro-agnostic, we don't need to carry all 
the dependencies issues.

Actually, these installation instructions are already documented...

http://git.openstack.org/cgit/openstack/nova/tree/doc/source/devref/development.environment.rst

-Sylvain


Thanks,
Eduard

On Tue, Nov 18, 2014 at 10:27 AM, Vineet Menon > 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
mailto:eduard.ma...@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 "", line 17, in 
  File
"/opt/stack/nova/.venv/build/MySQL-python/setup.py", line 17,
in 
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 "", line 17, in 

  File "/opt/stack/nova/.venv/build/MySQL-python/setup.py",
line 17, in 

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.ma...@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
 

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

2014-11-18 Thread Eduard Matei
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 
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 
> 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 "", line 17, in 
>>   File "/opt/stack/nova/.venv/build/MySQL-python/setup.py", line 17,
>> in 
>> 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 "", line 17, in 
>>
>>   File "/opt/stack/nova/.venv/build/MySQL-python/setup.py", line 17, in
>> 
>>
>> 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.ma...@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@lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
> ___
> OpenStack-dev mailing list
> OpenStack-dev@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 

*Eduard Biceri Matei, Senior Software Developer*
www.cloudfounders.com
 | eduard.ma...@cloudfounders.com



*CloudFounders, The Private Cloud Software Company*

Disclaimer:
This email and any files transmitted with it are conf

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

2014-11-18 Thread Vineet Menon
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 
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 "", line 17, in 
>   File "/opt/stack/nova/.venv/build/MySQL-python/setup.py", line 17,
> in 
> 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 "", line 17, in 
>
>   File "/opt/stack/nova/.venv/build/MySQL-python/setup.py", line 17, in
> 
>
> 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.ma...@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@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


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

2014-11-18 Thread Eduard Matei
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 "", line 17, in 
  File "/opt/stack/nova/.venv/build/MySQL-python/setup.py", line 17, in

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 "", line 17, in 

  File "/opt/stack/nova/.venv/build/MySQL-python/setup.py", line 17, in


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.ma...@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@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev