Packstack install fails with Errors

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux OpenStack Platform 7.0
  • Red Hat Enterprise Linux OpenStack Platform 6.0
  • Red Hat Enterprise Linux OpenStack Platform 5.0
  • Red Hat Enterprise Linux OpenStack Platform 4.0
  • Packstack installer

Issue

  • Installing packstack fails to download cirros image
  • When installing Red Hat Enterprise Linux OpenStack Platform via packstack, I am getting the following error.
Applying 192.168.198.100_neutron_fwaas.pp
Applying 192.168.198.100_osclient.pp
Applying 192.168.198.100_horizon.pp
Applying 192.168.198.100_provision_demo.pp
192.168.198.100_neutron_fwaas.pp:                    [ DONE ]
192.168.198.100_horizon.pp:                          [ DONE ]
192.168.198.100_osclient.pp:                         [ DONE ]
192.168.198.100_provision_demo.pp:                [ ERROR ]
Applying Puppet manifests                         [ ERROR ]

ERROR : Error appeared during Puppet run: 192.168.198.100_provision_demo.pp
Error: Execution of '/usr/bin/glance -T services -I glance -K 0866d6c4212b469d -N http://192.168.198.100:35357/v2.0/ image-create --name=cirros --is-public=Yes --container-format=bare --disk-format=qcow2 --copy-from=http://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img' returned 1: Request returned failure status.
You will find full trace in log /var/tmp/packstack/20140731-130829-n_dbYo/manifests/192.168.198.100_provision_demo.pp.log
Please check log file /var/tmp/packstack/20140731-130829-n_dbYo/openstack-setup.log for more information
172.25.98.243_provision_glance:                   [ ERROR ]
Applying Puppet manifests                         [ ERROR ]

ERROR : Error appeared during Puppet run: 172.25.98.243_provision_glance
Error: Execution of '/usr/bin/openstack image create --format shell cirros --public --container-format=bare --disk-format=qcow2 --copy-from=http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img' returned 1: 400 Bad Request: The HTTP URL is invalid: HTTPConnectionPool(host='download.cirros-cloud.net', port=80): Max retries exceeded with url: /0.3.4/cirros-0.3.4-x86_64-disk.img (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x66180d0>: Failed to establish a new connection: [Errno 110] ETIMEDOUT',)) (HTTP 400)
You will find full trace in log /var/tmp/packstack/20160823-133340-AX9kaY/manifests/172.25.98.243_provision_glance.log

Resolution

  • This error is caused by the cirros image not being able to be downloaded. This could be caused by a number of issues, formost being the system packstack is being installed on does not have access to http://download.cirros-cloud.net/0.3.1/. If you do not have access to this url, then change the following parameter in the packstack answer file.
CONFIG_PROVISION_DEMO=y

Root Cause

  • Using the CONFIG_PROVISION_DEMO=y paremeter in the packstack answer file causes packstack to create a demo user, a public network in the admin tenant, a private network in the demo tenant, and to download and create the cirros image.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

1 Comments

Added a snippet for provision_glance to make article more searchable, since having provision demo=y can also cause this puppet manifest to fail.