Bug 1341916

Summary: atomic cmdline doesn't work because of missing PyYAML dependency
Product: Red Hat Enterprise Linux 7 Reporter: Alex Jia <ajia>
Component: atomicAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 7.4CC: amurdaca, dwalsh
Target Milestone: rc   
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:46 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:08:37 UTC
Description of problem:
I can successfully install atomic package from internal repo by yum, but atomic cmdline doesn't work because of missing PyYAML dependency.  

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

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

How reproducible:
always

Steps to Reproduce:
1. yum install -y atomic 
2. atomic -h


Actual results:

$ atomic -h
Traceback (most recent call last):
  File "/usr/bin/atomic", line 31, in <module>
    import Atomic
  File "/usr/lib/python2.7/site-packages/Atomic/__init__.py", line 1, in <module>
    from .pulp import PulpServer, PulpConfig
  File "/usr/lib/python2.7/site-packages/Atomic/pulp.py", line 11, in <module>
    from . import util
  File "/usr/lib/python2.7/site-packages/Atomic/util.py", line 10, in <module>
    from yaml import load as yaml_load
ImportError: No module named yaml


Expected results:
Fix it.

Additional info:

$ rpm -qRp atomic-1.10.3-1.el7.x86_64.rpm 
/bin/bash
/usr/bin/python2
config(atomic) = 1:1.10.3-1.el7
dbus
docker
polkit
python(abi) = 2.7
python-docker-py >= 1.7.2-1
python-requests
python-setuptools
python-six >= 1.3.0
python-websocket-client >= 0.11.0
rpm-python
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
setup
skopeo >= 1:0.1.13-1.el7
rpmlib(PayloadIsXz) <= 5.2-1

Comment 2 Antonio Murdaca 2016-06-06 11:58:49 UTC
This has been taken care of in dd62e6f3953184b70227f6e9b6e86694a935fb0b in atomic dist git in RHEL extras 7.2

Comment 3 Alex Jia 2016-06-08 11:32:56 UTC
The atomic 1.10.3-2 has a PyYAML dependency, so moving the bug to VERIFIED status.

# rpm -qR atomic
/bin/bash
/usr/bin/python2
PyYAML
config(atomic) = 1:1.10.3-2.el7
dbus
docker
polkit
python(abi) = 2.7
python-docker-py >= 1.7.2-1
python-requests
python-setuptools
python-six >= 1.3.0
python-websocket-client >= 0.11.0
rpm-python
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
setup
skopeo >= 1:0.1.13-2.el7
rpmlib(PayloadIsXz) <= 5.2-1

Comment 5 errata-xmlrpc 2016-06-23 16:21:46 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