`openstack image create --project <project name>` connects to admin URL in Red Hat OpenStack Platform

Solution In Progress - Updated -


openstack image create --project <project name> connects to admin URL in Red Hat OpenStack Platform

Setting an alternate project for image creation requires the admin endpoint:

[root@rhospbl-4 ~]# openstack help image create | grep project
                              [--tag <tag>] [--project <project>]
                              [--project-domain <project-domain>]
  --project <project>   Set an alternate project on this image (name or ID)
  --project-domain <project-domain>
                        Domain the project belongs to (name or ID). This can
                        be used in case collisions between project names

Whereas changing the user's project (for authentication) does not create this issue:

[root@rhospbl-4 ~]# openstack --debug --os-cloud test --os-project-name admin  image create  --container-format bare --disk-format qcow2 --file image.qcow2 image 2>&1 | grep curl
REQ: curl -g -i -X GET -H "Accept: application/json" -H "User-Agent: osc-lib keystoneauth1/2.12.3 python-requests/2.10.0 CPython/2.7.5"

By default, the admin API can not be reached on the External Network and is accessible to the undercloud only. What are the workarounds?


Red Hat OpenStack Platform 10

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content