CDS registration failure due to shared storage configuration error.
Issue
The CDS registration process via rhui-manager fails at the [Mount shared storage] step with the following error: mount.nfs: remote share not in 'host:dir' format
------------------------------------------------------------------------------
-= Red Hat Update Infrastructure Management Tool =-
-= Content Delivery Server (CDS) Management =-
l list all known CDS instances managed by the RHUI
a register (add) a new CDS instance
r reinstall and reapply configuration to an existing CDS instance
d unregister (delete) a CDS instance from the RHUI
logout
removes stored authentication credentials and exits
< move to the previous screen
^, home
move to the home screen
/, clear
clears the screen
?, help
display help
q, quit, exit
exit
Connected: rhua.exam.com
------------------------------------------------------------------------------
rhui (cds) => a
<snip>
The following CDS has been successfully added:
Hostname: cds01
SSH Username: root
SSH Private Key: /root/.ssh/id_rsa
The CDS will now be configured:
Checking that the RHUA services are reachable from the instance...
Done.
Installing and configuring the CDS...
PLAY [Registering a CDS instance] **********************************************
TASK [Install nfs-utils] *******************************************************
ok: [cds01]
TASK [Install glusterfs-fuse] **************************************************
skipping: [cds01]
TASK [Install ceph-common] *****************************************************
skipping: [cds01]
TASK [Create shared storage mount directory if it does not exist] **************
ok: [cds01]
TASK [Create /etc/rhui directory if it does not exist] *************************
ok: [cds01]
TASK [Provide general RHUI configuration] **************************************
ok: [cds01]
TASK [Copy over the cephfs secretkey file] *************************************
skipping: [cds01]
TASK [Write CephFS shared storage entry in fstab] ******************************
skipping: [cds01]
TASK [Write non-CephFS shared storage entry in fstab] **************************
ok: [cds01]
TASK [Test whether the shared storage is mounted] ******************************
ok: [cds01]
TASK [Unmount current shared storage if already mounted] ***********************
changed: [cds01]
TASK [Mount shared storage] ****************************************************
fatal: [cds01]: FAILED! => {"changed": true, "cmd": ["mount", "/var/lib/rhui/remote_share"], "delta": "0:00:00.007886", "end": "2023-11-29 21:14:14.932407", "msg": "non-zero return code", "rc": 32, "start": "2023-11-29 21:14:14.924521", "stderr": "mount.nfs: remote share not in 'host:dir' format", "stderr_lines": ["mount.nfs: remote share not in 'host:dir' format"], "stdout": "", "stdout_lines": []}
PLAY RECAP *********************************************************************
cds01 : ok=7 changed=1 unreachable=0 failed=1 skipped=4 rescued=0 ignored=0
ERROR FAILURE:
Encountered a bad command exit code!
Command: 'ansible-playbook -i cds01, -u root --ssh-common-args="-o StrictHostKeyChecking=yes -o IdentityFile=/root/.ssh/id_rsa" /usr/share/rhui-tools/playbooks/cds-register.yml --extra-vars "@/tmp/tmpf1wsk390"'
Exit code: 2
Stdout: already printed
Stderr: already printed
ERROR SEE LOG FILE: /var/log/rhui/rhua_ansible.log
Done.
Ensuring that instance ports are reachable ...
Environment
Red Hat Update Infrastructure 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.