Comment 5 for bug 1511025

Revision history for this message
Stuart McLaren (stuart-mclaren) wrote :

Ok, myself and Niall looked at this.

Short story: we were able to make it work by updating our config, but it took a while to figure out.

 $ glance image-create --disk-format raw --container-format bare --name x1 --file /etc/fstab
 +------------------+--------------------------------------+
 | Property | Value |
 +------------------+--------------------------------------+
 | checksum | 9cb02fe7fcac26f8a25d6db3109063ae |
 | container_format | bare |
 | created_at | 2015-11-13T15:04:31Z |
 | disk_format | raw |
 | id | 2cb520a7-8bb0-411d-b40f-2a0c7b418314 |
 | min_disk | 0 |
 | min_ram | 0 |
 | name | x1 |
 | owner | 88cffb9c8aee457788066c97b359585b |
 | protected | False |
 | size | 145 |
 | status | active |
 | tags | [] |
 | updated_at | 2015-11-13T15:04:31Z |
 | virtual_size | None |
 | visibility | private |
 +------------------+--------------------------------------+

 $ swift list glance_2cb520a7-8bb0-411d-b40f-2a0c7b418314
 2cb520a7-8bb0-411d-b40f-2a0c7b418314
 2cb520a7-8bb0-411d-b40f-2a0c7b418314-00001

Basically -- like a lot of folks -- we were using a devstack install and trying to switch it from Single tenant mode to Multi tenant mode.

We switched on multi-tenant:

swift_store_multi_tenant = True

But saw failures.

The trick was to comment out the following lines:

# default_swift_reference = ref1
#swift_store_config_file = /etc/glance/glance-swift-store.conf

These were confusing some of the spagetti^H^H^H logic around the correct swift_url. (As Clay found, the keystone url was being used, not the swift one.)

I'll add some feedback to this documentation change: https://review.openstack.org/#/c/242583/

We could also look at not starting the server if the config is not self consistent.