Commit Graph

203 Commits

Author SHA1 Message Date
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
termie e320fe5006 use git config's review.username for rfc.sh
Change-Id: I6e2e58bf37f49f023ae242b98c11f10e3f2de8b1
2011-09-27 16:35:05 -07:00
Jenkins 637cd313cf Merge "Don't use GitPython for authors check" 2011-09-23 17:38:21 +00:00
Mark McLoughlin affabf5be4 Don't use GitPython for authors check
I hit this issue with an older GitPython version:

  https://bugzilla.redhat.com/740852

Seeing as all GitPython is doing for us is running:

  $> git rev-list --pretty=raw HEAD

and parsing the output, I figure it's just as easy for us to run git
directly.

Change-Id: Ib43e2346c7d4c47e7776919f2b9c982133628129
2011-09-23 13:18:06 -04:00
Mark McLoughlin 48bc6645da Fix rfc.sh's check for the project
From 'git remote show origin' we get 'openstack/nova.git' but gerrit's
ls-projects returns 'openstack/nova'

Change-Id: I4ea6361633d0e94895dbbdaf3837f12c6c307bfc
2011-09-23 12:21:29 +01:00
James E. Blair 37100f5653 Add rfc.sh to help with gerrit workflow.
Change-Id: Ida3c5cd3f10d776890f3f50bf18c8e5d2817c391
2011-09-22 15:21:01 -07:00
Sandy Walsh 1b18dca93d cleaned up 2011-09-15 18:20:35 -07:00
sateesh b96d0af411 Multi-NIC support for vmwareapi virt driver in nova.
Does injection of Multi-NIC information to instances with Operating system flavors Ubuntu, Windows and RHEL.
vmwareapi virt driver now relies on calls to network manager instead of nova db calls for network configuration information of instance.
Re-oranized VMWareVlanBridgeDriver and added session parmeter to methods to use existing session. Also removed session creation code as session comes as argument.
Added check for flat_inject flag before attempting an inject operation.

This branch resolves the following bugs:
  Bug #831497 in OpenStack Compute (nova): "Instance spawn operation fails on ESXi compute node"
  https://bugs.launchpad.net/nova/+bug/831497
  Bug #839383 in OpenStack Compute (nova): "ESX(i) VIFs and mac addresses"
  https://bugs.launchpad.net/nova/+bug/839383
2011-09-14 15:13:02 +00:00
sateesh 6930c62a02 Multi-NIC support for vmwareapi virt driver in nova.
Does injection of Multi-NIC information to instances with Operating system flavors Ubuntu, Windows and RHEL.
vmwareapi virt driver now relies on calls to network manager instead of nova db calls for network configuration information of instance.
Ensure if port group is properly associated with vlan_interface specified in case of VLAN networking for instances.
Re-oranized VMWareVlanBridgeDriver and added session parmeter to methods to use existing session. Also removed session creation code as session comes as argument.
Added check for flat_inject flag before attempting an inject operation.
Removed stale code from vmwareapi stubs.
Also updated some comments to be more meaningful.
Did pep8 and pylint checks. Tried to improve pylint score for newly added lines of code.
2011-09-05 12:51:07 +05:30
Naveed Massjouni c5ad2b155a Merge from trunk 2011-09-02 01:39:31 -04:00
Naveed Massjouni 4f72f6c0fb Adding feedparser to pip-requires 2011-09-02 01:28:11 -04:00
Chris Behrens b6c306b1a2 add kombu to pip-requires and contrib/nova.sh 2011-08-30 13:55:06 -07:00
Naveed Massjouni 72dc7939f4 Merge from trunk. 2011-08-08 20:25:31 -04:00
Sandy Walsh 194f0e4909 uses 2.6.0 novaclient (OS API 1.1 support) 2011-08-04 10:43:42 -07:00
Naveed Massjouni 4c36305ea2 Merge from trunk. 2011-08-02 19:49:31 -04:00
Brian Waldon 65ba8bda43 Moves image creation from POST /images to POST /servers/<id>/action 2011-08-02 19:03:33 +00:00
Brian Waldon 07646e8584 removing compute monitor 2011-08-02 10:09:58 -04:00
Naveed Massjouni 9afa4437bf Fixing lxml version requirement. 2011-07-29 12:14:29 -04:00