Glance does not see images when use api v1

Bug #1511671 reported by Pavel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Invalid
Undecided
Unassigned
python-openstackclient
Invalid
Undecided
Unassigned

Bug Description

Hi! I have problem with Glance when I'm using api v1. Example:

 glance -v --os-image-api-version 1 image-list
+----+------+-------------+------------------+------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+----+------+-------------+------------------+------+--------+
+----+------+-------------+------------------+------+--------+

Or just:
 glance image-list
+----+------+-------------+------------------+------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+----+------+-------------+------------------+------+--------+
+----+------+-------------+------------------+------+--------+

But, when i use:
glance -v --os-image-api-version 2 image-list or nova image-list I see:

+--------------------------------------+-------------+
| ID | Name |
+--------------------------------------+-------------+
| 0d10cf8d-e254-4bb1-8fb5-9ff9e10df1ff | 123 |
| f9904cec-98d0-4350-bbc8-3e51d2a1fdb2 | 213 |

And in dashbord in "Project" I not see my images, in "Admin" panel images have.

What problem mb? Please help me :).

Revision history for this message
Anuj Sharma (anuj-sharma10) wrote :

Hi, I tried to recreate this bug in both the Juno and Kilo release but i did't find any such output as mentioned by you.
what difference i noticed by using API v1 and v2 are ;

 glance -v --os-image-api-version 1 image-list ---> out contains ID,Name,Disk Format,Container Format,Size,Status

 glance -v --os-image-api-version 2 image-list---> out contains ID,Name.
Images in both the API output and in dashboard are same.

Revision history for this message
Steve Martinelli (stevemar) wrote :

filing against glance client

Changed in python-openstackclient:
status: New → Invalid
Revision history for this message
Niall Bunting (niall-bunting) wrote :

This needs some more details to work out what is happening? What versions are you using and are you using any specific configs?

Changed in python-glanceclient:
status: New → Incomplete
Revision history for this message
Pavel (buffoon2001) wrote :

Version openstack - Kilo, config standart:

cat /etc/glance/glance-api.conf | grep -v ^# | grep -v ^$

[DEFAULT]
debug = False
bind_host = 0.0.0.0

bind_port = 9292

log_file = /var/log/glance/api.log

backlog = 4096

show_image_direct_url = True

container_formats=ami,ari,aki,bare,ovf,ova

disk_formats=ami,ari,aki,vhd,vmdk,raw,qcow2,vdi,iso

location_strategy = store_type

registry_host = 172.28.83.182

registry_port = 9191

registry_client_protocol = http

notification_driver = noop

rabbit_host = 172.28.83.129, 172.28.83.131, 172.28.83.133
rabbit_port = 5672
rabbit_use_ssl = false
rabbit_userid = cinder
rabbit_password = cinder123
rabbit_virtual_host = /
rabbit_notification_exchange = glance
rabbit_notification_topic = notifications
rabbit_durable_queues = False

qpid_notification_exchange = glance
qpid_notification_topic = notifications
qpid_hostname = localhost
qpid_port = 5672
qpid_username =
qpid_password =
qpid_sasl_mechanisms =
qpid_reconnect_timeout = 0
qpid_reconnect_limit = 0
qpid_reconnect_interval_min = 0
qpid_reconnect_interval_max = 0
qpid_reconnect_interval = 0
qpid_heartbeat = 5
qpid_protocol = tcp
qpid_tcp_nodelay = True

delayed_delete = False
scrub_time = 43200
scrubber_datadir = /var/lib/glance/scrubber
image_cache_dir = /var/lib/glance/image-cache/

[oslo_policy]

[database]
connection=mysql://glance:Service123@172.28.83.187/glance

[oslo_concurrency]

[keystone_authtoken]
auth_uri = http://172.28.83.182:5000
auth_uri = http://172.28.83.182:35357
auth_host = 172.28.83.182
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = glance
admin_password = password
project_domain_id = default
user_domain_id = default
auth_plugin = password
project_name = service
username = glance
password = password
revocation_cache_time = 10

[paste_deploy]
config_file = /etc/glance/glance-api-paste.ini

[store_type_location_strategy]
store_type_preference = store_type

[profiler]

[task]

[taskflow_executor]
[glance_store]
stores = glance.store.swift.Store,
default_store = swift
filesystem_store_datadir = /var/lib/glance/images/
swift_store_auth_version = 2
swift_store_auth_address = http://172.28.83.182:5000/v2.0/
swift_store_user = service:glance
swift_store_key = DataPasbaSEWort692
swift_store_container = glance
swift_store_create_container_on_put = True
swift_store_large_object_size = 5120
swift_store_large_object_chunk_size = 200
s3_store_host = s3.amazonaws.com
s3_store_access_key = <20-char AWS access key>
s3_store_secret_key = <40-char AWS secret key>
s3_store_bucket = <lowercased 20-char aws access key>glance
s3_store_create_bucket_on_put = False
sheepdog_store_address = localhost
 sheepdog_store_port = 7000
 sheepdog_store_chunk_size = 64

As backend swift or local store it does not matter, the same problem.

Revision history for this message
Ian Cordasco (icordasc) wrote :

I cannot reproduce this issue. It has been marked incomplete for over a year, so I'm closing it as invalid.

Changed in python-glanceclient:
status: Incomplete → Invalid
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.