]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: iscsi username and password defaults to admin 49310/head
authorNizamudeen A <nia@redhat.com>
Thu, 29 Sep 2022 19:59:39 +0000 (01:29 +0530)
committerAdam King <adking@redhat.com>
Wed, 7 Dec 2022 17:10:50 +0000 (12:10 -0500)
commit6e6229dedbf3e80c1d47e827e056066a72f19c3e
tree767d6300209d38a47706cb37b229d832be898706
parentb04d0e8f386e55a04e2a5f01269f096c94281814
mgr/cephadm: iscsi username and password defaults to admin

A while ago, the iscsi username and password were defaulted to admin the
config_dashboard part. But it was not saved to the
`iscsi-gateway.cfg.j2` which results in a misconfiguration.

For eg, if you deploy an iscsi service with service_spec which doesn't
have the api_user and api_password field it results the dashboard to
show the gateways as always down because dashboard was unable to make
request to the iscsi server and every api calls result in a `[dashboard
ERROR rest_client] iscsi REST API failed GET req status: 401`.

Fixes: https://tracker.ceph.com/issues/57730
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit bf87bc797ff0b47a60f7169698bb8ed2a5080c14)
src/pybind/mgr/dashboard/services/tcmu_service.py
src/python-common/ceph/deployment/service_spec.py
src/python-common/ceph/tests/test_service_spec.py