get_host_uptime missing for bare metal

Bug #1910504 reported by gtaga
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Triaged
Wishlist
Unassigned

Bug Description

I add baremetal but on hypervisor it doesn't show the resources.

Install with kolla.
Ubuntu: 18.04
Docker pkg: Source

I check the logs i can see from nova/nova-compute-ironic.log this:

ERROR oslo_messaging.rpc.server [req-74438713-f718-4c8f-a274-d792f17bea09 e9cec66166ea406eac19b3aa528f5669 ffab07a846cd4ca78845ff7c51b31f46 - default default] Exception during message handling: NotImplementedError
Traceback (most recent call last):
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/oslo_messaging/rpc/server.py", line 165, in _process_incoming
    res = self.dispatcher.dispatch(message)
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/oslo_messaging/rpc/dispatcher.py", line 276, in dispatch
    return self._do_dispatch(endpoint, method, ctxt, args)
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/oslo_messaging/rpc/dispatcher.py", line 196, in _do_dispatch
    result = func(ctxt, **new_args)
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/nova/exception_wrapper.py", line 79, in wrapped
    function_name, call_dict, binary, tb)
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "/usr/local/lib/python3.6/dist-packages/six.py", line 703, in reraise
    raise value
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/nova/exception_wrapper.py", line 69, in wrapped
    return f(self, context, *args, **kw)
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/nova/compute/manager.py", line 6245, in get_host_uptime
    return self.driver.get_host_uptime()
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/nova/virt/driver.py", line 1460, in get_host_uptime
    raise NotImplementedError()
NotImplementedError

Tags: ironic
Revision history for this message
Balazs Gibizer (balazs-gibizer) wrote :

This is a known limitation of the ironic virt driver. So this is not a bug but a missing feature. If you would like to work on implementing this then please open a blueprint for it and bring that bp up for approval in the next nova weekly IRC meeting[1]. For more about the process see [2].

[1] https://wiki.openstack.org/wiki/Meetings/Nova
[2] https://docs.openstack.org/nova/latest/contributor/process.html

Changed in nova:
status: New → Triaged
importance: Undecided → Wishlist
tags: added: ironic
Revision history for this message
gtaga (eoreoe) wrote :

ok sorry. This one is effect the baremetal implementation for the hypervisor? That's why it show zero resources or is different thing. Sorry for the trouble :( and thanks

Revision history for this message
Muhammad Usman (m-usmanayub) wrote :

I am also seeing zero resources and not able to deploy the environment, is it related to this or should I look for some other thing?

@gtaga were you able to resolve the issue?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.