Re: [openstack-dev] [Manila] ./run_tests issue

2014-09-26 Thread Deepak Shetty
On Thu, Sep 25, 2014 at 9:22 PM, Ben Nemec openst...@nemebean.com wrote:

 On 09/22/2014 01:29 AM, Deepak Shetty wrote:
  Thats incorrect, as i said in my original mail.. I am usign
 devstack+manila
  and it wasn't very clear to me that mysql-devel needs to be installed and
  it didn't get installed. I am on F20, not sure if that causes this , if
  yes, then we need to debug and fix this.

 This is because by default devstack only installs the packages needed to
 actually run OpenStack.  For unit test deps, you need the
 INSTALL_TESTONLY_PACKAGES variable set to true in your localrc.  I've


Interesting, I didn't know that I will that using that next time I
re-spin my devstack!


 advocated to get it enabled by default in the past but was told that
 running unit tests on a devstack vm isn't the recommended workflow so
 they don't want to do that.


Hmm really, devstack is for openstack dev, so any all testing happens in
devstack
before you post the code, so I wonder who/why said that!
Maybe you should try again, giving this thread as an example


 
  Maybe its a good idea to put a comment in requirements.txt statign that
 the
  following C libs needs to be installed for  the venv to work smoothly.
 That
  would help too for the short term.

 It's worth noting that you would need multiple entries for each lib
 since every distro tends to call them something different.

Agreed, hence i suggested that a comment should be put which will hint the
dev to install the right package

thanx,
deepak



 
  On Sun, Sep 21, 2014 at 12:12 PM, Valeriy Ponomaryov 
  vponomar...@mirantis.com wrote:
 
  Dep MySQL-python is already in test-requirements.txt file. As Andreas
  said, second one mysql-devel is C lib and can not be installed via
 pip.
  So, project itself, as all projects in OpenStack, can not install it.
 
  C lib deps are handled by Devstack, if it is used. See:
  https://github.com/openstack-dev/devstack/tree/master/files/rpms
 
 
 https://github.com/openstack-dev/devstack/blob/2f27a0ed3c609bfcd6344a55c121e56d5569afc9/functions-common#L895
 
  Yes, Manila could have its files in the same way in
  https://github.com/openstack/manila/tree/master/contrib/devstack , but
  this lib is already exist in deps for other projects. So, I guess you
 used
  Manila run_tests.sh file on host without devstack installation, in
 that
  case all other projects would fail in the same way.
 
  On Sun, Sep 21, 2014 at 2:54 AM, Alex Leonhardt 
 aleonhardt...@gmail.com
  wrote:
 
  And yet it's a dependency so I'm with Deepak and it should at least be
  mentioned in the prerequisites on a webpage somewhere .. :) I might
 even
  try and update/add that myself as it caught me out a few times too..
 
  Alex
   On 20 Sep 2014 12:44, Andreas Jaeger a...@suse.com wrote:
 
  On 09/20/2014 09:34 AM, Deepak Shetty wrote:
  thanks , that worked.
  Any idea why it doesn't install it automatically and/or it isn't
  present
  in requirements.txt ?
  I thought that was the purpose of requirements.txt ?
 
  AFAIU requirements.txt has only python dependencies while
  mysql-devel is a C development package,
 
  Andreas
  --
   Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica:
 jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
 GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG
 Nürnberg)
  GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272
 A126
 
  ___
  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
 
 
 
 
  --
  Kind Regards
  Valeriy Ponomaryov
  www.mirantis.com
  vponomar...@mirantis.com
 
  ___
  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 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


Re: [openstack-dev] [Manila] ./run_tests issue

2014-09-25 Thread Ben Nemec
On 09/22/2014 01:29 AM, Deepak Shetty wrote:
 Thats incorrect, as i said in my original mail.. I am usign devstack+manila
 and it wasn't very clear to me that mysql-devel needs to be installed and
 it didn't get installed. I am on F20, not sure if that causes this , if
 yes, then we need to debug and fix this.

