Bug 1498180 - [Ceph-Ansible]:- Addition of nodes to the cluster fails in the build 3.0.0~rc14-2redhat1
Summary: [Ceph-Ansible]:- Addition of nodes to the cluster fails in the build 3.0.0~rc...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 3.0
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: 3.0
Assignee: Sébastien Han
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-03 16:06 UTC by shylesh
Modified: 2017-12-05 23:46 UTC (History)
10 users (show)

Fixed In Version: RHEL: ceph-ansible-3.0.0-0.1.rc17 Ubuntu: ceph-ansible-3.0.0~rc17-2redhat1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-05 23:46:42 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-ansible pull 1985 0 None None None 2017-10-04 11:37:18 UTC
Github ceph ceph-ansible pull 2004 0 None None None 2017-10-05 16:46:36 UTC
Red Hat Product Errata RHBA-2017:3387 0 normal SHIPPED_LIVE Red Hat Ceph Storage 3.0 bug fix and enhancement update 2017-12-06 03:03:45 UTC

Comment 2 Sébastien Han 2017-10-03 16:36:06 UTC
Set ceph_repository_type: cdn, this is a mandatory documented variable.

Comment 3 shylesh 2017-10-04 08:44:58 UTC
@Seb,

I added ceph_repository_type: 'cdn' but it was looking for 'ceph_rhcs_cdn_debian_repo', hence I added value fot as well.


ceph_rhcs_cdn_debian_repo:  http://download-node-02.eng.bos.redhat.com/rcm-guest/ceph-drops/3.0/latest-RHCEPH-3.0-Ubuntu/.


Now its failing with following error. Let me know anything else need to be done 







TASK [ceph-common : include prerequisite_rhcs_cdn_install_debian.yml] *****************************************************************************
included: /usr/share/ceph-ansible/roles/ceph-common/tasks/installs/prerequisite_rhcs_cdn_install_debian.yml for magna023

TASK [ceph-common : install red hat storage repository key for debian systems] ********************************************************************
changed: [magna023]

TASK [ceph-common : enable red hat storage monitor repository for debian systems] *****************************************************************
fatal: [magna023]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to magna023 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_drmEX7/ansible_module_apt_repository.py\", line 565, in <module>\r\n    main()\r\n  File \"/tmp/ansible_drmEX7/ansible_module_apt_repository.py\", line 553, in main\r\n    cache.update()\r\n  File \"/usr/lib/python2.7/dist-packages/apt/cache.py\", line 454, in update\r\n    raise FetchFailedException(e)\r\napt.cache.FetchFailedException: W:The repository 'http://download-node-02.eng.bos.redhat.com/rcm-guest/ceph-drops/3.0/latest-RHCEPH-3.0-Ubuntu//2-updates/MON xenial Release' does not have a Release file., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., E:Failed to fetch http://download-node-02.eng.bos.redhat.com/rcm-guest/ceph-drops/3.0/latest-RHCEPH-3.0-Ubuntu//2-updates/MON/dists/xenial/main/binary-amd64/Packages  404  Not Found, E:Some index files failed to download. They have been ignored, or old ones used instead.\r\n", "msg": "MODULE FAILURE", "rc": 0}

PLAY RECAP ****************************************************************************************************************************************
magna023                   : ok=24   changed=1    unreachable=0    failed=1   
magna036                   : ok=2    changed=0    unreachable=0    failed=0
magna042                   : ok=2    changed=0    unreachable=0    failed=0
magna103                   : ok=2    changed=0    unreachable=0    failed=0
magna106                   : ok=2    changed=0    unreachable=0    failed=0
magna112                   : ok=2    changed=0    unreachable=0    failed=0
magna116                   : ok=2    changed=0    unreachable=0    failed=0
magna117                   : ok=2    changed=0    unreachable=0    failed=0

Comment 4 Sébastien Han 2017-10-04 11:37:19 UTC
I'll gladly provide a fix but I need to make sure it's not breaking the customers.
I have a PR here to fix this, you can test with it in the meantime, thanks: https://github.com/ceph/ceph-ansible/pull/1985

Ken, what the right URL for customers repo?

I originally had:

https://customername:customerpasswd@rhcs.download.redhat.com/2-updates/{MON,OSD,Tools}

Also in QE's repos, I don't see the Agent.

Please help us with that.

Thanks!

Comment 7 Sébastien Han 2017-10-05 15:31:58 UTC
Ok so final thing, from now I'll use 3-updates/ in the URL. I hope this will be the right URL. I'm relying on you because I don't know.

Comment 9 Sébastien Han 2017-10-05 15:45:47 UTC
If you look here: https://github.com/ceph/ceph-ansible/pull/1985/files#diff-0e911955101dd0cc69aa91e67bfa3b8aR9 

You will see how it's used.
Thanks.

We need a response ASAP since I want to merge it today :) and bring it in the next RC.

Comment 12 Sébastien Han 2017-10-05 16:46:36 UTC
Thanks guys.

Comment 16 Sébastien Han 2017-10-06 12:12:10 UTC
ceph_rhcs_cdn_debian_repo_version must be empty because your repo URL is different.
Moving this back to POST.

Comment 17 shylesh 2017-10-06 13:08:21 UTC
(In reply to leseb from comment #16)
> ceph_rhcs_cdn_debian_repo_version must be empty because your repo URL is
> different.
> Moving this back to POST.

Yep, it worked as per your suggestion. 

Shall I mark this as verified ?

Comment 18 Sébastien Han 2017-10-06 13:13:24 UTC
Yes please :).

Comment 22 errata-xmlrpc 2017-12-05 23:46:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:3387


Note You need to log in before you can comment on or make changes to this bug.