Error bootstrapping on openstack when specifying bootstrap-image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Medium
|
Nicolas Vinuesa |
Bug Description
This bug was identified after this discourse post https:/
When trying to bootstrap on an openstack cloud (on this case it is on canonical's internal serverstack), and passing the --bootstrap-image flag (along with the --metadata-source flag), this error is returned:
ERROR cannot cache image metadata: cannot save cloud image metadata: duplicate metadata record for image id 60b52fed-
and on the debug logs:
2023-10-18 08:00:21 DEBUG cmd supercommand.go:528 error stack:
github.
github.
github.
2023-10-18 08:00:21 DEBUG juju.cmd.jujud main.go:286 jujud complete, code 0, err <nil>
This is a reproducer (on serverstack):
juju --debug bootstrap serverstack c2 \
--config network=
--config default-
--config default-
--bootstrap-
--bootstrap-
--bootstrap-
--metadata-source ~/simplestreams
Changed in juju: | |
milestone: | none → 3.2.4 |
assignee: | nobody → Nicolas Vinuesa (nvinuesa) |
Changed in juju: | |
milestone: | 3.2.4 → 3.2.5 |
tags: | added: openstack-provider |
Changed in juju: | |
milestone: | 3.2.5 → none |
Something pertinent in the log output on Discourse, is that we appear to get 2 events from the txn watcher:
2023-09-26 13:43:07 DEBUG juju.state. pool.txnwatcher txnwatcher.go:487 txn watcher: storedResources 287f022d91b1059 cc67b04055d6a9d 50b545e511d3c21 d1de1b4d9e4b067 6c23f4ed1ff0dc2 2978b1c8903aa60 e7101d #2 pool.txnwatcher txnwatcher.go:487 txn watcher: storedResources 287f022d91b1059 cc67b04055d6a9d 50b545e511d3c21 d1de1b4d9e4b067 6c23f4ed1ff0dc2 2978b1c8903aa60 e7101d #3
2023-09-26 13:43:07 DEBUG juju.state.
At a glace it looks like we act on them distinctly, causing the duplication error.