RDO packstack glance image-create issue with demo cirros image

asked 2014-11-05 01:35:12 -0600

rstonehouse gravatar image


I am trying to install RDO Juno for the first time on three F20 VMs (controller, neutron, compute) using packstack (openstack-packstack-2014.2-0.5.dev1316.g733aa73.fc22.noarch)

It seems the error comes from running this puppet file: /usr/lib/python2.7/site-packages/packstack/puppet/templates/provision_demo_glance.pp

Error: Execution of '/usr/bin/glance --os-tenant-name services --os-username glance --os-password c4ecf09041c04fa2 --os-auth-url 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: _validate_nonnegativeint

If I repeat the same at the command on the controller I see the same (return code 1), and glance image-list shows "saving" state which a little later turns to "active". So it seems to be working. From /var/log/glance/api.log it seems to return an HTTP 201 code which seems reasonable, and would explain the return code of 1 at the command line. api.log snippet

2014-11-05 06:16:41.688 24442 INFO glance.api.v1.images [-] Triggering asynchronous copy from external source
2014-11-05 06:16:41.690 24442 INFO glance.wsgi.server [-] - - [05/Nov/2014 06:16:41] "POST /v1/images HTTP/1.1" 201 714 1.060009

Having never used glance image-create before I don't know what to expect when it retrieves an image in the background (the output of _validate_nonnegativeint seems a little odd), therefore I don't know if the problem is with glance or the puppet scripts.

Any advice gratefully received. Thanks in advance.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-11-05 03:08:06 -0600

rstonehouse gravatar image

More googling found this script https://github.com/naggappan/data/blo...

It contains the line

sed -i 's/self._validate_nonnegativeint/#self._validate_nonnegativeint/' /usr/lib/python2.6/site-packages/prettytable.py

After adjusting for python 2.7 "glance image-create" now prints a table, which I hope will allow the puppet automation to complete. Now retesting ....

edit flag offensive delete link more


Retesting this shows the above change to prettytable.py works :-)

rstonehouse gravatar imagerstonehouse ( 2014-11-06 02:41:45 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2014-11-05 01:20:39 -0600

Seen: 1,039 times

Last updated: Nov 05 '14