Actions
Bug #45696
closedcephadm: Validate bootstrap dashboard "key" and "cert" file exists
Status:
Resolved
Priority:
Normal
Assignee:
Ricardo Marques
Category:
cephadm (binary)
Target version:
% Done:
0%
Source:
Backport:
octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v16.0.0-1978-g30961b9776
Released In:
v16.2.0~2464
Upkeep Timestamp:
2025-07-14T19:43:01+00:00
Description
While bootstrapping a cluster, I've provided "--dashboard-key" and "--dashboard-crt" options pointing to files that do not exist:
cephadm --verbose bootstrap --mon-ip 10.20.36.200 --dashboard-key cert/not_exists.key --dashboard-crt cert/not_exists.crt
The bootstrap proceeds and only failed in the end, after deploy containers:
INFO:cephadm:/usr/bin/ceph:stderr Error: error checking path "/root/cert/not_exists.crt": stat /root/cert/not_exists.crt: no such file or directory
Traceback (most recent call last):
File "/usr/sbin/cephadm", line 4655, in <module>
r = args.func()
File "/usr/sbin/cephadm", line 1153, in _default_image
return func()
File "/usr/sbin/cephadm", line 2618, in command_bootstrap
cli(['dashboard', 'set-ssl-certificate', '-i', '/tmp/dashboard.crt'], extra_mounts=mounts)
File "/usr/sbin/cephadm", line 2450, in cli
).run(timeout=timeout)
File "/usr/sbin/cephadm", line 2183, in run
self.run_cmd(), desc=self.entrypoint, timeout=timeout)
File "/usr/sbin/cephadm", line 837, in call_throws
raise RuntimeError('Failed command: %s' % ' '.join(command))
Updated by Ricardo Marques almost 6 years ago
- Status changed from New to In Progress
Updated by Ricardo Marques almost 6 years ago
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 35229
Updated by Ricardo Marques almost 6 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Sebastian Wagner almost 6 years ago
- Status changed from Pending Backport to Resolved
- Target version set to v15.2.4
Updated by Sebastian Wagner almost 6 years ago
- Status changed from Resolved to Pending Backport
Updated by Sebastian Wagner almost 6 years ago
- Status changed from Pending Backport to Resolved
Updated by Upkeep Bot 8 months ago
- Merge Commit set to 30961b9776f8612e2b455a50433eec6a367d57f6
- Fixed In set to v16.0.0-1978-g30961b9776
- Released In set to v16.2.0~2464
- Upkeep Timestamp set to 2025-07-14T19:43:01+00:00
Actions