Bug 1389677 - TypeError: argument of type 'NoneType' is not iterable
Summary: TypeError: argument of type 'NoneType' is not iterable
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: atomic
Version: 7.3
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Lokesh Mandvekar
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1381736 1391788
TreeView+ depends on / blocked
 
Reported: 2016-10-28 08:32 UTC by Alex Jia
Modified: 2020-05-05 14:31 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-05 14:31:11 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Alex Jia 2016-10-28 08:32:18 UTC
Description of problem:
atomic pull image is failed and got error as subject, it should be caused by lost /etc/containers/policy.json file.

Version-Release number of selected component (if applicable):

[root@atomic-host-001 cloud-user]# atomic host status
State: idle
Deployments:
● rhel-atomic-host:rhel-atomic-host/7/x86_64/standard
       Version: 7.3 (2016-10-26 14:24:09)
        Commit: 90c9735becfff1c55c8586ae0f2c904bc0928f042cd4d016e9e0e2edd16e5e97
        OSName: rhel-atomic-host
  GPGSignature: (unsigned)
      Unlocked: development

[root@atomic-host-001 cloud-user]# rpm -q atomic skopeo
atomic-1.13.3-1.el7.x86_64
skopeo-0.1.17-0.4.git550a480.el7.x86_64

How reproducible:
always

Steps to Reproduce:
1. atomic host unlock
2. download latest atomic, skopeo RPM pacakges from brew system
3. rpm -Uvh atomic*.rpm skopeo*.rpm
4. atomic --debug pull registry.access.redhat.com/rhel7


Actual results:

[root@atomic-host-001 cloud-user]# atomic --debug pull registry.access.redhat.com/rhel7
Image registry.access.redhat.com/rhel7 is being pulled to docker ...
argument of type 'NoneType' is not iterable
Traceback (most recent call last):
  File "/bin/atomic", line 186, in <module>
    sys.exit(_func())
  File "/usr/lib/python2.7/site-packages/Atomic/pull.py", line 65, in pull_image
    handler()
  File "/usr/lib/python2.7/site-packages/Atomic/pull.py", line 49, in pull_docker_image
    trust.discover_sigstore(fq_name)
  File "/usr/lib/python2.7/site-packages/Atomic/trust.py", line 282, in discover_sigstore
    if not scope in registry_configs:
TypeError: argument of type 'NoneType' is not iterable

Expected results:


Additional info:

Comment 2 Alex Jia 2016-11-01 09:36:39 UTC
The same issue is on atomic-1.13.5-1.el7.x86_64 with skopeo-0.1.17-0.5.git1f655f3.el7.x86_64

Comment 4 Daniel Walsh 2016-11-04 13:44:40 UTC
Fixed in atomic-1.13.6

Comment 5 Alex Jia 2016-11-22 08:16:21 UTC
It works well for me on atomic-1.13.8-1.el7.x86_64.


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