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 - atomic cmdline doesn't work because of missing PyYAML dependency
Summary: atomic cmdline doesn't work because of missing PyYAML dependency
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: atomic
Version: 7.4
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Lokesh Mandvekar
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-02 03:08 UTC by Alex Jia
Modified: 2016-06-23 16:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-23 16:21:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1273 0 normal SHIPPED_LIVE atomic bug fix and enhancement update 2016-06-23 20:13:11 UTC

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


Note You need to log in before you can comment on or make changes to this bug.