Skip to content

Conversation

@evallesp
Copy link
Contributor

@evallesp evallesp commented Mar 21, 2025

We now can select the multus_type between "bridge" and macvlan"
so ci_multus would render each NetworkAttachmentDefinition appropiate
without the assumption that each NAD has the same multus type defined at
cifmw_ci_multus_default_nad_type.

For a given NAD, if there's no multus_type variable, then it'd take
(as previously) the default one.

For adding the multus_type to cifmw_networking_env_definition we need to add
the argument "type" for the input of networking_mapper.

@evallesp evallesp requested a review from a team as a code owner March 21, 2025 09:48
@evallesp evallesp changed the title DNM Check bridge with network name Mar 21, 2025
@evallesp evallesp force-pushed the bridge-name-as-network-name branch from d8fe43c to bdd9a2c Compare March 21, 2025 12:54
Copy link
Contributor

@danpawlik danpawlik left a comment

Choose a reason for hiding this comment

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

Just change commit message and would be good ;)

@evallesp evallesp changed the title Check bridge with network name DNM Check bridge with network name Mar 21, 2025
@evallesp evallesp force-pushed the bridge-name-as-network-name branch from bdd9a2c to 113aee0 Compare March 21, 2025 13:53
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/eca194b7b9ac40a388841ed3a32e1b19

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 41m 22s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 25m 04s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 18m 51s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 7m 46s
cifmw-pod-pre-commit FAILURE in 7m 31s
✔️ build-push-container-cifmw-client SUCCESS in 20m 42s
✔️ cifmw-molecule-ci_multus SUCCESS in 15m 12s
cifmw-molecule-libvirt_manager FAILURE in 10m 13s
cifmw-molecule-networking_mapper FAILURE in 5m 09s
cifmw-molecule-reproducer FAILURE in 8m 12s

@lewisdenny lewisdenny marked this pull request as draft March 23, 2025 23:44
@evallesp evallesp force-pushed the bridge-name-as-network-name branch from 113aee0 to a0dec14 Compare March 25, 2025 10:05
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 25, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@evallesp evallesp force-pushed the bridge-name-as-network-name branch 2 times, most recently from c497149 to b48f41b Compare March 25, 2025 10:42
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/4d4091cfd8da4ea6a3155150d1d83049

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 48m 34s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 10m 52s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 25m 17s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 30s
cifmw-pod-pre-commit FAILURE in 7m 46s
✔️ build-push-container-cifmw-client SUCCESS in 20m 41s
✔️ cifmw-molecule-ci_multus SUCCESS in 13m 12s
cifmw-molecule-libvirt_manager FAILURE in 10m 36s
cifmw-molecule-networking_mapper FAILURE in 5m 21s
cifmw-molecule-reproducer FAILURE in 7m 19s

@evallesp evallesp force-pushed the bridge-name-as-network-name branch from b48f41b to 9164234 Compare April 8, 2025 08:38
evallesp pushed a commit to evallesp/ci-framework that referenced this pull request Apr 8, 2025
Swtich the scenario to scenarios/centos-9/ironic.yml
Update hooks/playbooks/control_plane_ironic.yml to include kustomization
patches to configure ironic and Nova Cell with computeDriver: ironic.IronicDriver

Depends-On: openstack-k8s-operators/install_yamls#969
Depends-On: openstack-k8s-operators#2816
Conflicts:
  zuul.d/projects.yaml
@evallesp evallesp force-pushed the bridge-name-as-network-name branch 2 times, most recently from ae331fa to 179c625 Compare April 8, 2025 10:28
hjensas added a commit to hjensas/ci-framework that referenced this pull request Apr 8, 2025
Swtich the scenario to scenarios/centos-9/ironic.yml
Update hooks/playbooks/control_plane_ironic.yml to include kustomization
patches to configure ironic and Nova Cell with computeDriver: ironic.IronicDriver

Depends-On: openstack-k8s-operators#2816

Conflicts:
  zuul.d/projects.yaml
hjensas added a commit to hjensas/ci-framework that referenced this pull request Apr 8, 2025
Swtich the scenario to scenarios/centos-9/ironic.yml
Update hooks/playbooks/control_plane_ironic.yml to include kustomization
patches to configure ironic and Nova Cell with computeDriver: ironic.IronicDriver

Depends-On: openstack-k8s-operators#2816

Conflicts:
  zuul.d/projects.yaml
  hooks/playbooks/control_plane_ironic.yml
