Skip to content

Commit

Permalink
Add image_prefix ansible vars in dataplane crs
Browse files Browse the repository at this point in the history
In downstream, the osp18 image name starts with
rhosp18-openstack and upstream one starts with openstack.

If we update the registry and image namespace in dataplane cr,
it will still pull the upstream image from defaults because
downstream image names are different.

This pr introduces image_prefix var to set image prefix and
avoid such issue.

Signed-off-by: Chandan Kumar <[email protected]>
  • Loading branch information
raukadah authored and pinikomarov committed Nov 4, 2023
1 parent 46e8ee9 commit 5ebc910
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 50 deletions.
13 changes: 7 additions & 6 deletions config/samples/dataplane_v1beta1_openstackdataplanenodeset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,13 @@ spec:
dns_search_domains: []
registry_url: quay.io/podified-antelope-centos9
image_tag: current-podified
edpm_ovn_controller_agent_image: "{{ registry_url }}/openstack-ovn-controller:{{ image_tag }}"
edpm_iscsid_image: "{{ registry_url }}/openstack-iscsid:{{ image_tag }}"
edpm_logrotate_crond_image: "{{ registry_url }}/openstack-cron:{{ image_tag }}"
edpm_nova_compute_container_image: "{{ registry_url }}/openstack-nova-compute:{{ image_tag }}"
edpm_nova_libvirt_container_image: "{{ registry_url }}/openstack-nova-libvirt:{{ image_tag }}"
edpm_neutron_metadata_agent_image: "{{ registry_url }}/openstack-neutron-metadata-agent-ovn:{{ image_tag }}"
image_prefix: openstack
edpm_ovn_controller_agent_image: "{{ registry_url }}/{{ image_prefix }}-ovn-controller:{{ image_tag }}"
edpm_iscsid_image: "{{ registry_url }}/{{ image_prefix }}-iscsid:{{ image_tag }}"
edpm_logrotate_crond_image: "{{ registry_url }}/{{ image_prefix }}-cron:{{ image_tag }}"
edpm_nova_compute_container_image: "{{ registry_url }}/{{ image_prefix }}-nova-compute:{{ image_tag }}"
edpm_nova_libvirt_container_image: "{{ registry_url }}/{{ image_prefix }}-nova-libvirt:{{ image_tag }}"
edpm_neutron_metadata_agent_image: "{{ registry_url }}/{{ image_prefix }}-neutron-metadata-agent-ovn:{{ image_tag }}"
gather_facts: false
enable_debug: false
# edpm firewall, change the allowed CIDR if needed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,13 @@ spec:

registry_url: quay.io/podified-antelope-centos9
image_tag: current-podified
edpm_ovn_controller_agent_image: "{{ registry_url }}/openstack-ovn-controller:{{ image_tag }}"
edpm_iscsid_image: "{{ registry_url }}/openstack-iscsid:{{ image_tag }}"
edpm_logrotate_crond_image: "{{ registry_url }}/openstack-cron:{{ image_tag }}"
edpm_nova_compute_container_image: "{{ registry_url }}/openstack-nova-compute:{{ image_tag }}"
edpm_nova_libvirt_container_image: "{{ registry_url }}/openstack-nova-libvirt:{{ image_tag }}"
edpm_neutron_metadata_agent_image: "{{ registry_url }}/openstack-neutron-metadata-agent-ovn:{{ image_tag }}"
image_prefix: openstack
edpm_ovn_controller_agent_image: "{{ registry_url }}/{{ image_prefix }}-ovn-controller:{{ image_tag }}"
edpm_iscsid_image: "{{ registry_url }}/{{ image_prefix }}-iscsid:{{ image_tag }}"
edpm_logrotate_crond_image: "{{ registry_url }}/{{ image_prefix }}-cron:{{ image_tag }}"
edpm_nova_compute_container_image: "{{ registry_url }}/{{ image_prefix }}-nova-compute:{{ image_tag }}"
edpm_nova_libvirt_container_image: "{{ registry_url }}/{{ image_prefix }}-nova-libvirt:{{ image_tag }}"
edpm_neutron_metadata_agent_image: "{{ registry_url }}/{{ image_prefix }}-neutron-metadata-agent-ovn:{{ image_tag }}"

