openstack-charmers / zosci-config

1 stars 17 forks source link

Add default juju model if needed. #317

Closed freyes closed 7 months ago

freyes commented 7 months ago

Juju stopped creating a default model when a controller is bootstrapped, this new task checks for the existence of the model, if it's not present, it creates it.

freyes commented 7 months ago

For the record, this should fix this class of errors:

2024-02-13 16:24:38.964160 | TASK [juju-setup : Configure cloudinit-userdata model-default]
2024-02-13 16:24:39.598075 | focal-medium | ERROR there are no default model values for "/home/ubuntu/cloudinit-userdata.yaml"
2024-02-13 16:24:40.026331 | focal-medium | ERROR
2024-02-13 16:24:40.026799 | focal-medium | {
2024-02-13 16:24:40.026932 | focal-medium |   "delta": "0:00:00.293940",
2024-02-13 16:24:40.027028 | focal-medium |   "end": "2024-02-13 16:24:39.605085",
2024-02-13 16:24:40.027136 | focal-medium |   "msg": "non-zero return code",
2024-02-13 16:24:40.027236 | focal-medium |   "rc": 1,
2024-02-13 16:24:40.027313 | focal-medium |   "start": "2024-02-13 16:24:39.311145"
2024-02-13 16:24:40.027385 | focal-medium | }