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_simple_nvme
- ssh-security-group> creating EC2 security group ‘charon-24d07907-e505-11e8-b833-0242da8f56fe-ssh-security-group’...
- my-key-pair.......> uploading EC2 key pair ‘charon-24d07907-e505-11e8-b833-0242da8f56fe-my-key-pair’...
- ssh-security-group> adding new rules to EC2 security group ‘charon-24d07907-e505-11e8-b833-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.206.71.196 / 172.31.28.235
- machine...........> waiting for SSH.....................
- machine...........> replacing temporary host key...
- machine...........> setting state version to 18.09
- building all machine configurations...
- these derivations will be built:
- /nix/store/3pvpi5c8szdyn0ggw811mb0fi3lzkhqv-etc-hosts.drv
- /nix/store/y7yvx4hkz8gb24a8hslfv9j4k78bh7l3-unit-nscd.service.drv
- /nix/store/52a2npax5y0d1crrykajd48bkn1lkwb8-system-units.drv
- /nix/store/padq3q12hykrmbvaqd0diid16y8jqgzk-etc-ssh_known_hosts.drv
- /nix/store/x4niaqy8kzx380hbjafpcackgxvv2553-etc.drv
- /nix/store/p1s3n31m9d9fm1g5i8zqmavs8d3nl3dl-nixos-system-machine-18.09.1023.06fb0253afa.drv
- /nix/store/hjjbdagj9dxnhr3kb3hcyd88wxbvbkkb-nixops-machines.drv
- building '/nix/store/3pvpi5c8szdyn0ggw811mb0fi3lzkhqv-etc-hosts.drv'...
- building '/nix/store/padq3q12hykrmbvaqd0diid16y8jqgzk-etc-ssh_known_hosts.drv'...
- building '/nix/store/y7yvx4hkz8gb24a8hslfv9j4k78bh7l3-unit-nscd.service.drv'...
- building '/nix/store/52a2npax5y0d1crrykajd48bkn1lkwb8-system-units.drv'...
- building '/nix/store/x4niaqy8kzx380hbjafpcackgxvv2553-etc.drv'...
- building '/nix/store/p1s3n31m9d9fm1g5i8zqmavs8d3nl3dl-nixos-system-machine-18.09.1023.06fb0253afa.drv'...
- building '/nix/store/hjjbdagj9dxnhr3kb3hcyd88wxbvbkkb-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 11 paths...
- machine...........> copying path '/nix/store/7fn6zbrk93bzfihm64cjqgqsqvbiqs43-unit-script-apply-ec2-data-start' to 'ssh://root@52.206.71.196'...
- machine...........> copying path '/nix/store/cpm15xwm5wqpv4x9xdm6dcp9g2ikhrxh-etc-ssh_known_hosts' to 'ssh://root@52.206.71.196'...
- machine...........> copying path '/nix/store/dz5pnsdscvs82nxc2prwkxccc97al5ix-setup-keys.sh' to 'ssh://root@52.206.71.196'...
- machine...........> copying path '/nix/store/fkfz4zd7wpnih0fhcpnbcr6bpw502w8c-etc-hosts' to 'ssh://root@52.206.71.196'...
- machine...........> copying path '/nix/store/h7iki3s5rh5b2187zs3471g4mpl3ni8x-unit-nixops-keys.service-disabled' to 'ssh://root@52.206.71.196'...
- machine...........> copying path '/nix/store/lh7fk64z1cf7y5fb7cd3y7lk5qc9vn5c-unit-nscd.service' to 'ssh://root@52.206.71.196'...
- machine...........> copying path '/nix/store/p83jxzhpk1igz76b0p2h5x19jly20npd-unit-apply-ec2-data.service' to 'ssh://root@52.206.71.196'...
- machine...........> copying path '/nix/store/pzlb7i9pipf9n9vbb2ph1dmk4aqgj9cz-unit-encrypted-links.target' to 'ssh://root@52.206.71.196'...
- machine...........> copying path '/nix/store/hmc968c021v58h27mgfhdxwqbwhh88jz-system-units' to 'ssh://root@52.206.71.196'...
- machine...........> copying path '/nix/store/hns3vcgam0xwvw3kcarcf822lw31q4lm-etc' to 'ssh://root@52.206.71.196'...
- machine...........> copying path '/nix/store/nx7zy9p0ak4z04ixbgxpagfy226xnbyb-nixos-system-machine-18.09.1023.06fb0253afa' to 'ssh://root@52.206.71.196'...
- unnamed> closures copied successfully
- machine...........> updating GRUB 2 menu...
- machine...........> stopping the following units: setting up /etc...
- machine...........> apply-ec2-data.service, nscd.service
- 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...........> activation finished successfully
- unnamed> deployment finished successfully
- tests> echo -n important-data > /back-me-up
- machine...........> backing up machine ‘machine’ using id ‘20181110182603’
- machine...........> + created snapshot of volume ‘vol-0f1227a11b299ae2e’: ‘snap-0cbad76fecf0fe5d7’
- tests> rm /back-me-up
- warning: are you sure you want to stop machine 'machine' (y/N) y
- machine...........> stopping EC2 machine... Connection to 52.206.71.196 closed by remote host.
- [stopping] [stopping] [stopping] [stopping] [stopping] [stopping] [stopped]
- machine...........> restoring machine ‘machine’ to backup ‘20181110182603’
- machine...........> detaching volume from ‘machine’
- machine...........> creating volume from snapshot ‘snap-0cbad76fecf0fe5d7’
- machine...........> waiting for snapshot ‘snap-0cbad76fecf0fe5d7’ to have status ‘completed’... [pending] [pending] [pending] [pending] [pending] [completed]
- machine...........> waiting for volume ‘vol-0f1227a11b299ae2e’ to become available... [available]
- machine...........> waiting for volume ‘vol-0642b3cd796bec5dc’ to become available... [creating] [available]
- machine...........> attaching volume ‘vol-0642b3cd796bec5dc’ to ‘machine’ as /dev/xvda1
- warning: are you sure you want to destroy EBS volume ‘vol-0f1227a11b299ae2e’? (y/N) y
- machine...........> destroying EBS volume ‘vol-0f1227a11b299ae2e’...
- machine...........> starting EC2 machine...
- machine...........> waiting for IP address... [pending] [running] 18.212.111.35 / 172.31.28.235
- 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 /back-me-up -
- machine...........> removing backup 20181110182603
- machine...........> removing snapshot snap-0cbad76fecf0fe5d7
- warning: are you sure you want to destroy EC2 machine ‘machine’? (y/N) y
- machine...........> destroying EC2 machine... [shutting-down] Connection to 18.212.111.35 closed by remote host.
- [shutting-down] [shutting-down] [shutting-down] [shutting-down] [terminated]
- warning: are you sure you want to destroy EBS volume ‘vol-0642b3cd796bec5dc’? (y/N) y
- machine...........> destroying EBS volume ‘vol-0642b3cd796bec5dc’...
- ssh-security-group> deleting EC2 security group `charon-24d07907-e505-11e8-b833-0242da8f56fe-ssh-security-group' ID `sg-001bed42b4549ada4'...
- warning: are you sure you want to destroy keypair ‘charon-24d07907-e505-11e8-b833-0242da8f56fe-my-key-pair’? (y/N) y
- my-key-pair.......> deleting EC2 key pair ‘charon-24d07907-e505-11e8-b833-0242da8f56fe-my-key-pair’...
- deployment ‘24d07907-e505-11e8-b833-0242da8f56fe’ destroyed
- .ssh-security-group> creating EC2 security group ‘charon-b039e2f3-e505-11e8-afbe-0242da8f56fe-ssh-security-group’...
- ssh-security-group> adding new rules to EC2 security group ‘charon-b039e2f3-e505-11e8-afbe-0242da8f56fe-ssh-security-group’...
- my-key-pair.......> uploading EC2 key pair ‘charon-b039e2f3-e505-11e8-afbe-0242da8f56fe-my-key-pair’...
- machine...........> creating EC2 instance (AMI ‘ami-009c9c3f1af480ff3’, type ‘c5.large’, region ‘us-east-1’)...
- machine...........> waiting for IP address... [pending] [pending] [running] 52.71.180.228 / 172.31.31.15
- machine...........> waiting for SSH................
- machine...........> replacing temporary host key...
- machine...........> setting state version to 18.09
- building all machine configurations...
- these derivations will be built:
- /nix/store/bfi87ls0lfgmr06nhylnks9bx4w4j46n-etc-hosts.drv
- /nix/store/cx26zlx0dp26bwa1mskx90y2dm49rcqq-etc-ssh_known_hosts.drv
- /nix/store/ixgr66vlvqz8jsrm7sfyp2ivz4gbqbp9-unit-nscd.service.drv
- /nix/store/jxs65plnbw4lladvz6sadjmw9bq6cmha-system-units.drv
- /nix/store/b0xwm4p106jac659a85cyimpg62xk83h-etc.drv
- /nix/store/pnkj5mj8v8rdr0f1whhgjcpv3dlq8py1-nixos-system-machine-18.09.1023.06fb0253afa.drv
- /nix/store/8kci9hggmffswkk63c18kbscdyk0ya2p-nixops-machines.drv
- building '/nix/store/bfi87ls0lfgmr06nhylnks9bx4w4j46n-etc-hosts.drv'...
- building '/nix/store/cx26zlx0dp26bwa1mskx90y2dm49rcqq-etc-ssh_known_hosts.drv'...
- building '/nix/store/ixgr66vlvqz8jsrm7sfyp2ivz4gbqbp9-unit-nscd.service.drv'...
- building '/nix/store/jxs65plnbw4lladvz6sadjmw9bq6cmha-system-units.drv'...
- building '/nix/store/b0xwm4p106jac659a85cyimpg62xk83h-etc.drv'...
- building '/nix/store/pnkj5mj8v8rdr0f1whhgjcpv3dlq8py1-nixos-system-machine-18.09.1023.06fb0253afa.drv'...
- building '/nix/store/8kci9hggmffswkk63c18kbscdyk0ya2p-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 11 paths...
- machine...........> copying path '/nix/store/7fn6zbrk93bzfihm64cjqgqsqvbiqs43-unit-script-apply-ec2-data-start' to 'ssh://root@52.71.180.228'...
- machine...........> copying path '/nix/store/2p063gn0syn0v4yl67ki3msdg32zwr97-etc-ssh_known_hosts' to 'ssh://root@52.71.180.228'...
- machine...........> copying path '/nix/store/dz5pnsdscvs82nxc2prwkxccc97al5ix-setup-keys.sh' to 'ssh://root@52.71.180.228'...
- machine...........> copying path '/nix/store/pzlb7i9pipf9n9vbb2ph1dmk4aqgj9cz-unit-encrypted-links.target' to 'ssh://root@52.71.180.228'...
- machine...........> copying path '/nix/store/h7iki3s5rh5b2187zs3471g4mpl3ni8x-unit-nixops-keys.service-disabled' to 'ssh://root@52.71.180.228'...
- machine...........> copying path '/nix/store/p83jxzhpk1igz76b0p2h5x19jly20npd-unit-apply-ec2-data.service' to 'ssh://root@52.71.180.228'...
- machine...........> copying path '/nix/store/qmmd94ia67skpi0x1s3n96imz2b0pjrr-etc-hosts' to 'ssh://root@52.71.180.228'...
- machine...........> copying path '/nix/store/q0vm5cx039xp12jxsbicg0b9xcmjgiav-unit-nscd.service' to 'ssh://root@52.71.180.228'...
- machine...........> copying path '/nix/store/yjhqszrmi640hvwkaw0x85py1grkpkab-system-units' to 'ssh://root@52.71.180.228'...
- machine...........> copying path '/nix/store/r5arj75zvnqh9ar2sipsd8651vd5x3yg-etc' to 'ssh://root@52.71.180.228'...
- machine...........> copying path '/nix/store/8jyqk7n84v6k5q5iicq50qllc2xmw4s4-nixos-system-machine-18.09.1023.06fb0253afa' to 'ssh://root@52.71.180.228'...
- 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...........> activation finished successfully
- unnamed> deployment finished successfully
- tests> echo -n important-data > /back-me-up
- machine...........> backing up machine ‘machine’ using id ‘20181110182944’
- machine...........> + created snapshot of volume ‘vol-012af5a7eb2c8f607’: ‘snap-05308f079417b8b89’
- tests> rm /back-me-up
- warning: are you sure you want to stop machine 'machine' (y/N) y
- machine...........> stopping EC2 machine... Connection to 52.71.180.228 closed by remote host.
- [stopping] [stopping] [stopping] [stopped]
- machine...........> restoring machine ‘machine’ to backup ‘20181110182944’
- machine...........> detaching volume from ‘machine’
- machine...........> creating volume from snapshot ‘snap-05308f079417b8b89’
- machine...........> waiting for snapshot ‘snap-05308f079417b8b89’ to have status ‘completed’... [pending] [pending] [pending] [completed]
- machine...........> waiting for volume ‘vol-012af5a7eb2c8f607’ to become available... [available]
- machine...........> waiting for volume ‘vol-084885520e80cdfa7’ to become available... [creating] [available]
- machine...........> attaching volume ‘vol-084885520e80cdfa7’ to ‘machine’ as /dev/xvda1
- warning: are you sure you want to destroy EBS volume ‘vol-012af5a7eb2c8f607’? (y/N) y
- machine...........> destroying EBS volume ‘vol-012af5a7eb2c8f607’...
- machine...........> starting EC2 machine...
- machine...........> waiting for IP address... [pending] [running] 35.171.165.155 / 172.31.31.15
- 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 /back-me-up -
- machine...........> removing backup 20181110182944
- machine...........> removing snapshot snap-05308f079417b8b89
- warning: are you sure you want to destroy EC2 machine ‘machine’? (y/N) y
- machine...........> destroying EC2 machine... [shutting-down] Connection to 35.171.165.155 closed by remote host.
- [shutting-down] [shutting-down] [shutting-down] [shutting-down] [terminated]
- warning: are you sure you want to destroy EBS volume ‘vol-084885520e80cdfa7’? (y/N) y
- machine...........> destroying EBS volume ‘vol-084885520e80cdfa7’...
- ssh-security-group> deleting EC2 security group `charon-b039e2f3-e505-11e8-afbe-0242da8f56fe-ssh-security-group' ID `sg-0ca8a92cbb47fc006'...
- warning: are you sure you want to destroy keypair ‘charon-b039e2f3-e505-11e8-afbe-0242da8f56fe-my-key-pair’? (y/N) y
- my-key-pair.......> deleting EC2 key pair ‘charon-b039e2f3-e505-11e8-afbe-0242da8f56fe-my-key-pair’...
- deployment ‘b039e2f3-e505-11e8-afbe-0242da8f56fe’ destroyed
- .
- ----------------------------------------------------------------------
- Ran 2 tests in 415.549s
- OK
- [nix-shell:~/projects/nixops]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement