Can not attach SR-IOV port to a VM instance

Bug #1790885 reported by Alexander Rubtsov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Invalid
High
Alexander Rubtsov

Bug Description

--- Environment ---
Release: MOS 9.2

--- Steps to reproduce ---
1) Create a test VM instance
# nova list
+--------------------------------------+------------+--------+------------+-------------+---------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------------+--------+------------+-------------+---------------------+
| d76d9e19-d460-4872-ad79-92d68c6387e8 | test-sriov | ACTIVE | - | Running | SRIOVNet1=10.0.10.4 |
+--------------------------------------+------------+--------+------------+-------------+---------------------+

2) Create a new SR-IOV port:
# neutron port-create SRIOVNet2 --name SRIOVPort2 --binding:vnic-type direct
Created a new port:
+-----------------------+----------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+----------------------------------------------------------------------------------+
.....
| id | 5b24dd2c-39a8-4399-98d4-33ce1eb6202c .....
+-----------------------+----------------------------------------------------------------------------------+

3) Attach the created port to the VM instance:
# nova interface-attach --port-id 5b24dd2c-39a8-4399-98d4-33ce1eb6202c test-sriov

--- Actual result ---
ERROR (ClientException): Failed to attach network adapter device to d76d9e19-d460-4872-ad79-92d68c6387e8 (HTTP 500) (Request-ID: req-f2040baf-177b-40a9-bb32-f4e2b9b1d20c)

compute-0-4.domain.tld nova-compute[6048]: 2018-09-04 14:13:42.734 6048 ERROR oslo_messaging.rpc.dispatcher [req-f2040baf-177b-40a9-bb32-f4e2b9b1d20c 817c4f7821ca4ca780389df9b5caecd4 b9df06b46a5d4ae88ba1e5f44d1f8c5b - - -] Exception during message handling: Failed to attach network adapter device to d76d9e19-d460-4872-ad79-92d68c6387e8
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 138, in _dispatch_and_reply
    incoming.message))
  File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 185, in _dispatch
    return self._do_dispatch(endpoint, method, ctxt, args)
  File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 127, in _do_dispatch
    result = func(ctxt, **new_args)
  File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped
    payload)
  File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 89, in wrapped
    return f(self, context, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 387, in decorated_function
    kwargs['instance'], e, sys.exc_info())
  File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 375, in decorated_function
    return function(self, context, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 5144, in attach_interface
    instance_uuid=instance.uuid)
InterfaceAttachFailed: Failed to attach network adapter device to d76d9e19-d460-4872-ad79-92d68c6387e8

--- Expected result ---
The interface has been successfully attached

Revision history for this message
Alexander Rubtsov (arubtsov) wrote :

sla1 for 9.0-updates

Changed in mos:
importance: Undecided → High
milestone: none → 9.x-updates
tags: added: customer-found sla1
Changed in mos:
assignee: nobody → MOS Maintenance (mos-maintenance)
Revision history for this message
Denis Meltsaykin (dmeltsaykin) wrote :

Alexander, do you have the diagnostic snapshot from the environment.

Revision history for this message
Alexander Rubtsov (arubtsov) wrote :

Denis,
Please review whether the information that I have provided to you privately is enough or not.

Revision history for this message
Denis Meltsaykin (dmeltsaykin) wrote :

Alexander, we have a standard "diagnostic snapshot" method. Please provide the diagnostic snapshot.

Changed in mos:
assignee: MOS Maintenance (mos-maintenance) → Alexander Rubtsov (arubtsov)
status: New → Incomplete
Revision history for this message
Alexander Rubtsov (arubtsov) wrote :

The diagnostic snapshot has been provided

Changed in mos:
status: Incomplete → New
Changed in mos:
assignee: Alexander Rubtsov (arubtsov) → MOS Maintenance (mos-maintenance)
Changed in mos:
milestone: 9.x-updates → 9.2-mu-8
Revision history for this message
Denis Meltsaykin (dmeltsaykin) wrote :

Alexander, the errors in logs look pretty generic without any real details. Did you follow https://docs.openstack.org/mitaka/networking-guide/config-sriov.html when installed SR-IOV support for Mitaka?

Revision history for this message
Denis Meltsaykin (dmeltsaykin) wrote :

Alexander, attaching SR-IOV ports to a running VM is not supported in OpenStack. You can find more details in https://blueprints.launchpad.net/nova/+spec/sriov-interface-attach-detach. Closing as Invalid.

Changed in mos:
assignee: MOS Maintenance (mos-maintenance) → Alexander Rubtsov (arubtsov)
status: New → Invalid
milestone: 9.2-mu-8 → 9.x-updates
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.