Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs_user/modules/proc_adopting-the-networking-service.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,23 @@ $ oc patch openstackcontrolplane openstack --type=merge --patch '
dhcp_agent_notification = True
'
----
+
====
[NOTE]
====
If you are adopting the {bare_metal_first_ref}, you must configure the ML2 mechanism drivers to include both `ovn` and `baremetal`:

[source,shell]
----
$ oc patch openstackcontrolplane openstack --type=merge --patch '
spec:
neutron:
template:
ml2MechanismDrivers:
- ovn
- baremetal
'
----
====

.Verification
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ $ oc get openstackcontrolplanes.core.openstack.org <name> -o jsonpath='{.spec.ir
+
** Replace `<name>` with the name of your existing `OpenStackControlPlane` CR, for example, `openstack-control-plane`.
* The {identity_service_first_ref}, {networking_first_ref}, and {image_service_first_ref} are operational.
* The {networking_service} is configured with the ML2 baremetal mechanism driver. For more information, see xref:adopting-the-networking-service_adopt-control-plane[Adopting the {networking_service}].
+
[NOTE]
If you use the {bare_metal} in a Bare Metal as a Service configuration, do not adopt the {compute_service_first_ref} before you adopt the {bare_metal}.
Expand Down
8 changes: 8 additions & 0 deletions tests/roles/neutron_adoption/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,11 @@ neutron_config_patch: |
networkAttachments:
- internalapi
neutron_retry_delay: 5

ironic_ml2_baremetal_patch:
spec:
neutron:
template:
ml2MechanismDrivers:
- ovn
- baremetal
7 changes: 7 additions & 0 deletions tests/roles/neutron_adoption/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
{{ oc_header }}
oc patch openstackcontrolplane openstack --type=merge --patch '{{ neutron_config_patch }}'

- name: Patch neutron ml2MechanismDrivers to inlcude ml2 baremetal
when: ironic_adoption|bool
ansible.builtin.shell: |
{{ shell_header }}
{{ oc_header }}
oc patch openstackcontrolplane openstack --type=merge --patch '{{ ironic_ml2_baremetal_patch }}'

- name: wait for Neutron to start up
ansible.builtin.shell: |
{{ shell_header }}
Expand Down