<div dir="ltr">I have written a client code as follows. <br><br><font face="monospace"># Get Hypervisor details<br>try:<br>    print(f"+----------------------------------------------------------+")<br>    print(f"| Hypervisor details                                       |")<br>    print(f"+----------------------------------------------------------+")<br>    for hypervisor in conn.list_hypervisors():<br>        print(f"Hypervisor is: {hypervisor}")<br>        print(f"Hypervisor status:      {hypervisor.status}")<br>        print(f"Hypervisor vcpus:       {hypervisor.vcpus_used}")<br>        print(f"Hypervisor type:        {hypervisor.hypervisor_type}")<br>        print(f"Hypervisor id:          {<a href="http://hypervisor.id">hypervisor.id</a>}")<br>        print(f"Hypervisor state:       {hypervisor.state}")<br>        print(f"Hypervisor host IP:     {hypervisor.host_ip}")<br>        print(f"Hypervisor running VMs: {hypervisor.running_vms}")<br>        print(f"Hypervisor running VMs: {hypervisor.vcpus}")<br>        print(f"Hypervisor hostname:    {hypervisor.hypervisor_hostname}")<br><br>        print(f"")<br>except EndpointNotFound as exp:<br>    print("Error: {}".format(exp))<br>    print(f"")</font><br><br>When I print the 'hypervisor' object itself, most of the values are printed as shown below, however when I try to access 'hypervisor.hypervisor_hostname', it throws an exception.<br><br><font face="monospace">+----------------------------------------------------------+<br>| Hypervisor details                                       |<br>+----------------------------------------------------------+<br>Hypervisor is: openstack.compute.v2.hypervisor.Hypervisor(status=enabled, service={'host': 'cl3-Compute3', 'disabled_reason': None, 'id': '34db399d-25b9-4004-98b9-2d8bbce7b228'}, vcpus_used=0, hypervisor_type=QEMU, local_gb_used=0, vcpus=52, hypervisor_hostname=cl3-Compute3, memory_mb_used=25600, memory_mb=262032, current_workload=0, state=up, host_ip=192.168.10.116, cpu_info={'arch': 'x86_64', 'model': 'Broadwell', 'vendor': 'Intel', 'features': ['pge', 'avx', 'xsaveopt', 'clflush', 'sep', 'rtm', 'tsc_adjust', 'tsc-deadline', 'dtes64', 'invpcid', 'tsc', 'fsgsbase', 'xsave', 'smap', 'vmx', 'erms', 'xtpr', 'cmov', 'hle', 'smep', 'pcid', 'est', 'pat', 'monitor', 'smx', 'pbe', 'lm', 'msr', 'adx', '3dnowprefetch', 'nx', 'fxsr', 'syscall', 'tm', 'sse4.1', 'pae', 'sse4.2', 'pclmuldq', 'acpi', 'fma', 'vme', 'popcnt', 'mmx', 'osxsave', 'cx8', 'mce', 'de', 'rdtscp', 'ht', 'dca', 'lahf_lm', 'abm', 'rdseed', 'pdcm', 'mca', 'pdpe1gb', 'apic', 'sse', 'f16c', 'pse', 'ds', 'invtsc', 'pni', 'tm2', 'avx2', 'aes', 'sse2', 'ss', 'ds_cpl', 'arat', 'bmi1', 'bmi2', 'ssse3', 'fpu', 'cx16', 'pse36', 'mtrr', 'movbe', 'rdrand', 'x2apic'], 'topology': {'cores': 14, 'cells': 2, 'threads': 2, 'sockets': 1}}, running_vms=0, free_disk_gb=852, hypervisor_version=2012000, disk_available_least=849, local_gb=852, free_ram_mb=236432, id=1130407d-5afd-41f9-bc0c-2d7babda3ce7, location=Munch({'cloud': 'defaults', 'region_name': 'RegionOne', 'zone': None, 'project': Munch({'id': '6d4f1b107bbf4b94832f7ef72df61ef2', 'name': '5g', 'domain_id': None, 'domain_name': 'default'})}))<br>Hypervisor status: enabled<br>Hypervisor vcpus: 0<br>Hypervisor type:     QEMU<br>Hypervisor id: 1130407d-5afd-41f9-bc0c-2d7babda3ce7<br>Hypervisor state: up<br>Hypervisor host IP: 192.168.10.116<br>Hypervisor running VMs: 0<br>Hypervisor running VMs: 52<br>Traceback (most recent call last):<br>  File "/Users/workspace/testprogs/python/opsviz/ops_worker.py", line 321, in <module><br>    main()<br>  File "/Users/workspace/testprogs/python/opsviz/ops_worker.py", line 317, in main<br>    print_servers()<br>  File "/Users/workspace/testprogs/python/opsviz/ops_worker.py", line 115, in print_servers<br>    print(f"Hypervisor hostname: {hypervisor.hypervisor_hostname}")<br>  File "/Users/inventory/lib/python3.7/site-packages/openstack/resource.py", line 588, in __getattribute__<br>    raise e<br>  File "/Users/inventory/lib/python3.7/site-packages/openstack/resource.py", line 582, in __getattribute__<br>    return object.__getattribute__(self, name)<br>AttributeError: 'Hypervisor' object has no attribute 'hypervisor_hostname'</font><div><font face="monospace"><br></font></div><div><font face="arial, sans-serif">Is there anything wrong with the use of the API? How do I get the hypervisor hostname in my application code? </font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Thank you. </font></div></div>