juju metadata generate-image fails with ubuntu@24.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Simon Richardson |
Bug Description
I have an OpenStack Jammy/Yoga cloud that use for personal workloads as well as experiments and reproducer.
While experimenting with a POC deployment, that started with a brand new controller, I noticed that Juju's meatdata generator fails to understand ubuntu@24.04 base and falls back to what seems to be a hard coded 22.04 state:
I tested 3.3, 3.4 and 3.5 and all behave the same way:
$ openstack image list | grep Ubuntu-24.04
| 3b7a074e-
| 6f34e1ec-
$ sudo snap refresh juju --channel 3.3
juju (3.3/stable) 3.3.7 from Canonical✓ refreshed
$ mkdir ss
$ juju metadata generate-image -d ~/ss -i 3b7a074e-
Image metadata files have been written to:
/home/ubuntu/
$ cat ss/images/
{
"products": {
"arch": "amd64",
}
}
}
},
"updated": "Sat, 12 Oct 2024 15:59:59 -0700",
"format": "products:1.0",
"content_id": "com.ubuntu.
}
$ rm -r ss && mkdir ss
$ sudo snap refresh juju --channel 3.4
juju (3.4/stable) 3.4.6 from Canonical✓ refreshed
$ juju metadata generate-image -d ~/ss -i 3b7a074e-
Image metadata files have been written to:
/home/ubuntu/
$ cat ss/images/
{
"products": {
"arch": "amd64",
}
}
}
},
"updated": "Sat, 12 Oct 2024 16:00:43 -0700",
"format": "products:1.0",
"content_id": "com.ubuntu.
}
$ rm -r ss && mkdir ss
$ sudo snap refresh juju --channel 3.5
juju (3.5/stable) 3.5.4 from Canonical✓ refreshed
$ juju metadata generate-image -d ~/ss -i 3b7a074e-
Image metadata files have been written to:
/home/ubuntu/
$ cat ss/images/
{
"products": {
"arch": "amd64",
}
}
}
},
"updated": "Sat, 12 Oct 2024 16:01:13 -0700",
"format": "products:1.0",
"content_id": "com.ubuntu.
}
Current workaround is to add the 24.04 images post controller bootstrap:
$ juju metadata add-image --base ubuntu@24.04 --arch amd64 --region RegionOne --stream released 3b7a074e-
$ juju metadata add-image --base ubuntu@24.04 --arch arm64 --region RegionOne --stream released 6f34e1ec-
However there are other issues that will be reported in a separate bug.
Please let me know if you need anything else.
Best,
Alan
Changed in juju: | |
assignee: | Vitaly Antonenko (anvial) → Simon Richardson (simonrichardson) |
importance: | Undecided → High |
milestone: | none → 3.5.7 |
status: | New → Triaged |
Changed in juju: | |
status: | Triaged → In Progress |
Changed in juju: | |
milestone: | 3.5.7 → none |
status: | In Progress → Fix Released |
This appear to be completely broken:
| 38362029- cb55-4704- a9e8-5f81354e64 ec | Ubuntu-18.04-LTS | active | 5257-4ee1- 8552-9168f9fbbe f0 | Ubuntu- 18.04-LTS- arm64 | active |
| 46370444-
$ juju metadata generate-image -d ~/ss -i 38362029- cb55-4704- a9e8-5f81354e64 ec --base ubuntu@18.04 -r RegionOne -u $OS_AUTH_URL
Image metadata files have been written to: ss/images/ streams/ v1.
/home/ubuntu/
$ cat ss/images/ streams/ v1/com. ubuntu. cloud-released- imagemetadata. json
"com.ubuntu. cloud:server: 22.04:amd64" : {
"version" : "22.04",
"versions" : {
"20241012" : {
" items": {
"38362029- cb55-4704- a9e8-5f81354e64 ec": {
"id": "38362029- cb55-4704- a9e8-5f81354e64 ec",
"region" : "RegionOne",
"endpoint" : "https:/ /keystone. int.hrizn. cloud:5000/ v3"
}
} cloud:custom"
{
"products": {
"arch": "amd64",
}
}
}
},
"updated": "Sat, 12 Oct 2024 16:12:51 -0700",
"format": "products:1.0",
"content_id": "com.ubuntu.
}
Everything is 22.04 LTS :-D