summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | | | | | Merge "Change arguments to volume_detach()"Jenkins2013-03-229-74/+74
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / |/| | | | | | | | | | | |
| * | | | | | | | | | | | Change arguments to volume_detach()Chris Behrens2013-03-209-74/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most compute API calls accept an instance object. To be compatible with cells, volume_detach() should as well. Also change it to accept the volume object, instead of just a volume ID. This lets us proxy the volume object to child cells a bit more easily. This removes 2 skipTests that we have related to volumes and cells. Fixes bug 1157408 There was also a check that if instance_get_by_uuid() returned no instance, it VolumeUnattached should be raised. However, this check would never work as InstanceNotFound would have been raised. This patch also corrects that. Change-Id: Ide35ad5d8e147f6bd21b5840b901363dab0eae38
* | | | | | | | | | | | | Merge "Make nova.virt.fake.FakeDriver useable in integration testing"Jenkins2013-03-212-5/+11
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | Make nova.virt.fake.FakeDriver useable in integration testingJoe Gordon2013-03-212-5/+11
| | |/ / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this change nova.virt.fake.FakeDriver can be used for scale testing using devstack. By setting 'compute_driver = nova.virt.fake.FakeDriver' in nova.conf and disabiling quota and other limits, we can load up nova to think it is running 1000's of instances. This particular scenario is analagous to how the baremetal driver will work (one machine managing 100's to 1000's of instances). Make nova.virt.fake.FakeDriver use CONF.host for hostname. Change-Id: I731ca2968176b4e39dd2fe7fc99f479cc568398b
* | | | | | | | | | | | | Merge "Add caching for ec2 mapping ids."Jenkins2013-03-213-0/+35
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | Add caching for ec2 mapping ids.Vishvananda Ishaya2013-03-193-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requests to map ec2 ids can be slow when there are a large number of instances. These shouldn't ever change so cache them in memory for a week. The one week timeout is simply to prevent memory from growing uncontrollably. Fixes bug 1157437 Change-Id: I3f1c68959a933a7aaa50f122c34a716264c8722d
* | | | | | | | | | | | | | Merge "nova-manage vm list fails looking 'instance_type'"Jenkins2013-03-211-1/+2
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / / |/| | | | | | | | | | | | |
| * | | | | | | | | | | | | nova-manage vm list fails looking 'instance_type'Phil Day2013-03-211-1/+2
| | |_|_|_|/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The recent set of changes to remove the join on instance_types and get data from instance_system_metadata missed out the use in "nova-manage vm list" fixes bug: #1158352 Change-Id: I5b06a4fef34331abe40e7429b3abda47070bcbbc
* | | | | | | | | | | | | Merge "Change type of ssh_port option from Str to Int"Jenkins2013-03-211-2/+2
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / |/| | | | | | | | | | | |
| * | | | | | | | | | | | Change type of ssh_port option from Str to IntDevananda van der Veen2013-03-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The type of CONF option virtual_power_ssh_port was incorrectly defaulted to Str. This can cause Paramiko to raise when casting to %d. Fixes bug 1157824. Change-Id: I30ddd1ff0da45f8392085249f1bd2a539b201a7e
* | | | | | | | | | | | | Merge "Don't actually connect to libvirtd in unit tests."Jenkins2013-03-211-15/+29
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | Don't actually connect to libvirtd in unit tests.Vishvananda Ishaya2013-03-201-15/+29
| | |_|_|_|_|_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The libvirt tests shouldn't actually be connecting to libvirtd while running unit tests. Many of the tests were calling either getLibVersion or getCapabilites, which would start a connection. Fake these out so the tests can run properly without libvirtd. Fixes bug 1157992 Change-Id: Iff1a60fc3cc912fdaf641f1f289744bcc9cc9736
* | | | | | | | | | | | | Merge "nova-manage: remove unused import"Jenkins2013-03-211-1/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | nova-manage: remove unused importZhiteng Huang2013-03-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unused since commit 9ff3121b Change-Id: I76bb49669d1cdfc3bf5b1c20087b4bd77420cd91
* | | | | | | | | | | | | | Merge "Bring back sexy colorized test results."Jenkins2013-03-212-2/+315
|\ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | Bring back sexy colorized test results.Vishvananda Ishaya2013-03-202-2/+315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also attempt to keep test results together and print out a nice display of the ten slowest tests. Change-Id: Ib54eb6dede8650ebafc3f069ee7b4a8c4c1a523c
* | | | | | | | | | | | | | | Merge "nova-manage: remove redundant 'dest' args"Jenkins2013-03-211-103/+79
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / | |/| | | | | | | | | | | | |
| * | | | | | | | | | | | | | nova-manage: remove redundant 'dest' argsZhiteng Huang2013-03-081-103/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Includes a hack to calculate 'dest' from the argument name. This hack is removed in a later commit. Change-Id: I60567ff232ab7699f3234b3bfc1618a17a648976
* | | | | | | | | | | | | | | Add placeholder migrations to allow backports.Vishvananda Ishaya2013-03-2010-0/+60
| |_|/ / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements blueprint backportable-db-migrations. Change-Id: I0efd2a8b25b056f4d7d0325fd8442cd3dc3b6147
* | | | | | | | | | | | | | Merge "Enable tox use of site-packages for libvirt."Jenkins2013-03-202-0/+8
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / / / / / / |/| | | | | | | | | | | | |
| * | | | | | | | | | | | | Enable tox use of site-packages for libvirt.Clark Boylan2013-03-192-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable the use of site-packages in tox which will allow the use of the system install of libvirt while testing. Hardcode the libvirt host UUID for tests that check this UUID when system libvirt is being used. Without this hardcoding eight tests would fail when using the system libvirt install. Partially fixes bug #1113181 Change-Id: I59c5fbd45639962c0963298203c39759b6ca2d11
* | | | | | | | | | | | | | Set version to 2013.2Thierry Carrez2013-03-201-1/+1
| |_|_|_|_|_|_|_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Open Havana development by setting version to 2013.2. Change-Id: I37917d28a1f9e0adc2fe3e382412ebc4ed0f3bee
* | | | | | | | | | | | | Merge "Refactor db.service_destroy and db.service_update methods"Jenkins2013-03-201-12/+24
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | Refactor db.service_destroy and db.service_update methodsBoris Pavlovic2013-03-201-12/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove session parameter from db.service_get method Optimize db.service_destroy: Was: 1 request with join to get service with compute_node 1 request to delete service 1(0) to delete compute_node Now: 1 request (without join) to delete service 1 request to delete compute_node Optimize db.service_update: Remove unused join. Fixes bug 1157442 blueprint db-session-cleanup Change-Id: Ifcc8fdebfc95daec736464cbc9e16301116540aa
* | | | | | | | | | | | | | Merge "Update the network info when using quantum."Jenkins2013-03-203-16/+65
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|_|/ / / |/| | | | | | | | | | | | |
| * | | | | | | | | | | | | Update the network info when using quantum.Vishvananda Ishaya2013-03-193-16/+65
| | |_|_|_|_|_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The network info cache in quantum was not updated with floating ips. Also it wasn't updated properly updating the network info cache during some operations that changed it. This adds floating ips and updates the cache properly. Fixes bug 1108975 Change-Id: I9e9c211d014f9671d724cded1fb9a74313c458b6
* | | | | | | | | | | | | Merge "Add missing tests for db.virtual_interface_* methods"Jenkins2013-03-201-0/+115
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / | |/| | | | | | | | | | |
| * | | | | | | | | | | | Add missing tests for db.virtual_interface_* methodsBoris Pavlovic2013-03-201-0/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was no tests in test_db_api for virtual_interface_* methods. Add tests to ensure that all works. This allow us to refactor these methods to use soft_delete instead of delete. Found bug 1156227 in sqlite we have lost UC on virtual_interfaces.address after 152_* migration. To fix it we should add new db migration, so it will be fixed in Havana-1. blueprint db-api-tests Change-Id: Ide03163b230762d65bf3cd7b5fe8f0a303fea5ae
* | | | | | | | | | | | | Merge "fix add-fixed-ip with quantum"Jenkins2013-03-202-2/+4
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | fix add-fixed-ip with quantumDan Wendlandt2013-03-192-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug 1157439 code was ignoring existing IPs on a port when adding a new IP. Change-Id: I11f3c81eafc6c7d44772c3c8aea3b14f4b6bc815
* | | | | | | | | | | | | | Imported Translations from TransifexOpenStack Jenkins2013-03-201-400/+409
| |_|_|_|_|_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I0a74afda58d2f6cfb1fb3d7cd2632c493c714a63
* | | | | | | | | | | | | Merge "Fix missing argument to QemuImageInfo"Jenkins2013-03-202-1/+25
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | Fix missing argument to QemuImageInfoDavanum Srinivas2013-03-192-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | set the default value for cmd_output to None. _parse does work fine with None or empty string Fixes LP# 1157412 Change-Id: Ib63f2fd227633b96db613ce29563d1929536819a
* | | | | | | | | | | | | | Merge "Add missing tests for db.service_* methods"Jenkins2013-03-191-0/+192
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / / / / / | |/| | | | | | | | | | | |
| * | | | | | | | | | | | | Add missing tests for db.service_* methodsBoris Pavlovic2013-03-191-0/+192
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was no tests in test_db_api for service_* methods. Add tests to ensure that all works. Also these tests allow us to refactor work with session in these methods. blueprint db-api-tests Change-Id: I0c3b233e1290f08ea01a8c64eacb95af1eae6f24
* | | | | | | | | | | | | | Merge "Fix console support with cells"Jenkins2013-03-1914-28/+283
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|/ / / / / / |/| | | | | | | | | | | | |
| * | | | | | | | | | | | | Fix console support with cellsChris Behrens2013-03-1914-28/+283
| | |/ / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The (relatively recent) security fixes for consoleauth do not work with cells because consoleauth and the compute manager for the instance talk to different rabbit servers. consoleauth is in the API cell and the compute manager is in a child cell. This patch adds code to proxy the following via cells: 1) compute -> consoleauth's delete_tokens_for_instance() 2) consoleauth -> compute's validate_console_port() Also: On instance deletion when the compute manager tells consoleauth to delete tokens for the instance, it's not necessary to do an rpc.call and block. The only purpose it could serve would be log a traceback on failure on the compute manager side, but that seems unnecessary. There's no return value. This patch changes it to an rpc.cast instead. Fixes bug 1154755 Change-Id: Ic763f2a5c0dcff7b7ccfac5927680e7881605f61
* | | | | | | | | | | | | Merge "Prevent volume-attach/detach from instances in rescue state"Jenkins2013-03-194-9/+74
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / / / / / |/| | | | | | | | | | | |
| * | | | | | | | | | | | Prevent volume-attach/detach from instances in rescue stateJoe Gordon2013-03-184-9/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rescue is supposed to just be a way to log into a wayward instance if something goes wrong with the base image that may have had some data (logfiles etc.) and make it possible to grab that - block devices are assumed to be accessible by re-attaching them, and are considered persistant so no need for rescue there. Since there is no need to attach a volume in rescue mode, and detaching a volume that was previously attached doesn't work, just ban volume attach/detach in rescue state. Fixes bug 1126187 Change-Id: Ifdf164155942cdeb2bbdfcd1dce0dd2e125b507c
* | | | | | | | | | | | | Merge "Ensure that headers are returned as strings, not integers."Jenkins2013-03-194-3/+9
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / |/| | | | | | | | | | | |
| * | | | | | | | | | | | Ensure that headers are returned as strings, not integers.Alvaro Lopez Garcia2013-03-194-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'Retry-After' header was set as an integer, and it was causing that mod_wsgi failed with a 500 error, instead of the actual error. This ensures that the headers are converted to str. Fixes bug 1155585 Change-Id: If1b1de2308ccdc6f0588c8df5dc896fe5f767dbe
* | | | | | | | | | | | | Fix multiple fixed-ips with quantum.Russell Bryant2013-03-191-1/+2
| |_|_|/ / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes a bug in the quantum suppot where multiple requested fixed-ips did not work. Every network interface would be given the last fixed IP that was specified. The problem was just the lack of putting the right fixed ip in a local variable. Fix bug 1154093. Change-Id: Ie7e034e19a38c8431540c81b023ff4800aa6ec50
* | | | | | | | | | | | Merge "xenapi: Adding logging for migration plugin"Jenkins2013-03-192-4/+17
|\ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | xenapi: Adding logging for migration pluginAndy Hill2013-03-182-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this change administrators will be able to examine hypervisor logs for real-time progress of rsync operations (resizes, migrates). Change-Id: I463b574be1021e141fe2c8380b9c07f6cd860c78
* | | | | | | | | | | | | Merge "Return error details to users in "dns-create-private-domain""Jenkins2013-03-190-0/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | Return error details to users in "dns-create-private-domain"Haiwei Xu2013-03-131-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 1135539 When SysLogHandler is configured in UDP socket mode, the user who doesn't have the admin privilege got the unexpecting internal server error(HTTP 500) in "nova dns-create-private-domain" command. This bug occurs as the call graph drew below: |--ProxyCallback._process_data():amqp.py |--LOG.exception() | : | |--BaseHub.switch():hub.py | |-- clear_sys_exc_info() | |--ctxt.reply(None, sys.exc_info(),..) | : | |--serialize_remote_exception():common.py |--failure_info#(None,None,None) The sys.exc_info() is cleared by the clear_sys_exc_info(), but it is called again by the ctxt.reply(). This patch prevents the internal error and returns the details of the forbidden error(HTTP 403) which is expected. Change-Id: I76d4a938e66bfaf44423f7586e00db2caf9f5dde
* | | | | | | | | | | | | | Merge "Fixes PowerVM spawn failed as missing attr supported_instances"Jenkins2013-03-193-0/+25
|\ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | Fixes PowerVM spawn failed as missing attr supported_instancesFei Long Wang2013-03-193-0/+25
| | |_|_|_|_|_|_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During test in a cross-hypervisor environment (KVM+PowerVM), user will run into an issue during deploying an instance for Power host by PowerVM driver, though the property "hypervisor_type" for the PowerVM image have been configured. Since the _update_host_stats of PowerVM driver missing the attribute "supported_instances". Fixes bug: 1155498 Change-Id: I81259d153a7b5ae35747e57c53b14e0075d28d78
* | | | | | | | | | | | | | Merge "Fix RequestContext crashes w/ no service catalog"Jenkins2013-03-192-3/+17
|\ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | Fix RequestContext crashes w/ no service catalogDavanum Srinivas2013-03-182-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Code introduced in a prev review assumed service_catalog will be at least an empty list and will never be None. But missed one code path where the service_catalog could potentially be set to None. So this change switches back the default value of service_catalog in the arguments to None and makes sure we tolerate anyone else passing in a None or Empty list as service_catalog Fix for LP# 1156730 Change-Id: I480b761d57c4699ea7ef72114160cdbeb281e454