_get_data() is invoked twice in init-local for Azure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
On provisioning boot _get_data() is called once in init-local.
On subsequent boots for Ubuntu 18.04 and 20.04 it is called twice when datasource update is considered for "boot-new-instance" and 'boot".
grep -e Cloud-init -e get_data -e Update /var/log/
2022-09-15 04:04:44,981 - util.py[DEBUG]: Cloud-init v. 22.2-0ubuntu1~
2022-09-15 04:04:45,155 - __init__.py[DEBUG]: Update datasource metadata and network config due to events: boot-new-instance
2022-09-15 04:04:45,156 - handlers.py[DEBUG]: start: azure-ds/_get_data: _get_data
2022-09-15 04:04:45,930 - handlers.py[DEBUG]: finish: azure-ds/_get_data: SUCCESS: _get_data
2022-09-15 04:04:48,030 - util.py[DEBUG]: Cloud-init v. 22.2-0ubuntu1~
2022-09-15 04:04:57,975 - util.py[DEBUG]: Cloud-init v. 22.2-0ubuntu1~
2022-09-15 04:04:59,856 - util.py[DEBUG]: Cloud-init v. 22.2-0ubuntu1~
2022-09-15 04:05:00,036 - util.py[DEBUG]: Cloud-init v. 22.2-0ubuntu1~
<reboot>
2022-09-15 04:06:11,100 - util.py[DEBUG]: Cloud-init v. 22.2-0ubuntu1~
2022-09-15 04:06:11,128 - __init__.py[DEBUG]: Update datasource metadata and network config due to events: boot-new-instance
2022-09-15 04:06:11,128 - handlers.py[DEBUG]: start: azure-ds/_get_data: _get_data
2022-09-15 04:06:12,062 - handlers.py[DEBUG]: finish: azure-ds/_get_data: SUCCESS: _get_data
2022-09-15 04:06:12,111 - __init__.py[DEBUG]: Update datasource metadata and network config due to events: boot
2022-09-15 04:06:12,111 - handlers.py[DEBUG]: start: azure-ds/_get_data: _get_data
2022-09-15 04:06:12,415 - handlers.py[DEBUG]: finish: azure-ds/_get_data: SUCCESS: _get_data
2022-09-15 04:06:14,700 - util.py[DEBUG]: Cloud-init v. 22.2-0ubuntu1~
2022-09-15 04:06:16,934 - util.py[DEBUG]: Cloud-init v. 22.2-0ubuntu1~
2022-09-15 04:06:17,774 - util.py[DEBUG]: Cloud-init v. 22.2-0ubuntu1~
2022-09-15 04:06:17,858 - util.py[DEBUG]: Cloud-init v. 22.2-0ubuntu1~
description: | updated |
summary: |
- _get_data() is invoked twice in init-local for Azure + _get_data() is invoked twice in init-local for Azure on 18.04 & 20.04 |
summary: |
- _get_data() is invoked twice in init-local for Azure on 18.04 & 20.04 + _get_data() is invoked twice in init-local for Azure |
description: | updated |
Agreed this is a problem on Bionic and Focal due to obj.pkl being removed per boot and the datasource also being set to generate network config PER_BOOT. I'll add more context on the potential issue later today.