Glance HA Kilo: clustered glance image downloads fail 2/3 of the time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glance (Juju Charms Collection) |
Fix Released
|
Critical
|
James Page |
Bug Description
In an HA Openstack (Kilo) Autopilot deployment with 4 physical machines and ceph object and ceph block under glance, we have 3 glance units deployed, a VIP allocated for glance and the glance units related via hacluster.
A very high incidence of glance being deployed in a broken state that results in 404s for image downloads 2/3 of the time using glance cmdline client via "glance image-download <UUID>" or during instance creation in Horizon. Horizon fails with a generic "No host found" error which can be mapped to a glance "Image not found <UUID>" in nova-cloud-
python-glanceclient responds with:
glance image-download a6a1271d-
<html>
<head>
<title>404 Not Found</title>
</head>
<body>
<h1>404 Not Found</h1>
Image /var/lib/
Since our HA cluster sets up the 3 units behind a VIP, failing 2/3 of the time leads me to believe we have a split brain problem. Either the image uploads were pushed to the default before the ha cluster was set up, or some units are not participating in the cluster and writing objects data to ceph.
OSA uploads two images to the openstack cloud and I have found the image files on either 1 or 2 separate glance units in the default filestore /var/lib/
juju run --service glance 'ls /var/lib/
- MachineId: 0/lxc/2
Stdout: ""
UnitId: glance/0
- MachineId: 2/lxc/7
Stdout: |
ef873813-
UnitId: glance/1
- MachineId: 3/lxc/1
Stdout: |
a6a1271d-
UnitId: glance/2
Connections to the shared mysql vip are all defined the same in each /etc/glance/
Below are the debug logs from glance-api.log and glance-registry.log for one of the 404s glance image-download attempts
# Glance-api.log
https:/
# glance-registry
https:/
Related branches
- Liam Young (community): Approve
-
Diff: 59 lines (+17/-19)1 file modifiedtemplates/kilo/glance-api.conf (+17/-19)
description: | updated |
Changed in glance (Juju Charms Collection): | |
importance: | Undecided → High |
Changed in glance (Juju Charms Collection): | |
status: | New → In Progress |
Changed in glance (Juju Charms Collection): | |
assignee: | nobody → James Page (james-page) |
Making pastes more widely visible
# /var/log/ glance/ glance- api.log paste.ubuntu. com/11227463/
http://
# /var/log/ glance/ glance- registry. log
http:// paste.ubuntu. com/11227493/