Bug 834514 (NPIV_SAN_PASSTHROUGH_TO_GUEST)

Summary: NPIV - SAN pass-through to the guest
Product: Red Hat Enterprise Linux 7 Reporter: Daniele <dconsoli>
Component: qemu-kvm-rhevAssignee: Ademar Reis <areis>
Status: CLOSED DUPLICATE QA Contact: FuXiangChun <xfu>
Severity: high Docs Contact:
Priority: urgent    
Version: 7.3CC: chayang, dmoessne, jsuchane, juzhang, knoel, mkalinin, mtessun, platform-rfe, rbalakri, rpacheco, sfroemer, sherold, ylavi
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-31 20:15:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 726797, 879895, 910170, 1059956    
Bug Blocks: 806907, 1320621, 1349115, 1349117    

Description Daniele 2012-06-22 07:54:31 UTC
1. Proposed title of this feature request
NPIV - SAN pass-through to the guest

2. Who is the customer behind the request?
Account name: IZB Informatik-Zentrum Munchen-Frankfurt a.M. GmbH & Co. KG
Customer segment:
TAM/SRM customer: yes, TAM customer
Strategic Customer yes/no: yes


3. What is the nature and description of the request?
The customer needs the possibility to NPIV pass through to the guest.

4. Why does the customer need this? (List the business requirements here)
"we need the implementation to pass-through SAN to our instances (guests) directly, so e.g.  we'll be able to do a live migration of our guests."

5. How would the customer like to achieve this? (List the functional
requirements here)


6. For each functional requirement listed in question 5, specify how Red Hat
and the customer can test to confirm the requirement is successfully
implemented.
Be able to pass the NPIV through to the guest (and therefore see the virtual HBA?)

7. Is there already an existing RFE upstream or in Red Hat bugzilla?
Apparently not one for this particular request.

8. Does the customer have any specific timeline dependencies?
There is no specific timeline, but the sooner the better.

9. Is the sales team involved in this request and do they have any additional input?


10. List any affected packages or components.
Libvirt? not sure

11. Would the customer be able to assist in testing this functionality if
implemented?
They would be able to help us testing

Comment 3 Dave Allan 2012-07-19 22:20:53 UTC
(In reply to comment #0)
> 3. What is the nature and description of the request?
> The customer needs the possibility to NPIV pass through to the guest.
> 
> 4. Why does the customer need this? (List the business requirements here)
> "we need the implementation to pass-through SAN to our instances (guests)
> directly, so e.g.  we'll be able to do a live migration of our guests."

It is currently possible to live migrate a guest with storage that is accessed through NPIV, although it is currently quite a manual process.  A brief overview of what's involved is at:

https://www.redhat.com/archives/libvirt-users/2011-July/msg00026.html

Would it be sufficient for the customer's needs to associate the vHBA with the guest so that the setup/teardown of the vHBA happened automatically?

> 6. For each functional requirement listed in question 5, specify how Red Hat
> and the customer can test to confirm the requirement is successfully
> implemented.
> Be able to pass the NPIV through to the guest (and therefore see the virtual
> HBA?)

The vHBA cannot be attached to the guest as Linux userspace has no ability to access an HBA directly.  Note that the vHBAs created with NPIV are not PCI devices, and thus cannot be passed through to guests.  This design is in the linux kernel and cannot be worked around by any userspace component.

In short, I think the implementation that the customer has requested is not likely to be feasible, but I hope that we can provide an alternative implementation which fulfils their needs.

Comment 7 Martin Tessun 2016-03-15 14:07:52 UTC
Just to clarify this:

It is not sufficient to pass Devices presented via N_Port Virtualisation to the guest, but to passthorugh the complete vHBA to be able to independently run the VM (adding new FC-Devices, etc.).

This is how, e.g. IBM LPARs are working. VMWare and afaik also HyperV are also able to passthrough a virtualised adapter.

As far as I digged into the issue, we would need qemu support and libvirt support for that, as it is currently only possible to passthrough targets from the NPIV Adapter.
This scenario btw. can be easily solved by direct lun attachment as well, so this is not the key-usecase for NP(I)V.

Comment 9 Martin Tessun 2016-08-08 07:06:57 UTC
There are also some requests for this in the Solution as well.
I attached the Solution to this BZ, so one can read the Comments there as well.

Comment 13 Ademar Reis 2016-08-31 20:15:02 UTC

*** This bug has been marked as a duplicate of bug 1349115 ***

Comment 15 Red Hat Bugzilla 2023-09-14 23:56:57 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days