17905 Commits

Author SHA1 Message Date
Jenkins
7240f7d480 Merge "Improve baremetal driver error handling" 2013-01-02 22:36:51 +00:00
Jenkins
ee01860ef5 Merge "Remove unused imports" 2013-01-02 22:17:20 +00:00
Jenkins
8470da6c73 Merge "Check for image_meta in libvirt.driver.spawn" 2013-01-02 22:13:34 +00:00
Jenkins
8f918e7570 Merge "Remove session.flush() and session.query() monkey patching" 2013-01-02 20:10:18 +00:00
Jenkins
02c29e9dea Merge "Remove improper NotFound except block in list servers" 2013-01-02 19:52:25 +00:00
Jenkins
ab17a55a18 Merge "Raise BadRequest when updating 'personality'" 2013-01-02 19:51:27 +00:00
Jenkins
688bbcf1df Merge "Add unit test for too long metadata for server rebuild action" 2013-01-02 19:51:03 +00:00
Jenkins
fdcf843a48 Merge "Adds os-volume_attachments 'volume_id' validation" 2013-01-02 19:50:18 +00:00
Jenkins
c66755f0ed Merge "Report failures to mount in localfs correctly." 2013-01-02 19:17:39 +00:00
Jenkins
46b047fbcc Merge "Add get_backdoor_port to scheduler." 2013-01-02 19:17:22 +00:00
Jenkins
7f53b62123 Merge "Add get_backdoor_port to console." 2013-01-02 19:16:52 +00:00
Jenkins
8a73316976 Merge "Add get_backdoor_port to cert." 2013-01-02 19:16:27 +00:00
Jenkins
94976530d9 Merge "Extract image metadata from Cinder" 2013-01-02 19:03:56 +00:00
Devananda van der Veen
0673aef9ff Improve baremetal driver error handling
Several improvements to baremetal driver are implemented in this patch.
There is now significantly more error handling during spawn().

It also includes an addition to nova/tests/utils.py to provide
additional sample information from get_test_network_info().

blueprint general-bare-metal-provisioning-framework

Change-Id: I65d93051d7fcfd79f4d24d4ddb62fb1a55bee646
2013-01-02 10:02:16 -08:00
Jenkins
4690b501b5 Merge "baremetal power driver takes **kwargs" 2013-01-02 17:46:11 +00:00
Jenkins
723fee501c Merge "Implement IPMI sub-driver for baremetal compute" 2013-01-02 17:45:48 +00:00
Jenkins
865565e166 Merge "Fix tests/baremetal/test_driver.py" 2013-01-02 17:45:17 +00:00
Jenkins
1c6f047094 Merge "Add get_backdoor_port to consoleauth." 2013-01-02 17:45:04 +00:00
Jenkins
fff67a693a Merge "Spelling: Compatability=>Compatibility" 2013-01-02 16:44:13 +00:00
Jenkins
40a19b7c08 Merge "Fix cloudpipe instances query." 2013-01-02 16:43:49 +00:00
Jenkins
edf4df3f6f Merge "Log last compute error when rescheduling." 2013-01-02 16:42:48 +00:00
Jenkins
04e4212849 Merge "db.network_delete_safe() method performance optimization" 2013-01-02 16:13:08 +00:00
Jenkins
4092a850c9 Merge "Move baremetal options to [BAREMETAL] OptGroup" 2013-01-02 16:12:54 +00:00
Jenkins
1ee38bbb48 Merge "spelling in test_migrations" 2013-01-02 16:12:12 +00:00
Jenkins
f18923f316 Merge "Update nova-cert man page" 2013-01-02 16:11:50 +00:00
Jenkins
2ab0bf7431 Merge "Allow new XML API sample file generation" 2013-01-02 15:04:39 +00:00
Jenkins
cc6800e6ab Merge "Adds test for HTTPUnprocessableEntity when rebooting" 2013-01-02 14:58:04 +00:00
Mauro S. M. Rodrigues
dc54013c13 Add unit test for too long metadata for server rebuild action
This fixes bug: 1088686
Partially implements blueprint nova-v2-api-audit

Change-Id: Ibf2b468cb95e0b1be9f47c0ff01ae55ce56d421d
2013-01-02 09:37:11 -05:00
Jenkins
551fad9a31 Merge "Ensure datetimes can be properly serialized." 2013-01-02 14:31:18 +00:00
Jenkins
f35cd43612 Merge "Periodic update of DNS entries." 2013-01-02 14:30:56 +00:00
Jenkins
4c5e2ef5e8 Merge "Fix bug and remove update lock in db.instance_test_and_set()" 2013-01-02 14:29:49 +00:00
Jenkins
5f9641c979 Merge "Add API sample tests to FixedIPs extension" 2013-01-02 14:29:25 +00:00
Jenkins
3a642467c8 Merge "Ignore double messages to associate the same ip" 2013-01-02 14:29:03 +00:00
Janis Gengeris
2b619e2716 Adds os-volume_attachments 'volume_id' validation
If you POST to os-volume_attachments but give the name of the volume
instead of a UUID, it returns a 404 error; this is invalid HTTP.
404 means that the Request-URI has not been found. In fact, the
Request-URI has been found, but a child attribute has been incorrectly
specified. Some other error could be used.

This fixes the problem by returning 'BadRequest' in place of 'NotFound'.
The 'volumeId' is checked to be a valid UUID string before moving
further.

Fixes bug #1062494

Change-Id: Icc5dbc7ac94051514709997457cafb16e870bea9
2013-01-02 09:06:19 +02:00
Jenkins
fc3a938804 Merge "CRUD on flavor extra spec extension should be admin-only" 2013-01-02 05:04:11 +00:00
Janis Gengeris
86008a67aa Raise BadRequest when updating 'personality'
Updating booted server instance through server PUT API call with
'personality' property set is not returning 'Bad Request', although the
property is not allowed to be updated once the instance is booted.

This fixes the described problem.

Fixes bug #1032546

Change-Id: Ia086f5ea5176640a9916a3ba42c79d4d5944ce76
2013-01-01 17:14:18 +02:00
OpenStack Jenkins
97d49f951c Imported Translations from Transifex
Change-Id: I1195c7e9345095da6f49e9cabf014a45cee31c65
2013-01-01 00:02:11 +00:00
OpenStack Jenkins
b8b8f20324 Imported Translations from Transifex
Change-Id: I20319c16446e8ea1553202cbe54967e2505d2f41
2012-12-31 00:02:02 +00:00
Jay Pipes
aee1253ce2 CRUD on flavor extra spec extension should be admin-only
Changes the default policy.json file to make the flavor extra
spec create/update/delete operations admin-only, since the
flavormanage extension is admin-only.

fixes: lp bug #1094142

Change-Id: Ic464b17130e76565a7c475e59064e3e3e8861327
2012-12-30 10:33:51 -05:00
Michael Still
2397c6b902 Report failures to mount in localfs correctly.
The wrong exception type was being thrown, which meant that the virt
disk api though the disk could be resized when it couldn't. I've
added two unit tests to cover regressions as well, but this code needs
more unit testing in general. Resolves bug 1094373.

Change-Id: I9c974e138ff90e8b7a5a40f5b31dcdb25a59622d
2012-12-30 09:06:42 +11:00
ivan-zhu
abba5574ca Add API sample tests to FixedIPs extension
Partially implements blueprint nova-api-samples
Bug 1091739

Change-Id: Ie10fd85199ec10de29e99338c748f34cc04aeeb6
2012-12-29 16:39:53 +08:00
Jenkins
4f4ef9f556 Merge "Fix stack trace on incorrect nova-manage args." 2012-12-29 00:39:53 +00:00
Jenkins
ad1165788a Merge "Make sure the loadables path is the absolute path" 2012-12-28 23:28:36 +00:00
Devananda van der Veen
6bf64e8292 baremetal power driver takes **kwargs
Some baremetal power drivers may require different information passed to
them. This patch prepares the way by having the base class take only
**kwargs, and having the driver pass both 'instance' and 'node', instead
of just passing 'node'.

blueprint general-bare-metal-provisioning-framework

Change-Id: Iff91024b1d019b0d07f2cbfe991748e618bfcb18
2012-12-28 14:53:55 -08:00
Devananda van der Veen
f1bb1a213b Implement IPMI sub-driver for baremetal compute
This patch implements only the IPMI power manager for baremetal nova
compute. Documentation will come in a separate patch.

blueprint general-bare-metal-provisioning-framework

Change-Id: I60ccfbf963d7bbf6f840e627396601b7bba80e7f
2012-12-28 14:53:55 -08:00
Devananda van der Veen
0279d846ab Fix tests/baremetal/test_driver.py
Unit tests for baremetal/driver.py were not functioning and were
falsely reporting success due to inheriting from the wrong class.
This lead to drift between the tests and the code over time.
I decided it was easier to re-implement tests/baremetal/test_driver.py
instead of trying to fix the drift. This gave me the chance to make
the test class easier to extend. Additional tests will be added
in the future, when I refactor driver.py:spawn().

This patch also has some minor variable name changes for baremetal/driver.py.

blueprint general-bare-metal-provisioning-framework.

Change-Id: I36ba5ed340b722b9a6e8d02d6d57d3c8d53b1eef
2012-12-28 14:53:55 -08:00
Devananda van der Veen
9ac65bde3a Move baremetal options to [BAREMETAL] OptGroup
Move all the baremetal options into a new [BAREMETAL] OptGroup,
except for 'baremetal_db_backend', which breaks LazyPluggable if moved.

blueprint general-bare-metal-provisioning-framework

Change-Id: I06f53dcf10b9bbd3fd7cc0725cc6076af3d74d19
2012-12-28 14:53:55 -08:00
Tiago Mello
f21a3abd61 Adds test for HTTPUnprocessableEntity when rebooting
Implements a test for 'HTTPUnprocessableEntity' error when rebooting
an instance.

Fixes Bug 1088672.

Change-Id: I7a658f4f09c871a43d20fd6fa60d4ad69784ce7d
2012-12-28 20:17:19 -02:00
Vishvananda Ishaya
e9e037920d Make sure the loadables path is the absolute path
the __path__ of a module can be a relative path in some install
scenarios (i.e. setup.py develop on osx), so normalize it to an
absolute path since we expect an absolute path in the tests.

Change-Id: Id40889229f5735a292899dfee2c8595fdbf0dfff
2012-12-28 11:42:17 -08:00
Boris Pavlovic
e313c7dda3 Fix bug and remove update lock in db.instance_test_and_set()
Remove session from arguments.

Instance update works through one query, so we don't need to use update lock.

Add tests for instance_test_and_set().

blueprint db-session-cleanup

Change-Id: I143877f427f5eba4a7c7aa985bb70c79a9513822
2012-12-28 22:39:02 +04:00