This is because by default devstack only installs the packages needed to
actually run OpenStack.  For unit test deps, you need the
INSTALL_TESTONLY_PACKAGES variable set to true in your localrc.  I've
advocated to get it enabled by default in the past but was told that
running unit tests on a devstack vm isn't the recommended workflow so
they don't want to do that.

 
 Maybe its a good idea to put a comment in requirements.txt statign that the
 following C libs needs to be installed for  the venv to work smoothly. That
 would help too for the short term.

It's worth noting that you would need multiple entries for each lib
since every distro tends to call them something different.

 
 On Sun, Sep 21, 2014 at 12:12 PM, Valeriy Ponomaryov 
 vponomar...@mirantis.com wrote:
 
 Dep MySQL-python is already in test-requirements.txt file. As Andreas
 said, second one mysql-devel is C lib and can not be installed via pip.
 So, project itself, as all projects in OpenStack, can not install it.

 C lib deps are handled by Devstack, if it is used. See:
 https://github.com/openstack-dev/devstack/tree/master/files/rpms

 https://github.com/openstack-dev/devstack/blob/2f27a0ed3c609bfcd6344a55c121e56d5569afc9/functions-common#L895

 Yes, Manila could have its files in the same way in
 https://github.com/openstack/manila/tree/master/contrib/devstack , but
 this lib is already exist in deps for other projects. So, I guess you used
 Manila run_tests.sh file on host without devstack installation, in that
 case all other projects would fail in the same way.

 On Sun, Sep 21, 2014 at 2:54 AM, Alex Leonhardt aleonhardt...@gmail.com
 wrote:

 And yet it's a dependency so I'm with Deepak and it should at least be
 mentioned in the prerequisites on a webpage somewhere .. :) I might even
 try and update/add that myself as it caught me out a few times too..

 Alex
  On 20 Sep 2014 12:44, Andreas Jaeger a...@suse.com wrote:

 On 09/20/2014 09:34 AM, Deepak Shetty wrote:
 thanks , that worked.
 Any idea why it doesn't install it automatically and/or it isn't
 present
 in requirements.txt ?
 I thought that was the purpose of requirements.txt ?

 AFAIU requirements.txt has only python dependencies while
 mysql-devel is a C development package,

 Andreas
 --
  Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
   SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
 GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

 ___
 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




 --
 Kind Regards
 Valeriy Ponomaryov
 www.mirantis.com
 vponomar...@mirantis.com

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


Re: [openstack-dev] [Manila] ./run_tests issue

2014-09-25 Thread melanie witt
On Sep 21, 2014, at 23:31, Deepak Shetty dpkshe...@gmail.com wrote:

 Even better, whenever ./run_tests fail... maybe put a msg stating the 
 following C libs needs to be installed, have the user check the 
 same..something like that would help too.

I don't think it should be a human-maintained list, otherwise it's prone to 
fall out of date or be incomplete in some way.

FWIW, simply typing the error message in google and taking the first result 
e.g. fatal error: my_config.h: No such file or directory solves these 
obstacles in seconds, at least for me.


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Manila] ./run_tests issue

2014-09-22 Thread Deepak Shetty
Thats incorrect, as i said in my original mail.. I am usign devstack+manila
and it wasn't very clear to me that mysql-devel needs to be installed and
it didn't get installed. I am on F20, not sure if that causes this , if
yes, then we need to debug and fix this.

Maybe its a good idea to put a comment in requirements.txt statign that the
following C libs needs to be installed for  the venv to work smoothly. That
would help too for the short term.

