Hi Yuri,

I faced the same problem that recently only IP addresses are listed in
`ceph mgr services`

As a easy workarounf I installed a lightttp for just one CGI script:

########################################################################
#!/bin/bash

DASHBOARD=$(ceph mgr services | jq '.dashboard')

DASHIP=$(echo $DASHBOARD | awk -F[/:] '{print $4}')

if [[ $DASHIP =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
   DASHNAME=$(host $DASHIP | awk '{print $NF}' | sed 's/\.$//')
else
   DASHNAME=$DASHIP
fi

DASHURL='https://'${DASHNAME}:8443/

echo "Refresh: 2; url=$DASHURL"
echo "Content-type: text/html"
echo
echo  "You will be redirected to <a href=\"$DASHURL\">$DASHNAME</a> in 2
seconds..."

########################################################################

Yes, it's only a kludge, but it "works for me".
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to