Skip to content

RFC Support discovery log change events

James Smart linux-nvme 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 of 6 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 6 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH nvme-cli rfc 0/6] Support discovery log change events
Quoted 35 lines · Sagi Grimberg
Quoted 9 lines
Quoted 8 lines

Reviving this (again).

Hannes, did you have a chance to look at this? Unless there are other alternatives I suggest we go with this approach.

We should be able to support discovery log change events automatically at some point...

Quoted 9 lines

Yes, I did.
And had several discussions with the involved parties (Hello, James :-). Consensus was that for FC we don't really need discovery AENs, as the transport has knowledge about the fabric and the attached ports, and will generate events on any topology change already.
For RDMA and TCP, OTOH, we don't know the topology, and to be able to discovery we will know the fabric ports in advance.
So there automatic discovery is a real win, and arguably necessary if a connection needs to be re-established after a fabric outage.

Again, this is a different thing Hannes, please stop mixing stuff. I'm not arguing with you that we want automatically discover the fabric, but discovery change log events and root discovery are different things and only one of them is up for discussion here.

Quoted 7 lines

Implementation-wise I'm not thoroughly happy with the MDNS approach, as this requires quite a bit of additional infrastructure which needs to be present on both sides.
And my worry is that during failover scenarios we might not be able to run these services at all (seeing that the root-fs is blocked). But if that is acceptable (read: if booting from those NVMe devices is not required) then I guess we could go that way.

I'm going to ignore stuff about root discovery here (nothing personal, its just not the subject here), we can talk about it in a separate thread.

Quoted 5 lines

Now, I'm suggesting to support discovery change log events by allowing the user to setup a persistent discovery controller and have the kernel fire to userspace discovery change log events over that controller.

Any comments/feedback/alternatives on _this_?

I think it's fine, and we should be able to merge possibly what the AEN event looks like and the FC event.? The Events are pretty much the same between FC and the AEN -> go perform a connect-all against the indicated discovery controller.?? What is different is how do you identify the discovery controller, and if you are re-using an an existing controller, how would that connect-all occur if it doesn't create a new discovery controller instance.? For how to identify the discovery controller, it could be: a) by full discovery-log-based-address fields? (not all must be present; e.g. FC);? b) by /dev/nvme? name of the persistent discovery controller (e.g. the AEN); or c) a derivation of the /dev/nvme? name (aka (b)) by using (a) to see if a persistent controller exists at that location.
Am I getting a little off base ?

I agree - we don't need to address is how does one initially create the persistent discovery controller.

-- james