nova/nova/virt/xenapi
Chris Dent 27617ee193 Switch to using os-resource-classes
With the extraction of placement we ended up with resource class names
being duplicated between nova and placement. To address that, the
os-resource-classes library [1] was created to provide a single
authority for standard resource classes and the format of custom
classes.

This patch changes nova to use it, removing the use of the rc_fields
module which used to have the information. A method left in it
(normalize_name) has been moved to utils.py, renamed as
normalize_rc_name, and callers and tests updated accordingly.

Because the placement code is being kept in nova for the time being,
that code's use of rc_fields is maintained, and the module too.
A note is added in the module explain that. Backporting the changes
from extracted-placement to placement-in-nova was considered but
because we no longer have placement tests in nova, that didn't seem
like the right thing to do.

requirements and lower-constraints have been updated.
os-resource-classes is already in global requirements.

For reference the related placement change is at [2].

[1] https://docs.openstack.org/os-resource-classes
[2] https://review.openstack.org/#/c/623556/

Change-Id: I8e579920c0eaca81b563a87429c930b21b3d4dc5
2019-02-07 11:11:09 +00:00
..
image XenAPI: define a new image handler to use vdi streaming 2018-06-13 01:59:07 +00:00
__init__.py Remove vi modelines 2014-02-03 14:19:44 +00:00
agent.py Remove utils.execute() calls from xenapi. 2018-12-04 16:04:30 +11:00
driver.py Switch to using os-resource-classes 2019-02-07 11:11:09 +00:00
fake.py Use six.string_types to improve python2/3 compatibility 2018-09-07 17:05:24 +08:00
firewall.py Fix python3 issues with devstack 2016-12-21 22:20:00 -05:00
host.py XenAPI: create vGPU for instance 2017-12-18 08:09:20 -08:00
network_utils.py Fixes dict keys and items references for Python 3 2015-12-07 12:19:59 +02:00
pool.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
pool_states.py Remove vi modelines 2014-02-03 14:19:44 +00:00
vif.py Add missing ws seperator between words 2018-11-26 23:42:18 +00:00
vm_utils.py Remove utils.execute() calls from xenapi. 2018-12-04 16:04:30 +11:00
vmops.py Add missing ws seperator between words 2018-11-26 23:42:18 +00:00
volume_utils.py XenAPI/Stops the migration of volume backed VHDS 2018-03-15 04:19:11 -05:00
volumeops.py Remove translation of log messages 2017-06-13 11:20:28 +07:00