Merge ~asakkurr/cloud-init:azure_report_ready into cloud-init:master
Proposed by
Aswin Rajamannar
Status: | Merged |
---|---|
Approved by: | Chad Smith |
Approved revision: | ccd13677c9659b493452872228f39bda666ea0b6 |
Merge reported by: | Server Team CI bot |
Merged at revision: | not available |
Proposed branch: | ~asakkurr/cloud-init:azure_report_ready |
Merge into: | cloud-init:master |
Diff against target: |
164 lines (+74/-9) 3 files modified
cloudinit/sources/DataSourceAzure.py (+12/-3) cloudinit/url_helper.py (+11/-6) tests/unittests/test_datasource/test_azure.py (+51/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
Paul Meyer (community) | Approve | ||
Review via email: mp+355805@code.launchpad.net |
Commit message
azure: report ready to fabric after reprovision and reduce logging
When reusing a preprovisioned VM, report ready to Azure fabric as soon as
we get the reprovision data and the goal state so that we are not delayed
by the cloud-init stage switch, saving 2-3 seconds. Also reduce logging
when polling IMDS for reprovision data.
LP: #1799594
Description of the change
When reusing a preprovisioned VM, report ready to Azure fabric as soon as we get the reprovision data and the goal state so that we are not delayed by the cloud-init stage switch, saving 2-3 seconds. Also reduce logging when polling IMDS for reprovision data.
To post a comment you must log in.
LGTM, but if you want to shave off some more time, it might be time to stop depending on get_metadata_ from_fabric to report ready, because that does a bunch more (retrieve goalstate and maybe certificates). helpers. azure._ report_ ready(. ..) needs only the goalstate incarnation, container_id and instance_id. I bet we already have those from the data we read from IMDS?
cloudinit.