On Sun, Sep 21, 2014 at 12:12 PM, Valeriy Ponomaryov 
vponomar...@mirantis.com wrote:

 Dep MySQL-python is already in test-requirements.txt file. As Andreas
 said, second one mysql-devel is C lib and can not be installed via pip.
 So, project itself, as all projects in OpenStack, can not install it.

 C lib deps are handled by Devstack, if it is used. See:
 https://github.com/openstack-dev/devstack/tree/master/files/rpms

 https://github.com/openstack-dev/devstack/blob/2f27a0ed3c609bfcd6344a55c121e56d5569afc9/functions-common#L895

 Yes, Manila could have its files in the same way in
 https://github.com/openstack/manila/tree/master/contrib/devstack , but
 this lib is already exist in deps for other projects. So, I guess you used
 Manila run_tests.sh file on host without devstack installation, in that
 case all other projects would fail in the same way.

 On Sun, Sep 21, 2014 at 2:54 AM, Alex Leonhardt aleonhardt...@gmail.com
 wrote:

 And yet it's a dependency so I'm with Deepak and it should at least be
 mentioned in the prerequisites on a webpage somewhere .. :) I might even
 try and update/add that myself as it caught me out a few times too..

 Alex
  On 20 Sep 2014 12:44, Andreas Jaeger a...@suse.com wrote:

 On 09/20/2014 09:34 AM, Deepak Shetty wrote:
  thanks , that worked.
  Any idea why it doesn't install it automatically and/or it isn't
 present
  in requirements.txt ?
  I thought that was the purpose of requirements.txt ?

 AFAIU requirements.txt has only python dependencies while
 mysql-devel is a C development package,

 Andreas
 --
  Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
   SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
 GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

 ___
 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




 --
 Kind Regards
 Valeriy Ponomaryov
 www.mirantis.com
 vponomar...@mirantis.com

 ___
 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


Re: [openstack-dev] [Manila] ./run_tests issue

2014-09-22 Thread Deepak Shetty
Even better, whenever ./run_tests fail... maybe put a msg stating the
following C libs needs to be installed, have the user check the
same..something like that would help too.

On Mon, Sep 22, 2014 at 11:59 AM, Deepak Shetty dpkshe...@gmail.com wrote:

 Thats incorrect, as i said in my original mail.. I am usign
 devstack+manila and it wasn't very clear to me that mysql-devel needs to be
 installed and it didn't get installed. I am on F20, not sure if that causes
 this , if yes, then we need to debug and fix this.

 Maybe its a good idea to put a comment in requirements.txt statign that
 the following C libs needs to be installed for  the venv to work smoothly.
 That would help too for the short term.

 On Sun, Sep 21, 2014 at 12:12 PM, Valeriy Ponomaryov 
 vponomar...@mirantis.com wrote:

 Dep MySQL-python is already in test-requirements.txt file. As Andreas
 said, second one mysql-devel is C lib and can not be installed via
 pip. So, project itself, as all projects in OpenStack, can not install it.

 C lib deps are handled by Devstack, if it is used. See:
 https://github.com/openstack-dev/devstack/tree/master/files/rpms

 https://github.com/openstack-dev/devstack/blob/2f27a0ed3c609bfcd6344a55c121e56d5569afc9/functions-common#L895

 Yes, Manila could have its files in the same way in
 https://github.com/openstack/manila/tree/master/contrib/devstack , but
 this lib is already exist in deps for other projects. So, I guess you used
 Manila run_tests.sh file on host without devstack installation, in that
 case all other projects would fail in the same way.

 On Sun, Sep 21, 2014 at 2:54 AM, Alex Leonhardt aleonhardt...@gmail.com
 wrote:

 And yet it's a dependency so I'm with Deepak and it should at least be
 mentioned in the prerequisites on a webpage somewhere .. :) I might even
 try and update/add that myself as it caught me out a few times too..

 Alex
  On 20 Sep 2014 12:44, Andreas Jaeger a...@suse.com wrote:

 On 09/20/2014 09:34 AM, Deepak Shetty wrote:
  thanks , that worked.
  Any idea why it doesn't install it automatically and/or it isn't
 present
  in requirements.txt ?
  I thought that was the purpose of requirements.txt ?

 AFAIU requirements.txt has only python dependencies while
 mysql-devel is a C development package,

 Andreas
 --
  Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
   SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
 GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

 ___
 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




 --
 Kind Regards
 Valeriy Ponomaryov
 www.mirantis.com
 vponomar...@mirantis.com

 ___
 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


Re: [openstack-dev] [Manila] ./run_tests issue

2014-09-21 Thread Valeriy Ponomaryov
Dep MySQL-python is already in test-requirements.txt file. As Andreas
said, second one mysql-devel is C lib and can not be installed via pip.
So, project itself, as all projects in OpenStack, can not install it.

C lib deps are handled by Devstack, if it is used. See:
https://github.com/openstack-dev/devstack/tree/master/files/rpms
https://github.com/openstack-dev/devstack/blob/2f27a0ed3c609bfcd6344a55c121e56d5569afc9/functions-common#L895

Yes, Manila could have its files in the same way in
https://github.com/openstack/manila/tree/master/contrib/devstack , but this
lib is already exist in deps for other projects. So, I guess you used
Manila run_tests.sh file on host without devstack installation, in that
case all other projects would fail in the same way.

On Sun, Sep 21, 2014 at 2:54 AM, Alex Leonhardt aleonhardt...@gmail.com
wrote:

 And yet it's a dependency so I'm with Deepak and it should at least be
 mentioned in the prerequisites on a webpage somewhere .. :) I might even
 try and update/add that myself as it caught me out a few times too..

 Alex
  On 20 Sep 2014 12:44, Andreas Jaeger a...@suse.com wrote:

 On 09/20/2014 09:34 AM, Deepak Shetty wrote:
  thanks , that worked.
  Any idea why it doesn't install it automatically and/or it isn't present
  in requirements.txt ?
  I thought that was the purpose of requirements.txt ?

 AFAIU requirements.txt has only python dependencies while
 mysql-devel is a C development package,

 Andreas
 --
  Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
   SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
 GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

 ___
 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




-- 
Kind Regards
Valeriy Ponomaryov
www.mirantis.com
vponomar...@mirantis.com
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Manila] ./run_tests issue

2014-09-20 Thread Valeriy Ponomaryov
These should help:
sudo yum -y install mysql-devel
sudo pip install MySQL-python

On Sat, Sep 20, 2014 at 9:15 AM, Deepak Shetty dpkshe...@gmail.com wrote:

 I keep hitting this issue in my F20 based devstack env ...

 ./run_tests.sh -V

 
 .

 gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall
 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
 --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
 -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall
 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
 --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
 -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(1,2,5,'final',1)
 -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.7 -c
 _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o -g -pipe
 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
 --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -D_GNU_SOURCE
 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -g -static-libgcc
 -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1

 _mysql.c:44:23: fatal error: my_config.h: No such file or directory

  #include my_config.h

^

 compilation terminated.

 error: command 'gcc' failed with exit status 1

 
 Cleaning up...
 Command /opt/stack/manila/.venv/bin/python -c import setuptools,
 tokenize;__file__='/opt/stack/manila/.venv/build/MySQL-python/setup.py';exec(compile(getattr(tokenize,
 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))
 install --record /tmp/pip-J7FYeG-record/install-record.txt
 --single-version-externally-managed --compile --install-headers
 /opt/stack/manila/.venv/include/site/python2.7 failed with error code 1 in
 /opt/stack/manila/.venv/build/MySQL-python
 Traceback (most recent call last):
   File /opt/stack/manila/.venv/bin/pip, line 11, in module
 sys.exit(main())
   File
 /opt/stack/manila/.venv/lib/python2.7/site-packages/pip/__init__.py, line
 185, in main
 return command.main(cmd_args)
   File
 /opt/stack/manila/.venv/lib/python2.7/site-packages/pip/basecommand.py,
 line 161, in main
 text = '\n'.join(complete_log)
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 36:
 ordinal not in range(128)
 Command tools/with_venv.sh pip install --upgrade -r
 /opt/stack/manila/requirements.txt -r
 /opt/stack/manila/test-requirements.txt failed.
 None

 

 Version of different tools on my system...

 [stack@devstack-large-vm manila]$ pip --version
 pip 1.5.6 from /usr/lib/python2.7/site-packages (python 2.7)
 [stack@devstack-large-vm manila]$ tox --version
 1.7.2 imported from /usr/lib/python2.7/site-packages/tox/__init__.pyc
 [stack@devstack-large-vm manila]$ virtualenv --version
 1.11.6

 =

 Can anybody see what I am missing for ./run_tests.sh to fail during
 install/build of mysql

 thanx,
 deepak


 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- 
Kind Regards
Valeriy Ponomaryov
www.mirantis.com
vponomar...@mirantis.com
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Manila] ./run_tests issue