@evallesp evallesp force-pushed the bridge-name-as-network-name branch 2 times, most recently from af1c269 to a619b47 Compare April 8, 2025 12:08
@evallesp
Copy link
Contributor Author

evallesp commented Apr 8, 2025

recheck

@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/5f25172d9dad4b7d95b3a72369a58a2e

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 43m 24s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 07m 53s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 29m 19s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 01s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 06s
✔️ build-push-container-cifmw-client SUCCESS in 21m 40s
cifmw-molecule-ci_multus FAILURE in 27m 27s

@evallesp
Copy link
Contributor Author

evallesp commented Apr 8, 2025

recheck

@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/9a8f17790bc44ba78f33c85505032618

✔️ openstack-k8s-operators-content-provider SUCCESS in 26m 03s
podified-multinode-edpm-deployment-crc RETRY_LIMIT in 11m 58s
cifmw-crc-podified-edpm-baremetal RETRY_LIMIT in 2m 04s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 40s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 00s
build-push-container-cifmw-client RETRY_LIMIT in 1m 41s
cifmw-molecule-ci_multus FAILURE in 25m 27s

@evallesp evallesp marked this pull request as ready for review April 15, 2025 10:09
We now can select the multus_type between "bridge" and macvlan"
so ci_multus would render each NetworkAttachmentDefinition appropiate
without the assumption that each NAD has the same multus type defined at
cifmw_ci_multus_default_nad_type.

For a given NAD, if there's no multus_type variable, then it'd take
(as previously) the default one.

For adding the multus_type to cifmw_networking_env_definition we need to add
the argument "type" for the input of networking_mapper.
@github-actions
Copy link

This PR is stale because it has been for over 15 days with no activity.
Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label May 11, 2025
@dasm
Copy link
Contributor

dasm commented May 12, 2025

@evallesp I'd love to merge the change. Do you have a testproject to verify this functionality?

@github-actions github-actions bot removed the Stale label May 13, 2025
@evallesp
Copy link
Contributor Author

@evallesp I'd love to merge the change. Do you have a testproject to verify this functionality?

We have tested this in podified-multinode-edpm-deployment-crc github-check, but @hjensas has #2524 and I want to hold on until that one is green.

Moving this back to DNM.

@evallesp evallesp changed the title Add multus_type to cifmw_networking_env_definition variable DNM: Add multus_type to cifmw_networking_env_definition variable May 14, 2025
@evallesp
Copy link
Contributor Author

hi @dasm could you check again: in conjuction with: #2987 We've checked that multus_type and multus_attach are working as expected:

Now we can set several NADS where each of one can be bridge and macvlan, also we can select if the bridge multus plugin can be attached to the network name (used for attach to linux-bridge) or interface name (When it's attached directly to the interface port)

This can be checked at: https://logserver.rdoproject.org/599/rdoproject.org/5998c66ff82441258d8fde8e176d5286/controller/ci-framework-data/logs/openstack-k8s-operators-openstack-must-gather/namespaces/openstack/nad.log

apiVersion: v1
items:

  • apiVersion: k8s.cni.cncf.io/v1
    kind: NetworkAttachmentDefinition
    metadata:
    .
    .
    .
    spec:
    config: |-
    {
    "cniVersion": "0.3.1",
    "name": "baremetal",
    "type": "bridge",
    "bridge": "baremetal",
    "ipam": {
    "type": "whereabouts",
    "range": "172.20.1.0/24",
    "range_start": "172.20.1.30",
    "range_end": "172.20.1.70"
    }
    }
  • apiVersion: k8s.cni.cncf.io/v1
    kind: NetworkAttachmentDefinition
    metadata:
    .
    .
    .
    spec:
    config: |
    {
    "cniVersion": "0.3.1",
    "name": "ctlplane",
    "type": "macvlan",
    "master": "ospbr",
    "ipam": {
    "type": "whereabouts",
    "range": "192.168.122.0/24",
    "range_start": "192.168.122.30",
    "range_end": "192.168.122.70"
    }
    }

@evallesp evallesp changed the title DNM: Add multus_type to cifmw_networking_env_definition variable Add multus_type to cifmw_networking_env_definition variable May 22, 2025
@github-actions
Copy link

github-actions bot commented Jun 7, 2025

This PR is stale because it has been for over 15 days with no activity.
Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jun 7, 2025
@evallesp evallesp removed the Stale label Jun 9, 2025
@bshewale bshewale merged commit 88bb724 into openstack-k8s-operators:main Jun 20, 2025
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants