Ceph: The command "ceph dashboard grafana dashboards update" fails with "Error EINVAL: Traceback"
Issue
The command ceph dashboard grafana dashboards update
fails with Error EINVAL: Traceback
[root@node-8 ~]# ceph dashboard grafana dashboards update
Error EINVAL: Traceback (most recent call last):
File "/usr/share/ceph/mgr/mgr_module.py", line 1384, in _handle_command
return self.handle_command(inbuf, cmd)
File "/usr/share/ceph/mgr/dashboard/module.py", line 427, in handle_command
push_local_dashboards()
File "/usr/share/ceph/mgr/dashboard/grafana.py", line 136, in push_local_dashboards
retry()
File "/usr/share/ceph/mgr/dashboard/grafana.py", line 93, in __call__
result = self.func(*self.args, **self.kwargs)
File "/usr/share/ceph/mgr/dashboard/grafana.py", line 131, in push
grafana.push_dashboard(body)
File "/usr/share/ceph/mgr/dashboard/grafana.py", line 58, in push_dashboard
response.raise_for_status()
File "/lib/python3.6/site-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://10.0.0.182:3000/api/dashboards/db
Environment
Red Hat Ceph Storage (RHCS) 5.x
Red Hat Ceph Storage (RHCS) 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.