]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: iscsi username and password defaults to admin 48304/head
authorNizamudeen A <nia@redhat.com>
Thu, 29 Sep 2022 19:59:39 +0000 (01:29 +0530)
committerNizamudeen A <nia@redhat.com>
Fri, 7 Oct 2022 07:59:29 +0000 (13:29 +0530)
commitbf87bc797ff0b47a60f7169698bb8ed2a5080c14
tree1ff1c9662cb949703630c6f2d046452727e3bd0f
parent120944f9cf46911c4da74e3899f42e5c8b68f61a
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>
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