Commit Graph

30712 Commits

Author SHA1 Message Date
jichenjc e516de74c1 Remove project id in ViewBuilder alternate link
Clearly nobody really uses the "application/vnd.openstack.image"
links in the returned results from GET /v2/{tenant}/images
REST API call, since the link URI returned in it is wrong.

Glance URIs do *not* contain a project or tenant in the URI
structure like Nova's REST API URIs do, but _get_alternate_link()
method of the image ViewBuilder tacks it on improperly:

Change-Id: I4ccb5628569c60026a1772df0794ac0271c48db3
Closes-Bug: #1343080
2014-10-22 14:23:18 +08:00
Jenkins e8bf6c126f Merge "Create Nova Scheduler IO Ops Weighter" 2014-10-20 08:39:07 +00:00
Jenkins edcaee462c Merge "Remove obsolete vmware/esx tools" 2014-10-20 03:16:10 +00:00
Jenkins 2e8094a34f Merge "libvirt: convert mox to mock in test_utils" 2014-10-19 21:12:31 +00:00
Jenkins c2f6f0622a Merge "Make v2.1 API tests use v2 URLs(test_[r-v].*)" 2014-10-18 02:25:18 +00:00
Jenkins 4197521c46 Merge "Make v2.1 API tests use v2 URLs(test_[f-m].*)" 2014-10-18 02:21:51 +00:00
Jenkins e6a0f3bed5 Merge "Replace outdated oslo-incubator middleware" 2014-10-18 01:01:43 +00:00
Jenkins f9a0735c81 Merge "Return HTTP 400 if use an in-use fixed ip to attach interface" 2014-10-18 01:01:17 +00:00
Jenkins 071e0e2674 Merge "the value of retries is error in _allocate_network" 2014-10-17 22:34:07 +00:00
Dan Smith 8cf9dfe3fd Allow strategic loading of InstanceExtra columns
This makes it possible to pull out just one of the several Text
columns with JSON blobs in instance_extra. Before this, we always
pull all the columns even though we only ever want one at a time.
This involves marking the big columns in InstanceExtra as deferred(),
and specifying which ones we want each time. This is hidden in the
API for querying, but should be noted in any joins.

Related to blueprint flavor-from-sysmeta-to-blob

Change-Id: Ib05472445a2c736f7e2305622c91ba80b71fb6f5
2014-10-17 07:17:29 -07:00
kiwik-chenrui fb559a34f9 Create Nova Scheduler IO Ops Weighter
Add a new nova scheduler weighter, sort the filter
hosts according to host io ops number, aims to
booting instances on light workload hosts.

DocImpact: Adds io_ops_weight_multiplier to [DEFAULT]
group of nova.conf and an new default schedule weigher.
Change-Id: Ib3c9184f10b2ebe6b1230365a51b5542dffd447c
Implements: blueprint io-ops-weight
2014-10-17 06:23:41 +00:00
Jenkins ad84585d75 Merge "Fix instance_extra backref" 2014-10-17 03:51:17 +00:00
Jenkins fc671196ed Merge "Refactor compute tests to not use _objectify()" 2014-10-17 03:50:50 +00:00
Jenkins 0efeb75ba5 Merge "Refactor compute and conductor tests to use objects" 2014-10-17 03:33:43 +00:00
Jay Lau daf278c0c8 Add notification for server group operations
Currently, there is no notification when create/update/delete
server groups, this caused some 3rd party client cannot know
when those operations are finished.

The fix was adding notifications for those operations.

DocImpact
The wiki page https://wiki.openstack.org/wiki/SystemUsageData
needs to be updated once this patch was merged.

Change-Id: Ia1f4a6752668ddb73ebb8faf525b58a28d183754
Closes-Bug: #1343200
2014-10-16 15:09:08 -04:00
Jenkins 915918aea6 Merge "Fix genconfig - missed one import from oslo cleanup" 2014-10-16 13:32:11 +00:00
Jenkins 04272f8b87 Merge "Handle Forbidden error from network_api.show_port in os-interface:show" 2014-10-16 05:56:37 +00:00
Jenkins 7c4ebd2516 Merge "Port os-networks-associate plugin to v2.1(v3) infrastructure" 2014-10-16 05:56:02 +00:00
Jenkins c33374df8c Merge "Port os-tenant-networks plugin to v2.1(v3) infrastructure" 2014-10-16 05:55:44 +00:00
Jenkins 2b238e822c Merge "Optimize get_instance_nw_info and remove ipam" 2014-10-16 05:53:43 +00:00
Chris Yeoh 0c1ad907c4 Port os-networks-associate plugin to v2.1(v3) infrastructure
Ports os-networks-associate extension and adapts it to the
v2.1/v3 API framework. API behaviour is identical.

