-
Notifications
You must be signed in to change notification settings - Fork 138
Revert change to make preference nncp on worker nodes thatn master nodes #3367
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
Merged
sdatko
merged 1 commit into
openstack-k8s-operators:main
from
evallesp:fix-nncp-uni02beta-uni04delta-ipv6
Oct 8, 2025
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
77 changes: 77 additions & 0 deletions
77
roles/ci_gen_kustomize_values/templates/uni02beta/edpm-nodeset-values/values.yaml.j2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
--- | ||
# source: uni02beta/edpm-nodeset-values/values.yaml.j2 | ||
{% set _ipv = cifmw_ci_gen_kustomize_values_ip_version_var_mapping %} | ||
{% set instances_names = [] %} | ||
{% set _original_nodeset = (original_content.data | default({})).nodeset | default({}) %} | ||
evallesp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{% set _original_nodes = _original_nodeset.nodes | default({}) %} | ||
{% set _original_services = _original_nodeset['services'] | default([]) %} | ||
evallesp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{% set _vm_type = (_original_nodes.keys() | first).split('-')[1] %} | ||
{% for _inst in cifmw_networking_env_definition.instances.keys() %} | ||
{% if _inst.startswith(_vm_type) %} | ||
{% set _ = instances_names.append(_inst) %} | ||
{% endif %} | ||
{% endfor %} | ||
data: | ||
ssh_keys: | ||
authorized: {{ cifmw_ci_gen_kustomize_values_ssh_authorizedkeys | b64encode }} | ||
private: {{ cifmw_ci_gen_kustomize_values_ssh_private_key | b64encode }} | ||
public: {{ cifmw_ci_gen_kustomize_values_ssh_public_key | b64encode }} | ||
nodeset: | ||
ansible: | ||
ansibleUser: "zuul" | ||
ansibleVars: | ||
edpm_fips_mode: "{{ 'enabled' if cifmw_fips_enabled|default(false)|bool else 'check' }}" | ||
timesync_ntp_servers: | ||
- hostname: "{{ cifmw_ci_gen_kustomize_values_ntp_srv | default('pool.ntp.org') }}" | ||
edpm_network_config_os_net_config_mappings: | ||
{% for instance in instances_names %} | ||
edpm-{{ instance }}: | ||
{% if cifmw_baremetal_hosts is defined %} | ||
{% for interface in cifmw_baremetal_hosts[instance].nics %} | ||
nic{{ loop.index }}: "{{ interface.mac }}" | ||
{% endfor %} | ||
{% else %} | ||
{% if hostvars[instance] is defined %} | ||
evallesp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
nic1: "{{ hostvars[instance][_ipv.ansible_default_ipvX].macaddress }}" | ||
{% endif %} | ||
nic2: "{{ cifmw_networking_env_definition.instances[instance].networks.ctlplane.mac_addr }}" | ||
{% endif %} | ||
{% endfor %} | ||
{% if cifmw_ci_gen_kustomize_values_sshd_ranges | default([]) | length > 0 %} | ||
edpm_sshd_allowed_ranges: | ||
{% for range in cifmw_ci_gen_kustomize_values_sshd_ranges %} | ||
- "{{ range }}" | ||
{% endfor %} | ||
{% endif %} | ||
nodes: | ||
{% for instance in instances_names %} | ||
edpm-{{ instance }}: | ||
ansible: | ||
host: {{ cifmw_networking_env_definition.instances[instance].networks.ctlplane[_ipv.ip_vX] }} | ||
hostName: {{ instance }} | ||
networks: | ||
{% for net in cifmw_networking_env_definition.instances[instance].networks.keys() %} | ||
- name: {{ net }} | ||
subnetName: subnet1 | ||
fixedIP: {{ cifmw_networking_env_definition.instances[instance].networks[net][_ipv.ip_vX] }} | ||
{% if net is match('ctlplane') %} | ||
defaultRoute: true | ||
{% endif %} | ||
{% endfor %} | ||
{% endfor %} | ||
{% if ('repo-setup' not in _original_services) and | ||
('repo-setup' in ci_gen_kustomize_edpm_nodeset_predeployed_services) %} | ||
services: | ||
- "repo-setup" | ||
{% for svc in _original_services %} | ||
- "{{ svc }}" | ||
{% endfor %} | ||
{% endif %} | ||
|
||
{% if _vm_type.startswith('compute') %} | ||
nova: | ||
migration: | ||
ssh_keys: | ||
private: {{ cifmw_ci_gen_kustomize_values_migration_priv_key | b64encode }} | ||
public: {{ cifmw_ci_gen_kustomize_values_migration_pub_key | b64encode }} | ||
{% endif %} |
71 changes: 71 additions & 0 deletions
71
roles/ci_gen_kustomize_values/templates/uni02beta/edpm-values/values.yaml.j2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
# source: uni02beta/edpm-values/values.yaml.j2 | ||
{% set _ipv = cifmw_ci_gen_kustomize_values_ip_version_var_mapping %} | ||
{% set instances_names = [] %} | ||
{% set _original_nodeset = (original_content.data | default({})).nodeset | default({}) %} | ||
evallesp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{% set _original_nodes = _original_nodeset.nodes | default({}) %} | ||
{% set _original_services = _original_nodeset['services'] | default([]) %} | ||
{% set _vm_type = (_original_nodes.keys() | first).split('-')[1] %} | ||
{% for _inst in cifmw_networking_env_definition.instances.keys() %} | ||
evallesp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{% if _inst.startswith(_vm_type) %} | ||
{% set _ = instances_names.append(_inst) %} | ||
{% endif %} | ||
{% endfor %} | ||
data: | ||
ssh_keys: | ||
authorized: {{ cifmw_ci_gen_kustomize_values_ssh_authorizedkeys | b64encode }} | ||
private: {{ cifmw_ci_gen_kustomize_values_ssh_private_key | b64encode }} | ||
public: {{ cifmw_ci_gen_kustomize_values_ssh_public_key | b64encode }} | ||
{% if _vm_type.startswith('compute') %} | ||
nova: | ||
migration: | ||
ssh_keys: | ||
private: {{ cifmw_ci_gen_kustomize_values_migration_priv_key | b64encode }} | ||
public: {{ cifmw_ci_gen_kustomize_values_migration_pub_key | b64encode }} | ||
{% endif %} | ||
nodeset: | ||
ansible: | ||
ansibleUser: "zuul" | ||
ansibleVars: | ||
edpm_fips_mode: "{{ 'enabled' if cifmw_fips_enabled|default(false)|bool else 'check' }}" | ||
timesync_ntp_servers: | ||
- hostname: "{{ cifmw_ci_gen_kustomize_values_ntp_srv | default('pool.ntp.org') }}" | ||
edpm_network_config_os_net_config_mappings: | ||
{% for instance in instances_names %} | ||
edpm-{{ instance }}: | ||
{% if hostvars[instance] is defined %} | ||
nic1: "{{ hostvars[instance][_ipv.ansible_default_ipvX].macaddress }}" | ||
{% endif %} | ||
nic2: "{{ cifmw_networking_env_definition.instances[instance].networks.ctlplane.mac_addr }}" | ||
{% endfor %} | ||
{% if cifmw_ci_gen_kustomize_values_sshd_ranges | default([]) | length > 0 %} | ||
edpm_sshd_allowed_ranges: | ||
{% for range in cifmw_ci_gen_kustomize_values_sshd_ranges %} | ||
- "{{ range }}" | ||
{% endfor %} | ||
{% endif %} | ||
{% if ('repo-setup' not in (_original_nodeset['services'] | default([]))) and | ||
('repo-setup' in ci_gen_kustomize_edpm_nodeset_predeployed_services) %} | ||
services: | ||
- "repo-setup" | ||
{% for svc in _original_services %} | ||
- "{{ svc }}" | ||
{% endfor %} | ||
{% endif %} | ||
|
||
nodes: | ||
{% for instance in instances_names %} | ||
edpm-{{ instance }}: | ||
ansible: | ||
host: {{ cifmw_networking_env_definition.instances[instance].networks.ctlplane[_ipv.ip_vX] }} | ||
hostName: {{ instance }} | ||
networks: | ||
{% for net in cifmw_networking_env_definition.instances[instance].networks.keys() %} | ||
- name: {{ net }} | ||
subnetName: subnet1 | ||
{% if net is match('ctlplane') %} | ||
defaultRoute: true | ||
fixedIP: {{ cifmw_networking_env_definition.instances[instance].networks.ctlplane[_ipv.ip_vX] }} | ||
{% endif %} | ||
{% endfor %} | ||
{% endfor %} |
128 changes: 128 additions & 0 deletions
128
roles/ci_gen_kustomize_values/templates/uni02beta/network-values/values.yaml.j2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
--- | ||
# source: uni02beta/network-values/values.yaml.j2 | ||
{% set _ipv = cifmw_ci_gen_kustomize_values_ip_version_var_mapping %} | ||
{% set ns = namespace(interfaces={}, | ||
ocp_index=0, | ||
lb_tools={}) %} | ||
data: | ||
{% for host in cifmw_networking_env_definition.instances.keys() -%} | ||
{% if host is match('^(ocp|crc).*') %} | ||
node_{{ ns.ocp_index }}: | ||
{% set ns.ocp_index = ns.ocp_index+1 %} | ||
name: {{ cifmw_networking_env_definition.instances[host]['hostname'] }} | ||
{% for network in cifmw_networking_env_definition.instances[host]['networks'].values() %} | ||
{% set ns.interfaces = ns.interfaces | | ||
combine({network.network_name: (network.parent_interface | | ||
default(network.interface_name) | ||
) | ||
}, | ||
recursive=true) %} | ||
{{ network.network_name }}_ip: {{ network[_ipv.ip_vX] }} | ||
{% endfor %} | ||
{% endif %} | ||
{% endfor %} | ||
|
||
{% for network in cifmw_networking_env_definition.networks.values() %} | ||
{% set ns.lb_tools = {} %} | ||
{{ network.network_name }}: | ||
dnsDomain: {{ network.search_domain }} | ||
{% if network.tools is defined and network.tools.keys() | length > 0 %} | ||
subnets: | ||
{% for tool in network.tools.keys() %} | ||
{% if tool is match('.*lb$') %} | ||
{% set _ = ns.lb_tools.update({tool: []}) %} | ||
{% endif %} | ||
{% endfor %} | ||
- allocationRanges: | ||
{% for range in network.tools.netconfig[_ipv.ipvX_ranges] %} | ||
- end: {{ range.end }} | ||
start: {{ range.start }} | ||
{% endfor %} | ||
cidr: {{ network[_ipv.network_vX] }} | ||
{% if network[_ipv.gw_vX] is defined %} | ||
gateway: {{ network[_ipv.gw_vX] }} | ||
{% endif %} | ||
name: subnet1 | ||
{% if network.vlan_id is defined %} | ||
vlan: {{ network.vlan_id }} | ||
{% endif %} | ||
{% if ns.lb_tools | length > 0 %} | ||
lb_addresses: | ||
{% for tool in ns.lb_tools.keys() %} | ||
{% for lb_range in network.tools[tool][_ipv.ipvX_ranges] %} | ||
- {{ lb_range.start }}-{{ lb_range.end }} | ||
{% set _ = ns.lb_tools[tool].append(lb_range.start) %} | ||
{% endfor %} | ||
endpoint_annotations: | ||
{{ tool }}.universe.tf/address-pool: {{ network.network_name }} | ||
{{ tool }}.universe.tf/allow-shared-ip: {{ network.network_name }} | ||
{{ tool }}.universe.tf/loadBalancerIPs: {{ ','.join(ns.lb_tools[tool]) }} | ||
{% endfor %} | ||
{% endif %} | ||
{% endif %} | ||
prefix-length: {{ network[_ipv.network_vX] | ansible.utils.ipaddr('prefix') }} | ||
mtu: {{ network.mtu | default(1500) }} | ||
{% if network.vlan_id is defined %} | ||
vlan: {{ network.vlan_id }} | ||
{% if ns.interfaces[network.network_name] is defined %} | ||
iface: {{ network.network_name }} | ||
base_iface: {{ ns.interfaces[network.network_name] }} | ||
{% endif %} | ||
{% else %} | ||
{% if ns.interfaces[network.network_name] is defined %} | ||
iface: {{ ns.interfaces[network.network_name] }} | ||
{% endif %} | ||
{% endif %} | ||
{% if network.tools.multus is defined %} | ||
net-attach-def: | | ||
{ | ||
"cniVersion": "0.3.1", | ||
"name": "{{ network.network_name }}", | ||
"type": "macvlan", | ||
{% if network.vlan_id is defined%} | ||
"master": "{{ network.network_name }}", | ||
{% elif network.network_name == "ctlplane" %} | ||
"master": "ospbr", | ||
{% else %} | ||
"master": "{{ ns.interfaces[network.network_name] }}", | ||
{% endif %} | ||
"ipam": { | ||
"type": "whereabouts", | ||
"range": "{{ network[_ipv.network_vX] }}", | ||
"range_start": "{{ network.tools.multus[_ipv.ipvX_ranges].0.start }}", | ||
"range_end": "{{ network.tools.multus[_ipv.ipvX_ranges].0.end }}" | ||
} | ||
} | ||
{% endif %} | ||
{% endfor %} | ||
|
||
dns-resolver: | ||
config: | ||
server: | ||
- "{{ cifmw_networking_env_definition.networks.ctlplane[_ipv.gw_vX] }}" | ||
search: [] | ||
options: | ||
- key: server | ||
values: | ||
- {{ cifmw_networking_env_definition.networks.ctlplane[_ipv.gw_vX] }} | ||
{% for nameserver in cifmw_ci_gen_kustomize_values_nameservers %} | ||
- key: server | ||
values: | ||
- {{ nameserver }} | ||
{% endfor %} | ||
|
||
routes: | ||
config: [] | ||
|
||
# Hardcoding the last IP bit since we don't have support for endpoint_annotations in the networking_mapper output | ||
rabbitmq: | ||
endpoint_annotations: | ||
metallb.universe.tf/address-pool: internalapi | ||
metallb.universe.tf/loadBalancerIPs: {{ cifmw_networking_env_definition.networks['internalapi'][_ipv.network_vX] | ansible.utils.ipmath(85) }} | ||
rabbitmq-cell1: | ||
endpoint_annotations: | ||
metallb.universe.tf/address-pool: internalapi | ||
metallb.universe.tf/loadBalancerIPs: {{ cifmw_networking_env_definition.networks['internalapi'][_ipv.network_vX] | ansible.utils.ipmath(86) }} | ||
|
||
lbServiceType: LoadBalancer | ||
storageClass: {{ cifmw_ci_gen_kustomize_values_storage_class }} |
14 changes: 14 additions & 0 deletions
14
roles/ci_gen_kustomize_values/templates/uni02beta/olm-values/values.yaml.j2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# source: uni02beta/olm-values/values.yaml.j2 | ||
data: | ||
openstack-operator-image: {{ cifmw_ci_gen_kustomize_values_ooi_image | default('quay.io/openstack-k8s-operators/openstack-operator-index:latest', true) }} | ||
{% if cifmw_ci_gen_kustomize_values_sub_channel is defined %} | ||
openstack-operator-channel: {{ cifmw_ci_gen_kustomize_values_sub_channel }} | ||
{% endif %} | ||
{% if cifmw_ci_gen_kustomize_values_deployment_version is defined %} | ||
{% if cifmw_ci_gen_kustomize_values_deployment_version not in ['v1.0.3', 'v1.0.6'] %} | ||
openstack-operator-version: openstack-operator.{{ cifmw_ci_gen_kustomize_values_deployment_version }} | ||
{% endif %} | ||
{% endif %} | ||
{% if cifmw_ci_gen_kustomize_values_installplan_approval is defined %} | ||
openstack-operator-installplanapproval: {{ cifmw_ci_gen_kustomize_values_installplan_approval }} | ||
{% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.