Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [nix-shell:~/projects/nixops]$ python2 tests.py tests.functional.test_ec2_backups.test_ec2_backups_raid_nvme
- ssh-security-group> creating EC2 security group ‘charon-095d1d35-e508-11e8-a732-0242da8f56fe-ssh-security-group’...
- my-key-pair.......> uploading EC2 key pair ‘charon-095d1d35-e508-11e8-a732-0242da8f56fe-my-key-pair’...
- ssh-security-group> adding new rules to EC2 security group ‘charon-095d1d35-e508-11e8-a732-0242da8f56fe-ssh-security-group’...
- machine...........> creating EC2 instance (AMI ‘ami-009c9c3f1af480ff3’, type ‘c5.large’, region ‘us-east-1’)...
- machine...........> waiting for IP address... [pending] [pending] [pending] [running] 52.204.177.131 / 172.31.28.215
- machine...........> waiting for SSH....................
- machine...........> replacing temporary host key...
- machine...........> creating EBS volume of 1 GiB...
- machine...........> waiting for volume ‘vol-0b5fdf50cf0d6613c’ to become available... [creating] [available]
- machine...........> creating EBS volume of 1 GiB...
- machine...........> waiting for volume ‘vol-0053adf1cf2609295’ to become available... [creating] [available]
- machine...........> attaching volume ‘vol-0053adf1cf2609295’ as ‘/dev/nvme1n1’... [attached]
- machine...........> attaching volume ‘vol-0b5fdf50cf0d6613c’ as ‘/dev/nvme2n1’... [attaching] [attached]
- machine...........> setting state version to 18.09
- building all machine configurations...
- these derivations will be built:
- /nix/store/6wbfap41xyzbil7r4av4kd6rrdhmg715-etc-ssh_known_hosts.drv
- /nix/store/yw7hl8zzdnahpfv1zrl12wg34g1j3i01-etc-hosts.drv
- /nix/store/zj40hnj4hqyi264nsphh7irh8ks1nhx7-unit-nscd.service.drv
- /nix/store/wlxilzli061h751ar0hx3n5vdxmq4xsg-system-units.drv
- /nix/store/kwmcw60cwm7sw5chslhj73sjjry306ww-etc.drv
- /nix/store/p3cqjrw3nnf0d1qxvz5hlrdmly2mnjnj-nixos-system-machine-18.09.1023.06fb0253afa.drv
- /nix/store/pq37f6i3y9dpp4dg9h6q25v3x1ld7v2v-nixops-machines.drv
- building '/nix/store/yw7hl8zzdnahpfv1zrl12wg34g1j3i01-etc-hosts.drv'...
- building '/nix/store/6wbfap41xyzbil7r4av4kd6rrdhmg715-etc-ssh_known_hosts.drv'...
- building '/nix/store/zj40hnj4hqyi264nsphh7irh8ks1nhx7-unit-nscd.service.drv'...
- building '/nix/store/wlxilzli061h751ar0hx3n5vdxmq4xsg-system-units.drv'...
- building '/nix/store/kwmcw60cwm7sw5chslhj73sjjry306ww-etc.drv'...
- building '/nix/store/p3cqjrw3nnf0d1qxvz5hlrdmly2mnjnj-nixos-system-machine-18.09.1023.06fb0253afa.drv'...
- building '/nix/store/pq37f6i3y9dpp4dg9h6q25v3x1ld7v2v-nixops-machines.drv'...
- machine...........> copying closure...
- machine...........> copying path '/nix/store/jydcprmgp4qjracq9x59310bkwa2qbzk-ena-1.5.2-4.14.78' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/fvgy6ydh3jishw50s7f13y8l6b0dj4cn-etc-hostname' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/65inzfy4wifqym6lqcyfmi6w7kkmiy51-etc-os-release' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/bf62q0fziprnmph0d0c3cis2swwnq7x1-firmware' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/87gd6h9zc8vb5glfy7i49f9dbn2zp603-initrd' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/42av4pzapm52rywk5lkmxgjidrlph7zz-etc-nixos.conf' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/30ql1vpiw4ygicjrx7fg72nmg2r0ngd4-issue' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/7q9z44scdnc6cd1c8h4ps4g0x7w41yk2-ixgbevf-4.3.4-4.14.78' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/ld86a2lkbs95rn9k8nqn3rkgq1rv67hi-linux-4.14.78' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/4lrrqsahbclgn4xd0f4p37bjcix1i5ga-nixos-manpages' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/4rzy16a26919h384vxf0barjjk44bzi2-kernel-modules' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/xs4h7211vh40ywzw6paxh7fgf0ijhay5-nixos-manual' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/vmk3wpgw5wgmacc92dvwbqbvphmmqggj-nixos-version' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/qkymiz60fhfhyg5v89nj4q1r6yax8gqv-nixos-help' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/x1ysifjlglyjk38kkjp8swighk21jv8q-system-path' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/jsd5h4cd555zgz55b1q8ysb7zi4ad66c-dbus-1' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/5nz95lqalri97y4qnwz9b4gs5aplpbr3-unit-polkit.service' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/azf4jbfcc73apxq6ii05gp27jy8ybsvy-unit-dbus.service' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/wgwv3pb69klv06mw30j3423yj8wn3adi-unit-dbus.service' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/xi99hh2x9cnnqq5ii79iw46d28233mfq-unit-systemd-fsck-.service' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/la5ibpm91gbi9g2c3dc9z7259nc9ajqv-user-units' from 'https://cache.nixos.org'...
- machine...........> copying 16 paths...
- machine...........> copying path '/nix/store/6snz1s07x07g1mx1zgm7ac6klll61zsv-unit-script-mkfs-dev-raid-raid-start' to 'ssh://root@52.204.177.131'...
- machine...........> copying path '/nix/store/7fn6zbrk93bzfihm64cjqgqsqvbiqs43-unit-script-apply-ec2-data-start' to 'ssh://root@52.204.177.131'...
- machine...........> copying path '/nix/store/b1yrhp0hq6nmzdqdydwqa07i4cizzrbg-etc-hosts' to 'ssh://root@52.204.177.131'...
- machine...........> copying path '/nix/store/ccami970924lzxyk56qwwgx7qvzi4mf7-etc-fstab' to 'ssh://root@52.204.177.131'...
- machine...........> copying path '/nix/store/d162d59lbqfyhws5kwnf1gv2vvmbbs5i-unit-script-create-raid0-raid-start' to 'ssh://root@52.204.177.131'...
- machine...........> copying path '/nix/store/dz5pnsdscvs82nxc2prwkxccc97al5ix-setup-keys.sh' to 'ssh://root@52.204.177.131'...
- machine...........> copying path '/nix/store/h7iki3s5rh5b2187zs3471g4mpl3ni8x-unit-nixops-keys.service-disabled' to 'ssh://root@52.204.177.131'...
- machine...........> copying path '/nix/store/8irsjq14855vcna01bd8hv926067cv9l-unit-mkfs-dev-raid-raid.service' to 'ssh://root@52.204.177.131'...
- machine...........> copying path '/nix/store/p83jxzhpk1igz76b0p2h5x19jly20npd-unit-apply-ec2-data.service' to 'ssh://root@52.204.177.131'...
- machine...........> copying path '/nix/store/pzlb7i9pipf9n9vbb2ph1dmk4aqgj9cz-unit-encrypted-links.target' to 'ssh://root@52.204.177.131'...
- machine...........> copying path '/nix/store/qq260aqj7h4jn6sxk922j24s6dmyd8w8-etc-ssh_known_hosts' to 'ssh://root@52.204.177.131'...
- machine...........> copying path '/nix/store/rfz3y2rdkz94lwi0qkqypk9cdls23lhl-unit-create-raid0-raid.service' to 'ssh://root@52.204.177.131'...
- machine...........> copying path '/nix/store/xgzd2nyh2wzbv0h4znbfxsd3jhyx73dq-unit-nscd.service' to 'ssh://root@52.204.177.131'...
- machine...........> copying path '/nix/store/icdmma94blx83dn98hs1kswy1n6nk1hz-system-units' to 'ssh://root@52.204.177.131'...
- machine...........> copying path '/nix/store/r9ny98i4h4j8mcwdvpdp2q7qzc95q86i-etc' to 'ssh://root@52.204.177.131'...
- machine...........> copying path '/nix/store/rkqxygl5lpmh5h31xqppwsjwmaxxm8k4-nixos-system-machine-18.09.1023.06fb0253afa' to 'ssh://root@52.204.177.131'...
- unnamed> closures copied successfully
- machine...........> updating GRUB 2 menu...
- machine...........> stopping the following units: apply-ec2-data.service, nscd.service
- machine...........> activating the configuration...
- machine...........> setting up /etc...
- machine...........> reloading user units for root...
- machine...........> setting up tmpfiles
- machine...........> reloading the following units: dbus.service
- machine...........> starting the following units: apply-ec2-data.service, nscd.service
- machine...........> the following new units were started: data.mount, sys-devices-virtual-block-dm\x2d0.device, system-systemd\x2dfsck.slice, systemd-fsck@dev-raid-raid.service
- machine...........> activation finished successfully
- unnamed> deployment finished successfully
- tests> echo -n important-data > /data/back-me-up
- machine...........> backing up machine ‘machine’ using id ‘20181110184721’
- machine...........> + created snapshot of volume ‘vol-0b5fdf50cf0d6613c’: ‘snap-0804f6075e1579d00’
- machine...........> + created snapshot of volume ‘vol-05ee2235283d621b8’: ‘snap-098bc004a39e09765’
- machine...........> + created snapshot of volume ‘vol-0053adf1cf2609295’: ‘snap-052dc6a54f3bde829’
- tests> rm /data/back-me-up
- warning: are you sure you want to stop machine 'machine' (y/N) y
- machine...........> stopping EC2 machine... Connection to 52.204.177.131 closed by remote host.
- [stopping] [stopping] [stopping] [stopping] [stopping] [stopping] [stopping] [stopping] [stopping] [stopping] [stopped]
- machine...........> restoring machine ‘machine’ to backup ‘20181110184721’
- machine...........> detaching volume from ‘machine’
- machine...........> creating volume from snapshot ‘snap-052dc6a54f3bde829’
- machine...........> waiting for snapshot ‘snap-052dc6a54f3bde829’ to have status ‘completed’... [completed]
- machine...........> waiting for volume ‘vol-0053adf1cf2609295’ to become available... [available]
- machine...........> waiting for volume ‘vol-01fdfcd458daf4f1b’ to become available... [creating] [available]
- machine...........> attaching volume ‘vol-01fdfcd458daf4f1b’ to ‘machine’ as /dev/nvme1n1
- warning: are you sure you want to destroy EBS volume ‘vol-0053adf1cf2609295’? (y/N) y
- machine...........> destroying EBS volume ‘vol-0053adf1cf2609295’...
- machine...........> detaching volume from ‘machine’
- machine...........> creating volume from snapshot ‘snap-0804f6075e1579d00’
- machine...........> waiting for snapshot ‘snap-0804f6075e1579d00’ to have status ‘completed’... [completed]
- machine...........> waiting for volume ‘vol-0b5fdf50cf0d6613c’ to become available... [available]
- machine...........> waiting for volume ‘vol-0cfda4282110fba67’ to become available... [creating] [available]
- machine...........> attaching volume ‘vol-0cfda4282110fba67’ to ‘machine’ as /dev/nvme2n1
- warning: are you sure you want to destroy EBS volume ‘vol-0b5fdf50cf0d6613c’? (y/N) y
- machine...........> destroying EBS volume ‘vol-0b5fdf50cf0d6613c’...
- machine...........> detaching volume from ‘machine’
- machine...........> creating volume from snapshot ‘snap-098bc004a39e09765’
- machine...........> waiting for snapshot ‘snap-098bc004a39e09765’ to have status ‘completed’... [completed]
- machine...........> waiting for volume ‘vol-05ee2235283d621b8’ to become available... [available]
- machine...........> waiting for volume ‘vol-0d6ff47dc181be1fd’ to become available... [creating] [available]
- machine...........> attaching volume ‘vol-0d6ff47dc181be1fd’ to ‘machine’ as /dev/xvda1
- warning: are you sure you want to destroy EBS volume ‘vol-05ee2235283d621b8’? (y/N) y
- machine...........> destroying EBS volume ‘vol-05ee2235283d621b8’...
- machine...........> starting EC2 machine...
- machine...........> waiting for IP address... [pending] [pending] [running] 35.153.70.99 / 172.31.28.215
- machine...........> warning: IP address has changed, you may need to run ‘nixops deploy’
- machine...........> waiting for SSH.......................
- warning: restore finished; please note that you might need to run ‘nixops deploy’ to fix configuration issues regarding changed IP addresses
- tests> echo -n important-data | diff /data/back-me-up -
- tests> mount | grep '/dev/mapper/raid-raid on /data type ext4'
- machine...........> /dev/mapper/raid-raid on /data type ext4 (rw,relatime,stripe=32,data=ordered)
- tests> mount | grep '/dev/nvme0n1p1 on /'
- machine...........> /dev/nvme0n1p1 on / type ext4 (rw,relatime,data=ordered)
- machine...........> /dev/nvme0n1p1 on /nix/store type ext4 (ro,relatime,data=ordered)
- machine...........> removing backup 20181110184721
- machine...........> removing snapshot snap-0804f6075e1579d00
- machine...........> removing snapshot snap-098bc004a39e09765
- machine...........> removing snapshot snap-052dc6a54f3bde829
- warning: are you sure you want to destroy EC2 machine ‘machine’? (y/N) y
- machine...........> destroying EC2 machine... [shutting-down] Connection to 35.153.70.99 closed by remote host.
- [shutting-down] [shutting-down] [shutting-down] [shutting-down] [shutting-down] [shutting-down] [shutting-down] [terminated]
- warning: are you sure you want to destroy EBS volume ‘vol-0cfda4282110fba67’? (y/N) y
- machine...........> destroying EBS volume ‘vol-0cfda4282110fba67’...
- warning: are you sure you want to destroy EBS volume ‘vol-0d6ff47dc181be1fd’? (y/N) y
- machine...........> destroying EBS volume ‘vol-0d6ff47dc181be1fd’...
- warning: are you sure you want to destroy EBS volume ‘vol-01fdfcd458daf4f1b’? (y/N) y
- machine...........> destroying EBS volume ‘vol-01fdfcd458daf4f1b’...
- warning: are you sure you want to destroy keypair ‘charon-095d1d35-e508-11e8-a732-0242da8f56fe-my-key-pair’? (y/N) y
- ssh-security-group> deleting EC2 security group `charon-095d1d35-e508-11e8-a732-0242da8f56fe-ssh-security-group' ID `sg-0cf24355131fe47aa'...
- my-key-pair.......> deleting EC2 key pair ‘charon-095d1d35-e508-11e8-a732-0242da8f56fe-my-key-pair’...
- deployment ‘095d1d35-e508-11e8-a732-0242da8f56fe’ destroyed
- .ssh-security-group> creating EC2 security group ‘charon-df8d0b59-e508-11e8-b9db-0242da8f56fe-ssh-security-group’...
- my-key-pair.......> uploading EC2 key pair ‘charon-df8d0b59-e508-11e8-b9db-0242da8f56fe-my-key-pair’...
- ssh-security-group> adding new rules to EC2 security group ‘charon-df8d0b59-e508-11e8-b9db-0242da8f56fe-ssh-security-group’...
- machine...........> creating EC2 instance (AMI ‘ami-009c9c3f1af480ff3’, type ‘c5.large’, region ‘us-east-1’)...
- machine...........> waiting for IP address... [pending] [pending] [running] 18.234.69.140 / 172.31.30.49
- machine...........> waiting for SSH......................
- machine...........> replacing temporary host key...
- machine...........> creating EBS volume of 1 GiB...
- machine...........> waiting for volume ‘vol-025fc57a5860f3dda’ to become available... [creating] [available]
- machine...........> creating EBS volume of 1 GiB...
- machine...........> waiting for volume ‘vol-002ed0f6f93669986’ to become available... [creating] [available]
- machine...........> attaching volume ‘vol-002ed0f6f93669986’ as ‘/dev/nvme1n1’... [attached]
- machine...........> attaching volume ‘vol-025fc57a5860f3dda’ as ‘/dev/nvme2n1’... [attaching] [attached]
- machine...........> setting state version to 18.09
- building all machine configurations...
- these derivations will be built:
- /nix/store/azi7kp7wywc9nkm2ldsrl9z9wcy1f6ci-etc-hosts.drv
- /nix/store/h0320axm5ml8xnafizwc5q798q6m8kra-etc-ssh_known_hosts.drv
- /nix/store/aj8cqr2krxll68ync74lx6hv2if8i0dc-unit-nscd.service.drv
- /nix/store/nawdlcgjnz5dqi6r2ii6ycwlcjf290rs-system-units.drv
- /nix/store/pwdqy0pyjbq74zvfvml794fahph0i08m-etc.drv
- /nix/store/m891zf38xs1h2403j37ssjhlh2k2hpwr-nixos-system-machine-18.09.1023.06fb0253afa.drv
- /nix/store/9zvd080ndpa8h9lda7v5f5ivh3s6vkrb-nixops-machines.drv
- building '/nix/store/azi7kp7wywc9nkm2ldsrl9z9wcy1f6ci-etc-hosts.drv'...
- building '/nix/store/h0320axm5ml8xnafizwc5q798q6m8kra-etc-ssh_known_hosts.drv'...
- building '/nix/store/aj8cqr2krxll68ync74lx6hv2if8i0dc-unit-nscd.service.drv'...
- building '/nix/store/nawdlcgjnz5dqi6r2ii6ycwlcjf290rs-system-units.drv'...
- building '/nix/store/pwdqy0pyjbq74zvfvml794fahph0i08m-etc.drv'...
- building '/nix/store/m891zf38xs1h2403j37ssjhlh2k2hpwr-nixos-system-machine-18.09.1023.06fb0253afa.drv'...
- building '/nix/store/9zvd080ndpa8h9lda7v5f5ivh3s6vkrb-nixops-machines.drv'...
- machine...........> copying closure...
- machine...........> copying path '/nix/store/jydcprmgp4qjracq9x59310bkwa2qbzk-ena-1.5.2-4.14.78' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/fvgy6ydh3jishw50s7f13y8l6b0dj4cn-etc-hostname' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/65inzfy4wifqym6lqcyfmi6w7kkmiy51-etc-os-release' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/bf62q0fziprnmph0d0c3cis2swwnq7x1-firmware' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/87gd6h9zc8vb5glfy7i49f9dbn2zp603-initrd' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/42av4pzapm52rywk5lkmxgjidrlph7zz-etc-nixos.conf' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/30ql1vpiw4ygicjrx7fg72nmg2r0ngd4-issue' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/7q9z44scdnc6cd1c8h4ps4g0x7w41yk2-ixgbevf-4.3.4-4.14.78' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/ld86a2lkbs95rn9k8nqn3rkgq1rv67hi-linux-4.14.78' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/4lrrqsahbclgn4xd0f4p37bjcix1i5ga-nixos-manpages' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/4rzy16a26919h384vxf0barjjk44bzi2-kernel-modules' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/xs4h7211vh40ywzw6paxh7fgf0ijhay5-nixos-manual' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/vmk3wpgw5wgmacc92dvwbqbvphmmqggj-nixos-version' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/qkymiz60fhfhyg5v89nj4q1r6yax8gqv-nixos-help' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/x1ysifjlglyjk38kkjp8swighk21jv8q-system-path' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/jsd5h4cd555zgz55b1q8ysb7zi4ad66c-dbus-1' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/5nz95lqalri97y4qnwz9b4gs5aplpbr3-unit-polkit.service' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/azf4jbfcc73apxq6ii05gp27jy8ybsvy-unit-dbus.service' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/wgwv3pb69klv06mw30j3423yj8wn3adi-unit-dbus.service' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/xi99hh2x9cnnqq5ii79iw46d28233mfq-unit-systemd-fsck-.service' from 'https://cache.nixos.org'...
- machine...........> copying path '/nix/store/la5ibpm91gbi9g2c3dc9z7259nc9ajqv-user-units' from 'https://cache.nixos.org'...
- machine...........> copying 16 paths...
- machine...........> copying path '/nix/store/4yz44r7pa6ziiwc0w5r7ff2yalqf07rs-etc-ssh_known_hosts' to 'ssh://root@18.234.69.140'...
- machine...........> copying path '/nix/store/6snz1s07x07g1mx1zgm7ac6klll61zsv-unit-script-mkfs-dev-raid-raid-start' to 'ssh://root@18.234.69.140'...
- machine...........> copying path '/nix/store/d162d59lbqfyhws5kwnf1gv2vvmbbs5i-unit-script-create-raid0-raid-start' to 'ssh://root@18.234.69.140'...
- machine...........> copying path '/nix/store/7fn6zbrk93bzfihm64cjqgqsqvbiqs43-unit-script-apply-ec2-data-start' to 'ssh://root@18.234.69.140'...
- machine...........> copying path '/nix/store/dz5pnsdscvs82nxc2prwkxccc97al5ix-setup-keys.sh' to 'ssh://root@18.234.69.140'...
- machine...........> copying path '/nix/store/h7iki3s5rh5b2187zs3471g4mpl3ni8x-unit-nixops-keys.service-disabled' to 'ssh://root@18.234.69.140'...
- machine...........> copying path '/nix/store/ccami970924lzxyk56qwwgx7qvzi4mf7-etc-fstab' to 'ssh://root@18.234.69.140'...
- machine...........> copying path '/nix/store/8irsjq14855vcna01bd8hv926067cv9l-unit-mkfs-dev-raid-raid.service' to 'ssh://root@18.234.69.140'...
- machine...........> copying path '/nix/store/prpmyrpqfg2p4rl8ska5dndnpxw6gs3r-etc-hosts' to 'ssh://root@18.234.69.140'...
- machine...........> copying path '/nix/store/p83jxzhpk1igz76b0p2h5x19jly20npd-unit-apply-ec2-data.service' to 'ssh://root@18.234.69.140'...
- machine...........> copying path '/nix/store/pzlb7i9pipf9n9vbb2ph1dmk4aqgj9cz-unit-encrypted-links.target' to 'ssh://root@18.234.69.140'...
- machine...........> copying path '/nix/store/rfz3y2rdkz94lwi0qkqypk9cdls23lhl-unit-create-raid0-raid.service' to 'ssh://root@18.234.69.140'...
- machine...........> copying path '/nix/store/52bfi5lj3znmxx7yllxz2p6llr5sl2mb-unit-nscd.service' to 'ssh://root@18.234.69.140'...
- machine...........> copying path '/nix/store/kdy2zpa7bw8bahp5y2xvi8z1w4h77s10-system-units' to 'ssh://root@18.234.69.140'...
- machine...........> copying path '/nix/store/rxqxnb6n0gjpf4f4mm5kjqbixpwpfwmn-etc' to 'ssh://root@18.234.69.140'...
- machine...........> copying path '/nix/store/scvqgr324wlqdkny6jh3qnphxcimwlnv-nixos-system-machine-18.09.1023.06fb0253afa' to 'ssh://root@18.234.69.140'...
- unnamed> closures copied successfully
- machine...........> updating GRUB 2 menu...
- machine...........> stopping the following units: apply-ec2-data.service, nscd.service
- machine...........> setting up /etc...
- machine...........> activating the configuration...
- machine...........> reloading user units for root...
- machine...........> setting up tmpfiles
- machine...........> reloading the following units: dbus.service
- machine...........> starting the following units: apply-ec2-data.service, nscd.service
- machine...........> the following new units were started: data.mount, sys-devices-virtual-block-dm\x2d0.device, system-systemd\x2dfsck.slice, systemd-fsck@dev-raid-raid.service
- machine...........> activation finished successfully
- unnamed> deployment finished successfully
- tests> echo -n important-data > /data/back-me-up
- machine...........> backing up machine ‘machine’ using id ‘20181110185327’
- machine...........> + created snapshot of volume ‘vol-025fc57a5860f3dda’: ‘snap-0cee34958762163e0’
- machine...........> + created snapshot of volume ‘vol-0e2f3bcb20a38ad66’: ‘snap-064f9a4a709760d9d’
- machine...........> + created snapshot of volume ‘vol-002ed0f6f93669986’: ‘snap-0209873f7191572b8’
- tests> rm /data/back-me-up
- warning: are you sure you want to stop machine 'machine' (y/N) y
- machine...........> stopping EC2 machine... Connection to 18.234.69.140 closed by remote host.
- [stopping] [stopping] [stopping] [stopping] [stopping] [stopped]
- machine...........> restoring machine ‘machine’ to backup ‘20181110185327’
- machine...........> detaching volume from ‘machine’
- machine...........> creating volume from snapshot ‘snap-0209873f7191572b8’
- machine...........> waiting for snapshot ‘snap-0209873f7191572b8’ to have status ‘completed’... [completed]
- machine...........> waiting for volume ‘vol-002ed0f6f93669986’ to become available... [available]
- machine...........> waiting for volume ‘vol-0cc34ace124e23053’ to become available... [creating] [available]
- machine...........> attaching volume ‘vol-0cc34ace124e23053’ to ‘machine’ as /dev/nvme1n1
- warning: are you sure you want to destroy EBS volume ‘vol-002ed0f6f93669986’? (y/N) y
- machine...........> destroying EBS volume ‘vol-002ed0f6f93669986’...
- machine...........> detaching volume from ‘machine’
- machine...........> creating volume from snapshot ‘snap-0cee34958762163e0’
- machine...........> waiting for snapshot ‘snap-0cee34958762163e0’ to have status ‘completed’... [completed]
- machine...........> waiting for volume ‘vol-025fc57a5860f3dda’ to become available... [available]
- machine...........> waiting for volume ‘vol-0d16e4c54b61c3c1b’ to become available... [creating] [available]
- machine...........> attaching volume ‘vol-0d16e4c54b61c3c1b’ to ‘machine’ as /dev/nvme2n1
- warning: are you sure you want to destroy EBS volume ‘vol-025fc57a5860f3dda’? (y/N) y
- machine...........> destroying EBS volume ‘vol-025fc57a5860f3dda’...
- machine...........> detaching volume from ‘machine’
- machine...........> creating volume from snapshot ‘snap-064f9a4a709760d9d’
- machine...........> waiting for snapshot ‘snap-064f9a4a709760d9d’ to have status ‘completed’... [completed]
- machine...........> waiting for volume ‘vol-0e2f3bcb20a38ad66’ to become available... [available]
- machine...........> waiting for volume ‘vol-0078e968be5341995’ to become available... [creating] [available]
- machine...........> attaching volume ‘vol-0078e968be5341995’ to ‘machine’ as /dev/xvda1
- warning: are you sure you want to destroy EBS volume ‘vol-0e2f3bcb20a38ad66’? (y/N) y
- machine...........> destroying EBS volume ‘vol-0e2f3bcb20a38ad66’...
- machine...........> starting EC2 machine...
- machine...........> waiting for IP address... [pending] [pending] [running] 52.23.249.117 / 172.31.30.49
- machine...........> warning: IP address has changed, you may need to run ‘nixops deploy’
- machine...........> waiting for SSH......................................
- warning: restore finished; please note that you might need to run ‘nixops deploy’ to fix configuration issues regarding changed IP addresses
- tests> echo -n important-data | diff /data/back-me-up -
- tests> mount | grep '/dev/mapper/raid-raid on /data type ext4'
- machine...........> /dev/mapper/raid-raid on /data type ext4 (rw,relatime,stripe=32,data=ordered)
- tests> mount | grep '/dev/nvme0n1p1 on /'
- machine...........> /dev/nvme0n1p1 on / type ext4 (rw,relatime,data=ordered)
- machine...........> /dev/nvme0n1p1 on /nix/store type ext4 (ro,relatime,data=ordered)
- machine...........> removing backup 20181110185327
- machine...........> removing snapshot snap-0cee34958762163e0
- machine...........> removing snapshot snap-064f9a4a709760d9d
- machine...........> removing snapshot snap-0209873f7191572b8
- warning: are you sure you want to destroy EC2 machine ‘machine’? (y/N) y
- machine...........> destroying EC2 machine... [shutting-down] Connection to 52.23.249.117 closed by remote host.
- [shutting-down] [shutting-down] [terminated]
- warning: are you sure you want to destroy EBS volume ‘vol-0d16e4c54b61c3c1b’? (y/N) y
- machine...........> destroying EBS volume ‘vol-0d16e4c54b61c3c1b’...
- warning: are you sure you want to destroy EBS volume ‘vol-0078e968be5341995’? (y/N) y
- machine...........> destroying EBS volume ‘vol-0078e968be5341995’...
- warning: are you sure you want to destroy EBS volume ‘vol-0cc34ace124e23053’? (y/N) y
- machine...........> destroying EBS volume ‘vol-0cc34ace124e23053’...
- warning: are you sure you want to destroy keypair ‘charon-df8d0b59-e508-11e8-b9db-0242da8f56fe-my-key-pair’? (y/N) y
- ssh-security-group> deleting EC2 security group `charon-df8d0b59-e508-11e8-b9db-0242da8f56fe-ssh-security-group' ID `sg-0b8390405e0a2146f'...
- my-key-pair.......> deleting EC2 key pair ‘charon-df8d0b59-e508-11e8-b9db-0242da8f56fe-my-key-pair’...
- deployment ‘df8d0b59-e508-11e8-b9db-0242da8f56fe’ destroyed
- .
- ----------------------------------------------------------------------
- Ran 2 tests in 698.877s
- OK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement