Commit Graph

220 Commits

Author SHA1 Message Date
Brian Waldon 3759bcf3fc Excise M2Crypto!
This required rewriting our Diffie-Hellman-Merkle implementation for
set_admin_password in xen. Fixes bug 917851.

Change-Id: Ic4cdcc06221f003aec2dcd5ba05a1a9ad19d39c9
2012-02-02 10:12:58 -08:00
Brian Lamar 7de828108a Boto 2.2.x failes. Capping pip-requires at 2.1.1
Fixes bug 924933

Change-Id: I808daedf9a860a8ef153785693cbc49a0a25f49c
2012-02-01 10:55:43 -05:00
Joe Gordon 9a08e00548 Add HACKING compliance testing to run_test.sh
Tests so far:
N101 TODO format
N201 Except format
N301 One import per line
N302 import only modules
N303 Invalid Import
N304 Relative Import

Change-Id: I33c021b842e7199b1f5f1f699ea17f7fa5f8ca49
2012-01-24 10:54:17 -08:00
Joe Gordon 236190c452 Cleanup Imports to match HACKING guidelines
found using https://github.com/cloudscaling/nova-HACKING

Change-Id: Ic010f0407e7a139f0f6436af2e72e817c140a4c3
2012-01-18 11:30:22 -08:00
Zhongyue Luo 1611c23928 greenlet version inconsistency
Fixes Bug #917003

The latest version of greenlet is installed in install_venv.py while
the version required is set to 0.3.1 in pip-requires.

Change-Id: I145deb46a8edc41e87634dc5ca839baf5acd8065
2012-01-16 01:58:39 -05:00
Daniel P. Berrange d97b64b6e6 Tell users what is about to be installed via sudo
Rather than just giving users the sudo password prompt immediately,
actually tell them what is about to be installed, so they know
whether it is reasonable to be entering their password.

Change-Id: Ic0c1de812be119384753895531a008075b13494e
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2012-01-05 16:08:04 +00:00
Jenkins dc3d6ee43e Merge "PEP8 remove direct type comparisons" 2012-01-03 17:53:05 +00:00
lzyeval ae1654bc59 PEP8 remove direct type comparisons
Fixes bug #910763

According to PEP8,
- Object type comparisons should always use isinstance() instead
      of comparing types directly.

        Yes: if isinstance(obj, int):

        No: if type(obj) is type(1):

      When checking if an object is a string, keep in mind that it might be a
      unicode string too! In Python 2.3, str and unicode have a common base
      class, basestring, so you can do:

        if isinstance(obj, basestring):

Change-Id: I7c0fdecf99872f5b8f72b2c2ed4f5c539c33def1
2012-01-03 11:12:42 +08:00
Monty Taylor f9ec38578b Install a good version of pip in the venv.
Change-Id: I1059824aae8c5bf1a65de6cfaef96fef0f68d8a3
2012-01-02 13:35:57 -08:00
Jenkins 435d6d8bb5 Merge "Rename .nova-venv to .venv." 2011-12-09 00:53:27 +00:00
James E. Blair 5235106e95 Rename .nova-venv to .venv.
This simplifies a number of Jenkins jobs which currently, other
than directory names, could be the same for all OpenStack
projects. By renaming the virtualenv directory, the redundant
Jenkins virtualenv build and copy jobs can be eliminated.

Change-Id: Ieaf1dac3207ecb34b911c7edcd2086809abdf49e
2011-12-08 15:17:51 -08:00
Vishvananda Ishaya 0c9a9be3c0 revert using git for novaclient
Change-Id: I55184b0f3d6cdccfe1dc64d5e928b4b707ef5f84
2011-12-08 15:12:58 -08:00
Jenkins 10c829ff39 Merge "Add ability to see deleted and active records." 2011-12-08 23:01:27 +00:00
Vishvananda Ishaya 20c8d89dba Relax novaclient and remove redis dependency
Change-Id: I80fad5d2ee09111cc82f5b8c81f0c5e26f07b6ff
2011-12-08 14:04:51 -08:00
Vishvananda Ishaya d06da5d652 Relax dependency on boto 1.9b and nova-adminclient
* change boto=1.9b to boto
 * fix the tests
 * remove nova-adminclient dependency
 * remove the useless smoketests for nova-adminclient

Change-Id: Ie191453941e64774496a912cb64d1417f3f1bea3
2011-12-08 11:19:47 -08:00
Rick Harris c40ee5cfe7 Add ability to see deleted and active records.
Fixes bug #900564

Changes `Context`.`read_deleted` from a bool to an enum string with values
"yes" (can read deleted records), "no" (cannot read deleted records), and
"only" (can only see deleted records, for backwards compatibility).

Change-Id: Ic81db3664c33f23f751b73973782efb06fce90d9
2011-12-07 16:06:31 -06:00
Adrian Smith dbbd6cf107 Use system M2Crypto package on Oneiric, bug 892271
Ubuntu Oneiric has a problem with the pip installed version of m2crypto.
This fix installs python-m2crypto via apt-get on Oneiric.

Change-Id: I8290a74b614eb0d0b8d620dbad19d2cc6843de8b
2011-12-06 19:45:21 +00:00
Jenkins 36dcc2d923 Merge "Separate metadata api into its own service" 2011-11-16 23:35:08 +00:00
Vishvananda Ishaya e6073532e5 Separate metadata api into its own service
part 1 of blueprint separate-nova-metadata

 * adds api/metadata/ and moves code from ec2
 * moves metadata into separate binary
 * changes metadata forward to use metadata host and port
 * moves the metadata accept rule to the metadata api
 * adds nova-api-* to setup.py

Change-Id: I7f5d8e6cafc55b5c383cd88991f29c6059fb8d82
2011-11-15 13:27:58 -08:00
Mark McLoughlin b0ad7284aa install_venv: apply eventlet patch correctly with python 2.7 (#890461)
Looks like the fix for #884915 only works with RHEL6. Make it work
correctly on Fedora 16.

Change-Id: I8c996f20d49db688fd8e692bcd836dee693d362a
2011-11-15 08:43:46 +00:00
Lorin Hochstein 9175822ffe Workaround for eventlet bug with unit tests in RHEL6.1.
This adds a patch to fix the broken eventlet code that's installed in the
virtualenv.

Fixes bug 884915

Change-Id: I6dbf755abbc5a52208de3dd892257ce39686d396
2011-11-09 14:54:16 -05:00
Lorin Hochstein e42fe8565c Apply M2Crypto fix for all Fedora-based distributions.
Broaden Fedora check to include RHEL and others.

Fixes bug 884885

Change-Id: Ifab330a7f866add91d01c8cf2470e5a12fb4cd4d
2011-11-09 14:54:16 -05:00
Jenkins 7a0487d000 Merge "Remove nova dependency on vconfig on Linux." 2011-11-09 14:58:43 +00:00
Lorin Hochstein b08bd96ce5 Optional --no-site-packages in venv
Added a flag to run_tests.sh to allow user to optionally install venv with --no-site-packages.

This fixes bug 880905

Change-Id: Ic645e0ec56c90b72fef526ebc9f55975d446e2ae
2011-10-30 11:06:10 -04:00
Mark McLoughlin c00cfc642a venv: update distribute as well as pip
When you create a virtualenv, pip and setuptools/distribute is
installed.

When we later run install_venv.py to update the venv, we should
be sure to grab the latest versions of pip and distribute otherwise
issues like this one are masked:

  http://code.google.com/p/sqlalchemy-migrate/issues/detail?id=131

Change-Id: Id206be478ea6c5216dcee6f2f58dc91858c843f5
2011-10-25 14:39:12 +01:00
Asbjørn Sannes 2463d9d185 Remove nova dependency on vconfig on Linux.
iproute2 is already a dependency and is used everywhere and is more
capable than vconfig. This commit just replaces all uses of vconfig.

Change-Id: I5860a10f151a176bf9849feda6052d4c2b491e07
2011-10-20 11:47:36 +02:00
Monty Taylor 3c6ce70a51 Upgrade pip in the venv when we build it.
Change-Id: I924975170c9e3a1ef23b5195cb3a6eed675ec043
2011-10-19 18:03:51 -04:00
Josh Kearney 16582ce70c Utility script that makes enforcing PEP8 within git's pre-commit hook as easy as possible.
This should be mandatory for all developers, IMHO.

Change-Id: I83e8a7ab0a82df0fd08a2bef80295344b3a00a86
2011-10-17 14:39:25 -05:00
Jenkins 85fc484109 Merge "Use latest version of SQLAlchemy" 2011-10-14 19:30:09 +00:00
Jenkins f9aeb86961 Merge changes I94c7464b,Ibfeeb9c2
* changes:
  install_venv: pip install M2Crypto doesn't work on Fedora
  install_venv: add support for distro specific code
2011-10-13 04:49:38 +00:00
Jenkins 93378ee627 Merge "install_venv: remove versioned M2Crypto dependency" 2011-10-12 15:52:47 +00:00
Jenkins c3defedb3a Merge "install_venv: don't use --no-site-packages with virtualenv" 2011-10-12 15:40:33 +00:00
Jenkins 7ca47db2c7 Merge "install_venv: pass the --upgrade argument to pip install" 2011-10-12 15:24:43 +00:00
Jenkins f0a2907e58 Merge "install_venv: refactor out pip_install helper" 2011-10-12 15:15:12 +00:00
Jenkins 56be39aedb Merge "Further changes to the cleaner." 2011-10-10 21:38:22 +00:00
Jenkins 68282d915b Merge "Add support for header version parameter to specify API version." 2011-10-10 21:28:43 +00:00
Josh Kearney cf5f055ebb Further changes to the cleaner.
Change-Id: Ib11fe18a46e57df3498596a2909879d67e84fdda
2011-10-10 15:19:25 -05:00
Josh Kearney 3a4eb1da2f Reference orphaned_instance instead of instance.
Change-Id: I3170f7b67466645d4c410b1d58b3e4e15b9e3265
2011-10-10 12:55:24 -05:00
Josh Kearney d5af7c6d8a Continue to the next iteration of the loop if an instance is not found.
Change-Id: I0342bfd9ec04c2bec25d03ce1200d38a57929bb9
2011-10-10 12:38:12 -05:00
Jenkins c60291ff2b Merge "use git config's review.username for rfc.sh" 2011-10-08 19:30:55 +00:00
Johannes Erdfelt 6e5f2d88e6 Add support for header version parameter to specify API version.
bug 844905

The 1.1 API specifies that the API version can be determined by URL path
(eg /v1.1/tenant/servers/detail), Content-Type header
(eg application/json;version=1.1) or Accept header
(eg application/json;q=0.8;version=1.1, application/xml;q=0.2;version=1.1).

Change-Id: I01220cf1eebc0f759d66563ec67ef2f697c6d310
2011-10-04 14:44:34 +00:00
Josh Kearney 04548b067c Adds a script that can automatically delete orphaned VDIs. Also had to move some flags around to avoid circular imports.
Fixes bug 809614.

Change-Id: I635f7eef9ede45bee1ee4a62a3882b55d4222ee3
2011-09-30 12:45:15 -05:00
Brian Lamar eb4bd86f65 Added ==1.0.4 version specifier to kombu in pip-requires to ensure tests pass in a clean venv.
Fixes bug 862629.

Change-Id: Ie379aaf3a0753b022fa14e7c8f0a18f4c35b9c96
2011-09-29 15:55:56 -04:00
Mark McLoughlin 6c97436656 install_venv: pip install M2Crypto doesn't work on Fedora
... so use the system m2crypto library instead.

M2Crypto won't build on Fedora because of some bizarre differences with
Fedora's OpenSSL headers. I can get it to build by doing e.g.

 $> python ./tools/install_venv.py
 $> cd .nova-venv/build/M2Crypto
 $> for i in SWIG/_ec.i SWIG/_evp.i; do sed -i -e "s/opensslconf/opensslconf-x86_64/" $i ; done
 $> cd -
 $> SWIG_FEATURES=-cpperraswarn ./tools/with_venv.sh pip install M2Crypto

but that's clearly no fun. It should be fine to just use the system
version.

Change-Id: I94c7464bf60ae586e16a2f38b7440cea8dc110e5
2011-09-29 16:08:04 +01:00
Mark McLoughlin 9f529afd47 install_venv: add support for distro specific code
... and use it to install virtualenv with yum if it's not available.

Change-Id: Ibfeeb9c23324724bc26895504e6229076d793c6d
2011-09-29 16:08:00 +01:00
Mark McLoughlin a5fc312810 install_venv: remove versioned M2Crypto dependency
The latest, 0.21.1, seems to work fine.

Change-Id: I15c4561db812b788d8e8a6c8102e5059929b2543
2011-09-29 16:07:53 +01:00
Mark McLoughlin 7eeee584ad install_venv: don't use --no-site-packages with virtualenv
libvirt isn't listed in pip-requires because (a) it's not in PyPi and
(b) you always want to use libvirt's python bindings that matches the
version of libvirt installed on the system.

Currently, running nova-compute in virtualenv fails because libvirt
can't be imported. The --no-site-packages flag is what prevents this.
Everything seems to work fine without it. To verify, try deleting the
no-global-site-packages.txt from your .nova-venv.

Change-Id: I1df5e8e3c4426ca333c2d6b5b4fa8ece144dddf3
2011-09-29 16:07:45 +01:00
Mark McLoughlin f373a0f6f8 install_venv: pass the --upgrade argument to pip install
Subsequent runs of install_venv.sh should upgrade packages to the
latest available.

Change-Id: Ib9c9ee270b778363900d92398f00c1cab3508578
2011-09-29 16:07:39 +01:00
Mark McLoughlin de5e6ea29e install_venv: refactor out pip_install helper
We don't need to pass the -E argument since we're already running
inside the virtualenv.

Change-Id: Idd77b9bdc067e2288d0fa694a2bb6769675065cf
2011-09-29 16:07:23 +01:00
Mark McLoughlin 8fcc23c833 Use latest version of SQLAlchemy
Fedora 16 has SQLAlchemy-0.7.2 and it seems to work fine with Nova,
modulo these occassional migration errors that crop up. The
foreign_keys set in 047 issue is the third such problem fixed lately.

Is there any particular reason to stick with 0.6.3?

Change-Id: Ia65bc1f6035917b5aec84ad51d6504543256f7ca
2011-09-28 15:03:33 +01:00