Ask Your Question

instack-install-undercloud fails with glance: error: unrecognized arguments: --public

asked 2015-03-07 16:42:20 -0500

edwberger gravatar image

updated 2015-03-09 11:04:17 -0500

rbowen gravatar image

I'm trying to build a virtual openstack test platform using the directions at and using CentOS 7 or Fedora 21 on the base machine, and defining F20 and exporting NODE_DIST="fedora" , but the instack-install-undercloud command fails with..

+ glance image-create --name bm-deploy-kernel --public --disk-format aki
usage: glance [--version] [-d] [-v] [--get-schema] [--timeout TIMEOUT]
glance: error: unrecognized arguments: --public

Is this a known issue with a workaround or should I just try again with F20 on the base KVM server?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2015-03-09 11:50:37 -0500

bnemec gravatar image

Are you sure it's instack-install-undercloud that's failing? I believe that call actually happens in instack-prepare-for-overcloud: (

The workaround is to edit /usr/bin/instack-prepare-for-overcloud and change "--public" to "--is-public True". Note that there are actually 4 instances of --public in that file, and they will all need to be changed.

edit flag offensive delete link more

answered 2015-03-09 12:20:21 -0500

larsks gravatar image

The --public flag was recently removed from the glance command line client; the equivalent is --is-public true. I believe that fixes for this already exist in Instack, but they may not have showed up in a release yet.

You can fix the script manually by simply replacing the --public flag.

edit flag offensive delete link more

answered 2015-06-22 16:04:13 -0500

Napo Mokoetle gravatar image

Make sure you source the admin environment after adding glance version 2 ( export OS_IMAGE_API_VERSION=2 ) to your environment script. e.g.

root@ts036953:/home/pssuser# source

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-03-07 16:42:20 -0500

Seen: 3,171 times

Last updated: Jun 22 '15