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

osism-generic network not working with ubuntu 22.04 #495

Closed
maliblatt opened this issue Apr 14, 2023 · 11 comments
Closed

osism-generic network not working with ubuntu 22.04 #495

maliblatt opened this issue Apr 14, 2023 · 11 comments

Comments

@maliblatt
Copy link

seems that here is missing a file for ubuntu 22.04:
https://github.com/osism/ansible-collection-commons/tree/main/roles/network/vars/interfaces

TASK [osism.commons.network : Gather variables for each operating system] ******************************************************************
fatal: [node1]: FAILED! => {"msg": "No file was found when using first_found."}

@osfrickler
Copy link
Member

Can you try to use network_type: netplan? That's what we are using for our 22.04 nodes, maybe we can switch the default for that?

@Nils98Ar
Copy link

We consider switching to netplan too. Is there any „migration work“ needed apart from changing network_type config to netplan and re-deploy network?

@berendt
Copy link
Member

berendt commented Apr 17, 2023

On Ubuntu 22.04 you have to use Netplan instead of the old interfaces file. You have to set network_type to netplan and you have to migrate the old network configuration in host_vars to the Netplan. Please have a look at https://github.com/osism/testbed/blob/main/inventory/group_vars/testbed-managers.yml#L35-L39 and https://github.com/osism/ansible-collection-commons/blob/main/roles/network/templates/netplan/01-osism.yaml.j2.

Netplan documentation itself is available at https://netplan.readthedocs.io/en/stable/.

@osfrickler We can now switch from old interfaces files to Netplan by default.

@Nils98Ar
Copy link

Could anybody provide an example snippet how the up: section can be translated to netplan?https://docs.osism.tech/deployment/services/loadbalancer.html#add-health-manager-interface-configuration-to-config-repository

@berendt
Copy link
Member

berendt commented Apr 17, 2023

Should no longer be necessary with Zed. When using tenant networks for Octavia, everything is created there as well.

https://github.com/openstack/kolla-ansible/blob/master/ansible/roles/octavia/tasks/hm-interface.yml#L55-L84

Have a look at https://github.com/osism/testbed/blob/main/inventory/group_vars/testbed-managers.yml#L40-L44 for a sample how to do the up thing from interfaces.

@Nils98Ar
Copy link

Thank you!

Ok so the the whole hm interface in the host_vars should be unnecessary.

It looks like most of the OSISM octavia documentation has been automated in kolla-ansible or made default in osism/ansible-defaults and osism/cfg-generics in the meantime ;)

I will try to delete the redundant config.

@maliblatt
Copy link
Author

thanks for the explanation. we have tested netplan in a fresh environment and it works as expected.
Our old environments will be migrated to netplan later, so this issue can be closed.

@berendt berendt closed this as completed Apr 19, 2023
@Nils98Ar
Copy link

@berendt It should be mentioned in the release notes that migration to netplan is needed when upgrading to Ubuntu 22.04.

@flyersa
Copy link

flyersa commented May 3, 2023

@berendt It should be mentioned in the release notes that migration to netplan is needed when upgrading to Ubuntu 22.04.

I dont see this as a need in OSISM Release Notes, this is purely a issue of the OS and not of OSISM

berendt added a commit to osism/release that referenced this issue May 3, 2023
Related to osism/issues#495

Signed-off-by: Christian Berendt <berendt@osism.tech>
@berendt
Copy link
Member

berendt commented May 3, 2023

Let me mention it.

berendt added a commit to osism/release that referenced this issue May 3, 2023
Related to osism/issues#495

Signed-off-by: Christian Berendt <berendt@osism.tech>
@fkr
Copy link
Collaborator

fkr commented May 3, 2023

Let me mention it.

Imho this is a good service to the users. Thanks @berendt.

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

No branches or pull requests

6 participants