Bug 1492223 - When yum.repos.d .repo file points to download-node-02.eng.bos.redhat.com, install fails.
Summary: When yum.repos.d .repo file points to download-node-02.eng.bos.redhat.com, in...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 3.0
Assignee: Sébastien Han
QA Contact: Vasishta
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-15 20:33 UTC by John Wilkins
Modified: 2017-12-05 23:43 UTC (History)
11 users (show)

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:
Clone Of:
Environment:
Last Closed: 2017-12-05 23:43:31 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-ansible pull 1918 0 None closed common: fix rhcs installation and rgw package for nfs 2020-12-07 09:22:32 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

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


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