Ceph keyring malformed when uploaded via Storware Backup & Recovery UI
-
I am trialing Storware (seems great so far by the way), and attempting to connect to our Openstack and Ceph clusters. The Openstack cluster was a success, but I am having issues with the keyring for ceph, that seems to be corrupted/malformed during the upload process via the web ui.
-
First, I test the ceph.conf and ceph.client.admin.keyring on the Linux command line of the Storware server and can connect to ceph and interrogate status, pg's and osd's. All OK.
-
I use the same files to populate the storage provider for ceph and attempt to inventory. This fails with error:
[2024-10-09T10:54:11.754+0100 7f84ba345640 -1 auth: error parsing file /tmp/2ba47f3f-19fe-4827-9a69-2fac4fca0600/ceph.client.admin.keyring: cannot pa**e buffer: Malformed input [buffer:3] 2024-10-09T10:54:11.754+0100 7f84ba345640 -1 auth: failed to load /tmp/2ba47f3f-19fe-4827-9a69-2fac4fca0600/ceph.client.admin.keyring: (5) Input/output error
- I copy the files from /tmp/ over to /etc/ceph/ to test the same using the client on the server CLI, but get the same malformed error:
2024-10-09T10:55:45.685+0100 7f170584f640 -1 auth: error parsing file /etc/ceph/ceph.client.admin.keyring: cannot pa**e buffer: Malformed input [buffer:3] 2024-10-09T10:55:45.685+0100 7f170584f640 -1 auth: failed to load /etc/ceph/ceph.client.admin.keyring: (5) Input/output error
- I then open /etc/ceph/ceph.client.admin.keyring (that was copied from Storware tmp files) in Vim, make no changes, but simply save the file again, overwriting it. The local ceph client now works successfully:
611 pgs: 611 active+clean; 7.5 GiB data, 36 GiB used, 56 TiB / 56 TiB avail; 7.7 KiB/s wr, 1 op/s
So, either the upload process via the webUI is corrupting the file somehow and the Vim overwrite is correcting that, or I am doing something stupid!?
Thanks,
AJ -
-
@tib_aj Hi, We have our pa**er, file that you upload in web UI can even be foo.txt, but inside you need to have proper formatting including an EOL mark at the end of the config and keyring (just use enter on the end of the file)
-
I knew it would end up being me!
Thanks, I have cleared up the formatting in the file and enter at the end. I have finally proceeded to inventory.
And thanks for the quick response.