Merge ~chad.smith/cloud-init:bug/1798189-instance-data-fallback into cloud-init:master
Proposed by
Chad Smith
Status: | Merged |
---|---|
Approved by: | Scott Moser |
Approved revision: | 5900f42a3ae3ed2c5fd90dbbccb037e15d7d5966 |
Merge reported by: | Server Team CI bot |
Merged at revision: | not available |
Proposed branch: | ~chad.smith/cloud-init:bug/1798189-instance-data-fallback |
Merge into: | cloud-init:master |
Diff against target: |
220 lines (+126/-19) 4 files modified
cloudinit/cmd/devel/render.py (+16/-7) cloudinit/cmd/devel/tests/test_render.py (+44/-1) cloudinit/cmd/query.py (+18/-10) cloudinit/cmd/tests/test_query.py (+48/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Scott Moser | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Review via email:
|
Commit message
instance-data: fallback to instance-data.json if sensitive is absent.
On cloud-init upgrade path from 18.3 to 18.4 cloud-init changed how
instance-data is written. Cloud-init changes instance-data.json from root
read-only to redacted world-readable content, and provided a separate
unredacted instance-
Since instance-data is only rewritten from cache on
reboot, the query and render tools needed fallback to use the 'old'
instance-data.json if the new sensitive file isn't yet present.
This avoids error messages from tools about an absebt
/run/instance-
LP: #1798189
To post a comment you must log in.
PASSED: Continuous integration, rev:5900f42a3ae 3ed2c5fd90dbbcc b037e15d7d5966 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 411/
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 411/rebuild
https:/