Skip to content

Add suse network config support#452

Merged
petrutlucian94 merged 2 commits into
cloudbase:masterfrom
mihaelabalutoiu:add-suse-network-config-support
Jul 8, 2026
Merged

Add suse network config support#452
petrutlucian94 merged 2 commits into
cloudbase:masterfrom
mihaelabalutoiu:add-suse-network-config-support

Conversation

@mihaelabalutoiu

@mihaelabalutoiu mihaelabalutoiu commented Jun 4, 2026

Copy link
Copy Markdown
Member

This PR adds:

  • Complete SUSE network configuration support during OS morphing, fixing post-migration network connectivity issues (notably on SLES 16).
  • Implementations of set_net_config and disable_predictable_nic_names for SUSE, with support for both wicked-based (SLES/openSUSE 12/15) and NetworkManager-based (SLES 16) systems.
  • A refactor that moves common ifcfg/NetworkManager configuration logic into the shared base class, reducing code duplication and ensuring existing network profiles are backed up before new ones are written.

@mihaelabalutoiu mihaelabalutoiu force-pushed the add-suse-network-config-support branch 2 times, most recently from 9afb3e3 to 918f222 Compare June 30, 2026 06:11
Comment thread coriolis/osmorphing/suse.py Outdated
Comment thread coriolis/osmorphing/suse.py Outdated
Comment thread coriolis/osmorphing/suse.py
@mihaelabalutoiu mihaelabalutoiu force-pushed the add-suse-network-config-support branch from 918f222 to 6d19fac Compare July 2, 2026 14:34
Comment thread coriolis/osmorphing/suse.py Outdated
Comment thread coriolis/osmorphing/suse.py Outdated
Comment thread coriolis/osmorphing/suse.py Outdated
@mihaelabalutoiu mihaelabalutoiu force-pushed the add-suse-network-config-support branch from 6d19fac to 1d7999b Compare July 3, 2026 13:26
@mihaelabalutoiu

Copy link
Copy Markdown
Member Author

I made the changes, please take a look now. Thank you!

Comment thread coriolis/osmorphing/base.py Outdated
Comment thread coriolis/osmorphing/suse.py Outdated
@mihaelabalutoiu mihaelabalutoiu force-pushed the add-suse-network-config-support branch from 1d7999b to 387c973 Compare July 3, 2026 14:01
@fabi200123

Copy link
Copy Markdown
Contributor

LGTM

Comment thread coriolis/osmorphing/suse.py Outdated
'mv "%s" "%s%s"' % (cfg_path, cfg_path, backup_file_suffix))
LOG.debug("Backed up ifcfg profile '%s'", cfg_path)

def _write_nic_configs(self, nics_info):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see that the nics_info format is entirely provider specific, all we need is the number of nics:

"nics_info": {
"type": "array",
"items": {
"type": "object"
}
},

I guess it's reasonable since providers can override this and handle provider specific nic info.

@petrutlucian94

Copy link
Copy Markdown
Member

Oh, and please add a PR description.

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
@mihaelabalutoiu mihaelabalutoiu force-pushed the add-suse-network-config-support branch from 387c973 to 0458a90 Compare July 8, 2026 12:25
@mihaelabalutoiu

Copy link
Copy Markdown
Member Author

Oh, and please add a PR description.

Done, I updated the code, please take a look now and sorry about that.

@petrutlucian94 petrutlucian94 merged commit 0132f8a into cloudbase:master Jul 8, 2026
5 checks passed
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.

4 participants