Juju returns no cached images even though there are

Bug #1771462 reported by Haw Loeung
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Undecided
Unassigned
2.2
Won't Fix
Undecided
Unassigned

Bug Description

Hi,

On an environment where the controller is running Juju 2.2.9, 'juju cached-images' returns nothing even though there are.

| prodstack-is@somehost:~$ juju cached-images
| No images to display.
| prodstack-is@somehost:~$ juju cached-images --series bionic
| No images to display.

Via the MongoDB shell, you can see that there are some:

| juju:PRIMARY> db.cloudimagemetadata.find({ series: 'bionic'})
| { "_id" : "daily:bootstack-ps45:bionic:amd64:::keystone catalog", "image_id" : "524c30cc-6936-4c40-a70d-1fc9cce4bc90", "stream" : "daily", "region" : "bootstack-ps45", "version" : "18.04", "series" : "bionic", "arch" : "amd64", "root_storage_size" : NumberLong(0), "date_created" : NumberLong("1524800885951272146"), "source" : "keystone catalog", "priority" : 20, "txn-revno" : NumberLong(2), "txn-queue" : [ ] }
| { "_id" : "released:bootstack-ps45:bionic:amd64:::keystone catalog", "image_id" : "4d86f175-43d7-40a1-a2b9-8cd8e91d629c", "stream" : "released", "region" : "bootstack-ps45", "version" : "18.04", "series" : "bionic", "arch" : "amd64", "root_storage_size" : NumberLong(0), "date_created" : NumberLong("1524861418065155195"), "source" : "keystone catalog", "priority" : 20, "txn-revno" : NumberLong(2), "txn-queue" : [ ] }

This was discovered when trying to remove cached OS images in Juju to work around that known caching bug.

Revision history for this message
Haw Loeung (hloeung) wrote :

Also, for future travellers, this command below (via MongoDB shell) removes the cached OS images:

| db.cloudimagemetadata.deleteMany({ series: 'bionic' })

Revision history for this message
Anastasia (anastasia-macmood) wrote :

@Haw Loeung (hloeung),

This indeed looks like a bug :(

However, since Juju 2.2.9, we have changed how we deal with OS images. We now expire them often - I think after 5 mins. So this issue should not affect any currently supported versions of Juju (2.3.x and 2.4.x).

Since we are also very unlikely to release another 2.2.x, I'll mark this report as Won't Fix.

I believe that we might still have a problem in that command if the expiration period is configurable. I'll mark the report as Incomplete in hopes to reproduce similar behavior in our current world :D

Changed in juju:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for juju because there has been no activity for 60 days.]

Changed in juju:
status: Incomplete → Expired
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.