Bug 1147716

Summary: packstack install fails because Glance provisioning doesn't work behind proxy
Product: [Community] RDO Reporter: John Haller <john.haller>
Component: openstack-packstackAssignee: Javier Peña <jpena>
Status: CLOSED CURRENTRELEASE QA Contact: Ami Jeain <ajeain>
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: aortega, chale, derekh, jpena, lbezdick, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-packstack-2014.2-0.7.dev1340.gd4df05a.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-17 01:04:35 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 John Haller 2014-09-29 23:33:01 UTC
Description of problem:
The juno-3 packstack attempts to install the cirros cloud image from
http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img
This doesn't work if the cloud is being installed behind a proxy, as
glance does not support proxy servers, see OpenStack bug:
https://bugs.launchpad.net/glance/+bug/1263067
Even if glance did support a proxy, there is no way to specify any proxy
for Glance in the packstack answer file.


Version-Release number of selected component (if applicable):
openstack-packstack-2014.2-0.2.dev1266.g63d9c50.el7.centos.noarch
openstack-packstack-puppet-2014.2-0.2.dev1266.g63d9c50.el7.centos.noarch
(One of the above)

How reproducible:
By installing RDO juno-3 behind an environment needing a http proxy.




Steps to Reproduce:
1. Set up system which can only access external web sites through a proxy server
2. Attempt to install juno-3 milestone in that environment.
3. 

Actual results:
Note that the failure in provision_glance.pp (timeout in my case, error in others)

Expected results:
provision_glance.pp succeeds

Additional info:
One suggested change is to make the source of the cirros image a packstack
parameter defaulting to the http URL. The RDO installation can be changed to
a file or local URL if installing from behind a proxy.

Comment 2 John Haller 2014-10-22 16:34:49 UTC
Note that setting CONFIG_PROVISION_DEMO to n allows the installation to proceed, so that is a workaround. The cirros image then needs to be added afterwards from a location which doesn't need to use a proxy, if the full demo environment is desired.

Comment 3 Javier Peña 2014-11-05 11:47:22 UTC
Posted https://review.openstack.org/132813 and https://review.openstack.org/132823 for review. 

Together, they add a new configuration option (CONFIG_PROVISION_DEMO_CIRROS_URL) to allow specifying where the Cirros image should be obtained from (local path or URL), and fix the puppet-glance module to work properly with local paths.

Comment 4 Javier Peña 2014-11-12 11:34:58 UTC
For the sake of completeness, the new configuration option was finally called CONFIG_PROVISION_CIRROS_URL to allow reuse for tempest.

Comment 5 Alan Pevec 2014-12-17 01:04:35 UTC
openstack-packstack-2014.2-0.7.dev1340.gd4df05a.fc22 is available in the public RDO Juno repository