Test migration to openstack afterburn provider#2009
Test migration to openstack afterburn provider#2009alejandro-ripoll wants to merge 0 commit intoflatcar:mainfrom alejandro-ripoll:main
Conversation
tormath1
left a comment
There was a problem hiding this comment.
I started a build to see how it goes and for you to test. We also need a changelog entry. Something like:
OpenStack: Fixed ...
There was a problem hiding this comment.
You might have noticed that this file is actually linked:
$ ls -l
total 12
lrwxrwxrwx 1 tormath1 tormath1 22 May 22 11:52 bootengine-0.0.38-r30.ebuild -> bootengine-9999.ebuild
-rw-r--r-- 1 tormath1 tormath1 1775 May 22 13:50 bootengine-9999.ebuild
-rw-r--r-- 1 tormath1 tormath1 139 Oct 26 2023 metadata.xml
We usually bump the linked ebuild when we do a modification (example: e2f6180)
There was a problem hiding this comment.
Hi, the changelog entry should be added to bootengine repository as part of flatcar/bootengine#96, right?
Thanks
There was a problem hiding this comment.
That's ok to have it here: https://github.com/flatcar/scripts/tree/main/changelog/changes. What do you think about considering this as a change rather than a bugfixe ?
Something like:
OpenStack: Changed metadata hostname source order. The service first try with the config drive then fallback on the metadata service. (scripts#2009)
There was a problem hiding this comment.
The changelog should be added in the changes section, as the source of the metadata changes in a way that we should inform the users. Should be good to go once the changelog is added.
There was a problem hiding this comment.
Also, please squash the commits into one, with a clear commit message and description refering to the upstream change from the bootengine and coreos/afterburn#462.
Usually, on a new release, users read the flatcar/scripts changelog and not the bootengine part.
|
Hello @andrejro, CI is 🟢 Checking the logs, I see this: while the current behavior is: so it looks good - the metadata service first tries to use config-drive then it fallbacks on the metadata service. Can I ask you to test in your case? The image is available here: http://bincache.flatcar-linux.net/images/amd64/9999.0.1+tormath1-pr-2009-openstack/flatcar_production_openstack_image.img Thanks! |
|
Build action triggered: https://github.com/flatcar/scripts/actions/runs/9269465483 |
|
Hello, we need to be careful with this breaking change, as the OpenStack config drive is created ONCE when the instance is first provisioned and the metadata inside will never change afterwards, while the HTTP metadata is changing everytime the instance properties change. For example, the metadata contains network interfaces information - in this case, the config drive ISO gets created with the network interface information from the initial instance create and will not change if a new network interface is added to the VM. Whereas the HTTP network metadata will change whenever such OpenStack instance (VM) network adapter is added / removed. |
Interesting. Thanks for this input! To me one will decide to use whether the config-drive whether the instance metadata service (for example in the case of @alejandro-ripoll where the HTTP metadata service is not available / reachable) - so if the user relies on the instance metadata service this one should not be impacted by this change? |
|
@tormath1 This change gives precedence to the config drive, this is why it is a breaking change. In most scenarios, it should not be an issue (other than the mentioned above, when during the lifecycle of the VM, the config drive contents diverge - are not updated vs the HTTP metadata). Maybe we can get some input from OpenStack Flatcar users before we get this merge? I think at this moment, the change is okay as long as it gets a proper changelog changes entry. |
@ader1990 yes of course, I was thinking merging this to Alpha / Beta to get feedback from Beta users before it hits Stable in a few releases from now. |
| @@ -0,0 +1 @@ | |||
| - OpenStack: Changed metadata hostname source order. The service first try with the config drive then fallback on the metadata service. ([scripts#2009](https://github.com/flatcar/scripts/pull/2009)) | |||
There was a problem hiding this comment.
| - OpenStack: Changed metadata hostname source order. The service first try with the config drive then fallback on the metadata service. ([scripts#2009](https://github.com/flatcar/scripts/pull/2009)) | |
| - OpenStack: Changed metadata hostname source order. The service first tries with the config drive then fallback on the metadata service. ([scripts#2009](https://github.com/flatcar/scripts/pull/2009)) |
| KEYWORDS="~amd64 ~arm ~arm64 ~x86" | ||
| else | ||
| CROS_WORKON_COMMIT="8da532c809c89a9c434ada0fa9532a1c1bf49f4c" # flatcar-master | ||
| CROS_WORKON_COMMIT="26f6147ef9388048edcecedba931621874f3d448" # flatcar-master |
There was a problem hiding this comment.
| CROS_WORKON_COMMIT="26f6147ef9388048edcecedba931621874f3d448" # flatcar-master | |
| CROS_WORKON_COMMIT="fb2631ce5e6a21d044c8dca73f59db01f9d5abcf" # flatcar-master |
It's now merged - we can use the commit ID from the flatcar-master branch.
|
|
||
| EAPI=7 | ||
| CROS_WORKON_PROJECT="flatcar/bootengine" | ||
| CROS_WORKON_PROJECT="alejandro-ripoll/bootengine" |
There was a problem hiding this comment.
| CROS_WORKON_PROJECT="alejandro-ripoll/bootengine" | |
| CROS_WORKON_PROJECT="flatcar/bootengine" |
It's now merged, we can switch back to the Flatcar repo.
There was a problem hiding this comment.
The Linux changes should not be there. You can update your branch then rebase your commit on it.
|
Raised #2010 including only changelog entry. |
@alejandro-ripoll I'm sorry, maybe I've been unclear but this PR is good. No need to close it and to open a new one with only the changelog entry. |
|
@tormath1, sorry but I think I messed the PR up since I recreated my flatcar/scripts fork. |
Tested this image on my environment and seems to be working as expected. Thanks |
Test migration to openstack afterburn provider
Test migration to
openstackafterburn provider.Closes: flatcar/Flatcar#1445
How to use
[ describe what reviewers need to do in order to validate this PR ]
Testing done
CI: http://jenkins.infra.kinvolk.io:8080/job/container/job/packages_all_arches/4058/cldsv/
changelog/directory (user-facing change, bug fix, security fix, update)/bootand/usrsize, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.