glance hitting publicurl from utility container

Bug #1565726 reported by Michael Davies
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Confirmed
Undecided
Unassigned
OpenStack-Ansible
Confirmed
High
Unassigned

Bug Description

So I was trying to register some images for Nova's use, i.e.

glance image-create --debug --name my-whole-disk-image --visibility public --disk-format qcow2 --container-format bare < new-image.qcow2

And I can see that it's trying to hit the publicurl i.e.

"Starting new HTTP connection (1): A.B.C.D"

I did this from a utility container inside an OSA install. Looking at the endpoints registered with keystone I see:

root@nodeXX_utility_container:/tmp/images/user# openstack endpoint list | grep glance
| 7d1c9c35f7e94f6f95102f1ae6827e19 | RegionOne | glance | image | True | internal | http://192.168.100.2:9292
| 9115a33f7caf499aabd930461afc8bc0 | RegionOne | glance | image | True | admin | http://192.168.100.2:9292
| 9e1aa7f6a5874c06abdb119d024df0e5 | RegionOne | glance | image | True | public | http://A.B.C.D:9292

This is very strange, I would have expected this to hit the internalurl.

I also tried the openstack client, i.e.
openstack image create --name my-whole-disk-image --public --disk-format qcow2 --container-format bare < new-image.qcow2

Looking at openrc I see this:

 Ansible managed: /etc/ansible/roles/openstack_openrc/templates/openrc.j2 modified on 2016-03-28 18:22:48 by root on XXXXXX
export LC_ALL=C

# COMMON CINDER ENVS
export CINDER_ENDPOINT_TYPE=internalURL

# COMMON NOVA ENVS
export NOVA_ENDPOINT_TYPE=internalURL

# COMMON OPENSTACK ENVS
export OS_ENDPOINT_TYPE=internalURL
export OS_USERNAME=admin
export OS_PASSWORD=XXXXXXXXXXXXXXXXXX
export OS_PROJECT_NAME=admin
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://192.168.100.2:5000/v3
export OS_NO_CACHE=1
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default

# For openstackclient
export OS_IDENTITY_API_VERSION=3
export OS_AUTH_VERSION=3

So I don't know what's going on.

As for versions, last commit to openstack-ansible is:

commit fa1fb3c96c7927fe428747eee140f3922ed422fd
Merge: 4317c3e 6f9ef5f
Author: Jenkins <email address hidden>
Date: Mon Apr 4 04:59:23 2016 +0000

Revision history for this message
Kairat Kushaev (kkushaev) wrote :

I am wondering if that would help you:
https://review.openstack.org/#/c/301214/
Looks like we are ignoring endpoint type also:
https://bugs.launchpad.net/python-glanceclient/+bug/1563902

Changed in openstack-ansible:
status: New → Confirmed
importance: Undecided → High
milestone: none → 13.0.1
Ian Cordasco (icordasc)
Changed in python-glanceclient:
status: New → Confirmed
Revision history for this message
Kairat Kushaev (kkushaev) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.