Skip to content

Commit c11dd58

Browse files
authored
Merge pull request #451 from stackhpc/upstream/2024.1-2025-07-11
Synchronise 2024.1 with upstream
2 parents 3047a18 + 0251eda commit c11dd58

File tree

9 files changed

+30
-53
lines changed

9 files changed

+30
-53
lines changed

ansible/inventory/group_vars/all/kolla

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ overcloud_container_image_regex_map:
209209
enabled: "{{ kolla_enable_neutron | bool }}"
210210
- regex: "neutron-\\(dhcp\\|l3\\|linuxbridge\\|openvswitch\\)-agent"
211211
enabled: "{{ kolla_build_neutron_ovs | default(kolla_enable_neutron | bool and not kolla_enable_ovn | bool) }}"
212+
- regex: neutron-bgp-dragent
213+
enabled: "{{ kolla_enable_neutron_bgp_dragent | bool }}"
212214
- regex: neutron-mlnx-agent
213215
enabled: "{{ kolla_enable_neutron_mlnx | bool }}"
214216
- regex: neutron-ovn-agent
@@ -547,6 +549,7 @@ kolla_enable_manila: "no"
547549
kolla_enable_masakari: "no"
548550
kolla_enable_mistral: "no"
549551
kolla_enable_multipathd: "no"
552+
kolla_enable_neutron_bgp_dragent: "no"
550553
kolla_enable_neutron_mlnx: "no"
551554
kolla_enable_neutron_provider_networks: "no"
552555
kolla_enable_neutron_sriov: "no"
Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,9 @@
11
---
22
# Switch configuration.
33

4-
###############################################################################
5-
# Authentication configuration.
6-
7-
# For Juniper switches, this defines a 'provider' argument to the junos_*
8-
# modules.
9-
switch_junos_provider:
10-
host: "{{ ansible_host|default(inventory_hostname) }}"
11-
username: "{{ ansible_user }}"
12-
password: "{{ ansible_ssh_pass|default(omit) }}"
13-
ssh_keyfile: "{{ ansible_ssh_private_key_file|default(omit) }}"
14-
timeout: "{{ switch_junos_timeout }}"
15-
164
###############################################################################
175
# Configuration format.
186

197
# Format of configuration in junos_switch_config and
208
# junos_switch_interface_config. May be one of 'set', 'text' or 'json'.
219
switch_junos_config_format: text
22-
23-
###############################################################################
24-
# Timeout.
25-
26-
# Timeout in seconds for communicating with the network device either for
27-
# connecting or sending commands.
28-
switch_junos_timeout: 10

ansible/physical-network.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@
169169

170170
- role: junos-switch
171171
junos_switch_type: "{{ switch_type }}"
172-
junos_switch_provider: "{{ switch_junos_provider }}"
173172
junos_switch_config_format: "{{ switch_junos_config_format }}"
174173
junos_switch_config: "{{ switch_config }}"
175174
junos_switch_interface_config: "{{ switch_interface_config }}"

ansible/roles/junos-switch/README.md

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
JunOS Switch
22
============
33

4-
This role configures Juniper switches using the `junos` Ansible modules. It
5-
provides a fairly minimal abstraction of the configuration interface provided
6-
by the `junos` modules, allowing for application of arbitrary switch
7-
configuration options.
4+
This role configures Juniper switches using the `junipernetworks.junos` Ansible
5+
collection. It provides a fairly minimal abstraction of the configuration
6+
interface provided by the collection, allowing for application of arbitrary
7+
switch configuration options.
88

99
Requirements
1010
------------
@@ -14,12 +14,6 @@ The switches should be configured to allow access to NETCONF via SSH.
1414
Role Variables
1515
--------------
1616

17-
`junos_switch_delegate_to` is the host on which to execute the `junos` Ansible
18-
modules.
19-
20-
`junos_switch_provider` is authentication provider information passed as the
21-
`provider` argument to the `junos` modules.
22-
2317
`junos_switch_config_format` is the format of configuration in
2418
`junos_switch_config` and `junos_switch_interface_config`. May be one of `set`,
2519
`text` or `json`.
@@ -53,11 +47,6 @@ passwords. It applies global configuration for LLDP, and enables two
5347
gather_facts: no
5448
roles:
5549
- role: junos-switch
56-
junos_switch_delegate_to: localhost
57-
junos_switch_provider:
58-
host: "{{ switch_host }}"
59-
username: "{{ switch_user }}"
60-
password: "{{ switch_password }}"
6150
junos_switch_config:
6251
- "protocols {"
6352
- " lldp {"

ansible/roles/junos-switch/defaults/main.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
---
2-
# Authentication provider information.
3-
junos_switch_provider:
4-
52
# Format of configuration in junos_switch_config and
63
# junos_switch_interface_config. May be one of 'set', 'text' or 'json'.
74
junos_switch_config_format: text

ansible/roles/junos-switch/tasks/main.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
run_once: true
1616

1717
- name: Ensure Juniper switches are configured
18-
local_action:
19-
module: junos_config
20-
provider: "{{ junos_switch_provider }}"
18+
junos_config:
2119
src: "{{ junos_switch_src }}"
2220
src_format: "{{ junos_switch_config_format }}"
2321
vars:

doc/source/configuration/reference/physical-network.rst

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -284,24 +284,14 @@ module.
284284
configuration. The variable is passed as the ``src_format`` argument to the
285285
``junos_config`` module. The default value is ``text``.
286286

287-
Provider
288-
^^^^^^^^
289-
290287
* ``ansible_host`` is the hostname or IP address. Optional.
291-
292288
* ``ansible_user`` is the SSH username.
293-
294289
* ``ansible_ssh_pass`` is the SSH password. Mutually exclusive with
295290
``ansible_ssh_private_key_file``.
296-
297291
* ``ansible_ssh_private_key_file`` is the SSH private key file. Mutually
298292
exclusive with ``ansible_ssh_pass``.
299-
300-
* ``switch_junos_timeout`` may be set to a timeout in seconds for communicating
301-
with the device.
302-
303-
Alternatively, set ``switch_junos_provider`` to the value to be passed as the
304-
``provider`` argument to the ``junos_config`` module.
293+
* ``ansible_connection`` should be ``ansible.netcommon.netconf``.
294+
* ``ansible_network_os`` should be ``junipernetworks.junos.junos``.
305295

306296
Mellanox MLNX OS
307297
----------------
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
upgrade:
3+
- |
4+
Deployments using Juniper Junos OS switches are required to update their
5+
configuration according to `Juniper Junos OS documentation
6+
<https://docs.openstack.org/kayobe/latest/configuration/reference/physical-network.html#juniper-junos-os>`_.
7+
This is due to the ``junos_config`` module dropping support for the
8+
``provider`` parameter.
9+
fixes:
10+
- |
11+
Fixes physical network configuration for Juniper Junos OS switches.
12+
Note that users are required to update their configuration according to
13+
`Juniper Junos OS documentation
14+
<https://docs.openstack.org/kayobe/latest/configuration/reference/physical-network.html#juniper-junos-os>`_.
15+
`LP#2111341 <https://bugs.launchpad.net/kayobe/+bug/2111341>`__
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
features:
3+
- |
4+
The ``neutron-bgp-dragent`` container will now be built by default when
5+
``kolla_enable_neutron_bgp_dragent`` is true.

0 commit comments

Comments
 (0)