Playbook #1

/root/kubeinit/ci/builds/6mbKNrxD/0/kubeinit/kubeinit/kubeinit-aux/kubeinit/playbook.yml

Report Status CLI Date Duration Controller User Versions Hosts Plays Tasks Results Files Records
29 Oct 2023 10:04:38 +0000 00:25:53.67 nyctea root Ansible 2.15.2 ara 1.6.1 (client), 1.6.1 (server) Python 3.11.4 5 9 822 822 48 1

Task result details

Field Value
changed
True
cmd
#
# Create a logical router to connect the VMs switch
#
/usr/bin/ovn-nbctl --wait=hv --wait=sb --timeout=30 lr-add lr0
#
# We create the external access switch
#
/usr/bin/ovn-nbctl --wait=hv --wait=sb --timeout=30 ls-add public
/usr/bin/ovn-nbctl --wait=hv --wait=sb --timeout=30 lrp-add lr0 lr0-public 00:00:20:9a:70:da 172.16.0.1/24
/usr/bin/ovn-nbctl --wait=hv --wait=sb --timeout=30 lsp-add public public-lr0
/usr/bin/ovn-nbctl lsp-set-type public-lr0 router
/usr/bin/ovn-nbctl lsp-set-addresses public-lr0 router
/usr/bin/ovn-nbctl lsp-set-options public-lr0 router-port=lr0-public
#
# Create a localnet port
#
/usr/bin/ovn-nbctl --wait=hv --wait=sb --timeout=30 lsp-add public public-ln
/usr/bin/ovn-nbctl lsp-set-type public-ln localnet
/usr/bin/ovn-nbctl lsp-set-addresses public-ln unknown
/usr/bin/ovn-nbctl lsp-set-options public-ln network_name=provider
#
# We add a bridge mapping from br-ex called provider
#
/usr/bin/ovs-vsctl set Open_vSwitch . external-ids:ovn-bridge-mappings=provider:br-ex
#
# Configuring the chassis gateway to the ovn-central hypervisor
#
/usr/bin/ovn-nbctl lrp-set-gateway-chassis lr0-public hypervisor-01
/usr/bin/ovn-nbctl  --id=@gc0 create Gateway_Chassis name=lr0-public chassis_name=hypervisor-01 priority=20 --  set Logical_Router_Port lr0-public 'gateway_chassis=[@gc0]'
/usr/bin/ovn-nbctl set logical_router_port lr0-public options:redirect-chassis=hypervisor-01
#
# Create an ovs br-ex bridge to connect to the host
#
/usr/bin/ovs-vsctl --may-exist add-br br-ex
ip addr add 172.16.0.254/24 dev br-ex
ip link set br-ex up
#
# Routes
#
# Connectivity to external/additional networks
/usr/bin/ovn-nbctl lr-route-add lr0 0.0.0.0/0 172.16.0.254
#
# Disable rp_filter
#
sysctl net.ipv4.conf.all.rp_filter=2
delta
0:00:00.211247
end
2023-10-29 12:07:28.742057
invocation
{
    "module_args": {
        "_raw_params": "#\n# Create a logical router to connect the VMs switch\n#\n/usr/bin/ovn-nbctl --wait=hv --wait=sb --timeout=30 lr-add lr0\n#\n# We create the external access switch\n#\n/usr/bin/ovn-nbctl --wait=hv --wait=sb --timeout=30 ls-add public\n/usr/bin/ovn-nbctl --wait=hv --wait=sb --timeout=30 lrp-add lr0 lr0-public 00:00:20:9a:70:da 172.16.0.1/24\n/usr/bin/ovn-nbctl --wait=hv --wait=sb --timeout=30 lsp-add public public-lr0\n/usr/bin/ovn-nbctl lsp-set-type public-lr0 router\n/usr/bin/ovn-nbctl lsp-set-addresses public-lr0 router\n/usr/bin/ovn-nbctl lsp-set-options public-lr0 router-port=lr0-public\n#\n# Create a localnet port\n#\n/usr/bin/ovn-nbctl --wait=hv --wait=sb --timeout=30 lsp-add public public-ln\n/usr/bin/ovn-nbctl lsp-set-type public-ln localnet\n/usr/bin/ovn-nbctl lsp-set-addresses public-ln unknown\n/usr/bin/ovn-nbctl lsp-set-options public-ln network_name=provider\n#\n# We add a bridge mapping from br-ex called provider\n#\n/usr/bin/ovs-vsctl set Open_vSwitch . external-ids:ovn-bridge-mappings=provider:br-ex\n#\n# Configuring the chassis gateway to the ovn-central hypervisor\n#\n/usr/bin/ovn-nbctl lrp-set-gateway-chassis lr0-public hypervisor-01\n/usr/bin/ovn-nbctl  --id=@gc0 create Gateway_Chassis name=lr0-public chassis_name=hypervisor-01 priority=20 --  set Logical_Router_Port lr0-public 'gateway_chassis=[@gc0]'\n/usr/bin/ovn-nbctl set logical_router_port lr0-public options:redirect-chassis=hypervisor-01\n#\n# Create an ovs br-ex bridge to connect to the host\n#\n/usr/bin/ovs-vsctl --may-exist add-br br-ex\nip addr add 172.16.0.254/24 dev br-ex\nip link set br-ex up\n#\n# Routes\n#\n# Connectivity to external/additional networks\n/usr/bin/ovn-nbctl lr-route-add lr0 0.0.0.0/0 172.16.0.254\n#\n# Disable rp_filter\n#\nsysctl net.ipv4.conf.all.rp_filter=2\n",
        "_uses_shell": true,
        "argv": null,
        "chdir": null,
        "creates": null,
        "executable": "/bin/bash",
        "removes": null,
        "stdin": null,
        "stdin_add_newline": true,
        "strip_empty_ends": true
    }
}
msg

rc
0
start
2023-10-29 12:07:28.530810
stderr

stderr_lines
[]
stdout
15d0fc0b-ad46-4dab-92db-7fe4d2602fad
net.ipv4.conf.all.rp_filter = 2
stdout_lines
[
    "15d0fc0b-ad46-4dab-92db-7fe4d2602fad",
    "net.ipv4.conf.all.rp_filter = 2"
]