vs_port not working in CentOS 9 preview
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
puppet-vswitch |
In Progress
|
Undecided
|
Unassigned |
Bug Description
When using following commands:
sudo ip link add name loop2 type dummy
sudo ip addr add 127.2.0.1/24 dev loop2
Create following manifest:
# cat test.pp
include vswitch::ovs
vs_bridge { 'br-test2':
ensure => present,
}
vs_port { 'loop2':
ensure => present,
bridge => 'br-test2',
}
When i try to apply, following error is found:
Error: Execution of '/usr/sbin/ifdown br-test2' returned 10: Error: '/etc/sysconfig
Error: no active connection provided.
Error: /Stage[
Error: no active connection provided.
Note that ovs_redhat provider of vs_port relies in ifcfg scripts which is removed in favor of NetworkManager in CentOS9 preview.
if you still have this environment up, can you try the following DIFF
``` diff
index 5bb8526..eea7b71 100644 openstack- puppet/ modules/ vswitch/ lib/puppet/ provider/ vs_port/ ovs_redhat. rb openstack- puppet/ modules/ vswitch/ lib/puppet/ provider/ vs_port/ ovs_redhat. rb.old :Type.type( :vs_port) .provide(
--- a/usr/share/
+++ b/usr/share/
@@ -15,7 +15,7 @@ Puppet:
'ONBOOT' => 'yes',
'BOOTPROTO' => 'dhcp',
'PEERDNS' => 'no',
- 'NM_CONTROLLED' => 'yes',
+ 'NM_CONTROLLED' => 'no',
'NOZEROCONF' => 'yes'
}
@@ -23,8 +23,8 @@ Puppet: :Type.type( :vs_port) .provide(
defaultfor :osfamily => :redhat
commands :ip => 'ip'
- commands :ifdown => 'nmcli connection down'
- commands :ifup => 'nmcli connection up'
+ commands :ifdown => 'ifdown'
+ commands :ifup => 'ifup'
commands :vsctl => 'ovs-vsctl'
def initialize( value={ })
```
I have a hypothesis that NM will still read IFCFG files in C9, even if network-scripts is not available and I'd like to see if the following change would "fix" the issue you're seeing?