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_xd
- ssh-security-group> creating EC2 security group ‘charon-fa6cc307-e502-11e8-85cb-0242da8f56fe-ssh-security-group’...
- my-key-pair.......> uploading EC2 key pair ‘charon-fa6cc307-e502-11e8-85cb-0242da8f56fe-my-key-pair’...
- ssh-security-group> adding new rules to EC2 security group ‘charon-fa6cc307-e502-11e8-85cb-0242da8f56fe-ssh-security-group’...
- machine...........> creating EC2 instance (AMI ‘ami-009c9c3f1af480ff3’, type ‘c4.large’, region ‘us-east-1’)...
- machine...........> waiting for IP address... [pending] [pending] [pending] [running] 54.197.28.42 / 172.31.4.226
- 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/gbkzwd243pl9qir88wbksx6h11c7nigq-etc-hosts.drv
- /nix/store/d4vrf4wjzgilr208xks5shqfh0ybyglp-unit-nscd.service.drv
- /nix/store/mcakjhskh7zy56zmdb8f8ha1kzs991li-system-units.drv
- /nix/store/z8737vrrxn1z754sj0knyp5f75wvj851-etc-ssh_known_hosts.drv
- /nix/store/sjhwkj5410yc1k5pvkrn28z5ip3fka6h-etc.drv
- /nix/store/c9lngdg7ha9fii4n4cbd1pw11mj6phy3-nixos-system-machine-18.09.1023.06fb0253afa.drv
- /nix/store/xjrwyvzqnxwbzaf8yvkk59dgzi5jq99r-nixops-machines.drv
- building '/nix/store/gbkzwd243pl9qir88wbksx6h11c7nigq-etc-hosts.drv'...
- building '/nix/store/z8737vrrxn1z754sj0knyp5f75wvj851-etc-ssh_known_hosts.drv'...
- building '/nix/store/d4vrf4wjzgilr208xks5shqfh0ybyglp-unit-nscd.service.drv'...
- building '/nix/store/mcakjhskh7zy56zmdb8f8ha1kzs991li-system-units.drv'...
- building '/nix/store/sjhwkj5410yc1k5pvkrn28z5ip3fka6h-etc.drv'...
- building '/nix/store/c9lngdg7ha9fii4n4cbd1pw11mj6phy3-nixos-system-machine-18.09.1023.06fb0253afa.drv'...
- building '/nix/store/xjrwyvzqnxwbzaf8yvkk59dgzi5jq99r-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@54.197.28.42'...
- machine...........> copying path '/nix/store/9rgdrma0jj6kl00fbvgi0aqh1i417pk9-etc-hosts' to 'ssh://root@54.197.28.42'...
- machine...........> copying path '/nix/store/dz5pnsdscvs82nxc2prwkxccc97al5ix-setup-keys.sh' to 'ssh://root@54.197.28.42'...
- machine...........> copying path '/nix/store/l7hck0fdwqviqib9lbnffrmlcnqsd91n-etc-ssh_known_hosts' to 'ssh://root@54.197.28.42'...
- machine...........> copying path '/nix/store/h7iki3s5rh5b2187zs3471g4mpl3ni8x-unit-nixops-keys.service-disabled' to 'ssh://root@54.197.28.42'...
- machine...........> copying path '/nix/store/pzlb7i9pipf9n9vbb2ph1dmk4aqgj9cz-unit-encrypted-links.target' to 'ssh://root@54.197.28.42'...
- machine...........> copying path '/nix/store/p83jxzhpk1igz76b0p2h5x19jly20npd-unit-apply-ec2-data.service' to 'ssh://root@54.197.28.42'...
- machine...........> copying path '/nix/store/zkab0ghm4dyrkp38jsycpklv8lzqs32p-unit-nscd.service' to 'ssh://root@54.197.28.42'...
- machine...........> copying path '/nix/store/9hbpnbb4r5v1if4ddkkpxik0z8wgf6f5-system-units' to 'ssh://root@54.197.28.42'...
- machine...........> copying path '/nix/store/skll3mpql4akdkhvpa2z4g7ijbhrv0dn-etc' to 'ssh://root@54.197.28.42'...
- machine...........> copying path '/nix/store/54m6yxmihpvkhqmsr3izj60q95aqy0nx-nixos-system-machine-18.09.1023.06fb0253afa' to 'ssh://root@54.197.28.42'...
- 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...........> activation finished successfully
- unnamed> deployment finished successfully
- tests> echo -n important-data > /back-me-up
- machine...........> backing up machine ‘machine’ using id ‘20181110181048’
- machine...........> + created snapshot of volume ‘vol-0f27248fda533042d’: ‘snap-0db83e5dc37008c42’
- tests> rm /back-me-up
- warning: are you sure you want to stop machine 'machine' (y/N) y
- machine...........> stopping EC2 machine... [stopping] Connection to 54.197.28.42 closed by remote host.
- [stopping] [stopping] [stopping] [stopped]
- machine...........> restoring machine ‘machine’ to backup ‘20181110181048’
- machine...........> detaching volume from ‘machine’
- machine...........> creating volume from snapshot ‘snap-0db83e5dc37008c42’
- machine...........> waiting for snapshot ‘snap-0db83e5dc37008c42’ to have status ‘completed’... [pending] [pending] [pending] [pending] [pending] [completed]
- machine...........> waiting for volume ‘vol-0f27248fda533042d’ to become available... [available]
- machine...........> waiting for volume ‘vol-0970fcfb6236273a1’ to become available... [creating] [available]
- machine...........> attaching volume ‘vol-0970fcfb6236273a1’ to ‘machine’ as /dev/xvda1
- warning: are you sure you want to destroy EBS volume ‘vol-0f27248fda533042d’? (y/N) y
- machine...........> destroying EBS volume ‘vol-0f27248fda533042d’...
- machine...........> starting EC2 machine...
- machine...........> waiting for IP address... [pending] [pending] [running] 18.215.161.85 / 172.31.4.226
- 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 20181110181048
- machine...........> removing snapshot snap-0db83e5dc37008c42
- warning: are you sure you want to destroy EC2 machine ‘machine’? (y/N) y
- machine...........> destroying EC2 machine... [shutting-down] Connection to 18.215.161.85 closed by remote host.
- [shutting-down] [shutting-down] [shutting-down] [shutting-down] [shutting-down] [terminated]
- warning: are you sure you want to destroy EBS volume ‘vol-0970fcfb6236273a1’? (y/N) y
- machine...........> destroying EBS volume ‘vol-0970fcfb6236273a1’...
- ssh-security-group> deleting EC2 security group `charon-fa6cc307-e502-11e8-85cb-0242da8f56fe-ssh-security-group' ID `sg-00a2baff457451728'...
- warning: are you sure you want to destroy keypair ‘charon-fa6cc307-e502-11e8-85cb-0242da8f56fe-my-key-pair’? (y/N) y
- my-key-pair.......> deleting EC2 key pair ‘charon-fa6cc307-e502-11e8-85cb-0242da8f56fe-my-key-pair’...
- deployment ‘fa6cc307-e502-11e8-85cb-0242da8f56fe’ destroyed
- .ssh-security-group> creating EC2 security group ‘charon-893384f8-e503-11e8-8f30-0242da8f56fe-ssh-security-group’...
- my-key-pair.......> uploading EC2 key pair ‘charon-893384f8-e503-11e8-8f30-0242da8f56fe-my-key-pair’...
- ssh-security-group> adding new rules to EC2 security group ‘charon-893384f8-e503-11e8-8f30-0242da8f56fe-ssh-security-group’...
- machine...........> creating EC2 instance (AMI ‘ami-009c9c3f1af480ff3’, type ‘c4.large’, region ‘us-east-1’)...
- machine...........> waiting for IP address... [pending] [pending] [pending] [pending] [pending] [pending] [running] 54.173.21.158 / 172.31.8.55
- 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/wd8ffmlbrbs8nly4bsqi4k331gngk8if-etc-hosts.drv
- /nix/store/1mclapqcsh0agbhh901l81hd5szy8gfd-unit-nscd.service.drv
- /nix/store/6cbkc35fqhkksj4pmnascqzdcmy7h63f-etc-ssh_known_hosts.drv
- /nix/store/9yb0bbd2pc875whnwr7w2ld3hx5gv223-system-units.drv
- /nix/store/byxildy8l864rvipdpv7mgfp0s471q2y-etc.drv
- /nix/store/7cp2xkwgyza64fl1kkz8nbj8sajdiqp3-nixos-system-machine-18.09.1023.06fb0253afa.drv
- /nix/store/n9n6vxzjp3y6qfhf2vz73jfv1vg1d421-nixops-machines.drv
- building '/nix/store/wd8ffmlbrbs8nly4bsqi4k331gngk8if-etc-hosts.drv'...
- building '/nix/store/6cbkc35fqhkksj4pmnascqzdcmy7h63f-etc-ssh_known_hosts.drv'...
- building '/nix/store/1mclapqcsh0agbhh901l81hd5szy8gfd-unit-nscd.service.drv'...
- building '/nix/store/9yb0bbd2pc875whnwr7w2ld3hx5gv223-system-units.drv'...
- building '/nix/store/byxildy8l864rvipdpv7mgfp0s471q2y-etc.drv'...
- building '/nix/store/7cp2xkwgyza64fl1kkz8nbj8sajdiqp3-nixos-system-machine-18.09.1023.06fb0253afa.drv'...
- building '/nix/store/n9n6vxzjp3y6qfhf2vz73jfv1vg1d421-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@54.173.21.158'...
- machine...........> copying path '/nix/store/dz5pnsdscvs82nxc2prwkxccc97al5ix-setup-keys.sh' to 'ssh://root@54.173.21.158'...
- machine...........> copying path '/nix/store/dd5rbzy4ayk7i7jlpayvcfl0qwz6z1zw-etc-ssh_known_hosts' to 'ssh://root@54.173.21.158'...
- machine...........> copying path '/nix/store/h7iki3s5rh5b2187zs3471g4mpl3ni8x-unit-nixops-keys.service-disabled' to 'ssh://root@54.173.21.158'...
- machine...........> copying path '/nix/store/pzlb7i9pipf9n9vbb2ph1dmk4aqgj9cz-unit-encrypted-links.target' to 'ssh://root@54.173.21.158'...
- machine...........> copying path '/nix/store/p83jxzhpk1igz76b0p2h5x19jly20npd-unit-apply-ec2-data.service' to 'ssh://root@54.173.21.158'...
- machine...........> copying path '/nix/store/zax1fzbmmijmkkdffgypwd1n5ipcjn8m-etc-hosts' to 'ssh://root@54.173.21.158'...
- machine...........> copying path '/nix/store/pqjja1sikx43w1sm66y98rmf0bhiqjim-unit-nscd.service' to 'ssh://root@54.173.21.158'...
- machine...........> copying path '/nix/store/rmjsb15hwgaw6l3j6m1imqi1whqlhpvd-system-units' to 'ssh://root@54.173.21.158'...
- machine...........> copying path '/nix/store/x8k99lwvsd1cfiz5hv4hpnib85ylgssj-etc' to 'ssh://root@54.173.21.158'...
- machine...........> copying path '/nix/store/ni5gnib36vg9pzp4ch2zkznb2rf8kmwj-nixos-system-machine-18.09.1023.06fb0253afa' to 'ssh://root@54.173.21.158'...
- 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...........> activation finished successfully
- unnamed> deployment finished successfully
- tests> echo -n important-data > /back-me-up
- machine...........> backing up machine ‘machine’ using id ‘20181110181439’
- machine...........> + created snapshot of volume ‘vol-0a9cfe735898b048c’: ‘snap-0ac7b2db47ae3a25c’
- tests> rm /back-me-up
- warning: are you sure you want to stop machine 'machine' (y/N) y
- machine...........> stopping EC2 machine... Connection to 54.173.21.158 closed by remote host.
- [stopping] [stopping] [stopping] [stopping] [stopped]
- machine...........> restoring machine ‘machine’ to backup ‘20181110181439’
- machine...........> detaching volume from ‘machine’
- machine...........> creating volume from snapshot ‘snap-0ac7b2db47ae3a25c’
- machine...........> waiting for snapshot ‘snap-0ac7b2db47ae3a25c’ to have status ‘completed’... [pending] [pending] [pending] [completed]
- machine...........> waiting for volume ‘vol-0a9cfe735898b048c’ to become available... [available]
- machine...........> waiting for volume ‘vol-022eff3a6f087990d’ to become available... [creating] [available]
- machine...........> attaching volume ‘vol-022eff3a6f087990d’ to ‘machine’ as /dev/xvda1
- warning: are you sure you want to destroy EBS volume ‘vol-0a9cfe735898b048c’? (y/N) y
- machine...........> destroying EBS volume ‘vol-0a9cfe735898b048c’...
- machine...........> starting EC2 machine...
- machine...........> waiting for IP address... [pending] [pending] [running] 54.197.0.198 / 172.31.8.55
- 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 20181110181439
- machine...........> removing snapshot snap-0ac7b2db47ae3a25c
- warning: are you sure you want to destroy EC2 machine ‘machine’? (y/N) y
- machine...........> destroying EC2 machine... [shutting-down] Connection to 54.197.0.198 closed by remote host.
- [shutting-down] [shutting-down] [shutting-down] [shutting-down] [shutting-down] [terminated]
- warning: are you sure you want to destroy EBS volume ‘vol-022eff3a6f087990d’? (y/N) y
- machine...........> destroying EBS volume ‘vol-022eff3a6f087990d’...
- ssh-security-group> deleting EC2 security group `charon-893384f8-e503-11e8-8f30-0242da8f56fe-ssh-security-group' ID `sg-069a7be7104eb0eaa'...
- warning: are you sure you want to destroy keypair ‘charon-893384f8-e503-11e8-8f30-0242da8f56fe-my-key-pair’? (y/N) y
- my-key-pair.......> deleting EC2 key pair ‘charon-893384f8-e503-11e8-8f30-0242da8f56fe-my-key-pair’...
- deployment ‘893384f8-e503-11e8-8f30-0242da8f56fe’ destroyed
- .
- ----------------------------------------------------------------------
- Ran 2 tests in 462.650s
- OK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement