Commit Graph

11485 Commits

Author SHA1 Message Date
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
Jenkins
097d122609 Merge "Fixes Bug #861293 nova.auth.signer.Signer now honors the SignatureMethod parameter for SHA1 when creating signatures" 2011-11-15 21:27:39 +00:00
Jenkins
80ffed4f0a Merge "Converting lock/unlock to use instance objects" 2011-11-15 20:34:06 +00:00
Jenkins
4dd21a3501 Merge "Log the URL to an image_ref and not just the ID." 2011-11-15 17:50:32 +00:00
Brian Waldon
d2db9790dd Converting lock/unlock to use instance objects
Related to blueprint internal-uuids

Change-Id: I5a7842953da64cd2a060e5e384d06cdf535c7a1f
2011-11-15 09:02:25 -08:00
Mark McLoughlin
f2fc0929d2 Deepcopy optparse defaults to avoid re-appending multistrings (#890489)
This is actually a bug in optparse itself, but luckily we can work
around it. I'll file it upstream when bugs.python.org's account
registration isn't broken.

Change-Id: I87c3271562caa4336c11fe445475650a9f16950c
2011-11-15 16:14:30 +00:00
Mark McLoughlin
065a7ea03d Fix multistring flags default handling (#890489)
With its 'append' action, optparse appends values to the supplied
default value. This leaves the user with no way of overriding the
default value. If you want to support overriding, you need to manually
handle setting the default value after parsing.

gflags supports overriding the default value so we must do the same.

Change-Id: I5810e16806e74876c7a310edbb6f8f27f0a3313b
2011-11-15 07:54:57 +00:00
Jenkins
06c8064af5 Merge "Handle null ramdisk/kernel in euca-describe-images" 2011-11-15 00:44:48 +00:00
Brian Waldon
4201b01931 Converting network methods to use instance objects
Related to blueprint internal-uuids

Change-Id: I04f8f855411658674441a8d0cb7b589dee8b36fa
2011-11-14 15:25:28 -08:00
Brian Waldon
9c012d5153 Handle null ramdisk/kernel in euca-describe-images
Fixes bug 890426

Change-Id: I8b5dd4aa4df233a6fb04a6f62a71129c799e9f2c
2011-11-14 15:22:19 -08:00
Josh Kearney
e105c53e67 Log the URL to an image_ref and not just the ID.
Change-Id: Iaae6b969d9ef3cd0f50dd3297d4b0bb51f61f5c9
2011-11-14 15:30:23 -06:00
Brian Waldon
d9dd8f2fd3 Converting attach_volume to use instance object
Related to blueprint internal-uuids

Change-Id: I84d6e76d58de29f49d30ad3f8ac051becac626bd
2011-11-14 09:15:01 -08:00
Jenkins
1851662edb Merge "Bug #887805 Error during report_driver_status(): 'LibvirtConnection' object has no attribute '_host_state'" 2011-11-12 17:53:58 +00:00
Jenkins
165cbc3942 Merge "Verify security group parameters" 2011-11-12 17:45:33 +00:00
Jenkins
31b5f88a18 Merge "Stop nova-ajax-console-proxy configuring its own logging." 2011-11-12 17:30:16 +00:00
Jenkins
f0a19e337f Merge "Removed some old cruft." 2011-11-12 17:22:41 +00:00
Jenkins
fb95f93bbd Merge "Convert pause/unpause, sus/res to use instance obj" 2011-11-12 17:15:00 +00:00
Jenkins
4efb01f4cb Merge "Converting rescue/unrescue to use instance objects" 2011-11-11 22:03:42 +00:00
Jenkins
45af0a0ac8 Merge "Converting consoles calls to use instance objects" 2011-11-11 21:53:35 +00:00
Brian Waldon
574166045c Converting rescue/unrescue to use instance objects
Related to blueprint internal-uuids

Change-Id: If256d9a1251e780ff044bd87e0805c9f511c05e9
2011-11-11 16:51:52 -05:00
Brian Waldon
bf7b89d577 Converting inject_file to use instance objects
Related to blueprint internal-uuids. This function also appeared to be
incomplete. It should actually work now.

Change-Id: I77ccd29c7ac5e0cbe60d52a4ff5a64ecdff6fa1a
2011-11-11 16:34:25 -05:00
Jenkins
615c4df320 Merge "Converting fixed ip calls to use instance objects" 2011-11-11 21:27:27 +00:00
Ewan Mellor
f492fced12 Bug #888730: vmwareapi suds debug logging very verbose
Set suds log level to INFO by default, using
default_log_levels.

Change-Id: I4a1b09470aeba006112734fae9feef3d228eaced
2011-11-11 11:47:43 -08:00
Jenkins
b9086d3ad2 Merge "Converting metadata calls to use instance objects" 2011-11-11 19:21:28 +00:00
Jenkins
314539cce7 Merge "Converting snapshot/backup to use instance objects" 2011-11-11 19:06:18 +00:00
Jenkins
ed3635f40f Merge "Converting set password to use instance objects" 2011-11-11 18:42:39 +00:00
Brian Waldon
0a2d839f1b Converting consoles calls to use instance objects
Related to blueprint internal-uuids

Change-Id: I39da4d98ff64e8db22eecb1966f6506e8f14361e
2011-11-11 13:33:56 -05:00
Brian Waldon
6bd44ccb3a Converting fixed ip calls to use instance objects
Related to blueprint internal-uuids

Change-Id: Ifad7a6ac39b0455f77602d9744f64425ebb3f49c
2011-11-11 13:33:55 -05:00
Jenkins
fb6a2d15be Merge "Refactor of QuotaError" 2011-11-11 17:50:32 +00:00
Jenkins
1778c61555 Merge "fix rebuild sha1 not string error" 2011-11-11 16:54:45 +00:00
Jenkins
41159b6ad5 Merge "Fix a notification bug when creating instances" 2011-11-11 16:25:35 +00:00
Alex Meade
43fb6880d9 Convert pause/unpause, sus/res to use instance obj
Related to blueprint internal-uuids

Change-Id: I02bd212b4878ed0fcb971c223518ecf7126bd597
2011-11-11 11:00:43 -05:00
David Subiros
17ae2d2662 fix rebuild sha1 not string error
fixes bug #889164
The sha1() parameter is converted to a string
before calling the funcion.

Change-Id: I9cb6ff43c106c214e027d3bdacb795b4b0269f94
2011-11-11 15:57:04 +00:00
Ahmad Hassan
1a12349c05 Verify security group parameters
Introduced various sanity checks before adding security group rule
into the database. The checks have been implemented both in EC2 and
openstack extension code.
Implemented the suggestions made in first patch by Brian
Fixed the unit tests in security groups
Fixed pep8 issues in security group unit tests

Fixes bug 869979.

Change-Id: I2ac28666e90e7bdeacb7b1c2676c0719cfb9e441
2011-11-11 09:46:15 +00:00
Brian Waldon
231f40af80 Converting set password to use instance objects
Related to blueprint internal-uuids

Change-Id: Ifd229c7b9a9b69040a04289d4a98385fc946c734
2011-11-10 22:00:35 -05:00
Brian Waldon
d29f9e3455 Converting snapshot/backup to use instance objects
Related to blueprint internal-uuids

Change-Id: I8d9768524d36f7066cc1550bba01326dc5167a8d
2011-11-10 21:54:14 -05:00
Joe Gordon
fa846dd343 Refactor of QuotaError
moved QuotaError from quota.py to exception.py

Change-Id: Ic03301492a2df323074d73e8481e0e3aee89f74c
2011-11-10 16:11:11 -08:00
Kevin L. Mitchell
57e73d3748 Fix a notification bug when creating instances
Fixes a notifier bug that caused 'launched_at' to be empty and
state to be reported as 'building', due to failure to refresh
instance data prior to generating the notification.  Fixes
bug 834867.

Change-Id: I70fbf3c67407c67b69040ee481ca6d51212cc55d
2011-11-10 17:35:44 -06:00
Jenkins
59dfaf9e02 Merge "Capture exceptions happening in API layer" 2011-11-10 23:32:18 +00:00
Jenkins
cd822c3bd7 Merge "nova-manage: exit with status 1 if an image registration fails" 2011-11-10 23:12:53 +00:00
Brian Waldon
255a363f78 Converting metadata calls to use instance objects
Related to blueprint internal-uuids

Change-Id: Ic21bffbdb538fb8c1bdd1d729982e2da0a56bdf8
2011-11-10 16:00:01 -05:00
Ewan Mellor
d7e5a79150 nova-manage: exit with status 1 if an image registration fails
This indicates the failure to the user through the exit status.

Original author: Renuka Apte <renuka.apte@citrix.com>

Change-Id: I73fc2cc35530e7ee7f113f5aaec7b577663e4dc1
2011-11-10 12:13:04 -08:00
Alex Meade
f2b9f3fa6c Converting start and stop to use instance objects
Related to blueprint internal-uuids

Change-Id: Ie94bef94e50620419a306eeedcdca756f83f1af6
2011-11-10 14:21:57 -05:00
Alex Meade
1a5418b7cb Converting delete to use instance objects
Related to blueprint internal-uuids

Change-Id: I8875d9785dd0d8f55120673c758edb4c011a4657
2011-11-10 13:57:38 -05:00
Jenkins
871e680c9c Merge "Add more error handling to glance xenapi plugin" 2011-11-10 18:26:43 +00:00
Ahmad Hassan
68111826af Capture exceptions happening in API layer
Added the faulwrapper around EC2 api so that it captures any unseen
exceptions and return a graceful error back. Also changed the openstack
exception message. The actual exception message will be printed in the
logs and would not return back the user.
Removed openstack wsgi dependency from
EC2 fault wrapper. Added unit tests for
EC2 fault wrapper
Fixes bug 869132.

Change-Id: I03d18f321f141ae96f1add99ea0b70e736253c89
2011-11-10 17:30:31 +00:00
Jenkins
9334893c83 Merge "Fixes bug 871877" 2011-11-10 17:11:15 +00:00
Monty Taylor
e5319dfbd2 Removed some old cruft.
Removed the builddeb.sh script, which is not used by debian packaging.
Removed bzrplugins for novalog, since we no longer use bzr.

Change-Id: Icaae040e31b73af1bad97320cd7893ae17ac1d85
2011-11-10 12:01:08 -05:00
Mark Washenberger
89f2fb00b9 Add more error handling to glance xenapi plugin
Also add some extra logging to help track down problems that occur
when getting images from glance.

Change-Id: I2246d06364211ae377c7a89f93a76f339a201a8d
2011-11-10 10:41:29 -05:00
Alvaro Lopez
6e7b0387e4 Fixes bug 871877
Added an aditional testunit to the VlanNetworkTestCase to check
if the FixedIpNotFoundForNetwork exception is raised properly.

Change-Id: I92a0ca22aadcfa9a7fd434375e239be8ccf4f387
2011-11-10 14:59:58 +01:00