Skip to content

Commit

Permalink
Use default single-nic-vlans.j2
Browse files Browse the repository at this point in the history
We have removed the bespoke API interface used to override nic-config
files in favor or the direct Ansible variable. This change ensures that
we don't remove the variable from the template, which is currently using
the standard single-nic-vlans.j2 file:
https://github.com/openstack-k8s-operators/dataplane-operator/pull/394/files
openstack-k8s-operators/edpm-ansible#243

Signed-off-by: Brendan Shephard <[email protected]>
  • Loading branch information
bshephar committed Sep 21, 2023
1 parent 76241e6 commit 2eed4b1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
8 changes: 2 additions & 6 deletions ci_framework/hooks/playbooks/fetch_compute_facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@
- target:
kind: OpenStackDataPlaneNodeSet
patch: |-
- op: remove
path: /spec/nodeTemplate/ansible/ansibleVars/edpm_network_config_template
- op: replace
path: /spec/nodeTemplate/ansible/ansibleVars/neutron_public_interface_name
value: "{{ crc_ci_bootstrap_networks_out.compute.default.iface | default('') }}"
Expand Down Expand Up @@ -130,9 +127,8 @@
nic2: "{{ crc_ci_bootstrap_networks_out.compute.default.iface | default('ens7') }}"
- op: replace
path: /spec/nodeTemplate/networkConfig
value:
template: |-
path: /spec/nodeTemplate/ansible/ansibleVars/edpm_network_config_override
value: |-
{%- raw %}
---
{{ '{%' }} set mtu_list = [ctlplane_mtu] {{ '%}' }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ variables:
DATAPLANE_KUTTL_CONF: "/home/test-user/out/operator/dataplane-operator/kuttl-test.yaml"
DATAPLANE_KUTTL_DIR: "/home/test-user/out/operator/dataplane-operator/tests/kuttl/tests"
DATAPLANE_KUTTL_NAMESPACE: "dataplane-kuttl-tests"
DATAPLANE_NETWORK_CONFIG_TEMPLATE: "templates/single_nic_vlans/single_nic_vlans.j2"
DATAPLANE_NETWORK_INTERFACE_NAME: "eth0"
DATAPLANE_OVN_METADATA_AGENT_BIND_HOST: "127.0.0.1"
DATAPLANE_REGISTRY_URL: "quay.io/podified-antelope-centos9"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,6 @@ DATAPLANE_COMPUTE_IP ?=192.168.122.100
DATAPLANE_COMPUTE_1_IP ?=192.168.122.101
DATAPLANE_TOTAL_NODES ?=2
DATAPLANE_RUNNER_IMG ?=quay.io/openstack-k8s-operators/openstack-ansibleee-runner:latest
DATAPLANE_NETWORK_CONFIG_TEMPLATE ?=templates/single_nic_vlans/single_nic_vlans.j2
DATAPLANE_NETWORK_INTERFACE_NAME ?=eth0
DATAPLANE_SSHD_ALLOWED_RANGES ?=['192.168.122.0/24']
DATAPLANE_CHRONY_NTP_SERVER ?=pool.ntp.org
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ DATAPLANE_CHRONY_NTP_SERVER ?=pool.ntp.org
METADATA_SHARED_SECRET ?= 1234567842
DATAPLANE_OVN_METADATA_AGENT_BIND_HOST ?=127.0.0.1
DATAPLANE_SSHD_ALLOWED_RANGES ?=['192.168.122.0/24']
DATAPLANE_NETWORK_CONFIG_TEMPLATE ?=templates/single_nic_vlans/single_nic_vlans.j2
DATAPLANE_DEPLOY_STRATEGY_DEPLOY ?= false

BM_PROVISIONING_INTERFACE ?=enp6s0
Expand Down

0 comments on commit 2eed4b1

Please sign in to comment.