Bug 1337601

Summary: "add the red hat storage apt-key" requires internet access to redhat.com
Product: [Red Hat Storage] Red Hat Storage Console Reporter: Ken Dreyer (Red Hat) <kdreyer>
Component: ceph-ansibleAssignee: Andrew Schoen <aschoen>
Status: CLOSED ERRATA QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2CC: adeza, amaredia, aschoen, ceph-eng-bugs, ceph-qe-bugs, hnallurv, nthomas, sankarshan, tchandra
Target Milestone: ---   
Target Release: 2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-1.0.5-20.el7scon Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-23 19:51:17 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:
Bug Depends On:    
Bug Blocks: 1343229    

Description Ken Dreyer (Red Hat) 2016-05-19 15:05:19 UTC
Description of problem:
ceph-ansible requires internet access when adding the Red Hat GPG key on Ubuntu systems.

 - name: add the red hat storage apt-key
   apt_key:
     url: "https://www.redhat.com/security/fd431d51.txt"
     state: present

Version-Release number of selected component (if applicable):
ceph-ansible-1.0.5-14.el7scon

How reproducible:
always

Steps to Reproduce:
1. Create an Ubuntu Xenial node and make it unable to access the broader internet (specifically https://www.redhat.com in this case).
2. Use ceph-ansible to install Red Hat Ceph Storage on the node.

Actual results:
The cluster node will be unable to add https://www.redhat.com/security/fd431d51.txt to the list of apt keys.

Expected results:
The install should succeed without internet access to redhat.com.

Additional info:
According to http://docs.ansible.com/ansible/apt_key_module.html it is possible to embed the GPG key contents in a file within Ansible, and this is probably the best route to take here.

Comment 1 Andrew Schoen 2016-06-02 20:23:36 UTC
Upstream PR opened: https://github.com/ceph/ceph-ansible/pull/836

Comment 7 errata-xmlrpc 2016-08-23 19:51:17 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/RHEA-2016:1754