Ray,
I still cannot reproduce this. Can you expand on "the old keys might not be valid"? AFAICT ceph charm doesn't remove keys upon broken client relation. In fact, ceph charm doesn't have a client-relation-departed hook. And next time, the client rejoins the relation with ceph, the charm client-relation-joined hook will try "ceph ... auth get-or-create <service>" key, which means if a key was created before for a service it will be simply returned again.
Ray, relation- departed hook. And next time, the client rejoins the relation with ceph, the charm client- relation- joined hook will try "ceph ... auth get-or-create <service>" key, which means if a key was created before for a service it will be simply returned again.
I still cannot reproduce this. Can you expand on "the old keys might not be valid"? AFAICT ceph charm doesn't remove keys upon broken client relation. In fact, ceph charm doesn't have a client-
Below is the bundle I created for testing.
openstack-services:
dataset- size: 50% server:
monitor- count: 2 1397-11e2- 82e5-53567c8d32 dc
monitor- secret: AQCXrnZQwI7KGBA AiPofmKEXKxu5bU zoYLVkbQ= =
osd-devices: /dev/vdb
osd-reformat: "yes"
ephemeral- unmount: /mnt
admin- password: openstack
admin- token: ubuntutesting
series: trusty
services:
mysql:
branch: lp:charms/mysql
constraints: mem=1G
options:
rabbitmq-
branch: lp:charms/rabbitmq-server
constraints: mem=1G
ceph:
branch: lp:charms/ceph
num_units: 2
constraints: mem=1G
options:
fsid: 6547bd3e-
keystone:
branch: lp:charms/keystone
constraints: mem=1G
options:
glance:
branch: lp:charms/glance
constraints: mem=1G
relations:
- [ keystone, mysql ]
- [ glance, mysql ]
- [ glance, keystone ]
- [ glance, ceph ]
After juju destroy-relation & add-relation, an image was created successfully.
ubuntu@ cbjchen- bastion: ~/openstack- charm-testing$ juju destroy-relation ceph glance cbjchen- bastion: ~/openstack- charm-testing$ glance image-create --name cirros26 --disk-format qcow2 --container-format bare --is-public True --file ../images/cirros 8250-49f8- af39-f97dd27220 91 cbjchen- bastion: ~/openstack- charm-testing$ juju add-relation ceph glance cbjchen- bastion: ~/openstack- charm-testing$ glance image-create --name cirros26 --disk-format qcow2 --container-format bare --is-public True --file ../images/cirros ------- -----+- ------- ------- ------- ------- ------- --+ ------- -----+- ------- ------- ------- ------- ------- --+ 5894a4e60d87366 19 | 8281-4394- 9a58-47e179d7f8 58 | 0ae933a988c57d0 23 | ------- -----+- ------- ------- ------- ------- ------- --+
ubuntu@
Request returned failure status.
500 Internal Server Error
Failed to upload image 35b3f5f4-
(HTTP 500)
ubuntu@
ubuntu@
+------
| Property | Value |
+------
| checksum | 133eae9fb1c98f4
| container_format | bare |
| created_at | 2014-11-18T21:50:27 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | d008db19-
| is_public | True |
| min_disk | 0 |
| min_ram | 0 |
| name | cirros26 |
| owner | 092e164fbef6489
| protected | False |
| size | 13200896 |
| status | active |
| updated_at | 2014-11-18T21:50:28 |
| virtual_size | None |
+------
Please let me know if there are any steps that I missed in order to manifest this issue? Thanks.