Bug 1341922

Summary: atomic cmdline doesn't work because of /etc/atomic.d/ does not exist
Product: Red Hat Enterprise Linux 7 Reporter: Alex Jia <ajia>
Component: atomicAssignee: Brent Baude <bbaude>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 7.2CC: amurdaca, bbaude, dwalsh, lsm5, mpreisle, ndehadra, sghosh, yruseva
Target Milestone: rcKeywords: Extras, ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-23 16:21:50 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 Alex Jia 2016-06-02 03:38:46 UTC
Description of problem:
Atomic RPM package or SPEC file haven't move atomic.d/ into /etc directory, it also means we can't find openscap under the /etc/atomic.d/.

Version-Release number of selected component (if applicable):
$ rpm -q atomic docker kernel PyYAML
atomic-1.10.3-1.el7.x86_64
docker-1.10.3-26.el7.x86_64
kernel-3.10.0-327.el7.x86_64
PyYAML-3.10-11.el7eng.x86_64

$ cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.2 (Maipo)

How reproducible:
always

Steps to Reproduce:
1. atomic -h

Actual results:
$ atomic -h
/etc/atomic.d/ does not exist


Expected results:


Additional info:

You need to manually install PyYAML RPM package firstly avoid to encounter bug 1341916, and meanwhile, I tried to create atomic.d directory under the /etc, atomic cmdline works well, but it had better we can document something about /etc/atomic.d/openscap.

Comment 2 Daniel Walsh 2016-06-02 11:25:07 UTC
make install for atomic command should have created /etc/atomic.d directory.

Comment 3 Daniel Walsh 2016-06-02 11:25:49 UTC
Brent should we be doing a make install-openscap for RHEL systems?

Comment 4 Brent Baude 2016-06-02 14:09:40 UTC
We need to know the proposed openscap image name and then we can do something like that.  I'll add Martin here.

Comment 5 Subhendu Ghosh 2016-06-03 16:07:46 UTC
docker pull rhel7/openscap

Comment 8 Alex Jia 2016-06-08 11:28:53 UTC
rpm -qf /etc/atomic.d/openscap
atomic-1.10.3-2.el7.x86_64

But the directory /etc/atomic.d/ doesn't belong to any package, it's irrelevant with bug, I will file new one to track it.
# rpm -qf /etc/atomic.d/
file /etc/atomic.d is not owned by any package

the atomic -h works well, so move the bug to VERIFIED status.

Comment 9 Lokesh Mandvekar 2016-06-08 16:07:41 UTC
*** Bug 1343595 has been marked as a duplicate of this bug. ***

Comment 10 Micah Abbott 2016-06-10 13:02:48 UTC
*** Bug 1344623 has been marked as a duplicate of this bug. ***

Comment 14 errata-xmlrpc 2016-06-23 16:21:50 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-2016:1273