2014-09-20 Thread Deepak Shetty
thanks , that worked.
Any idea why it doesn't install it automatically and/or it isn't present in
requirements.txt ?
I thought that was the purpose of requirements.txt ?

On Sat, Sep 20, 2014 at 12:00 PM, Valeriy Ponomaryov 
vponomar...@mirantis.com wrote:

 These should help:
 sudo yum -y install mysql-devel
 sudo pip install MySQL-python

 On Sat, Sep 20, 2014 at 9:15 AM, Deepak Shetty dpkshe...@gmail.com
 wrote:

 I keep hitting this issue in my F20 based devstack env ...

 ./run_tests.sh -V

 
 .

 gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall
 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
 --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
 -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall
 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
 --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
 -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(1,2,5,'final',1)
 -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.7 -c
 _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o -g -pipe
 -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
 --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -D_GNU_SOURCE
 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -g -static-libgcc
 -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1

 _mysql.c:44:23: fatal error: my_config.h: No such file or directory

  #include my_config.h

^

 compilation terminated.

 error: command 'gcc' failed with exit status 1

 
 Cleaning up...
 Command /opt/stack/manila/.venv/bin/python -c import setuptools,
 tokenize;__file__='/opt/stack/manila/.venv/build/MySQL-python/setup.py';exec(compile(getattr(tokenize,
 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))
 install --record /tmp/pip-J7FYeG-record/install-record.txt
 --single-version-externally-managed --compile --install-headers
 /opt/stack/manila/.venv/include/site/python2.7 failed with error code 1 in
 /opt/stack/manila/.venv/build/MySQL-python
 Traceback (most recent call last):
   File /opt/stack/manila/.venv/bin/pip, line 11, in module
 sys.exit(main())
   File
 /opt/stack/manila/.venv/lib/python2.7/site-packages/pip/__init__.py, line
 185, in main
 return command.main(cmd_args)
   File
 /opt/stack/manila/.venv/lib/python2.7/site-packages/pip/basecommand.py,
 line 161, in main
 text = '\n'.join(complete_log)
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 36:
 ordinal not in range(128)
 Command tools/with_venv.sh pip install --upgrade -r
 /opt/stack/manila/requirements.txt -r
 /opt/stack/manila/test-requirements.txt failed.
 None

 

 Version of different tools on my system...

 [stack@devstack-large-vm manila]$ pip --version
 pip 1.5.6 from /usr/lib/python2.7/site-packages (python 2.7)
 [stack@devstack-large-vm manila]$ tox --version
 1.7.2 imported from /usr/lib/python2.7/site-packages/tox/__init__.pyc
 [stack@devstack-large-vm manila]$ virtualenv --version
 1.11.6

 =

 Can anybody see what I am missing for ./run_tests.sh to fail during
 install/build of mysql

 thanx,
 deepak


 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




 --
 Kind Regards
 Valeriy Ponomaryov
 www.mirantis.com
 vponomar...@mirantis.com

 ___
 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


Re: [openstack-dev] [Manila] ./run_tests issue

2014-09-20 Thread Andreas Jaeger
On 09/20/2014 09:34 AM, Deepak Shetty wrote:
 thanks , that worked.
 Any idea why it doesn't install it automatically and/or it isn't present
 in requirements.txt ?
 I thought that was the purpose of requirements.txt ?

AFAIU requirements.txt has only python dependencies while
mysql-devel is a C development package,

Andreas
-- 
 Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Manila] ./run_tests issue

2014-09-20 Thread Alex Leonhardt
And yet it's a dependency so I'm with Deepak and it should at least be
mentioned in the prerequisites on a webpage somewhere .. :) I might even
try and update/add that myself as it caught me out a few times too..

Alex
 On 20 Sep 2014 12:44, Andreas Jaeger a...@suse.com wrote:

 On 09/20/2014 09:34 AM, Deepak Shetty wrote:
  thanks , that worked.
  Any idea why it doesn't install it automatically and/or it isn't present
  in requirements.txt ?
  I thought that was the purpose of requirements.txt ?

 AFAIU requirements.txt has only python dependencies while
 mysql-devel is a C development package,

 Andreas
 --
  Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
   SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
 GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

 ___
 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