Guest User

Untitled

a guest
Nov 10th, 2018
88
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_nvme
  2. ssh-security-group> creating EC2 security group ‘charon-24d07907-e505-11e8-b833-0242da8f56fe-ssh-security-group’...
  3. my-key-pair.......> uploading EC2 key pair ‘charon-24d07907-e505-11e8-b833-0242da8f56fe-my-key-pair’...
  4. ssh-security-group> adding new rules to EC2 security group ‘charon-24d07907-e505-11e8-b833-0242da8f56fe-ssh-security-group’...
  5. machine...........> creating EC2 instance (AMI ‘ami-009c9c3f1af480ff3’, type ‘c5.large’, region ‘us-east-1’)...
  6. machine...........> waiting for IP address... [pending] [pending] [pending] [running] 52.206.71.196 / 172.31.28.235
  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/3pvpi5c8szdyn0ggw811mb0fi3lzkhqv-etc-hosts.drv
  13. /nix/store/y7yvx4hkz8gb24a8hslfv9j4k78bh7l3-unit-nscd.service.drv
  14. /nix/store/52a2npax5y0d1crrykajd48bkn1lkwb8-system-units.drv
  15. /nix/store/padq3q12hykrmbvaqd0diid16y8jqgzk-etc-ssh_known_hosts.drv
  16. /nix/store/x4niaqy8kzx380hbjafpcackgxvv2553-etc.drv
  17. /nix/store/p1s3n31m9d9fm1g5i8zqmavs8d3nl3dl-nixos-system-machine-18.09.1023.06fb0253afa.drv
  18. /nix/store/hjjbdagj9dxnhr3kb3hcyd88wxbvbkkb-nixops-machines.drv
  19. building '/nix/store/3pvpi5c8szdyn0ggw811mb0fi3lzkhqv-etc-hosts.drv'...
  20. building '/nix/store/padq3q12hykrmbvaqd0diid16y8jqgzk-etc-ssh_known_hosts.drv'...
  21. building '/nix/store/y7yvx4hkz8gb24a8hslfv9j4k78bh7l3-unit-nscd.service.drv'...
  22. building '/nix/store/52a2npax5y0d1crrykajd48bkn1lkwb8-system-units.drv'...
  23. building '/nix/store/x4niaqy8kzx380hbjafpcackgxvv2553-etc.drv'...
  24. building '/nix/store/p1s3n31m9d9fm1g5i8zqmavs8d3nl3dl-nixos-system-machine-18.09.1023.06fb0253afa.drv'...
  25. building '/nix/store/hjjbdagj9dxnhr3kb3hcyd88wxbvbkkb-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@52.206.71.196'...
  50. machine...........> copying path '/nix/store/cpm15xwm5wqpv4x9xdm6dcp9g2ikhrxh-etc-ssh_known_hosts' to 'ssh://root@52.206.71.196'...
  51. machine...........> copying path '/nix/store/dz5pnsdscvs82nxc2prwkxccc97al5ix-setup-keys.sh' to 'ssh://root@52.206.71.196'...
  52. machine...........> copying path '/nix/store/fkfz4zd7wpnih0fhcpnbcr6bpw502w8c-etc-hosts' to 'ssh://root@52.206.71.196'...
  53. machine...........> copying path '/nix/store/h7iki3s5rh5b2187zs3471g4mpl3ni8x-unit-nixops-keys.service-disabled' to 'ssh://root@52.206.71.196'...
  54. machine...........> copying path '/nix/store/lh7fk64z1cf7y5fb7cd3y7lk5qc9vn5c-unit-nscd.service' to 'ssh://root@52.206.71.196'...
  55. machine...........> copying path '/nix/store/p83jxzhpk1igz76b0p2h5x19jly20npd-unit-apply-ec2-data.service' to 'ssh://root@52.206.71.196'...
  56. machine...........> copying path '/nix/store/pzlb7i9pipf9n9vbb2ph1dmk4aqgj9cz-unit-encrypted-links.target' to 'ssh://root@52.206.71.196'...
  57. machine...........> copying path '/nix/store/hmc968c021v58h27mgfhdxwqbwhh88jz-system-units' to 'ssh://root@52.206.71.196'...
  58. machine...........> copying path '/nix/store/hns3vcgam0xwvw3kcarcf822lw31q4lm-etc' to 'ssh://root@52.206.71.196'...
  59. machine...........> copying path '/nix/store/nx7zy9p0ak4z04ixbgxpagfy226xnbyb-nixos-system-machine-18.09.1023.06fb0253afa' to 'ssh://root@52.206.71.196'...
  60. unnamed> closures copied successfully
  61. machine...........> updating GRUB 2 menu...
  62. machine...........> stopping the following units: setting up /etc...
  63. machine...........> apply-ec2-data.service, nscd.service
  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 ‘20181110182603’
  73. machine...........> + created snapshot of volume ‘vol-0f1227a11b299ae2e’: ‘snap-0cbad76fecf0fe5d7’
  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... Connection to 52.206.71.196 closed by remote host.
  77. [stopping] [stopping] [stopping] [stopping] [stopping] [stopping] [stopped]
  78. machine...........> restoring machine ‘machine’ to backup ‘20181110182603’
  79. machine...........> detaching volume from ‘machine’
  80. machine...........> creating volume from snapshot ‘snap-0cbad76fecf0fe5d7’
  81. machine...........> waiting for snapshot ‘snap-0cbad76fecf0fe5d7’ to have status ‘completed’... [pending] [pending] [pending] [pending] [pending] [completed]
  82. machine...........> waiting for volume ‘vol-0f1227a11b299ae2e’ to become available... [available]
  83. machine...........> waiting for volume ‘vol-0642b3cd796bec5dc’ to become available... [creating] [available]
  84. machine...........> attaching volume ‘vol-0642b3cd796bec5dc’ to ‘machine’ as /dev/xvda1
  85. warning: are you sure you want to destroy EBS volume ‘vol-0f1227a11b299ae2e’? (y/N) y
  86. machine...........> destroying EBS volume ‘vol-0f1227a11b299ae2e’...
  87. machine...........> starting EC2 machine...
  88. machine...........> waiting for IP address... [pending] [running] 18.212.111.35 / 172.31.28.235
  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 20181110182603
  94. machine...........> removing snapshot snap-0cbad76fecf0fe5d7
  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.212.111.35 closed by remote host.
  97. [shutting-down] [shutting-down] [shutting-down] [shutting-down] [terminated]
  98. warning: are you sure you want to destroy EBS volume ‘vol-0642b3cd796bec5dc’? (y/N) y
  99. machine...........> destroying EBS volume ‘vol-0642b3cd796bec5dc’...
  100. ssh-security-group> deleting EC2 security group `charon-24d07907-e505-11e8-b833-0242da8f56fe-ssh-security-group' ID `sg-001bed42b4549ada4'...
  101. warning: are you sure you want to destroy keypair ‘charon-24d07907-e505-11e8-b833-0242da8f56fe-my-key-pair’? (y/N) y
  102. my-key-pair.......> deleting EC2 key pair ‘charon-24d07907-e505-11e8-b833-0242da8f56fe-my-key-pair’...
  103. deployment ‘24d07907-e505-11e8-b833-0242da8f56fe’ destroyed
  104. .ssh-security-group> creating EC2 security group ‘charon-b039e2f3-e505-11e8-afbe-0242da8f56fe-ssh-security-group’...
  105. ssh-security-group> adding new rules to EC2 security group ‘charon-b039e2f3-e505-11e8-afbe-0242da8f56fe-ssh-security-group’...
  106. my-key-pair.......> uploading EC2 key pair ‘charon-b039e2f3-e505-11e8-afbe-0242da8f56fe-my-key-pair’...
  107. machine...........> creating EC2 instance (AMI ‘ami-009c9c3f1af480ff3’, type ‘c5.large’, region ‘us-east-1’)...
  108. machine...........> waiting for IP address... [pending] [pending] [running] 52.71.180.228 / 172.31.31.15
  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/bfi87ls0lfgmr06nhylnks9bx4w4j46n-etc-hosts.drv
  115. /nix/store/cx26zlx0dp26bwa1mskx90y2dm49rcqq-etc-ssh_known_hosts.drv
  116. /nix/store/ixgr66vlvqz8jsrm7sfyp2ivz4gbqbp9-unit-nscd.service.drv
  117. /nix/store/jxs65plnbw4lladvz6sadjmw9bq6cmha-system-units.drv
  118. /nix/store/b0xwm4p106jac659a85cyimpg62xk83h-etc.drv
  119. /nix/store/pnkj5mj8v8rdr0f1whhgjcpv3dlq8py1-nixos-system-machine-18.09.1023.06fb0253afa.drv
  120. /nix/store/8kci9hggmffswkk63c18kbscdyk0ya2p-nixops-machines.drv
  121. building '/nix/store/bfi87ls0lfgmr06nhylnks9bx4w4j46n-etc-hosts.drv'...
  122. building '/nix/store/cx26zlx0dp26bwa1mskx90y2dm49rcqq-etc-ssh_known_hosts.drv'...
  123. building '/nix/store/ixgr66vlvqz8jsrm7sfyp2ivz4gbqbp9-unit-nscd.service.drv'...
  124. building '/nix/store/jxs65plnbw4lladvz6sadjmw9bq6cmha-system-units.drv'...
  125. building '/nix/store/b0xwm4p106jac659a85cyimpg62xk83h-etc.drv'...
  126. building '/nix/store/pnkj5mj8v8rdr0f1whhgjcpv3dlq8py1-nixos-system-machine-18.09.1023.06fb0253afa.drv'...
  127. building '/nix/store/8kci9hggmffswkk63c18kbscdyk0ya2p-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@52.71.180.228'...
  152. machine...........> copying path '/nix/store/2p063gn0syn0v4yl67ki3msdg32zwr97-etc-ssh_known_hosts' to 'ssh://root@52.71.180.228'...
  153. machine...........> copying path '/nix/store/dz5pnsdscvs82nxc2prwkxccc97al5ix-setup-keys.sh' to 'ssh://root@52.71.180.228'...
  154. machine...........> copying path '/nix/store/pzlb7i9pipf9n9vbb2ph1dmk4aqgj9cz-unit-encrypted-links.target' to 'ssh://root@52.71.180.228'...
  155. machine...........> copying path '/nix/store/h7iki3s5rh5b2187zs3471g4mpl3ni8x-unit-nixops-keys.service-disabled' to 'ssh://root@52.71.180.228'...
  156. machine...........> copying path '/nix/store/p83jxzhpk1igz76b0p2h5x19jly20npd-unit-apply-ec2-data.service' to 'ssh://root@52.71.180.228'...
  157. machine...........> copying path '/nix/store/qmmd94ia67skpi0x1s3n96imz2b0pjrr-etc-hosts' to 'ssh://root@52.71.180.228'...
  158. machine...........> copying path '/nix/store/q0vm5cx039xp12jxsbicg0b9xcmjgiav-unit-nscd.service' to 'ssh://root@52.71.180.228'...
  159. machine...........> copying path '/nix/store/yjhqszrmi640hvwkaw0x85py1grkpkab-system-units' to 'ssh://root@52.71.180.228'...
  160. machine...........> copying path '/nix/store/r5arj75zvnqh9ar2sipsd8651vd5x3yg-etc' to 'ssh://root@52.71.180.228'...
  161. machine...........> copying path '/nix/store/8jyqk7n84v6k5q5iicq50qllc2xmw4s4-nixos-system-machine-18.09.1023.06fb0253afa' to 'ssh://root@52.71.180.228'...
  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...........> activating the configuration...
  166. machine...........> setting up /etc...
  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 ‘20181110182944’
  175. machine...........> + created snapshot of volume ‘vol-012af5a7eb2c8f607’: ‘snap-05308f079417b8b89’
  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 52.71.180.228 closed by remote host.
  179. [stopping] [stopping] [stopping] [stopped]
  180. machine...........> restoring machine ‘machine’ to backup ‘20181110182944’
  181. machine...........> detaching volume from ‘machine’
  182. machine...........> creating volume from snapshot ‘snap-05308f079417b8b89’
  183. machine...........> waiting for snapshot ‘snap-05308f079417b8b89’ to have status ‘completed’... [pending] [pending] [pending] [completed]
  184. machine...........> waiting for volume ‘vol-012af5a7eb2c8f607’ to become available... [available]
  185. machine...........> waiting for volume ‘vol-084885520e80cdfa7’ to become available... [creating] [available]
  186. machine...........> attaching volume ‘vol-084885520e80cdfa7’ to ‘machine’ as /dev/xvda1
  187. warning: are you sure you want to destroy EBS volume ‘vol-012af5a7eb2c8f607’? (y/N) y
  188. machine...........> destroying EBS volume ‘vol-012af5a7eb2c8f607’...
  189. machine...........> starting EC2 machine...
  190. machine...........> waiting for IP address... [pending] [running] 35.171.165.155 / 172.31.31.15
  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 20181110182944
  196. machine...........> removing snapshot snap-05308f079417b8b89
  197. warning: are you sure you want to destroy EC2 machine ‘machine’? (y/N) y
  198. machine...........> destroying EC2 machine... [shutting-down] Connection to 35.171.165.155 closed by remote host.
  199. [shutting-down] [shutting-down] [shutting-down] [shutting-down] [terminated]
  200. warning: are you sure you want to destroy EBS volume ‘vol-084885520e80cdfa7’? (y/N) y
  201. machine...........> destroying EBS volume ‘vol-084885520e80cdfa7’...
  202. ssh-security-group> deleting EC2 security group `charon-b039e2f3-e505-11e8-afbe-0242da8f56fe-ssh-security-group' ID `sg-0ca8a92cbb47fc006'...
  203. warning: are you sure you want to destroy keypair ‘charon-b039e2f3-e505-11e8-afbe-0242da8f56fe-my-key-pair’? (y/N) y
  204. my-key-pair.......> deleting EC2 key pair ‘charon-b039e2f3-e505-11e8-afbe-0242da8f56fe-my-key-pair’...
  205. deployment ‘b039e2f3-e505-11e8-afbe-0242da8f56fe’ destroyed
  206. .
  207. ----------------------------------------------------------------------
  208. Ran 2 tests in 415.549s
  209.  
  210. OK
  211.  
  212. [nix-shell:~/projects/nixops]$
RAW Paste Data