Bug #61312
openThe command "ceph config set mgr mgr/dashboard/redirect_resolve_ip_addr True" fails
0%
Description
https://docs.ceph.com/en/quincy/mgr/dashboard/#resolve-ip-address-to-hostname-before-redirect
This bug comes to us from Patrick Preisler. He discovered that it was not possible to run the command "ceph config set mgr mgr/dashboard/redirect_resolve_ip_addr True". I have included much of his email to me below.
BEGIN QUOTED TEXT
I've deployed a Ceph Cluster (v17.2.5) via Cephadm and I was messing around with the MGR Settings. I read through the MGR Dashboard Documentation and came across the "RESOLVE IP ADDRESS TO HOSTNAME BEFORE REDIRECT" Section ( https://docs.ceph.com/en/quincy/mgr/dashboard/#resolve-ip-address-to-hostname-before-redirect ).
However, when I tried to enable the Option I get an error message:
[root@storhost1 ~]# ceph config set mgr mgr/dashboard/redirect_resolve_ip_addr True
Error EINVAL: unrecognized config option 'mgr/dashboard/redirect_resolve_ip_addr'
and when I used "ceph config ls" I also can't find the option:
[root@storhost1 ~]# ceph config ls | grep dashboard
mgr/cephadm/config_dashboard
mgr/dashboard/ACCOUNT_LOCKOUT_ATTEMPTS
mgr/dashboard/ALERTMANAGER_API_HOST
mgr/dashboard/ALERTMANAGER_API_SSL_VERIFY
mgr/dashboard/AUDIT_API_ENABLED
mgr/dashboard/AUDIT_API_LOG_PAYLOAD
mgr/dashboard/ENABLE_BROWSABLE_API
mgr/dashboard/FEATURE_TOGGLE_CEPHFS
mgr/dashboard/FEATURE_TOGGLE_ISCSI
mgr/dashboard/FEATURE_TOGGLE_MIRRORING
mgr/dashboard/FEATURE_TOGGLE_NFS
mgr/dashboard/FEATURE_TOGGLE_RBD
mgr/dashboard/FEATURE_TOGGLE_RGW
mgr/dashboard/GANESHA_CLUSTERS_RADOS_POOL_NAMESPACE
mgr/dashboard/GRAFANA_API_PASSWORD
mgr/dashboard/GRAFANA_API_SSL_VERIFY
mgr/dashboard/GRAFANA_API_URL
mgr/dashboard/GRAFANA_API_USERNAME
mgr/dashboard/GRAFANA_FRONTEND_API_URL
mgr/dashboard/GRAFANA_UPDATE_DASHBOARDS
mgr/dashboard/ISCSI_API_SSL_VERIFICATION
mgr/dashboard/ISSUE_TRACKER_API_KEY
mgr/dashboard/PROMETHEUS_API_HOST
mgr/dashboard/PROMETHEUS_API_SSL_VERIFY
mgr/dashboard/PWD_POLICY_CHECK_COMPLEXITY_ENABLED
mgr/dashboard/PWD_POLICY_CHECK_EXCLUSION_LIST_ENABLED
mgr/dashboard/PWD_POLICY_CHECK_LENGTH_ENABLED
mgr/dashboard/PWD_POLICY_CHECK_OLDPWD_ENABLED
mgr/dashboard/PWD_POLICY_CHECK_REPETITIVE_CHARS_ENABLED
mgr/dashboard/PWD_POLICY_CHECK_SEQUENTIAL_CHARS_ENABLED
mgr/dashboard/PWD_POLICY_CHECK_USERNAME_ENABLED
mgr/dashboard/PWD_POLICY_ENABLED
mgr/dashboard/PWD_POLICY_EXCLUSION_LIST
mgr/dashboard/PWD_POLICY_MIN_COMPLEXITY
mgr/dashboard/PWD_POLICY_MIN_LENGTH
mgr/dashboard/REST_REQUESTS_TIMEOUT
mgr/dashboard/RGW_API_ACCESS_KEY
mgr/dashboard/RGW_API_ADMIN_RESOURCE
mgr/dashboard/RGW_API_SECRET_KEY
mgr/dashboard/RGW_API_SSL_VERIFY
mgr/dashboard/USER_PWD_EXPIRATION_SPAN
mgr/dashboard/USER_PWD_EXPIRATION_WARNING_1
mgr/dashboard/USER_PWD_EXPIRATION_WARNING_2
mgr/dashboard/crt_file
mgr/dashboard/debug
mgr/dashboard/jwt_token_ttl
mgr/dashboard/key_file
mgr/dashboard/log_level
mgr/dashboard/log_to_cluster
mgr/dashboard/log_to_cluster_level
mgr/dashboard/log_to_file
mgr/dashboard/motd
mgr/dashboard/server_addr
mgr/dashboard/server_port
mgr/dashboard/ssl
mgr/dashboard/ssl_server_port
mgr/dashboard/standby_behaviour
mgr/dashboard/standby_error_status_code
mgr/dashboard/url_prefix
I also tried a few more greps but I can't find the Option..
Am I missing something here or does this Option no longer exist?
END QUOTED TEXT
Updated by Pedro González Gómez 7 months ago
- Status changed from New to Triaged
- Assignee set to Pedro González Gómez
Updated by Zac Dover 6 days ago
Nizamudeen tells me the following through Slack:
BEGIN QUOTED TEXT
this particular configuration is introduced in quincy 17.2.6 so its not available in 17.2.5
this is the PR where this is introduced: https://github.com/ceph/ceph/pull/48219
and from the changelogs here this change is released on 17.2.6: https://ceph.io/en/news/blog/2023/v17-2-6-quincy-released/
END QUOTED TEXT