-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DLPX-90398 netplan apply run by cloud-init fails on boot in OCI #475
DLPX-90398 netplan apply run by cloud-init fails on boot in OCI #475
Conversation
5b4b9c1
to
a353dcc
Compare
This looks fine to me. One thing nags at me, though: |
Thanks again for filing the bug upstream and referencing that issue in this PR. From the looks of your repo, it seems you have the ability to lay down files specifically for OracleCloud in your files/oci subdir and this PR removes that file. If you have that capacity to opinonate cloud-init |
a353dcc
to
a18dd5b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable, I can't comment on using OpenStack
vs. Oracle
.. but if Oracle
is the right value to use, the change looks good..
I don't know of we have a negative test like seb's asking..
@sebroy I've run this test via DCoA by cloning an external variant with my bits and verifying that |
Thanks for the pointer @blackboxsw. I've implemented your suggestion |
Problem
Recent cloud-init upstream changes changed the way a "datasource" is detected. A "datasource" is a cloud-init term that is used to detect and run cloud-specific code. The fact that cloud-init longer detects the correct datasource causes DCoA issues because the SSH keys it relies on are no longer configured on the engine.
I filed an issue upstream canonical/cloud-init#5091 and was advised that we should consider using the newer Oracle datasource. In this repo, we have hardcoded cloud-init configuration that causes the OpenStack datasource to be used.
Solution
Remove this configuration so that cloud-init detects Oracle cloud correctly.Replace it such that the Oracle data source is used based on feedback from upstream maintainers.
Testing Done
In progress
ab-pre-push -p oci: http://selfservice.jenkins.delphix.com/job/appliance-build-orchestrator-pre-push/8177/
oci-snapshots with these bits: http://selfservice.jenkins.delphix.com/job/delphix-build-and-snapshots/job/oci-snapshots/8/console
Verified datasource detection in the cloud-init logs:
On internal variants, verified cloud-init configuration and that authorized_keys now contains my SSH key:
On an external variant, verified cloud-init configuration and that authorized_keys is empty: