Bug 1296432

Summary: failed to create tempest.conf with config_tempest.py when using existing image
Product: Red Hat OpenStack Reporter: Eran Kuris <ekuris>
Component: openstack-tempestAssignee: Daniel Mellado <dmellado>
Status: CLOSED NOTABUG QA Contact: tkammer
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: apevec, dmellado, ekuris, lhh, slinaber
Target Milestone: ---Keywords: ZStream
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-20 10:12:53 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 Eran Kuris 2016-01-07 09:13:56 UTC
Description of problem:
failed to create tempest.conf with config_tempest.py when using existing image compute.image_ref 1dc27325-31b0-4cb4-9a69-e7b8202de44d

python tools/config_tempest.py --create --debug compute.image_ref 1dc27325-31b0-4cb4-9a69-e7b8202de44d identity.uri $OS_AUTH_URL identity.admin_password $OS_PASSWORD --deployer-input /home/stack/tempest-deployer-input.conf  --network-id 2356217a-3dfa-4b80-9c5b-77cfe847b3ff 


2016-01-07 03:54:28.578 24087 INFO __main__ [-] (no change) Found flavor 'm1.micro'
2016-01-07 03:54:28.578 24087 DEBUG __main__ [-] Setting [compute] flavor_ref_alt = 15661cf3-41d6-42cc-8805-92e90b98ed60 set tools/config_tempest.py:379
2016-01-07 03:54:28.578 24087 CRITICAL tempest [-] AttributeError: 'ImageClientV2' object has no attribute 'get_image'
2016-01-07 03:54:28.578 24087 ERROR tempest Traceback (most recent call last):
2016-01-07 03:54:28.578 24087 ERROR tempest   File "tools/config_tempest.py", line 754, in <module>
2016-01-07 03:54:28.578 24087 ERROR tempest     main()
2016-01-07 03:54:28.578 24087 ERROR tempest   File "tools/config_tempest.py", line 152, in main
2016-01-07 03:54:28.578 24087 ERROR tempest     args.image_disk_format)
2016-01-07 03:54:28.578 24087 ERROR tempest   File "tools/config_tempest.py", line 545, in create_tempest_images
2016-01-07 03:54:28.578 24087 ERROR tempest     disk_format=disk_format)
2016-01-07 03:54:28.578 24087 ERROR tempest   File "tools/config_tempest.py", line 561, in find_or_upload_image
2016-01-07 03:54:28.578 24087 ERROR tempest     image = _find_image(client, image_id, image_name)
2016-01-07 03:54:28.578 24087 ERROR tempest   File "tools/config_tempest.py", line 742, in _find_image
2016-01-07 03:54:28.578 24087 ERROR tempest     return client.get_image(image_id)
2016-01-07 03:54:28.578 24087 ERROR tempest AttributeError: 'ImageClientV2' object has no attribute 'get_image'
2016-01-07 03:54:28.578 24087 ERROR tempest 


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

How reproducible:


Steps to Reproduce:
1.run the command in tempest ENV : ython tools/config_tempest.py --create --debug compute.image_ref 1dc27325-31b0-4cb4-9a69-e7b8202de44d identity.uri $OS_AUTH_URL identity.admin_password $OS_PASSWORD --deployer-input /home/stack/tempest-deployer-input.conf  --network-id 2356217a-3dfa-4b80-9c5b-77cfe847b3ff 

2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Eran Kuris 2016-07-18 12:16:30 UTC
np