Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1499132

Summary: [ceph-ansible] RHCS 3.0 beta - Ubuntu iso installation fails
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Madhavi Kasturi <mkasturi>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED ERRATA QA Contact: Madhavi Kasturi <mkasturi>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.0CC: adeza, aschoen, ceph-eng-bugs, gmeno, hnallurv, nthomas, sankarshan, shan
Target Milestone: rc   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.0.0-0.1.rc19 Ubuntu: ceph-ansible-3.0.0~rc19-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:47:21 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:
Attachments:
Description Flags
Ansible.log none

Description Madhavi Kasturi 2017-10-06 07:40:26 UTC
Description of problem:

RHCS Ubuntu ISO based installation is failing with "iso installation is not supported by the Ceph Debian rhcs version"

Version-Release number of selected component (if applicable):
ansible -> 2.3.2.0-2redhat1
ceph-ansible -> 3.0.0~rc15-2redhat1


How reproducible:
Always

Steps to Reproduce:
1.Configure ceph-ansible on Ubuntu 16.04 using ISO 
2.run playbook


Actual results:
Installation fails with " iso installation is not supported by the Ceph Debian rhcs version"

Expected results:
Installation should succeed.

Additional info:

As discussed in mail, this is fixed in PR https://github.com/ceph/ceph-ansible/pull/2003. Opening this bug for tracking purpose.

# excerpt from all.yml w.r.t installation settings I did:
ubuntu@magna003:/usr/share/ceph-ansible$ cat group_vars/all.yml | egrep -v ^# | grep -v ^$
---
dummy:
fetch_directory: ~/ceph-ansible-keys
ceph_origin: repository
ceph_repository: rhcs
ceph_repository_type: iso
ceph_rhcs_iso_path: "{{ /home/ubuntu/RHCEPH-3.0-Ubuntu-x86_64-20171003.t.0-dvd.iso }}"
monitor_interface: eth0
public_network: 10.8.128.0/21

Comment 2 Sébastien Han 2017-10-06 11:51:28 UTC
Fixed in rc17.

Comment 3 Madhavi Kasturi 2017-10-06 12:53:14 UTC
Upgraded to the latest rc17 version of ceph-ansible (Oct5. )

Iso installation is failing with below error
TASK [ceph-common : install red hat storage repository key for debian systems] ************************************************************************************************************************************
fatal: [magna003]: FAILED! => {"changed": false, "cmd": "/usr/bin/apt-key add /tmp/rh-storage-repo/RPM-GPG-KEY-redhat-release", "failed": true, "msg": "gpg: can't open `/tmp/rh-storage-repo/RPM-GPG-KEY-redhat-release': No such file or directory", "rc": 2, "stderr": "gpg: can't open `/tmp/rh-storage-repo/RPM-GPG-KEY-redhat-release': No such file or directory\n", "stderr_lines": ["gpg: can't open `/tmp/rh-storage-repo/RPM-GPG-KEY-redhat-release': No such file or directory"], "stdout": "", "stdout_lines": []}

Ansible & ceph-ansible version

ansible -- 2.3.2.0-2redhat1 
ceph-ansible -- 3.0.0~rc17-2redhat1

all.yml snippet:
ubuntu@magna003:/usr/share/ceph-ansible$ cat /usr/share/ceph-ansible$ cat group_vars/all.yml | egrep -v ^# | grep -v ^$
cat: '/usr/share/ceph-ansible$': No such file or directory
cat: cat: No such file or directory
---
dummy:
fetch_directory: ~/ceph-ansible-keys
ceph_origin: repository
ceph_repository: rhcs
ceph_repository_type: iso
ceph_rhcs_iso_path: "/home/ubuntu/RHCEPH-3.0-Ubuntu-x86_64-20171003.t.0-dvd.iso"
monitor_interface: eth0
public_network: 10.8.128.0/21

ansible node : magna003.ceph.redhat.com

PFA, the ansible.log. 

Please let me know if another bug needs to raised for this issue.

Comment 4 Madhavi Kasturi 2017-10-06 12:54:40 UTC
Created attachment 1335312 [details]
Ansible.log

Comment 5 Harish NV Rao 2017-10-06 13:25:16 UTC
changing the state to assigned based on https://bugzilla.redhat.com/show_bug.cgi?id=1499132#c3

Comment 6 Sébastien Han 2017-10-06 20:19:44 UTC
will be in rc18

Comment 10 Madhavi Kasturi 2017-10-11 05:28:56 UTC
RHCS Ubuntu ISO based installation completed successfully with rc19 ceph-ansible version.

Document referred - https://access.qa.redhat.com/documentation/en-us/red_hat_ceph_storage/3/html-single/installation_guide_for_ubuntu 

Ceph-ansible| ansible version :
ansible -- 2.3.2.0-2redhat1 
ceph-ansible -- 3.0.0~rc19-2redhat1
 
ubuntu@magna003:/usr/share/ceph-ansible$ sudo ceph -s
  cluster:
    id:     263c5b52-b3b7-4d22-a64e-9685f41dffd0
    health: HEALTH_OK
            
  services:
    mon: 1 daemons, quorum magna003
    mgr: magna092(active)
    mds: cephfs-1/1/1 up  {0=magna092=up:active}
    osd: 9 osds: 9 up, 9 in
    rgw: 1 daemon active
 
  data:
    pools:   13 pools, 1764 pgs
    objects: 457 objects, 904 MB
    usage:   3727 MB used, 8330 GB / 8334 GB avail
    pgs:     1764 active+clean

Comment 13 errata-xmlrpc 2017-12-05 23:47:21 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