Bug 1376896

Summary: atomic verify reports NoneType error
Product: Red Hat Enterprise Linux 7 Reporter: David Darrah/Red Hat QE <ddarrah>
Component: atomicAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED CURRENTRELEASE QA Contact: atomic-bugs <atomic-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.3Keywords: Extras
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-21 17:02:51 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:

Description David Darrah/Red Hat QE 2016-09-16 19:02:30 UTC
Description of problem:
Running atomic verify results in the error:
TypeError: argument of type 'NoneType' is not iterable


Version-Release number of selected component (if applicable):
atomic 1:1.12.1-4.el7
skopeo 1:0.1.14-0.5.el7

How reproducible:
100%

Steps to Reproduce:
1. as root, run 
atomic --debug verify -v --no-validate docker.io/library/busybox:latest

Actual results:
http://pastebin.test.redhat.com/412848
# atomic --debug verify -v --no-validate docker.io/library/busybox:latest
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/verify.py", line 121, in verify
    layers = fix_layers(self.get_layers())
  File "/usr/lib/python2.7/site-packages/Atomic/atomic.py", line 415, in get_layers
    layer = self._get_layer(self.image)
  File "/usr/lib/python2.7/site-packages/Atomic/atomic.py", line 410, in _get_layer
    "Version": version, "Tag": find_repo_tag(self.d, image['Id'], self.image),
  File "/usr/lib/python2.7/site-packages/Atomic/atomic.py", line 33, in find_repo_tag
    repo_tag = image_in_repotags(image_name, image['RepoTags'])
  File "/usr/lib/python2.7/site-packages/Atomic/atomic.py", line 23, in image_in_repotags
    if image_name in repotags:
TypeError: argument of type 'NoneType' is not iterable


Expected results:


Additional info: