Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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