Skip to content

Instantly share code, notes, and snippets.

@dongsupark
Created August 30, 2016 13:49
Show Gist options
  • Save dongsupark/c444e10ad843090cc45750b85db51d7e to your computer and use it in GitHub Desktop.
Save dongsupark/c444e10ad843090cc45750b85db51d7e to your computer and use it in GitHub Desktop.
=== RUN TestUnitStart (fleet.conf=[enable_grpc=false])
2016/08/30 13:44:47 mkdir -p /tmp/smoke
2016/08/30 13:44:47 brctl show
2016/08/30 13:44:47 brctl addbr fleet0
2016/08/30 13:44:47 ip addr list fleet0
2016/08/30 13:44:47 ip addr add 172.18.0.1/16 dev fleet0
2016/08/30 13:44:47 ip link set fleet0 up
2016/08/30 13:44:47 Creating nspawn machine 1 in cluster smoke
2016/08/30 13:44:47 mkdir -p /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/etc/systemd/system
2016/08/30 13:44:47 mkdir -p /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/usr
2016/08/30 13:44:47 cp /etc/os-release /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/etc
2016/08/30 13:44:47 cp -a /etc/pam.d /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/etc
2016/08/30 13:44:47 ln -s /proc/self/mounts /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/etc/mtab
2016/08/30 13:44:47 ln -s usr/lib64 /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/lib64
2016/08/30 13:44:47 ln -s lib64 /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/lib
2016/08/30 13:44:47 ln -s usr/bin /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/bin
2016/08/30 13:44:47 ln -s usr/sbin /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/sbin
2016/08/30 13:44:47 mkdir -p /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/home/core/.ssh
2016/08/30 13:44:47 install -d -o root -g systemd-journal -m 2755 /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/var/log/journal
2016/08/30 13:44:47 chown -R 500:500 /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/home/core
2016/08/30 13:44:47 ln -s /dev/null /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/etc/systemd/system/systemd-udev-hwdb-update.service
2016/08/30 13:44:47 mkdir -p /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/etc/ssh
2016/08/30 13:44:47 mkdir -p /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/opt/fleet
2016/08/30 13:44:47 Copying /home/core/fleet/bin/fleetd -> /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/opt/fleet/fleetd
2016/08/30 13:44:47 mkdir -p /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/opt/fleet
2016/08/30 13:44:47 Copying /home/core/fleet/bin/fleetctl -> /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/opt/fleet/fleetctl
2016/08/30 13:44:47 Creating nspawn container: /usr/bin/systemd-nspawn --bind-ro=/usr -b --uuid=e18d45b22dc849d1a9f3f7dd2c0b3790 -M smokee18d45b22dc849d1a9f3f7dd2c0b3790 --capability=CAP_NET_BIND_SERVICE,CAP_SYS_TIME --network-bridge fleet0 -D /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs
2016/08/30 13:44:47 Creating transient systemd unit smokee18d45b22dc849d1a9f3f7dd2c0b3790.service
2016/08/30 13:44:47 machinectl show -p Leader smokee18d45b22dc849d1a9f3f7dd2c0b3790
2016/08/30 13:44:47 machinectl show -p Leader smokee18d45b22dc849d1a9f3f7dd2c0b3790
2016/08/30 13:44:47 Dialing machine: 172.18.1.1:54728
2016/08/30 13:44:47 Dialing machine: 172.18.1.1:54728
2016/08/30 13:44:47 Dialing machine: 172.18.1.1:54728
2016/08/30 13:44:48 /home/core/fleet/bin/fleetctl --endpoint=http://172.18.1.1:54728 list-machines --no-legend --full --fields machine
2016/08/30 13:44:48 /home/core/fleet/bin/fleetctl --endpoint=http://172.18.1.1:54728 start fixtures/units/[email protected] fixtures/units/[email protected] fixtures/units/[email protected]
2016/08/30 13:44:53 /home/core/fleet/bin/fleetctl --endpoint=http://172.18.1.1:54728 list-units --no-legend --full --fields unit,active,machine
2016/08/30 13:44:53 ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no [email protected] systemctl show --property=ActiveState [email protected]
2016/08/30 13:44:53 ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no [email protected] systemctl show --property=Result [email protected]
2016/08/30 13:44:53 ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no [email protected] systemctl show --property=ActiveState [email protected]
2016/08/30 13:44:53 ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no [email protected] systemctl show --property=Result [email protected]
2016/08/30 13:44:53 ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no [email protected] systemctl show --property=ActiveState [email protected]
2016/08/30 13:44:53 ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no [email protected] systemctl show --property=Result [email protected]
2016/08/30 13:44:53 /home/core/fleet/bin/fleetctl --endpoint=http://172.18.1.1:54728 stop [email protected]
2016/08/30 13:44:55 /home/core/fleet/bin/fleetctl --endpoint=http://172.18.1.1:54728 stop [email protected]
2016/08/30 13:44:59 /home/core/fleet/bin/fleetctl --endpoint=http://172.18.1.1:54728 stop [email protected]
2016/08/30 13:45:05 /home/core/fleet/bin/fleetctl --endpoint=http://172.18.1.1:54728 list-units --no-legend --full --fields unit,active,machine
2016/08/30 13:45:05 /home/core/fleet/bin/fleetctl --endpoint=http://172.18.1.1:54728 list-units --no-legend --full --fields unit,active,machine
2016/08/30 13:45:05 /home/core/fleet/bin/fleetctl --endpoint=http://172.18.1.1:54728 list-units --no-legend --full --fields unit,active,machine
2016/08/30 13:45:06 /home/core/fleet/bin/fleetctl --endpoint=http://172.18.1.1:54728 list-units --no-legend --full --fields unit,active,machine
2016/08/30 13:45:06 /home/core/fleet/bin/fleetctl --endpoint=http://172.18.1.1:54728 start fixtures/units/[email protected] fixtures/units/[email protected] fixtures/units/[email protected]
2016/08/30 13:45:22 Destroying nspawn machine e18d45b22dc849d1a9f3f7dd2c0b3790
2016/08/30 13:45:22 Failed tests, fetching logs from e18d45b22dc849d1a9f3f7dd2c0b3790 machine
2016/08/30 13:45:22 journalctl --directory=/tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs/var/log/journal --root=/tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790/fs --no-pager
2016/08/30 13:45:22 Wrote smokee18d45b22dc849d1a9f3f7dd2c0b3790 logs to /home/core/fleet/gopath/src/github.com/coreos/fleet/functional/TestUnitStart_smokee18d45b22dc849d1a9f3f7dd2c0b3790.log
2016/08/30 13:45:22 machinectl terminate smokee18d45b22dc849d1a9f3f7dd2c0b3790
2016/08/30 13:45:22 rm -f /run/systemd/system/machine-smokee18d45b22dc849d1a9f3f7dd2c0b3790.scope
2016/08/30 13:45:22 rm -f /run/systemd/system/smokee18d45b22dc849d1a9f3f7dd2c0b3790.service
2016/08/30 13:45:22 rm -fr /run/systemd/system/smokee18d45b22dc849d1a9f3f7dd2c0b3790.service.d
2016/08/30 13:45:22 rm -r /tmp/smoke/e18d45b22dc849d1a9f3f7dd2c0b3790
2016/08/30 13:45:22 ip link del vb-smokee18d45b22dc849d1a9f3f7dd2c0b3790
2016/08/30 13:45:22 rm -fr /tmp/smoke
2016/08/30 13:45:22 etcdctl rm --recursive /fleet_functional/smoke
2016/08/30 13:45:22 ip link del fleet0
--- FAIL: TestUnitStart (fleet.conf=[enable_grpc=false]) (35.88s)
unit_action_test.go:140: Unable to start batch of units:
stdout: Unit [email protected] launched on e18d45b2.../172.18.1.1
Unit [email protected] launched on e18d45b2.../172.18.1.1
Unit [email protected] launched on e18d45b2.../172.18.1.1
stderr: cannot find an active unit: Failed to reach expected state within 15s, errA = Failed to find an active unit [email protected], ActiveState=inactive, LoadState=loaded
Error waiting for systemd unit states, err: Failed to reach expected state within 15s, errA = Failed to find an active unit [email protected], ActiveState=inactive, LoadState=loaded
err: exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment