Guest User

Untitled

a guest
Nov 10th, 2018
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [nix-shell:~/projects/nixops]$ python2 tests.py tests.functional.test_ec2_backups.test_ec2_backups_simple_xd
  2. ssh-security-group> creating EC2 security group ‘charon-fa6cc307-e502-11e8-85cb-0242da8f56fe-ssh-security-group’...
  3. my-key-pair.......> uploading EC2 key pair ‘charon-fa6cc307-e502-11e8-85cb-0242da8f56fe-my-key-pair’...
  4. ssh-security-group> adding new rules to EC2 security group ‘charon-fa6cc307-e502-11e8-85cb-0242da8f56fe-ssh-security-group’...
  5. machine...........> creating EC2 instance (AMI ‘ami-009c9c3f1af480ff3’, type ‘c4.large’, region ‘us-east-1’)...
  6. machine...........> waiting for IP address... [pending] [pending] [pending] [running] 54.197.28.42 / 172.31.4.226
  7. machine...........> waiting for SSH.............................
  8. machine...........> replacing temporary host key...
  9. machine...........> setting state version to 18.09
  10. building all machine configurations...
  11. these derivations will be built:
  12. /nix/store/gbkzwd243pl9qir88wbksx6h11c7nigq-etc-hosts.drv
  13. /nix/store/d4vrf4wjzgilr208xks5shqfh0ybyglp-unit-nscd.service.drv
  14. /nix/store/mcakjhskh7zy56zmdb8f8ha1kzs991li-system-units.drv
  15. /nix/store/z8737vrrxn1z754sj0knyp5f75wvj851-etc-ssh_known_hosts.drv
  16. /nix/store/sjhwkj5410yc1k5pvkrn28z5ip3fka6h-etc.drv
  17. /nix/store/c9lngdg7ha9fii4n4cbd1pw11mj6phy3-nixos-system-machine-18.09.1023.06fb0253afa.drv
  18. /nix/store/xjrwyvzqnxwbzaf8yvkk59dgzi5jq99r-nixops-machines.drv
  19. building '/nix/store/gbkzwd243pl9qir88wbksx6h11c7nigq-etc-hosts.drv'...
  20. building '/nix/store/z8737vrrxn1z754sj0knyp5f75wvj851-etc-ssh_known_hosts.drv'...
  21. building '/nix/store/d4vrf4wjzgilr208xks5shqfh0ybyglp-unit-nscd.service.drv'...
  22. building '/nix/store/mcakjhskh7zy56zmdb8f8ha1kzs991li-system-units.drv'...
  23. building '/nix/store/sjhwkj5410yc1k5pvkrn28z5ip3fka6h-etc.drv'...
  24. building '/nix/store/c9lngdg7ha9fii4n4cbd1pw11mj6phy3-nixos-system-machine-18.09.1023.06fb0253afa.drv'...
  25. building '/nix/store/xjrwyvzqnxwbzaf8yvkk59dgzi5jq99r-nixops-machines.drv'...
  26. machine...........> copying closure...
  27. machine...........> copying path '/nix/store/jydcprmgp4qjracq9x59310bkwa2qbzk-ena-1.5.2-4.14.78' from 'https://cache.nixos.org'...
  28. machine...........> copying path '/nix/store/fvgy6ydh3jishw50s7f13y8l6b0dj4cn-etc-hostname' from 'https://cache.nixos.org'...
  29. machine...........> copying path '/nix/store/65inzfy4wifqym6lqcyfmi6w7kkmiy51-etc-os-release' from 'https://cache.nixos.org'...
  30. machine...........> copying path '/nix/store/bf62q0fziprnmph0d0c3cis2swwnq7x1-firmware' from 'https://cache.nixos.org'...
  31. machine...........> copying path '/nix/store/87gd6h9zc8vb5glfy7i49f9dbn2zp603-initrd' from 'https://cache.nixos.org'...
  32. machine...........> copying path '/nix/store/42av4pzapm52rywk5lkmxgjidrlph7zz-etc-nixos.conf' from 'https://cache.nixos.org'...
  33. machine...........> copying path '/nix/store/30ql1vpiw4ygicjrx7fg72nmg2r0ngd4-issue' from 'https://cache.nixos.org'...
  34. machine...........> copying path '/nix/store/7q9z44scdnc6cd1c8h4ps4g0x7w41yk2-ixgbevf-4.3.4-4.14.78' from 'https://cache.nixos.org'...
  35. machine...........> copying path '/nix/store/ld86a2lkbs95rn9k8nqn3rkgq1rv67hi-linux-4.14.78' from 'https://cache.nixos.org'...
  36. machine...........> copying path '/nix/store/4lrrqsahbclgn4xd0f4p37bjcix1i5ga-nixos-manpages' from 'https://cache.nixos.org'...
  37. machine...........> copying path '/nix/store/4rzy16a26919h384vxf0barjjk44bzi2-kernel-modules' from 'https://cache.nixos.org'...
  38. machine...........> copying path '/nix/store/xs4h7211vh40ywzw6paxh7fgf0ijhay5-nixos-manual' from 'https://cache.nixos.org'...
  39. machine...........> copying path '/nix/store/vmk3wpgw5wgmacc92dvwbqbvphmmqggj-nixos-version' from 'https://cache.nixos.org'...
  40. machine...........> copying path '/nix/store/qkymiz60fhfhyg5v89nj4q1r6yax8gqv-nixos-help' from 'https://cache.nixos.org'...
  41. machine...........> copying path '/nix/store/x1ysifjlglyjk38kkjp8swighk21jv8q-system-path' from 'https://cache.nixos.org'...
  42. machine...........> copying path '/nix/store/jsd5h4cd555zgz55b1q8ysb7zi4ad66c-dbus-1' from 'https://cache.nixos.org'...
  43. machine...........> copying path '/nix/store/5nz95lqalri97y4qnwz9b4gs5aplpbr3-unit-polkit.service' from 'https://cache.nixos.org'...
  44. machine...........> copying path '/nix/store/azf4jbfcc73apxq6ii05gp27jy8ybsvy-unit-dbus.service' from 'https://cache.nixos.org'...
  45. machine...........> copying path '/nix/store/wgwv3pb69klv06mw30j3423yj8wn3adi-unit-dbus.service' from 'https://cache.nixos.org'...
  46. machine...........> copying path '/nix/store/xi99hh2x9cnnqq5ii79iw46d28233mfq-unit-systemd-fsck-.service' from 'https://cache.nixos.org'...
  47. machine...........> copying path '/nix/store/la5ibpm91gbi9g2c3dc9z7259nc9ajqv-user-units' from 'https://cache.nixos.org'...
  48. machine...........> copying 11 paths...
  49. machine...........> copying path '/nix/store/7fn6zbrk93bzfihm64cjqgqsqvbiqs43-unit-script-apply-ec2-data-start' to 'ssh://root@54.197.28.42'...
  50. machine...........> copying path '/nix/store/9rgdrma0jj6kl00fbvgi0aqh1i417pk9-etc-hosts' to 'ssh://root@54.197.28.42'...
  51. machine...........> copying path '/nix/store/dz5pnsdscvs82nxc2prwkxccc97al5ix-setup-keys.sh' to 'ssh://root@54.197.28.42'...
  52. machine...........> copying path '/nix/store/l7hck0fdwqviqib9lbnffrmlcnqsd91n-etc-ssh_known_hosts' to 'ssh://root@54.197.28.42'...
  53. machine...........> copying path '/nix/store/h7iki3s5rh5b2187zs3471g4mpl3ni8x-unit-nixops-keys.service-disabled' to 'ssh://root@54.197.28.42'...
  54. machine...........> copying path '/nix/store/pzlb7i9pipf9n9vbb2ph1dmk4aqgj9cz-unit-encrypted-links.target' to 'ssh://root@54.197.28.42'...
  55. machine...........> copying path '/nix/store/p83jxzhpk1igz76b0p2h5x19jly20npd-unit-apply-ec2-data.service' to 'ssh://root@54.197.28.42'...
  56. machine...........> copying path '/nix/store/zkab0ghm4dyrkp38jsycpklv8lzqs32p-unit-nscd.service' to 'ssh://root@54.197.28.42'...
  57. machine...........> copying path '/nix/store/9hbpnbb4r5v1if4ddkkpxik0z8wgf6f5-system-units' to 'ssh://root@54.197.28.42'...
  58. machine...........> copying path '/nix/store/skll3mpql4akdkhvpa2z4g7ijbhrv0dn-etc' to 'ssh://root@54.197.28.42'...
  59. machine...........> copying path '/nix/store/54m6yxmihpvkhqmsr3izj60q95aqy0nx-nixos-system-machine-18.09.1023.06fb0253afa' to 'ssh://root@54.197.28.42'...
  60. unnamed> closures copied successfully
  61. machine...........> updating GRUB 2 menu...
  62. machine...........> stopping the following units: apply-ec2-data.service, nscd.service
  63. machine...........> setting up /etc...
  64. machine...........> activating the configuration...
  65. machine...........> reloading user units for root...
  66. machine...........> setting up tmpfiles
  67. machine...........> reloading the following units: dbus.service
  68. machine...........> starting the following units: apply-ec2-data.service, nscd.service
  69. machine...........> activation finished successfully
  70. unnamed> deployment finished successfully
  71. tests> echo -n important-data > /back-me-up
  72. machine...........> backing up machine ‘machine’ using id ‘20181110181048’
  73. machine...........> + created snapshot of volume ‘vol-0f27248fda533042d’: ‘snap-0db83e5dc37008c42’
  74. tests> rm /back-me-up
  75. warning: are you sure you want to stop machine 'machine' (y/N) y
  76. machine...........> stopping EC2 machine... [stopping] Connection to 54.197.28.42 closed by remote host.
  77. [stopping] [stopping] [stopping] [stopped]
  78. machine...........> restoring machine ‘machine’ to backup ‘20181110181048’
  79. machine...........> detaching volume from ‘machine’
  80. machine...........> creating volume from snapshot ‘snap-0db83e5dc37008c42’
  81. machine...........> waiting for snapshot ‘snap-0db83e5dc37008c42’ to have status ‘completed’... [pending] [pending] [pending] [pending] [pending] [completed]
  82. machine...........> waiting for volume ‘vol-0f27248fda533042d’ to become available... [available]
  83. machine...........> waiting for volume ‘vol-0970fcfb6236273a1’ to become available... [creating] [available]
  84. machine...........> attaching volume ‘vol-0970fcfb6236273a1’ to ‘machine’ as /dev/xvda1
  85. warning: are you sure you want to destroy EBS volume ‘vol-0f27248fda533042d’? (y/N) y
  86. machine...........> destroying EBS volume ‘vol-0f27248fda533042d’...
  87. machine...........> starting EC2 machine...
  88. machine...........> waiting for IP address... [pending] [pending] [running] 18.215.161.85 / 172.31.4.226
  89. machine...........> warning: IP address has changed, you may need to run ‘nixops deploy’
  90. machine...........> waiting for SSH......................
  91. warning: restore finished; please note that you might need to run ‘nixops deploy’ to fix configuration issues regarding changed IP addresses
  92. tests> echo -n important-data | diff /back-me-up -
  93. machine...........> removing backup 20181110181048
  94. machine...........> removing snapshot snap-0db83e5dc37008c42
  95. warning: are you sure you want to destroy EC2 machine ‘machine’? (y/N) y
  96. machine...........> destroying EC2 machine... [shutting-down] Connection to 18.215.161.85 closed by remote host.
  97. [shutting-down] [shutting-down] [shutting-down] [shutting-down] [shutting-down] [terminated]
  98. warning: are you sure you want to destroy EBS volume ‘vol-0970fcfb6236273a1’? (y/N) y
  99. machine...........> destroying EBS volume ‘vol-0970fcfb6236273a1’...
  100. ssh-security-group> deleting EC2 security group `charon-fa6cc307-e502-11e8-85cb-0242da8f56fe-ssh-security-group' ID `sg-00a2baff457451728'...
  101. warning: are you sure you want to destroy keypair ‘charon-fa6cc307-e502-11e8-85cb-0242da8f56fe-my-key-pair’? (y/N) y
  102. my-key-pair.......> deleting EC2 key pair ‘charon-fa6cc307-e502-11e8-85cb-0242da8f56fe-my-key-pair’...
  103. deployment ‘fa6cc307-e502-11e8-85cb-0242da8f56fe’ destroyed
  104. .ssh-security-group> creating EC2 security group ‘charon-893384f8-e503-11e8-8f30-0242da8f56fe-ssh-security-group’...
  105. my-key-pair.......> uploading EC2 key pair ‘charon-893384f8-e503-11e8-8f30-0242da8f56fe-my-key-pair’...
  106. ssh-security-group> adding new rules to EC2 security group ‘charon-893384f8-e503-11e8-8f30-0242da8f56fe-ssh-security-group’...
  107. machine...........> creating EC2 instance (AMI ‘ami-009c9c3f1af480ff3’, type ‘c4.large’, region ‘us-east-1’)...
  108. machine...........> waiting for IP address... [pending] [pending] [pending] [pending] [pending] [pending] [running] 54.173.21.158 / 172.31.8.55
  109. machine...........> waiting for SSH.................
  110. machine...........> replacing temporary host key...
  111. machine...........> setting state version to 18.09
  112. building all machine configurations...
  113. these derivations will be built:
  114. /nix/store/wd8ffmlbrbs8nly4bsqi4k331gngk8if-etc-hosts.drv
  115. /nix/store/1mclapqcsh0agbhh901l81hd5szy8gfd-unit-nscd.service.drv
  116. /nix/store/6cbkc35fqhkksj4pmnascqzdcmy7h63f-etc-ssh_known_hosts.drv
  117. /nix/store/9yb0bbd2pc875whnwr7w2ld3hx5gv223-system-units.drv
  118. /nix/store/byxildy8l864rvipdpv7mgfp0s471q2y-etc.drv
  119. /nix/store/7cp2xkwgyza64fl1kkz8nbj8sajdiqp3-nixos-system-machine-18.09.1023.06fb0253afa.drv
  120. /nix/store/n9n6vxzjp3y6qfhf2vz73jfv1vg1d421-nixops-machines.drv
  121. building '/nix/store/wd8ffmlbrbs8nly4bsqi4k331gngk8if-etc-hosts.drv'...
  122. building '/nix/store/6cbkc35fqhkksj4pmnascqzdcmy7h63f-etc-ssh_known_hosts.drv'...
  123. building '/nix/store/1mclapqcsh0agbhh901l81hd5szy8gfd-unit-nscd.service.drv'...
  124. building '/nix/store/9yb0bbd2pc875whnwr7w2ld3hx5gv223-system-units.drv'...
  125. building '/nix/store/byxildy8l864rvipdpv7mgfp0s471q2y-etc.drv'...
  126. building '/nix/store/7cp2xkwgyza64fl1kkz8nbj8sajdiqp3-nixos-system-machine-18.09.1023.06fb0253afa.drv'...
  127. building '/nix/store/n9n6vxzjp3y6qfhf2vz73jfv1vg1d421-nixops-machines.drv'...
  128. machine...........> copying closure...
  129. machine...........> copying path '/nix/store/jydcprmgp4qjracq9x59310bkwa2qbzk-ena-1.5.2-4.14.78' from 'https://cache.nixos.org'...
  130. machine...........> copying path '/nix/store/fvgy6ydh3jishw50s7f13y8l6b0dj4cn-etc-hostname' from 'https://cache.nixos.org'...
  131. machine...........> copying path '/nix/store/65inzfy4wifqym6lqcyfmi6w7kkmiy51-etc-os-release' from 'https://cache.nixos.org'...
  132. machine...........> copying path '/nix/store/bf62q0fziprnmph0d0c3cis2swwnq7x1-firmware' from 'https://cache.nixos.org'...
  133. machine...........> copying path '/nix/store/87gd6h9zc8vb5glfy7i49f9dbn2zp603-initrd' from 'https://cache.nixos.org'...
  134. machine...........> copying path '/nix/store/42av4pzapm52rywk5lkmxgjidrlph7zz-etc-nixos.conf' from 'https://cache.nixos.org'...
  135. machine...........> copying path '/nix/store/30ql1vpiw4ygicjrx7fg72nmg2r0ngd4-issue' from 'https://cache.nixos.org'...
  136. machine...........> copying path '/nix/store/7q9z44scdnc6cd1c8h4ps4g0x7w41yk2-ixgbevf-4.3.4-4.14.78' from 'https://cache.nixos.org'...
  137. machine...........> copying path '/nix/store/ld86a2lkbs95rn9k8nqn3rkgq1rv67hi-linux-4.14.78' from 'https://cache.nixos.org'...
  138. machine...........> copying path '/nix/store/4lrrqsahbclgn4xd0f4p37bjcix1i5ga-nixos-manpages' from 'https://cache.nixos.org'...
  139. machine...........> copying path '/nix/store/4rzy16a26919h384vxf0barjjk44bzi2-kernel-modules' from 'https://cache.nixos.org'...
  140. machine...........> copying path '/nix/store/xs4h7211vh40ywzw6paxh7fgf0ijhay5-nixos-manual' from 'https://cache.nixos.org'...
  141. machine...........> copying path '/nix/store/vmk3wpgw5wgmacc92dvwbqbvphmmqggj-nixos-version' from 'https://cache.nixos.org'...
  142. machine...........> copying path '/nix/store/qkymiz60fhfhyg5v89nj4q1r6yax8gqv-nixos-help' from 'https://cache.nixos.org'...
  143. machine...........> copying path '/nix/store/x1ysifjlglyjk38kkjp8swighk21jv8q-system-path' from 'https://cache.nixos.org'...
  144. machine...........> copying path '/nix/store/jsd5h4cd555zgz55b1q8ysb7zi4ad66c-dbus-1' from 'https://cache.nixos.org'...
  145. machine...........> copying path '/nix/store/5nz95lqalri97y4qnwz9b4gs5aplpbr3-unit-polkit.service' from 'https://cache.nixos.org'...
  146. machine...........> copying path '/nix/store/azf4jbfcc73apxq6ii05gp27jy8ybsvy-unit-dbus.service' from 'https://cache.nixos.org'...
  147. machine...........> copying path '/nix/store/wgwv3pb69klv06mw30j3423yj8wn3adi-unit-dbus.service' from 'https://cache.nixos.org'...
  148. machine...........> copying path '/nix/store/xi99hh2x9cnnqq5ii79iw46d28233mfq-unit-systemd-fsck-.service' from 'https://cache.nixos.org'...
  149. machine...........> copying path '/nix/store/la5ibpm91gbi9g2c3dc9z7259nc9ajqv-user-units' from 'https://cache.nixos.org'...
  150. machine...........> copying 11 paths...
  151. machine...........> copying path '/nix/store/7fn6zbrk93bzfihm64cjqgqsqvbiqs43-unit-script-apply-ec2-data-start' to 'ssh://root@54.173.21.158'...
  152. machine...........> copying path '/nix/store/dz5pnsdscvs82nxc2prwkxccc97al5ix-setup-keys.sh' to 'ssh://root@54.173.21.158'...
  153. machine...........> copying path '/nix/store/dd5rbzy4ayk7i7jlpayvcfl0qwz6z1zw-etc-ssh_known_hosts' to 'ssh://root@54.173.21.158'...
  154. machine...........> copying path '/nix/store/h7iki3s5rh5b2187zs3471g4mpl3ni8x-unit-nixops-keys.service-disabled' to 'ssh://root@54.173.21.158'...
  155. machine...........> copying path '/nix/store/pzlb7i9pipf9n9vbb2ph1dmk4aqgj9cz-unit-encrypted-links.target' to 'ssh://root@54.173.21.158'...
  156. machine...........> copying path '/nix/store/p83jxzhpk1igz76b0p2h5x19jly20npd-unit-apply-ec2-data.service' to 'ssh://root@54.173.21.158'...
  157. machine...........> copying path '/nix/store/zax1fzbmmijmkkdffgypwd1n5ipcjn8m-etc-hosts' to 'ssh://root@54.173.21.158'...
  158. machine...........> copying path '/nix/store/pqjja1sikx43w1sm66y98rmf0bhiqjim-unit-nscd.service' to 'ssh://root@54.173.21.158'...
  159. machine...........> copying path '/nix/store/rmjsb15hwgaw6l3j6m1imqi1whqlhpvd-system-units' to 'ssh://root@54.173.21.158'...
  160. machine...........> copying path '/nix/store/x8k99lwvsd1cfiz5hv4hpnib85ylgssj-etc' to 'ssh://root@54.173.21.158'...
  161. machine...........> copying path '/nix/store/ni5gnib36vg9pzp4ch2zkznb2rf8kmwj-nixos-system-machine-18.09.1023.06fb0253afa' to 'ssh://root@54.173.21.158'...
  162. unnamed> closures copied successfully
  163. machine...........> updating GRUB 2 menu...
  164. machine...........> stopping the following units: apply-ec2-data.service, nscd.service
  165. machine...........> setting up /etc...
  166. machine...........> activating the configuration...
  167. machine...........> reloading user units for root...
  168. machine...........> setting up tmpfiles
  169. machine...........> reloading the following units: dbus.service
  170. machine...........> starting the following units: apply-ec2-data.service, nscd.service
  171. machine...........> activation finished successfully
  172. unnamed> deployment finished successfully
  173. tests> echo -n important-data > /back-me-up
  174. machine...........> backing up machine ‘machine’ using id ‘20181110181439’
  175. machine...........> + created snapshot of volume ‘vol-0a9cfe735898b048c’: ‘snap-0ac7b2db47ae3a25c’
  176. tests> rm /back-me-up
  177. warning: are you sure you want to stop machine 'machine' (y/N) y
  178. machine...........> stopping EC2 machine... Connection to 54.173.21.158 closed by remote host.
  179. [stopping] [stopping] [stopping] [stopping] [stopped]
  180. machine...........> restoring machine ‘machine’ to backup ‘20181110181439’
  181. machine...........> detaching volume from ‘machine’
  182. machine...........> creating volume from snapshot ‘snap-0ac7b2db47ae3a25c’
  183. machine...........> waiting for snapshot ‘snap-0ac7b2db47ae3a25c’ to have status ‘completed’... [pending] [pending] [pending] [completed]
  184. machine...........> waiting for volume ‘vol-0a9cfe735898b048c’ to become available... [available]
  185. machine...........> waiting for volume ‘vol-022eff3a6f087990d’ to become available... [creating] [available]
  186. machine...........> attaching volume ‘vol-022eff3a6f087990d’ to ‘machine’ as /dev/xvda1
  187. warning: are you sure you want to destroy EBS volume ‘vol-0a9cfe735898b048c’? (y/N) y
  188. machine...........> destroying EBS volume ‘vol-0a9cfe735898b048c’...
  189. machine...........> starting EC2 machine...
  190. machine...........> waiting for IP address... [pending] [pending] [running] 54.197.0.198 / 172.31.8.55
  191. machine...........> warning: IP address has changed, you may need to run ‘nixops deploy’
  192. machine...........> waiting for SSH...............................
  193. warning: restore finished; please note that you might need to run ‘nixops deploy’ to fix configuration issues regarding changed IP addresses
  194. tests> echo -n important-data | diff /back-me-up -
  195. machine...........> removing backup 20181110181439
  196. machine...........> removing snapshot snap-0ac7b2db47ae3a25c
  197. warning: are you sure you want to destroy EC2 machine ‘machine’? (y/N) y
  198. machine...........> destroying EC2 machine... [shutting-down] Connection to 54.197.0.198 closed by remote host.
  199. [shutting-down] [shutting-down] [shutting-down] [shutting-down] [shutting-down] [terminated]
  200. warning: are you sure you want to destroy EBS volume ‘vol-022eff3a6f087990d’? (y/N) y
  201. machine...........> destroying EBS volume ‘vol-022eff3a6f087990d’...
  202. ssh-security-group> deleting EC2 security group `charon-893384f8-e503-11e8-8f30-0242da8f56fe-ssh-security-group' ID `sg-069a7be7104eb0eaa'...
  203. warning: are you sure you want to destroy keypair ‘charon-893384f8-e503-11e8-8f30-0242da8f56fe-my-key-pair’? (y/N) y
  204. my-key-pair.......> deleting EC2 key pair ‘charon-893384f8-e503-11e8-8f30-0242da8f56fe-my-key-pair’...
  205. deployment ‘893384f8-e503-11e8-8f30-0242da8f56fe’ destroyed
  206. .
  207. ----------------------------------------------------------------------
  208. Ran 2 tests in 462.650s
  209.  
  210. OK
RAW Paste Data