+13
−3
Loading
This patch fixes the issue where configuration for controllers in 'failover' mode was not saved when save_config RPC command was issued. The issue here is that if additional controller is added by bdev_nvme_attach_controller RPC with the same controller name and different transport parameters, the intention is to not add a new controller, but rather specify addional transport for failover functionality. Internally only one controller exists but alternate transports to target are defined. Therefore during generation of config file only one bdev_nvme_attach_controller command was generated, due to only one controller existing. This hovever caused that alternate transports were not saved and could not be restored from saved configuration, because they didn't existed there. Now it is fixed, and for every active and alternate transports defined for controller, separate bdev_nvme_attach_controller commands are generated (with the same controller parameters but different transport description) so after loading config from JSON file, proper alternate trids are restored for failover mode. Change-Id: I7af826f3873e524b85aa578dcd81cd9e2cab6e06 Signed-off-by:Marcin Spiewak <marcin.spiewak@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24764 Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>