gather_facts: false
enable_debug: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,13 @@ spec:
edpm_nodes_validation_validate_gateway_icmp: false
registry_url: quay.io/podified-antelope-centos9
image_tag: current-podified
edpm_ovn_controller_agent_image: "{{ registry_url }}/openstack-ovn-controller:{{ image_tag }}"
edpm_iscsid_image: "{{ registry_url }}/openstack-iscsid:{{ image_tag }}"
edpm_logrotate_crond_image: "{{ registry_url }}/openstack-cron:{{ image_tag }}"
edpm_nova_compute_container_image: "{{ registry_url }}/openstack-nova-compute:{{ image_tag }}"
edpm_nova_libvirt_container_image: "{{ registry_url }}/openstack-nova-libvirt:{{ image_tag }}"
edpm_neutron_metadata_agent_image: "{{ registry_url }}/openstack-neutron-metadata-agent-ovn:{{ image_tag }}"
image_prefix: openstack
edpm_ovn_controller_agent_image: "{{ registry_url }}/{{ image_prefix }}-ovn-controller:{{ image_tag }}"
edpm_iscsid_image: "{{ registry_url }}/{{ image_prefix }}-iscsid:{{ image_tag }}"
edpm_logrotate_crond_image: "{{ registry_url }}/{{ image_prefix }}-cron:{{ image_tag }}"
edpm_nova_compute_container_image: "{{ registry_url }}/{{ image_prefix }}-nova-compute:{{ image_tag }}"
edpm_nova_libvirt_container_image: "{{ registry_url }}/{{ image_prefix }}-nova-libvirt:{{ image_tag }}"
edpm_neutron_metadata_agent_image: "{{ registry_url }}/{{ image_prefix }}-neutron-metadata-agent-ovn:{{ image_tag }}"
gather_facts: false
enable_debug: false
# edpm firewall, change the allowed CIDR if needed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,13 @@ spec:
dns_search_domains: []
registry_url: quay.io/podified-antelope-centos9
image_tag: current-podified
edpm_ovn_controller_agent_image: "{{ registry_url }}/openstack-ovn-controller:{{ image_tag }}"
edpm_iscsid_image: "{{ registry_url }}/openstack-iscsid:{{ image_tag }}"
edpm_logrotate_crond_image: "{{ registry_url }}/openstack-cron:{{ image_tag }}"
edpm_nova_compute_container_image: "{{ registry_url }}/openstack-nova-compute:{{ image_tag }}"
edpm_nova_libvirt_container_image: "{{ registry_url }}/openstack-nova-libvirt:{{ image_tag }}"
edpm_neutron_metadata_agent_image: "{{ registry_url }}/openstack-neutron-metadata-agent-ovn:{{ image_tag }}"
image_prefix: openstack
edpm_ovn_controller_agent_image: "{{ registry_url }}/{{ image_prefix }}-ovn-controller:{{ image_tag }}"
edpm_iscsid_image: "{{ registry_url }}/{{ image_prefix }}-iscsid:{{ image_tag }}"
edpm_logrotate_crond_image: "{{ registry_url }}/{{ image_prefix }}-cron:{{ image_tag }}"
edpm_nova_compute_container_image: "{{ registry_url }}/{{ image_prefix }}-nova-compute:{{ image_tag }}"
edpm_nova_libvirt_container_image: "{{ registry_url }}/{{ image_prefix }}-nova-libvirt:{{ image_tag }}"
edpm_neutron_metadata_agent_image: "{{ registry_url }}/{{ image_prefix }}-neutron-metadata-agent-ovn:{{ image_tag }}"
gather_facts: false
enable_debug: false
# edpm firewall, change the allowed CIDR if needed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ spec:
dns_search_domains: []
edpm_chrony_ntp_servers:
- pool.ntp.org
edpm_iscsid_image: '{{ registry_url }}/openstack-iscsid:{{ image_tag }}'
edpm_logrotate_crond_image: '{{ registry_url }}/openstack-cron:{{ image_tag
edpm_iscsid_image: '{{ registry_url }}/{{ image_prefix }}-iscsid:{{ image_tag }}'
edpm_logrotate_crond_image: '{{ registry_url }}/{{ image_prefix }}-cron:{{ image_tag
}}'
edpm_network_config_hide_sensitive_logs: false
edpm_network_config_template: |
Expand Down Expand Up @@ -67,13 +67,13 @@ spec:
{% endfor %}
edpm_nodes_validation_validate_controllers_icmp: false
edpm_nodes_validation_validate_gateway_icmp: false
edpm_nova_compute_container_image: '{{ registry_url }}/openstack-nova-compute:{{
edpm_nova_compute_container_image: '{{ registry_url }}/{{ image_prefix }}-nova-compute:{{
image_tag }}'
edpm_nova_libvirt_container_image: '{{ registry_url }}/openstack-nova-libvirt:{{
edpm_nova_libvirt_container_image: '{{ registry_url }}/{{ image_prefix }}-nova-libvirt:{{
image_tag }}'
edpm_ovn_controller_agent_image: '{{ registry_url }}/openstack-ovn-controller:{{
edpm_ovn_controller_agent_image: '{{ registry_url }}/{{ image_prefix }}-ovn-controller:{{
image_tag }}'
edpm_ovn_metadata_agent_image: '{{ registry_url }}/openstack-neutron-metadata-agent-ovn:{{
edpm_ovn_metadata_agent_image: '{{ registry_url }}/{{ image_prefix }}-neutron-metadata-agent-ovn:{{
image_tag }}'
edpm_selinux_mode: enforcing
edpm_sshd_allowed_ranges:
Expand All @@ -86,6 +86,7 @@ spec:
external_vlan_id: 44
gather_facts: false
image_tag: current-podified
image_prefix: openstack
internal_api_cidr: "24"
internal_api_host_routes: []
internal_api_mtu: 1500
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ spec:
dns_search_domains: []
edpm_chrony_ntp_servers:
- pool.ntp.org
edpm_iscsid_image: '{{ registry_url }}/openstack-iscsid:{{ image_tag }}'
edpm_logrotate_crond_image: '{{ registry_url }}/openstack-cron:{{ image_tag
edpm_iscsid_image: '{{ registry_url }}/{{ image_prefix }}-iscsid:{{ image_tag }}'
edpm_logrotate_crond_image: '{{ registry_url }}/{{ image_prefix }}-cron:{{ image_tag
}}'
edpm_network_config_hide_sensitive_logs: false
edpm_network_config_template: |
Expand Down Expand Up @@ -67,13 +67,13 @@ spec:
{% endfor %}
edpm_nodes_validation_validate_controllers_icmp: false
edpm_nodes_validation_validate_gateway_icmp: false
edpm_nova_compute_container_image: '{{ registry_url }}/openstack-nova-compute:{{
edpm_nova_compute_container_image: '{{ registry_url }}/{{ image_prefix }}-nova-compute:{{
image_tag }}'
edpm_nova_libvirt_container_image: '{{ registry_url }}/openstack-nova-libvirt:{{
edpm_nova_libvirt_container_image: '{{ registry_url }}/{{ image_prefix }}-nova-libvirt:{{
image_tag }}'
edpm_ovn_controller_agent_image: '{{ registry_url }}/openstack-ovn-controller:{{
edpm_ovn_controller_agent_image: '{{ registry_url }}/{{ image_prefix }}-ovn-controller:{{
image_tag }}'
edpm_ovn_metadata_agent_image: '{{ registry_url }}/openstack-neutron-metadata-agent-ovn:{{
edpm_ovn_metadata_agent_image: '{{ registry_url }}/{{ image_prefix }}-neutron-metadata-agent-ovn:{{
image_tag }}'
edpm_selinux_mode: enforcing
edpm_sshd_allowed_ranges:
Expand All @@ -86,6 +86,7 @@ spec:
external_vlan_id: 44
gather_facts: false
image_tag: current-podified
image_prefix: openstack
internal_api_cidr: "24"
internal_api_host_routes: []
internal_api_mtu: 1500
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@ spec:
dns_search_domains: []
registry_url: quay.io/podified-antelope-centos9
image_tag: current-podified
edpm_ovn_controller_agent_image: "{{ registry_url }}/openstack-ovn-controller:{{ image_tag }}"
edpm_iscsid_image: "{{ registry_url }}/openstack-iscsid:{{ image_tag }}"
edpm_logrotate_crond_image: "{{ registry_url }}/openstack-cron:{{ image_tag }}"
image_prefix: openstack
edpm_ovn_controller_agent_image: "{{ registry_url }}/{{ image_prefix }}-ovn-controller:{{ image_tag }}"
edpm_iscsid_image: "{{ registry_url }}/{{ image_prefix }}-iscsid:{{ image_tag }}"
edpm_logrotate_crond_image: "{{ registry_url }}/{{ image_prefix }}-cron:{{ image_tag }}"
edpm_enable_chassis_gw: true
gather_facts: false
enable_debug: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,12 @@ spec:
dns_search_domains: []
registry_url: quay.io/podified-antelope-centos9
image_tag: current-podified
edpm_iscsid_image: "{{ registry_url }}/openstack-iscsid:{{ image_tag }}"
edpm_logrotate_crond_image: "{{ registry_url }}/openstack-cron:{{ image_tag }}"
edpm_nova_compute_container_image: "{{ registry_url }}/openstack-nova-compute:{{ image_tag }}"
edpm_nova_libvirt_container_image: "{{ registry_url }}/openstack-nova-libvirt:{{ image_tag }}"
edpm_neutron_sriov_image: "{{ registry_url }}/openstack-neutron-sriov-agent:{{ image_tag }}"
image_prefix: openstack
edpm_iscsid_image: "{{ registry_url }}/{{ image_prefix }}-iscsid:{{ image_tag }}"
edpm_logrotate_crond_image: "{{ registry_url }}/{{ image_prefix }}-cron:{{ image_tag }}"
edpm_nova_compute_container_image: "{{ registry_url }}/{{ image_prefix }}-nova-compute:{{ image_tag }}"
edpm_nova_libvirt_container_image: "{{ registry_url }}/{{ image_prefix }}-nova-libvirt:{{ image_tag }}"
edpm_neutron_sriov_image: "{{ registry_url }}/{{ image_prefix }}-neutron-sriov-agent:{{ image_tag }}"
gather_facts: false
enable_debug: false
# edpm firewall, change the allowed CIDR if needed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ spec:
edpm_nodes_validation_validate_gateway_icmp: false
registry_url: quay.io/podified-antelope-centos9
image_tag: current-podified
edpm_ovn_controller_agent_image: "{{ registry_url }}/openstack-ovn-controller:{{ image_tag }}"
edpm_iscsid_image: "{{ registry_url }}/openstack-iscsid:{{ image_tag }}"
edpm_logrotate_crond_image: "{{ registry_url }}/openstack-cron:{{ image_tag }}"
edpm_nova_compute_container_image: "{{ registry_url }}/openstack-nova-compute:{{ image_tag }}"
edpm_nova_libvirt_container_image: "{{ registry_url }}/openstack-nova-libvirt:{{ image_tag }}"
edpm_neutron_metadata_agent_image: "{{ registry_url }}/openstack-neutron-metadata-agent-ovn:{{ image_tag }}"
image_prefix: openstack
edpm_ovn_controller_agent_image: "{{ registry_url }}/{{ image_prefix }}-ovn-controller:{{ image_tag }}"
edpm_iscsid_image: "{{ registry_url }}/{{ image_prefix }}-iscsid:{{ image_tag }}"
edpm_logrotate_crond_image: "{{ registry_url }}/{{ image_prefix }}-cron:{{ image_tag }}"
edpm_nova_compute_container_image: "{{ registry_url }}/{{ image_prefix }}-nova-compute:{{ image_tag }}"
edpm_nova_libvirt_container_image: "{{ registry_url }}/{{ image_prefix }}-nova-libvirt:{{ image_tag }}"
edpm_neutron_metadata_agent_image: "{{ registry_url }}/{{ image_prefix }}-neutron-metadata-agent-ovn:{{ image_tag }}"
gather_facts: false
enable_debug: false
# edpm firewall, change the allowed CIDR if needed
Expand Down

0 comments on commit 5ebc910

Please sign in to comment.