]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: support setting iSCSI gateways from orchestrator 35068/head
authorKiefer Chang <kiefer.chang@suse.com>
Fri, 15 May 2020 09:22:15 +0000 (17:22 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Sun, 17 May 2020 01:21:19 +0000 (09:21 +0800)
commit28483b3be1f04b71464cce8f98a526c8670f630d
tree341c789114ef51c064f1729413de97b3092ee1af
parent5674f46f0cec041d5a502182066a097b214dd928
mgr/dashboard: support setting iSCSI gateways from orchestrator

- Dashboard doesn't actively query iSCSI gateways from orchestrator anymore.
  Instead, Orchestrator backend invokes iscsi-gateway-add CLI after any
  iSCSI daemons are deployed.
- Add an optional argument `name` to `iscsi-gateway-add` command. If
  `name` is provided, Dashboard won't issue API request to iSCSI gateway
  to get the hostname. This is required because when orchestrator sets
  the gateway via CLI, the gateway is just spawned and might be not
  ready yet.

Fixes: https://tracker.ceph.com/issues/45163
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
src/pybind/mgr/dashboard/services/iscsi_cli.py
src/pybind/mgr/dashboard/services/iscsi_config.py