Skip to content
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

Ignition: Bad networkd translation #812

Closed
mickymiek opened this issue Jul 26, 2022 · 2 comments · Fixed by flatcar-archive/coreos-overlay#2060
Closed

Ignition: Bad networkd translation #812

mickymiek opened this issue Jul 26, 2022 · 2 comments · Fixed by flatcar-archive/coreos-overlay#2060
Labels
component/ignition kind/bug Something isn't working

Comments

@mickymiek
Copy link

Description

One of our .network file had a little issue when launching flatcar. The ignition file looked fine, the problem occurs when installing flatcar with this file.
The problematic line is this one: Type=!vlan bond bridge, it got translated as Type=!vlan+bond+bridge in the .network file.
We managed to work around it by moving our networkd units to the files section.

Impact

The network interface in question didn't work at all.

Environment and steps to reproduce

FlatCar version: 3227.2.0

Expected behavior

Spaces shouldn't be replaced by plus signs.

@mickymiek mickymiek added the kind/bug Something isn't working label Jul 26, 2022
@tormath1
Copy link
Contributor

tormath1 commented Jul 27, 2022

Hi, thanks for the report!

It's actually an interesting one - in the translation, url.QueryEscape encodes the content of the networkd:

url.QueryEscape("!vlan bond bridge")
%21vlan+bond+bridge

Which is later decoded by Ignition to:

!vlan+bond+bridge

Space is encoded differently (+ or %20) whether it's being in the path or in the query of an URL - Ignition seems to expect the URL to be encoded from the path.

Will patch the converter and add the test case to our coverage.

@tormath1
Copy link
Contributor

Thanks again @mickymiek for raising this issue. Fix should be available in the next batch of releases and a test has been added in our test suite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/ignition kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants