Public bug reported:
os-hypervisors api just cann't list the host's uuid.
we could find uuid field in nova.compute.
created_at: 2017-05-17 05:50:51
updated_at: 2017-05-27 07:45:30
deleted_at: NULL
id: 2
service_id: NULL
vcpus: 2
memory_mb: 3791
local_gb: 98
vcpus_used: 0
memory_mb_used: 512
local_gb_used: 0
hypervisor_type: QEMU
hypervisor_version: 2003000
cpu_info: {"vendor": "Intel", "model": "Westmere", "arch":
"x86_64", "features": ["pge", "avx", "clflush", "sep", "syscall", "vme", "msr",
"fsgsbase", "xsave", "vmx", "erms", "cmov", "smep", "pcid", "pat", "lm", "tsc",
"nx", "fxsr", "sse4.1", "pae", "sse4.2", "pclmuldq", "fma", "mmx", "osxsave",
"cx8", "mce", "de", "rdtscp", "ht", "pse", "lahf_lm", "popcnt", "mca",
"pdpe1gb", "apic", "sse", "f16c", "ds", "invtsc", "pni", "aes", "sse2", "ss",
"hypervisor", "ssse3", "fpu", "cx16", "pse36", "mtrr", "movbe", "rdrand",
"x2apic"], "topology": {"cores": 2, "cells": 1, "threads": 1, "sockets": 1}}
disk_available_least: 82
free_ram_mb: 3279
free_disk_gb: 98
current_workload: 0
running_vms: 0
hypervisor_hostname: compute
deleted: 0
host_ip: 192.168.2.101
supported_instances: [["i686", "qemu", "hvm"], ["i686", "kvm", "hvm"],
["x86_64", "qemu", "hvm"], ["x86_64", "kvm", "hvm"]]
pci_stats: {"nova_object.version": "1.1", "nova_object.changes":
["objects"], "nova_object.name": "PciDevicePoolList", "nova_object.data":
{"objects": []}, "nova_object.namespace": "nova"}
metrics: []
extra_resources: NULL
stats: {}
numa_topology: {"nova_object.version": "1.2", "nova_object.changes":
["cells"], "nova_object.name": "NUMATopology", "nova_object.data": {"cells":
[{"nova_object.version": "1.2", "nova_object.changes": ["cpu_usage",
"memory_usage", "cpuset", "mempages", "pinned_cpus", "memory", "siblings",
"id"], "nova_object.name": "NUMACell", "nova_object.data": {"cpu_usage": 0,
"memory_usage": 0, "cpuset": [0, 1], "pinned_cpus": [], "siblings": [],
"memory": 4095, "mempages": [{"nova_object.version": "1.1",
"nova_object.changes": ["total", "used", "reserved", "size_kb"],
"nova_object.name": "NUMAPagesTopology", "nova_object.data": {"used": 0,
"total": 1048462, "reserved": 0, "size_kb": 4}, "nova_object.namespace":
"nova"}, {"nova_object.version": "1.1", "nova_object.changes": ["total",
"used", "reserved", "size_kb"], "nova_object.name": "NUMAPagesTopology",
"nova_object.data": {"used": 0, "total": 0, "reserved": 0, "size_kb": 2048},
"nova_object.namespace": "nova"}, {"nova_object.version":
"1.1", "nova_object.changes": ["total", "used", "reserved", "size_kb"],
"nova_object.name": "NUMAPagesTopology", "nova_object.data": {"used": 0,
"total": 0, "reserved": 0, "size_kb": 1048576}, "nova_object.namespace":
"nova"}], "id": 0}, "nova_object.namespace": "nova"}]},
"nova_object.namespace": "nova"}
host: compute
ram_allocation_ratio: 0
cpu_allocation_ratio: 0
uuid: cbf2b233-3645-45e3-a7f5-588857035531
disk_allocation_ratio: 0
but the List Hypervisors Details api in
https://developer.openstack.org/api-ref/compute/ couldn't list the uuid.if
detail and not servers:
Here is the code of nova/api/openstack/compute/hypervisors.py
60 for field in ('vcpus', 'memory_mb', 'local_gb', 'vcpus_used',
61 'memory_mb_used', 'local_gb_used',
62 'hypervisor_type', 'hypervisor_version',
63 'free_ram_mb', 'free_disk_gb', 'current_workload',
64 'running_vms', 'disk_available_least', 'host_ip'):
65 hyp_dict[field] = getattr(hypervisor, field)
** Affects: nova
Importance: Undecided
Status: New
** Tags: nova
** Attachment added: "nova1.PNG"
https://bugs.launchpad.net/bugs/1696043/+attachment/4889765/+files/nova1.PNG
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1696043
Title:
os-hypervisors api can not list the uuid of the specified VMM
Status in OpenStack Compute (nova):
New
Bug description:
os-hypervisors api just cann't list the host's uuid.
we could find uuid field in nova.compute.
created_at: 2017-05-17 05:50:51
updated_at: 2017-05-27 07:45:30
deleted_at: NULL
id: 2
service_id: NULL
vcpus: 2
memory_mb: 3791
local_gb: 98
vcpus_used: 0
memory_mb_used: 512
local_gb_used: 0
hypervisor_type: QEMU
hypervisor_version: 2003000
cpu_info: {"vendor": "Intel", "model": "Westmere", "arch":
"x86_64", "features": ["pge", "avx", "clflush", "sep", "syscall", "vme", "msr",
"fsgsbase", "xsave", "vmx", "erms", "cmov", "smep", "pcid", "pat", "lm", "tsc",
"nx", "fxsr", "sse4.1", "pae", "sse4.2", "pclmuldq", "fma", "mmx", "osxsave",
"cx8", "mce", "de", "rdtscp", "ht", "pse", "lahf_lm", "popcnt", "mca",
"pdpe1gb", "apic", "sse", "f16c", "ds", "invtsc", "pni", "aes", "sse2", "ss",
"hypervisor", "ssse3", "fpu", "cx16", "pse36", "mtrr", "movbe", "rdrand",
"x2apic"], "topology": {"cores": 2, "cells": 1, "threads": 1, "sockets": 1}}
disk_available_least: 82
free_ram_mb: 3279
free_disk_gb: 98
current_workload: 0
running_vms: 0
hypervisor_hostname: compute
deleted: 0
host_ip: 192.168.2.101
supported_instances: [["i686", "qemu", "hvm"], ["i686", "kvm", "hvm"],
["x86_64", "qemu", "hvm"], ["x86_64", "kvm", "hvm"]]
pci_stats: {"nova_object.version": "1.1", "nova_object.changes":
["objects"], "nova_object.name": "PciDevicePoolList", "nova_object.data":
{"objects": []}, "nova_object.namespace": "nova"}
metrics: []
extra_resources: NULL
stats: {}
numa_topology: {"nova_object.version": "1.2", "nova_object.changes":
["cells"], "nova_object.name": "NUMATopology", "nova_object.data": {"cells":
[{"nova_object.version": "1.2", "nova_object.changes": ["cpu_usage",
"memory_usage", "cpuset", "mempages", "pinned_cpus", "memory", "siblings",
"id"], "nova_object.name": "NUMACell", "nova_object.data": {"cpu_usage": 0,
"memory_usage": 0, "cpuset": [0, 1], "pinned_cpus": [], "siblings": [],
"memory": 4095, "mempages": [{"nova_object.version": "1.1",
"nova_object.changes": ["total", "used", "reserved", "size_kb"],
"nova_object.name": "NUMAPagesTopology", "nova_object.data": {"used": 0,
"total": 1048462, "reserved": 0, "size_kb": 4}, "nova_object.namespace":
"nova"}, {"nova_object.version": "1.1", "nova_object.changes": ["total",
"used", "reserved", "size_kb"], "nova_object.name": "NUMAPagesTopology",
"nova_object.data": {"used": 0, "total": 0, "reserved": 0, "size_kb": 2048},
"nova_object.namespace": "nova"}, {"nova_object.version"
: "1.1", "nova_object.changes": ["total", "used", "reserved", "size_kb"],
"nova_object.name": "NUMAPagesTopology", "nova_object.data": {"used": 0,
"total": 0, "reserved": 0, "size_kb": 1048576}, "nova_object.namespace":
"nova"}], "id": 0}, "nova_object.namespace": "nova"}]},
"nova_object.namespace": "nova"}
host: compute
ram_allocation_ratio: 0
cpu_allocation_ratio: 0
uuid: cbf2b233-3645-45e3-a7f5-588857035531
disk_allocation_ratio: 0
but the List Hypervisors Details api in
https://developer.openstack.org/api-ref/compute/ couldn't list the uuid.if
detail and not servers:
Here is the code of nova/api/openstack/compute/hypervisors.py
60 for field in ('vcpus', 'memory_mb', 'local_gb', 'vcpus_used',
61 'memory_mb_used', 'local_gb_used',
62 'hypervisor_type', 'hypervisor_version',
63 'free_ram_mb', 'free_disk_gb',
'current_workload',
64 'running_vms', 'disk_available_least',
'host_ip'):
65 hyp_dict[field] = getattr(hypervisor, field)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1696043/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp