Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1538541

Summary: apb tools container not work
Product: OpenShift Container Platform Reporter: Zihan Tang <zitang>
Component: Service BrokerAssignee: Jason Montleon <jmontleo>
Status: CLOSED CURRENTRELEASE QA Contact: Zihan Tang <zitang>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.9.0CC: aos-bugs, chezhang, jmontleo, smunilla, wjiang
Target Milestone: ---   
Target Release: 3.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: v3.9.0-2 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-13 20:21:11 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:
Bug Depends On:    
Bug Blocks: 1534895    

Description Zihan Tang 2018-01-25 09:08:57 UTC
Description of problem:
apb tools container not work, apb command fail with python error.
image: registry.access.stage.redhat.com/openshift3/apb-tools:v3.9.0-1
How reproducible:
always

Steps to Reproduce:
1.pull image
docker pull registry.access.stage.redhat.com/openshift3/apb-tools:v3.9.0-1
2. alias docker container:
alias apb='docker run --rm --privileged -v $PWD:/mnt -v $HOME/.kube:/root/.kube -v /var/run/docker.sock:/var/run/docker.sock -u $UID registry.access.stage.redhat.com/openshift3/apb-tools:v3.9.0-1'
3. apb -h  or apb init

Actual results:
Traceback (most recent call last):
  File "/usr/bin/apb", line 9, in <module>
    load_entry_point('apb==1.1.6', 'console_scripts', 'apb')()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2682, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2355, in load
    return self.resolve()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2361, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.7/site-packages/apb/cli.py", line 6, in <module>
    import apb.engine
  File "/usr/lib/python2.7/site-packages/apb/engine.py", line 24, in <module>
    from kubernetes.stream import stream as kubernetes_stream
ImportError: No module named stream

Expected Result:
 apb command run successfully.
Additional info:

Comment 1 weiwei jiang 2018-01-25 09:25:04 UTC
Add dependencies version info.

# docker run -it --entrypoint /bin/bash registry.access.stage.redhat.com/openshift3/apb-tools:v3.9.0-1
[root@599b06d9378a mnt]# easy_install pip 
......
Finished processing dependencies for pip

[root@599b06d9378a mnt]# pip list |grep -i -E "kubernetes|apb|openshift"
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
apb (1.1.6)
kubernetes (3.0.0)
openshift (0.4.0a1)

Comment 2 Jason Montleon 2018-01-25 14:10:53 UTC
v3.9.0-2 should work properly.