Remove 'hw:cpu_policy', 'hw:mem_page_size' extra specs from API samples

In a future change, the use of 'hw:cpu_policy' will require a host to
report PCPU inventory. Rather than modify the fake driver used in these
tests to report such inventory, just use a different extra spec,
'hw:numa_nodes'. This has the added bonus of being supported by both the
libvirt and Hyper-V virt drivers, unlike 'hw:cpu_policy' and
'hw:mem_page_size', which are only supported by the libvirt virt driver.

Change-Id: Id203dc07f08557b1b094ec72e1df3493ec9524b1
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
Stephen Finucane
2019-08-08 10:40:14 +01:00
parent 7abe83f646
commit b01676c418
20 changed files with 21 additions and 42 deletions
@@ -36,8 +36,7 @@
"disk": 1,
"ephemeral": 0,
"extra_specs": {
"hw:mem_page_size": "2048",
"hw:cpu_policy": "dedicated"
"hw:numa_nodes": "1"
},
"original_name": "m1.tiny.specs",
"ram": 512,
@@ -37,8 +37,7 @@
"disk": 1,
"ephemeral": 0,
"extra_specs": {
"hw:mem_page_size": "2048",
"hw:cpu_policy": "dedicated"
"hw:numa_nodes": "1"
},
"original_name": "m1.tiny.specs",
"ram": 512,
@@ -17,8 +17,7 @@
"disk": 1,
"ephemeral": 0,
"extra_specs": {
"hw:cpu_policy": "dedicated",
"hw:mem_page_size": "2048"
"hw:numa_nodes": "1"
},
"original_name": "m1.tiny.specs",
"ram": 512,
@@ -36,8 +36,7 @@
"disk": 1,
"ephemeral": 0,
"extra_specs": {
"hw:cpu_policy": "dedicated",
"hw:mem_page_size": "2048"
"hw:numa_nodes": "1"
},
"original_name": "m1.tiny.specs",
"ram": 512,
@@ -17,8 +17,7 @@
"disk": 1,
"ephemeral": 0,
"extra_specs": {
"hw:cpu_policy": "dedicated",
"hw:mem_page_size": "2048"
"hw:numa_nodes": "1"
},
"original_name": "m1.tiny.specs",
"ram": 512,
@@ -37,8 +37,7 @@
"disk": 1,
"ephemeral": 0,
"extra_specs": {
"hw:cpu_policy": "dedicated",
"hw:mem_page_size": "2048"
"hw:numa_nodes": "1"
},
"original_name": "m1.tiny.specs",
"ram": 512,
@@ -37,8 +37,7 @@
"disk": 1,
"ephemeral": 0,
"extra_specs": {
"hw:cpu_policy": "dedicated",
"hw:mem_page_size": "2048"
"hw:numa_nodes": "1"
},
"original_name": "m1.tiny.specs",
"ram": 512,