I have juju ceph-base installed with three vms as below.
$ juju status
Model Controller Cloud/Region Version SLA Timestamp
ceph manual-cloud-default manual-cloud/default 2.9.43 unsupported 22:55:07Z
App Version Status Scale Charm Channel Rev Exposed Message
ceph-dashboard blocked 3 ceph-dashboard quincy/stable 31 no No certificates found. Please add a certifcates relation or provide via charm config
ceph-mon 17.2.5 active 3 ceph-mon quincy/stable 167 no Unit is ready and clustered
ceph-osd 17.2.5 active 3 ceph-osd quincy/stable 559 no Unit is ready (1 OSD)
Unit Workload Agent Machine Public address Ports Message
ceph-mon/0 active idle 1 10.x.x.175 Unit is ready and clustered
ceph-dashboard/2* blocked idle 10.x.x.175 No certificates found. Please add a certifcates relation or provide via charm config
ceph-mon/1 active idle 2 10.x.x.108 Unit is ready and clustered
ceph-dashboard/1 blocked idle 10.x.x.108 No certificates found. Please add a certifcates relation or provide via charm config
ceph-mon/2* active idle 3 10.x.x.251 Unit is ready and clustered
ceph-dashboard/0 blocked idle 10.x.x.251 No certificates found. Please add a certifcates relation or provide via charm config
ceph-osd/0 active idle 1 10.x.x.175 Unit is ready (1 OSD)
ceph-osd/1 active idle 2 10.x.x.108 Unit is ready (1 OSD)
ceph-osd/2* active idle 3 10.x.x.251 Unit is ready (1 OSD)
Machine State Address Inst id Series AZ Message
1 started 10.x.x.175 manual:10.x.x.175 jammy Manually provisioned machine
2 started 10.x.x.108 manual:10.x.x.108 jammy Manually provisioned machine
3 started 10.x.x.251 manual:10.x.x.251 jammy Manually provisioned machine
@hikkart You can definitely use the vault application to provide the certificates. There’s a bit of instructions for installing and configuring the ceph dashboard on the Ubuntu Ceph docs page: Ceph Dashboard install | Ubuntu. This should help get you straightened out for deploying the dashboard and getting setup. If you get stuck, feel free to ask for more help.
I do notice that the current docs loaded in the charmhub for the Ceph Dashboard are missing. Sorry about that, we’ll get those sorted out to help future travelers as that’s not a great experience. In the meantime, you can reference the Charmed Ceph docs pages at Charmed Ceph Documentation | Ubuntu to help. Don’t hesitate to give a shout out in this thread if you get stuck.
Does postgresql or any db require prior to Vault configuration?
If you don’t supply a database for vault to use as the backend, it will be configured to use the raft backend - which is native to Vault itself.
Based on where you’re at, I think you can unseal vault and continue with the deployment. Make sure to save your vault keys!! Those are necessary to unseal vault units when services are restarted in the future.
Thank you @billy-olsen. I have tried to use locally generated certificates and ended up with below error.
Any help would be much appreciated. Thank you.
user1/certs$ juju status
Model Controller Cloud/Region Version SLA Timestamp
ceph manual-cloud-default manual-cloud/default 2.9.43 unsupported 23:26:18Z
App Version Status Scale Charm Channel Rev Exposed Message
ceph-dashboard error 0 ceph-dashboard quincy/stable 35 no hook failed: "install"
ceph-mon 17.2.5 active 3 ceph-mon quincy/stable 167 no Unit is ready and clustered
ceph-osd 17.2.5 active 3 ceph-osd quincy/stable 559 no Unit is ready (1 OSD)
Unit Workload Agent Machine Public address Ports Message
ceph-mon/0 active idle 1 10.x.x.175 Unit is ready and clustered
ceph-dashboard/7 error idle 10.x.x.175 hook failed: "install"
ceph-mon/1 active idle 2 10.x.x.108 Unit is ready and clustered
ceph-dashboard/6* error idle 10.x.x.108 hook failed: "install"
ceph-mon/2* active idle 3 10.x.x.251 Unit is ready and clustered
ceph-dashboard/8 error idle 10.x.x.251 hook failed: "install"
ceph-osd/0 active idle 1 10.x.x.175 Unit is ready (1 OSD)
ceph-osd/1 active idle 2 10.x.x.108 Unit is ready (1 OSD)
ceph-osd/2* active idle 3 10.x.x.251 Unit is ready (1 OSD)
user1/certs$ juju debug-log --include ceph-dashboard/3 #All 6,7,8 units showing same error
binascii.Error: Incorrect padding
unit-ceph-dashboard-6: 00:11:33 ERROR juju.worker.uniter.operation hook "install" (via hook dispatching script: dispatch) failed: exit status 1
unit-ceph-dashboard-6: 00:11:33 INFO juju.worker.uniter awaiting error resolution for "install" hook
unit-ceph-dashboard-6: 00:11:43 INFO juju.worker.uniter awaiting error resolution for "install" hook
unit-ceph-dashboard-6: 00:11:43 INFO unit.ceph-dashboard/6.juju-log Running legacy hooks/install.
unit-ceph-dashboard-6: 00:11:43 INFO unit.ceph-dashboard/6.juju-log Installing packages
unit-ceph-dashboard-6: 00:11:45 INFO unit.ceph-dashboard/6.juju-log Installing ['ceph-mgr-dashboard', 'python3-onelogin-saml2'] with options: ['--option=Dpkg::Options::=--force-confold']
unit-ceph-dashboard-6: 00:11:45 INFO unit.ceph-dashboard/6.juju-log Updating status
unit-ceph-dashboard-6: 00:11:46 ERROR unit.ceph-dashboard/6.juju-log Uncaught exception while in charm code:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-ceph-dashboard-6/charm/./src/charm.py", line 632, in <module>
main(CephDashboardCharm)
File "/var/lib/juju/agents/unit-ceph-dashboard-6/charm/venv/ops/main.py", line 429, in main
framework.reemit()
File "/var/lib/juju/agents/unit-ceph-dashboard-6/charm/venv/ops/framework.py", line 794, in reemit
self._reemit()
File "/var/lib/juju/agents/unit-ceph-dashboard-6/charm/venv/ops/framework.py", line 857, in _reemit
custom_handler(event)
File "/var/lib/juju/agents/unit-ceph-dashboard-6/charm/venv/ops_openstack/core.py", line 113, in on_install
self.install_pkgs()
File "/var/lib/juju/agents/unit-ceph-dashboard-6/charm/venv/ops_openstack/core.py", line 110, in install_pkgs
self.update_status()
File "/var/lib/juju/agents/unit-ceph-dashboard-6/charm/venv/ops_openstack/core.py", line 152, in update_status
_result = check()
File "/var/lib/juju/agents/unit-ceph-dashboard-6/charm/./src/charm.py", line 363, in check_dashboard
if not check_f():
File "/var/lib/juju/agents/unit-ceph-dashboard-6/charm/./src/charm.py", line 319, in _check_for_certs
key, cert, _ = self._get_tls_from_config()
File "/var/lib/juju/agents/unit-ceph-dashboard-6/charm/./src/charm.py", line 478, in _get_tls_from_config
key = base64.b64decode(raw_key)
File "/usr/lib/python3.10/base64.py", line 87, in b64decode
return binascii.a2b_base64(s)
binascii.Error: Incorrect padding