Skip to content

Commit 20a2ce1

Browse files
fix(roles/infomaniak_vm): stop passing security_groups to openstack.cloud.server
1 parent 9666ef7 commit 20a2ce1

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525

2626
### Fixed
2727

28+
* **role:infomaniak_vm**: Stop passing `security_groups` to `openstack.cloud.server`. Since the security group is already applied on the `ext-net1` port, setting it on the server made Neutron attempt the same on internal-network ports where `port_security_enabled` is `false`, failing with `Network requires port_security_enabled and subnet associated in order to apply security groups.`
2829
* **role:openvpn_server**: Fix `invalid selinux context: [Errno 22] Invalid argument` on RHEL 10 when deploying `server.p12` / `crl.pem`. The SELinux type `openvpn_etc_t` no longer exists in the RHEL 10 core policy (only `openvpn_port_t` and the packet types remain). The role now uses `etc_t` on RHEL 10 via a new OS-specific internal variable `__openvpn_server__selinux_etc_type`; other platforms keep `openvpn_etc_t`
2930
* **role:repo_epel**: Fix malformed RHEL 10 `epel.repo`: a missing newline in the `[epel-source]` section rendered `enabled=0username=<login>` when `repo_epel__basic_auth_login` was set, causing dnf to reject the file with `Invalid configuration value: enabled=0username=...`
3031
* **role:infomaniak_vm**: Apply the VM's security group on the `ext-net1` port instead of (only) on the server. When a VM boots against a pre-created port, Neutron enforces the port's security groups, not those passed to the server, so without this the configured rules were silently ignored on the public interface

roles/infomaniak_vm/tasks/main.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@
158158
nics: '{{ infomaniak_vm__nics }}'
159159
boot_volume: '{{ infomaniak_vm__name }}--boot'
160160
terminate_volume: true # delete volume when deleting VM
161-
security_groups: '{{ (infomaniak_vm__security_group_rules is defined and infomaniak_vm__security_group_rules | length > 0) | ternary(["default", infomaniak_vm__name], ["default"]) }}'
162161
state: '{{ infomaniak_vm__state }}'
163162
auto_ip: false # not all VMs need to have a public ip
164163
delegate_to: 'localhost'
@@ -181,7 +180,6 @@
181180
flavor: '{{ infomaniak_vm__flavor }}'
182181
nics: '{{ infomaniak_vm__nics }}'
183182
terminate_volume: true # delete volume when deleting VM
184-
security_groups: '{{ (infomaniak_vm__security_group_rules is defined and infomaniak_vm__security_group_rules | length > 0) | ternary(["default", infomaniak_vm__name], ["default"]) }}'
185183
state: '{{ infomaniak_vm__state }}'
186184
auto_ip: false # not all VMs need to have a public ip
187185
delegate_to: 'localhost'

0 commit comments

Comments
 (0)