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
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
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
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
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
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
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
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
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
The oslo cleanup Ib020cd4c3464f1c994a6d77f4b894f41b99e6d02 removed
importutils, we forgot to fix the generator.py
Change-Id: Ib353f7e0fee5f7ed06f4b45f98fb1a1bf6abfc9e
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
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
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
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
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