RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1206358 - provision_glance does not honour proxy setting when getting image
Summary: provision_glance does not honour proxy setting when getting image
Keywords:
Status: CLOSED EOL
Alias: None
Product: RDO
Classification: Community
Component: openstack-packstack
Version: Juno
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: Kilo
Assignee: Martin Magr
QA Contact: Shai Revivo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-26 21:09 UTC by Larry Brigman
Modified: 2016-05-19 15:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-19 15:45:15 UTC
Embargoed:


Attachments (Terms of Use)

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.


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