Monster
    Storware Backup & Recovery
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Ceph keyring malformed when uploaded via Storware Backup & Recovery UI

    Scheduled Pinned Locked Moved Storage
    3 Posts 2 Posters 244 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      tib_aj
      last edited by tib_aj

      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

      A 1 Reply Last reply Reply Quote 0
      • A Offline
        Argus Storware Professional Services @tib_aj
        last edited by

        @tib_aj Hi, We have our parser, 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)

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          tib_aj @Argus
          last edited by

          @Argus

          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.

          1 Reply Last reply Reply Quote 0
          • adminA admin locked this topic on
          • First post
            Last post