- unittest code modified to share testing with both v2/v2.1
- Adds expected error decorators for API methods

Partially implements blueprint v2-on-v3-api

Change-Id: I6ccf9613abf999784c548fb058522ac60db7f052
2014-10-16 11:22:28 +10:30
Chris Yeoh cc452485c2 Port os-tenant-networks plugin to v2.1(v3) infrastructure
Ports os-tenant-networks extension and adapts it to the v2.1/v3 API
framework. API behaviour is identical.

- unittest code modified to share testing with both v2/v2.1
- Adds expected error decorators for API methods

Partially implements blueprint v2-on-v3-api

Change-Id: I340c9b1312a3477c63d28f19df9611c95e67cde6
2014-10-16 11:08:40 +10:30
Dan Smith 208054a7ef Fix instance_extra backref
This fixes cruft from the original NUMA patches that placed a backref on
the Instance model for numa_topology. This changes it to the generic
'instance_extra'. Since this was not actually used, nothing breaks; the
extra backref will be used in subsequent patches.

Related to blueprint flavor-from-sysmeta-to-blob

Change-Id: Ifa69e4704ea3f60b4aced3504bf9c599e3868616
2014-10-15 12:33:36 -07:00
Dan Smith 39da5313aa Refactor compute tests to not use _objectify()
During the objects conversion of nova-compute, we ended up with a lot of
places in the tests where we would take a dict or sqlalchemy object
and "objectify" it to pass it to a method that had been converted to
expect an obejct. That work is done now, but we have a LOT of cruft in
that code that needs to be cleaned up. This patch does that, and removes
the _objectify() helper.

Change-Id: Iee3e9ea619417178618f8f6c192097444899dd26
2014-10-15 12:33:36 -07:00
Dan Smith fd8b29c835 Refactor compute and conductor tests to use objects
There are still a lot of tests that pass primitives to compute
and conductor methods that have expected objects for a long time
now. These also tend to do silly things like doing to_primitive()
on the db models, just to get the uuid out. Since this all makes
the following work harder, this patch converts them (all?) to use
objects.

Change-Id: I10a66fc02df92e91700544c0cb12517908f09710
2014-10-15 12:33:33 -07:00
Davanum Srinivas 66b5e4487a Fix genconfig - missed one import from oslo cleanup
The oslo cleanup Ib020cd4c3464f1c994a6d77f4b894f41b99e6d02 removed
importutils, we forgot to fix the generator.py

Change-Id: Ib353f7e0fee5f7ed06f4b45f98fb1a1bf6abfc9e
2014-10-15 14:57:46 -04:00
Matt Riedemann 8299e80ad4 Handle Forbidden error from network_api.show_port in os-interface:show
We can get a 403 back from the neutronv2 API when calling
network_api.show_port so handle that in the compute API extension.

This also updates the v3 API code to match the v2 API code to put the
original error message for the 404 into the HTTPNotFound error.

Closes-Bug: #1378389

Change-Id: I7afc832f26481dc44f1c500b6121e2060f36c63a
2014-10-15 11:03:22 -07:00
Jenkins fe7065fa54 Merge "Fix unit test failure due to tests sharing mocks" 2014-10-15 17:33:41 +00:00
Jenkins 74ed140d77 Merge "libvirt: Make sure volumes are well detected during block migration" 2014-10-15 15:06:20 +00:00
Abhishek Chanda 641de5666f Replace outdated oslo-incubator middleware
It has graduated to oslo-middleware

DocImpact

