to call SPDK batch rpc nvmf_subsystem_set_ana_states_all #2059
Should you add something here?
This will return a success status. You need to set the status field to a non zero return code and set error_message to a string with the error
status should be set to an integer. In case of success you should set it to 0
Requested changes.
@gbregman,
the goal of the code is to set the new ana-state to the ANA group.
All namespaces, even degraded, get the new ana-state - this is a basic logics of our Active-Passive model.
We are tweaking the behavior of encrypted/degraded namespaces but it is independent logic and works well with this model.
The code is getting the cluster context by each ns-id and then waiting for the new osd-map epoch by this context.
There could be many namespaces in the cluster context. I have nothing left to do with degraded namespaces
@gbregman , thanks
thanks @gbregman
If you don't have anything to do please remove the "TODO" comment
Requested changes.
Approved these changes.
gbregman
leonidc
to call SPDK batch rpc nvmf_subsystem_set_ana_states_all
instead of calling spdk_nvmf_subsystem_set_ana_state
the order is changed in grpc.ry in processing of "set ana":
first wait for new osd epoch for all IO contexts and then call the new batch call for set ana-state for all subsystems/listeners
fixes :https://github.com/ceph/ceph-nvmeof/issues/2016