Red Hat Storage Console agent installation fails to connect local yum repository
Issue
-
During ceph2.0 deployment with Storage console , the agent installation fails to connect local yum repository. For example:
1.The local yum repository on console node is below:
yum repolist
Loaded plugins: search-disabled-repos
repo id repo name status
rhceph20-mon-rpms rhceph20-mon-rpms 41
rhceph20-osd-rpms rhceph20-osd-rpms 28
rhceph20-tools-rpms rhceph20-tools-rpms 33
rhel-73-server-rpms rhel-73-server-rpms 4,751
rhscon20-agent-rpms rhscon20-agent-rpms 20
rhscon20-installer-rpms rhscon20-installer-rpms 46
rhscon20-main-rpms rhscon20-main-rpms 73
repolist: 4,992
2.Then run the curl command to deploy the ceph cluster tasks , the error is below:
curl <storage console IP >/setup/agent/ | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1617 100 1617 0 0 1762 0 --:--:-- --:--:-- --:--:-- 1763
--> creating new user with disabled password: ceph-installer
useradd: user 'ceph-installer' already exists
Removing password for user ceph-installer.
passwd: Success
--> adding provisioning key to the ceph-installer user authorized_keys
--> ensuring correct permissions on .ssh/authorized_keys
--> ensuring that ceph-installer user will be able to sudo
--> ensuring ceph-installer user does not require a tty
--> installing and configuring agent
{"endpoint": "/api/agent/", "succeeded": false, "stdout": null, "started": null, "request": "", "exit_code": null, "ended": null, "http_method": "", "command": null, "user_agent": "", "stderr": null, "identifier": "5344789d-3acb-4f02-8f99-48ca3941fe76"}
[root@rmon01 log]#curl <storage console IP >/api/tasks/
[{"endpoint": "/api/agent/", "succeeded": false, "stdout": "\nPLAY [mons] ******************************************************************* \nskipping: no hosts matched\n\nPLAY [agents] ***************************************************************** \n\nGATHERING FACTS *************************************************************** \nok: [w.x.y.z]\n\nTASK: [ceph-agent | determine if node is registered with subscription-manager.] *** \nfailed: [p.q.r.s] => {\"changed\": false, \"cmd\": [\"subscription-manager\", \"identity\"], \"delta\": \"0:00:01.218542\", \"end\": \"2016-12-21 02:42:37.727576\", \"rc\": 1, \"start\": \"2016-12-21 02:42:36.509034\", \"stdout_lines\": [], \"warnings\": []}\nstderr: This system is not yet registered. Try 'subscription-manager register --help' for more information.\n\nFATAL: all hosts have already failed -- aborting\n\nPLAY RECAP ******************************************************************** \n to retry, use: --limit @/var/lib/ceph-installer/site.sample.retry\n\n10.0.1.70 : ok=1 changed=0 unreachable=0 failed=1 \n\n", "started": "2016-12-21 02:42:17.678735", "request": "", "exit_code": 2, "ended": "2016-12-21 02:42:37.801557", "http_method": "", "command": "/bin/ansible-playbook -v -u ceph-installer /usr/share/ceph-ansible/site.yml.sample -i /tmp/d65af3da-1c45-43bb-be08-94fcaaa6f8db_DXtvAb --extra-vars {\"agent_master_host\": \"10.0.1.83\", \"ceph_stable\": true, \"fetch_directory\": \"/var/lib/ceph-installer/fetch\"}", "user_agent": "", "stderr": "", "identifier": "d65af3da-1c45-43bb-be08-94fcaaa6f8db"}, {"endpoint": "/api/agent/", "succeeded": false, "stdout": "\nPLAY [mons]
Environment
- Red Hat Ceph Cluster 2.x
- Red Hat Storage console 2.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
