Bug 1206358

Summary: provision_glance does not honour proxy setting when getting image
Product: [Community] RDO Reporter: Larry Brigman <larry.brigman>
Component: openstack-packstackAssignee: Martin Magr <mmagr>
Status: CLOSED EOL QA Contact: Shai Revivo <srevivo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: JunoCC: aortega, derekh, srevivo
Target Milestone: ---   
Target Release: Kilo   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-19 15:45:15 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:

Description Larry Brigman 2015-03-26 21:09:17 UTC
Description of problem: When running packstack --allinone provision_glance tries
to grab cirros image file from the internet.  When the machine is required to go through a proxy for http and https access this step fails.


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


How reproducible:
100%

Steps to Reproduce:
1.
2.
3.

Actual results:
Error: Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password 6e2263c8a4e540b9 --os-region-name RegionOne --os-auth-url http://134.242.160.96:35357/v2.0/ image-create --name=cirros --is-public=Yes --container-format=bare --disk-format=qcow2 --copy-from=file:i///root/cirros-0.3.3-x86_64-disk.img' returned 1: <html>

Expected results:
Done

Additional info:
When changing the answer file to point to a machine that didn't require a proxy
to retreive the file the step succeeded.

Log Output...
cat manifests/134.242.160.96_provision_glance.log
Notice: Compiled catalog for sweng0096.lab.c-cor.com in environment production in 0.08 seconds
Error: Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password 6e2263c8a4e540b9 --os-region-name RegionOne --os-auth-url http://134.242.160.96:35357/v2.0/ image-create --name=cirros --is-public=Yes --container-format=bare --disk-format=qcow2 --copy-from=file:i///root/cirros-0.3.3-x86_64-disk.img' returned 1: <html>
 <head>
  <title>400 Bad Request</title>
 </head>
 <body>
  <h1>400 Bad Request</h1>
  External source are not supported: 'file:i///root/cirros-0.3.3-x86_64-disk.img'<br /><br />

 </body>
</html> (HTTP 400)
Error: /Stage[main]/Main/Glance_image[cirros]/ensure: change from absent to present failed: Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password 6e2263c8a4e540b9 --os-region-name RegionOne --os-auth-url http://134.242.160.96:35357/v2.0/ image-create --name=cirros --is-public=Yes --container-format=bare --disk-format=qcow2 --copy-from=file:i///root/cirros-0.3.3-x86_64-disk.img' returned 1: <html>
 <head>
  <title>400 Bad Request</title>
 </head>
 <body>
  <h1>400 Bad Request</h1>
  External source are not supported: 'file:i///root/cirros-0.3.3-x86_64-disk.img'<br /><br />

 </body>
</html> (HTTP 400)
Notice: Finished catalog run in 12.33 seconds

Comment 1 Larry Brigman 2015-03-26 21:12:40 UTC
Missed this earlier: Package version of openstack-packstack:
openstack-packstack-2014.2-0.18.dev1462.gbb05296.el7.noarch

Comment 4 Chandan Kumar 2016-05-19 15:45:15 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.