Bug 1492223

Summary: When yum.repos.d .repo file points to download-node-02.eng.bos.redhat.com, install fails.
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: John Wilkins <jowilkin>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED ERRATA QA Contact: Vasishta <vashastr>
Severity: high Docs Contact:
Priority: high    
Version: 3.0CC: adeza, aschoen, ceph-eng-bugs, ceph-qe-bugs, gmeno, hnallurv, kdreyer, nthomas, sankarshan, seb, vashastr
Target Milestone: rc   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.0.0-0.1.rc10.el7cp Ubuntu: ceph-ansible_3.0.0~rc10-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:43:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Wilkins 2017-09-15 20:33:59 UTC
Description of problem:

When testing RHCS 3.0 latest packages, yum.repos.d must have a file with the following: 

[download-node-02.eng.bos.redhat.com_composes_auto_ceph-3.0-rhel-7_latest-RHCEPH-3-RHEL-7_compose_MON_x86_64_os_]
name=added from: http://download-node-02.eng.bos.redhat.com/composes/auto/ceph-3.0-rhel-7/latest-RHCEPH-3-RHEL-7/compose/MON/x86_64/os/
baseurl=http://download-node-02.eng.bos.redhat.com/composes/auto/ceph-3.0-rhel-7/latest-RHCEPH-3-RHEL-7/compose/MON/x86_64/os/
enabled=1


Then, set all.yml with the following: 

ceph_origin: repository
ceph_repository: rhcs
ceph_repository_type: cdn

When executing:

# ansible-playbook site.yml

The installation fails. It will find the packages if the ceph_origin setting must be set to distro, even though the packages are getting downloaded from Red Hat. 

Per Andrew Schoen, this shouldn't happen. 



How reproducible:
Every time.

Actual results:
Install fails.

Expected results:
Ansible will install Ceph, pulling the packages from Red Hat engineering using the same settings that an end user would execute.

Additional info:
Making this change, even though it may behave like a local iso install, will make it easier for QE and docs to test the procedure end users will follown.

Comment 2 Andrew Schoen 2017-09-15 20:50:29 UTC
If you want to install RHCS packages from repos that you've manually put on your nodes you need to set the following config options.

ceph_origin: distro
ceph_repository: rhcs

John, the bug I remember seeing when helping you out was that with the config you mentioned above there was the following check failure.

TASK [ceph-common : verify that a repository type was chosen for ceph rhcs version] **********************************************************************************************************************************************************
fatal: [rhel-mon]: FAILED! => {"changed": false, "failed": true, "msg": "choose between 'cdn' or 'iso' installation, e.g: ceph_repository_type: cdn.\nValid ceph_repository_type are: [u'cdn', u'iso']"}

Which I think is wrong because this config looks correct to me if you did mean to install RHCS packages from the cdn:

ceph_origin: repository
ceph_repository: rhcs
ceph_repository_type: cdn

Comment 3 seb 2017-09-19 11:31:01 UTC
I think I actually fixed that here: https://github.com/ceph/ceph-ansible/pull/1918
John, do you mind verifying this, please?

Comment 10 errata-xmlrpc 2017-12-05 23:43:31 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