Skip to content

net/cmdline: correctly handle static ip= config#201

Merged
OddBloke merged 1 commit into
canonical:masterfrom
xnox:fix-static-ipconfig
Jan 30, 2020
Merged

net/cmdline: correctly handle static ip= config#201
OddBloke merged 1 commit into
canonical:masterfrom
xnox:fix-static-ipconfig

Conversation

@xnox
Copy link
Copy Markdown
Contributor

@xnox xnox commented Jan 30, 2020

It is proto 'none', not 'static' as was mistakenly implemented in
initramfs-tools/cloud-init in the past, yet was never the case in the
klibc ipconfig state file output.

LP: #1861412

@xnox xnox force-pushed the fix-static-ipconfig branch from b6bf688 to 844cdbe Compare January 30, 2020 15:14
Copy link
Copy Markdown
Collaborator

@OddBloke OddBloke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tracking this down! I have a couple of inline requests: one to improve our docs a little, and one because I think this fix is partially incorrect.

Comment thread cloudinit/net/cmdline.py
Comment thread tests/unittests/test_net.py Outdated
It is proto 'none', not 'static' as was mistakenly implemented in
initramfs-tools/cloud-init in the past, yet was never the case in the
klibc ipconfig state file output.

LP: #1861412
@xnox xnox force-pushed the fix-static-ipconfig branch from 844cdbe to b78742d Compare January 30, 2020 16:56
Copy link
Copy Markdown
Collaborator

@OddBloke OddBloke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM now, thank you!

@OddBloke
Copy link
Copy Markdown
Collaborator

Oracle is the one cloud platform I'm aware of that uses initramfs networking, and they use the "dhcp" protocol, so we shouldn't see any change in behaviour there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants