Staging instance, all changes can be removed at any time

Skip to content

Configure networking on kafka hosts using the `network` profile

Related to T2593

Test Plan

octocatalog-diff on kafka1:

Found host kafka1.internal.softwareheritage.org
*** Running octocatalog-diff on host kafka1.internal.softwareheritage.org
I, [2020-09-15T11:21:01.983594 #28254]  INFO -- : Catalogs compiled for kafka1.internal.softwareheritage.org
I, [2020-09-15T11:21:02.202058 #28254]  INFO -- : Diffs computed for kafka1.internal.softwareheritage.org
diff origin/production/kafka1.internal.softwareheritage.org current/kafka1.internal.softwareheritage.org
*******************************************
+ Concat::Fragment[bond0_stanza] =>
   parameters =>
      "order": 50
      "target": "/etc/network/interfaces"
      "content": >>>
# interface bond0 configuration
auto bond0
iface bond0 inet manual
  bond-lacp-rate 1
  bond-miimon 100
  bond-mode 802.3ad
  bond-slaves ens1f0np0 ens1f1np1
  bond-xmit_hash_policy layer3+4
<<<
*******************************************
+ Concat::Fragment[ens1f0np0_stanza] =>
   parameters =>
      "order": 50
      "target": "/etc/network/interfaces"
      "content": >>>
# interface ens1f0np0 configuration
auto ens1f0np0
iface ens1f0np0 inet manual
<<<
*******************************************
+ Concat::Fragment[ens1f1np1_stanza] =>
   parameters =>
      "order": 50
      "target": "/etc/network/interfaces"
      "content": >>>
# interface ens1f1np1 configuration
auto ens1f1np1
iface ens1f1np1 inet manual
<<<
*******************************************
+ Concat::Fragment[vlan1300_stanza] =>
   parameters =>
      "order": 40
      "target": "/etc/network/interfaces"
      "content": >>>
# interface vlan1300 configuration
auto vlan1300
iface vlan1300 inet static
  address 128.93.166.48
  netmask 26
  gateway 128.93.166.62
  vlan-raw-device bond0
<<<
*******************************************
+ Concat::Fragment[vlan440_stanza] =>
   parameters =>
      "order": 40
      "target": "/etc/network/interfaces"
      "content": >>>
# interface vlan440 configuration
auto vlan440
iface vlan440 inet static
  address 192.168.100.201
  netmask 24
  vlan-raw-device bond0
  up ip route add 192.168.101.0/24 via 192.168.100.1
  up ip route add 192.168.200.0/21 via 192.168.100.1
  up ip rule add from 192.168.100.201 table private
  up ip route add 192.168.100.0/24 src 192.168.100.201 dev vlan440 table private
  up ip route add default via 192.168.100.1 dev vlan440 table private
  up ip route flush cache
  down ip route del default via 192.168.100.1 dev vlan440 table private
  down ip route del 192.168.100.0/24 src 192.168.100.201 dev vlan440 table private
  down ip rule del from 192.168.100.201 table private
  down ip route del 192.168.200.0/21 via 192.168.100.1
  down ip route del 192.168.101.0/24 via 192.168.100.1
  down ip route flush cache
<<<
*******************************************
+ Concat_fragment[bond0_stanza] =>
   parameters =>
      "order": 50
      "tag": "_etc_network_interfaces"
      "target": "/etc/network/interfaces"
      "content": >>>
# interface bond0 configuration
auto bond0
iface bond0 inet manual
  bond-lacp-rate 1
  bond-miimon 100
  bond-mode 802.3ad
  bond-slaves ens1f0np0 ens1f1np1
  bond-xmit_hash_policy layer3+4
<<<
*******************************************
+ Concat_fragment[ens1f0np0_stanza] =>
   parameters =>
      "order": 50
      "tag": "_etc_network_interfaces"
      "target": "/etc/network/interfaces"
      "content": >>>
# interface ens1f0np0 configuration
auto ens1f0np0
iface ens1f0np0 inet manual
<<<
*******************************************
+ Concat_fragment[ens1f1np1_stanza] =>
   parameters =>
      "order": 50
      "tag": "_etc_network_interfaces"
      "target": "/etc/network/interfaces"
      "content": >>>
# interface ens1f1np1 configuration
auto ens1f1np1
iface ens1f1np1 inet manual
<<<
*******************************************
+ Concat_fragment[vlan1300_stanza] =>
   parameters =>
      "order": 40
      "tag": "_etc_network_interfaces"
      "target": "/etc/network/interfaces"
      "content": >>>
# interface vlan1300 configuration
auto vlan1300
iface vlan1300 inet static
  address 128.93.166.48
  netmask 26
  gateway 128.93.166.62
  vlan-raw-device bond0
<<<
*******************************************
+ Concat_fragment[vlan440_stanza] =>
   parameters =>
      "order": 40
      "tag": "_etc_network_interfaces"
      "target": "/etc/network/interfaces"
      "content": >>>
# interface vlan440 configuration
auto vlan440
iface vlan440 inet static
  address 192.168.100.201
  netmask 24
  vlan-raw-device bond0
  up ip route add 192.168.101.0/24 via 192.168.100.1
  up ip route add 192.168.200.0/21 via 192.168.100.1
  up ip rule add from 192.168.100.201 table private
  up ip route add 192.168.100.0/24 src 192.168.100.201 dev vlan440 table private
  up ip route add default via 192.168.100.1 dev vlan440 table private
  up ip route flush cache
  down ip route del default via 192.168.100.1 dev vlan440 table private
  down ip route del 192.168.100.0/24 src 192.168.100.201 dev vlan440 table private
  down ip rule del from 192.168.100.201 table private
  down ip route del 192.168.200.0/21 via 192.168.100.1
  down ip route del 192.168.101.0/24 via 192.168.100.1
  down ip route flush cache
<<<
*******************************************
+ Debnet::Iface[bond0] =>
   parameters =>
      "allows": []
      "auto": true
      "aux_ops": {"bond-miimon"=>100, "bond-mode"=>"802.3ad", "bond-xmit_hash_policy"=>"layer3+4", "bond-slaves"=>"ens1f0np0 ens1f1np1", "bond-lacp-rate"=>1}
      "downs": []
      "family": "inet"
      "ifname": "bond0"
      "method": "manual"
      "mtu": 9000
      "order": 0
      "post_downs": []
      "pre_ups": []
      "routes": {}
      "ups": []
*******************************************
+ Debnet::Iface[ens1f0np0] =>
   parameters =>
      "allows": []
      "auto": true
      "aux_ops": {}
      "downs": []
      "family": "inet"
      "ifname": "ens1f0np0"
      "method": "manual"
      "mtu": 9000
      "order": 0
      "post_downs": []
      "pre_ups": []
      "routes": {}
      "ups": []
*******************************************
+ Debnet::Iface[ens1f1np1] =>
   parameters =>
      "allows": []
      "auto": true
      "aux_ops": {}
      "downs": []
      "family": "inet"
      "ifname": "ens1f1np1"
      "method": "manual"
      "mtu": 9000
      "order": 0
      "post_downs": []
      "pre_ups": []
      "routes": {}
      "ups": []
*******************************************
+ Debnet::Iface[vlan1300] =>
   parameters =>
      "address": "128.93.166.48"
      "allows": []
      "auto": true
      "aux_ops": {"vlan-raw-device"=>"bond0"}
      "downs": []
      "family": "inet"
      "gateway": "128.93.166.62"
      "ifname": "vlan1300"
      "method": "static"
      "netmask": 26
      "order": 0
      "post_downs": []
      "pre_ups": []
      "routes": {}
      "ups": []
*******************************************
+ Debnet::Iface[vlan440] =>
   parameters =>
      "address": "192.168.100.201"
      "allows": []
      "auto": true
      "aux_ops": {"vlan-raw-device"=>"bond0"}
      "downs": ["ip route del default via 192.168.100.1 dev vlan440 table private", "ip route del 192.168.100.0/24 src 192.168.100.201 dev vlan440 table private", "ip rule del from 192.168.100.201 table private", "ip route del 192.168.200.0/21 via 192.168.100.1", "ip route del 192.168.101.0/24 via 192.168.100.1", "ip route flush cache"]
      "family": "inet"
      "ifname": "vlan440"
      "method": "static"
      "netmask": 24
      "order": 0
      "post_downs": []
      "pre_ups": []
      "routes": {}
      "ups": ["ip route add 192.168.101.0/24 via 192.168.100.1", "ip route add 192.168.200.0/21 via 192.168.100.1", "ip rule add from 192.168.100.201 table private", "ip route add 192.168.100.0/24 src 192.168.100.201 dev vlan440 table private", "ip route add default via 192.168.100.1 dev vlan440 table private", "ip route flush cache"]
*******************************************
+ File_line[private route table] =>
   parameters =>
      "ensure": "present"
      "line": "42 private"
      "path": "/etc/iproute2/rt_tables"
*******************************************
+ Package[ifenslave] =>
   parameters =>
      "ensure": "present"
*******************************************
+ Package[vlan] =>
   parameters =>
      "ensure": "present"
*******************************************
*** End octocatalog-diff on kafka1.internal.softwareheritage.org

Migrated from D3948 (view on Phabricator)

Merge request reports

Loading