/testing/guestbin/swan-prep
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# ipsec start
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Redirecting to: /etc/init.d/ipsec start
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Error: Peer netns reference is invalid.
Starting pluto IKE daemon for IPsec: 
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# /testing/pluto/bin/wait-until-pluto-started
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# ipsec auto --add westnet-eastnet
002 added connection description "westnet-eastnet"
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# echo "initdone"
initdone
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# # wait for east to initiate to us
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# sleep 10
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# ping -n -c 4 -I 192.0.1.254 192.0.2.254
PING 192.0.2.254 (192.0.2.254) from 192.0.1.254 : 56(84) bytes of data.
64 bytes from 192.0.2.254: icmp_seq=1 ttl=64 time=0.046 ms
64 bytes from 192.0.2.254: icmp_seq=2 ttl=64 time=0.052 ms
64 bytes from 192.0.2.254: icmp_seq=3 ttl=64 time=0.098 ms
64 bytes from 192.0.2.254: icmp_seq=4 ttl=64 time=0.102 ms

--- 192.0.2.254 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 72ms
rtt min/avg/max/mdev = 0.046/0.074/0.102/0.027 ms
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# # should show non-zero traffic counters
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# ipsec whack --trafficstatus
006 #2: "westnet-eastnet", type=ESP, add_time=0, inBytes=336, outBytes=336, id='@east'
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# # sending delete/notify should cause east to re-initiate
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# ipsec auto --down westnet-eastnet
002 "westnet-eastnet": terminating SAs using this connection
002 "westnet-eastnet" #2: deleting state (STATE_QUICK_R2) aged 13.472s and sending notification
005 "westnet-eastnet" #2: ESP traffic information: in=336B out=336B
002 "westnet-eastnet" #1: deleting state (STATE_MAIN_R3) aged 13.494s and sending notification
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# # give Delete/Notify some time
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# sleep 5
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# # A new IPsec SA should be established (older versions would take 30 seconds)
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# # traffic counters should be zero
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# ipsec whack --trafficstatus
whack: is Pluto running?  connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused)
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06 33]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 westrun.sh 'ipsec whack --trafficstatus' <<<<<<<<<<tuc<<<<<<<<<<: ==== cut ====
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# ipsec auto --status
whack: is Pluto running?  connect() for "/run/pluto/pluto.ctl" failed (111 Connection refused)
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06 33]# >>>>>>>>>>cutnonzeroexit>>>>>>>>>> exit status 33 final.sh 'ipsec auto --status' <<<<<<<<<<tuc<<<<<<<<<<: ==== tuc ====
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# ../bin/check-for-core.sh
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# if [ -f /sbin/ausearch ]; then ausearch -r -m avc -ts recent ; fi
type=AVC msg=audit(1566844133.486:265910): avc:  denied  { write } for  pid=7504 comm="ip" path="/tmp/pluto.log" dev="dm-0" ino=295084539 scontext=unconfined_u:system_r:ifconfig_t:s0 tcontext=unconfined_u:object_r:container_file_t:s0:c718,c778 tclass=file permissive=1
type=AVC msg=audit(1566844133.996:266013): avc:  denied  { write } for  pid=8463 comm="ip" path="/tmp/pluto.log" dev="dm-0" ino=63889669 scontext=unconfined_u:system_r:ifconfig_t:s0 tcontext=unconfined_u:object_r:container_file_t:s0:c718,c778 tclass=file permissive=1
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]# : ==== end ====
kroot@swantest:/home/build/libreswan/testing/pluto/delete-sa-06\[root@west delete-sa-06]#