[Imp] Unable to launch SRIOV VM for Ubuntu 14.04 Mitaka Openstack version

asked 2017-08-14 18:16:22 -0500

Ruchir Nerurkar gravatar image

updated 2017-08-15 16:10:13 -0500

Hello All,

        I am unable to launch SRIOV VM for Ubuntu 14.04 Mitaka version. The instance not going into active status.

        PFB logs::-
        File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line 404, in build_instances context, request_spec, filter_properties) File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line 448, in _schedule_instances hosts = self.scheduler_client.select_destinations(context, spec_obj) File "/usr/lib/python2.7/dist-packages/nova/scheduler/utils.py", line 372, in wrapped return func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py", line 51, in select_destinations return self.queryclient.select_destinations(context, spec_obj) File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/__init__.py", line 37, in __run_method return getattr(self.instance, __name)(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/nova/scheduler/client/query.py", line 32, in select_destinations return self.scheduler_rpcapi.select_destinations(context, spec_obj) File "/usr/lib/python2.7/dist-packages/nova/scheduler/rpcapi.py", line 121, in select_destinations return cctxt.call(ctxt, 'select_destinations', **msg_args) File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/client.py", line 158, in call retry=self.retry) File "/usr/lib/python2.7/dist-packages/oslo_messaging/transport.py", line 90, in _send timeout=timeout, retry=retry) File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 470, in send retry=retry) File "/usr/lib/python2.7/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 461, in _send raise result

        PFB Nova conductor logs::-

    Traceback (most recent call last):

      File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/server.py", line 150, in inner
        return func(*args, **kwargs)

      File "/usr/lib/python2.7/dist-packages/nova/scheduler/manager.py", line 104, in select_destinations
        dests = self.driver.select_destinations(ctxt, spec_obj)

      File "/usr/lib/python2.7/dist-packages/nova/scheduler/filter_scheduler.py", line 74, in select_destinations
        raise exception.NoValidHost(reason=reason)

    NoValidHost: No valid host was found. There are not enough hosts available.

    2017-08-14 11:22:22.334 14003 WARNING nova.scheduler.utils [req-9dbffa21-65c8-4ac9-bae0-33cddeaf684c ae32e9f5c81e4aafbd36de24d45c32af 022842dd96644bb3ba3040e9663443fd - - -] [instance: d141254d-083d-4388-bd87-1b74fc709df5] Setting instance to ERROR state.
    2017-08-14 11:22:22.439 14003 ERROR nova.conductor.manager [req-9dbffa21-65c8-4ac9-bae0-33cddeaf684c ae32e9f5c81e4aafbd36de24d45c32af 022842dd96644bb3ba3040e9663443fd - - -] [instance: d141254d-083d-4388-bd87-1b74fc709df5] Failed to deallocate networks
    2017-08-14 11:22:22.439 14003 ERROR nova.conductor.manager [instance: d141254d-083d-4388-bd87-1b74fc709df5] Traceback (most recent call last):
    2017-08-14 11:22:22.439 14003 ERROR nova.conductor.manager [instance: d141254d-083d-4388-bd87-1b74fc709df5]   File "/usr/lib/python2.7/dist-packages/nova/conductor/manager.py", line 273, in _cleanup_allocated_networks
    2017-08-14 11:22:22.439 14003 ERROR nova.conductor.manager [instance: d141254d-083d-4388-bd87-1b74fc709df5]     context, instance, requested_networks=requested_networks)
    2017-08-14 11:22:22.439 14003 ERROR nova.conductor.manager [instance: d141254d-083d-4388-bd87-1b74fc709df5]   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 838, in deallocate_for_instance
    2017-08-14 11:22:22.439 14003 ERROR nova.conductor.manager [instance: d141254d-083d-4388-bd87-1b74fc709df5]     self._unbind_ports(context, ports_to_skip, neutron)
    2017-08-14 11:22:22.439 14003 ERROR nova.conductor.manager [instance: d141254d-083d-4388-bd87-1b74fc709df5]   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 326, in _unbind_ports
    2017-08-14 11:22:22.439 14003 ERROR nova.conductor.manager [instance: d141254d-083d-4388-bd87-1b74fc709df5]     get_client(context, admin=True))
    2017-08-14 11:22:22.439 14003 ERROR nova ...
(more)
edit retag flag offensive close merge delete

Comments

Did you follow the instructions in the link https://docs.openstack.org/mitaka/net...

teju gravatar imageteju ( 2017-08-15 20:51:55 -0500 )edit

Try changing vif_plugging lines to this:

vif_plugging_is_fatal=false
vif_plugging_timeout=30

in your /etc/nova/nova.conf on your compute host. This was a problem I faced as well on ocata and was missing in the instructions.

Diavel gravatar imageDiavel ( 2017-08-17 01:40:50 -0500 )edit

Did it help, or are you still getting the same error?

Diavel gravatar imageDiavel ( 2017-08-31 02:16:14 -0500 )edit