Change-Id: I6dbf77ee56b8008ed286e1b7c367a8a94f005498
2014-10-15 17:48:40 +03:00
Jenkins e227679cb7 Merge "Remove unused modules copied from oslo-incubator" 2014-10-15 14:05:27 +00:00
Jenkins 7ccb7e39e5 Merge "Fix image metadata returned for volumes" 2014-10-15 13:15:31 +00:00
Jenkins 70005b3827 Merge "VMware: get_all_cluster_refs_by_name default to {}" 2014-10-15 13:15:11 +00:00
Jenkins e4191c33fd Merge "Remove unused code in pci_manager.get_instance_pci_devs()" 2014-10-15 12:55:48 +00:00
Hans Lindgren f91d4ebeac Fix unit test failure due to tests sharing mocks
A recent refactor made test_get_port_vnic_info 2 and 3 share code
in a private method _test_get_port_vnic_info(). A mock on this method
is shared between the tests and can cause the following failure:

AssertionError: Expected to be called once. Called 2 times.

This is changed so that the two test methods create separate mocks and
pass to the shared method.

Change-Id: I3902b7b7cf4b4b3fdc2885bf2611a712d008c617
Closes-Bug: #1381414
2014-10-15 11:18:23 +02:00
Jenkins c3b2ee33cc Merge "Add 'zvm' to the list of known hypervisor types" 2014-10-15 08:25:33 +00:00
Jenkins 45c2205ef1 Merge "Fix wrong exception return in fixed_ips v2 extention" 2014-10-15 04:11:58 +00:00
Davanum Srinivas d0e0ade702 Remove unused modules copied from oslo-incubator
No longer needed since we moved to oslo.utils and
oslo.serialization and updated to latest oslo-incubator.
As part of the cleanup removed the hack for gettextutils
since the oslo-incubator code no longer uses it

Change-Id: Ib020cd4c3464f1c994a6d77f4b894f41b99e6d02
2014-10-15 01:28:42 +00:00
Robert Li 613c8fc2f3 Remove unused code in pci_manager.get_instance_pci_devs()
Change-Id: Iec4aa59099a04b684358b44a06290584cc564507
Closes-Bug: 1361797
2014-10-14 15:25:05 -04:00
Jenkins b16f7e08c5 Merge "VMware: mark virtual machines as 'belonging' to OpenStack" 2014-10-14 18:13:22 +00:00
Jenkins 4d1b83350e Merge "Rename cli variable in ironic driver" 2014-10-14 18:10:07 +00:00
Jenkins 318ce513e0 Merge "Switch to nova's jsonutils in oslo.serialization" 2014-10-14 18:07:34 +00:00
Jenkins ba0a08c115 Merge "Remove unused imports from neutron api" 2014-10-14 14:04:28 +00:00
Davanum Srinivas 5e8ce0bbde Switch to nova's jsonutils in oslo.serialization
Very simple import change in each file, just touches a
whole lot of files. jsonutils has graduated into a stand alone
library and has been removed from the oslo-incubator repository.
We should be using the library for all projects.

Change-Id: I09d780a47d377871f357654603ee4b0fa0169d66
2014-10-14 11:35:05 +00:00
Jenkins 52fd9300c2 Merge "Don't translate unit test logs" 2014-10-14 10:55:57 +00:00
Jenkins c1eff525a9 Merge "Add supported_hv_specs to ComputeNode object" 2014-10-14 10:51:49 +00:00
Jenkins fc024b290f Merge "Sync with latest oslo-incubator" 2014-10-14 10:50:30 +00:00
Gary Kotton f4fec08e98 VMware: mark virtual machines as 'belonging' to OpenStack
This patch registers an extension in vCenter that indicates that the
VM's that are run from OpenStack will belong to OpenStack.

If an administrator tries to update the VM via vCenter then they will
get the following message:

"Solution OpenStack manages the selected virtual machine. You should
not modify the virtual machine directly. Use the management console of
the solution to make changes. Do you want to proceed?"

The extension will be called 'org.openstack.compute'. This will make use
of a type called 'instance'.

Closes-bug: #1366506

Change-Id: I1046576c448704841ae8e1800b8390e947b0d457
2014-10-14 02:46:22 -07:00
Jenkins 1ada993c32 Merge "Change test function from snapshot to backup" 2014-10-14 09:28:12 +00:00
Jenkins dfcd6a8951 Merge "Compute: use an instance object in terminate_instance" 2014-10-14 09:27:53 +00:00