Guest User

Untitled

a guest
Nov 10th, 2018
94
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_raid_xd
  2. ssh-security-group> creating EC2 security group ‘charon-15d99091-e50a-11e8-9161-0242da8f56fe-ssh-security-group’...
  3. my-key-pair.......> uploading EC2 key pair ‘charon-15d99091-e50a-11e8-9161-0242da8f56fe-my-key-pair’...
  4. ssh-security-group> adding new rules to EC2 security group ‘charon-15d99091-e50a-11e8-9161-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.85.183.15 / 172.31.4.79
  7. machine...........> waiting for SSH....................
  8. machine...........> replacing temporary host key...
  9. machine...........> creating EBS volume of 1 GiB...
  10. machine...........> waiting for volume ‘vol-0bd27fa0a9a6ffe03’ to become available... [creating] [available]
  11. machine...........> creating EBS volume of 1 GiB...
  12. machine...........> waiting for volume ‘vol-0a13fcfbebdf5bba4’ to become available... [creating] [available]
  13. machine...........> attaching volume ‘vol-0bd27fa0a9a6ffe03’ as ‘/dev/xvdg’... [attaching] [attached]
  14. machine...........> attaching volume ‘vol-0a13fcfbebdf5bba4’ as ‘/dev/xvdh’... [attaching] [attached]
  15. machine...........> setting state version to 18.09
  16. building all machine configurations...
  17. these derivations will be built:
  18. /nix/store/7r16bbqpavd7mkfn9n975qkb03mkvv09-etc-ssh_known_hosts.drv
  19. /nix/store/smjy4v0m8df0sbg31swshm9vcz8q7v8w-unit-script-create-raid0-raid-start.drv
  20. /nix/store/5cxnligq2r4skcmwf20yxr6g267f0nsn-unit-create-raid0-raid.service.drv
  21. /nix/store/srazf5iqfb6qh05w6bpp71w5q9pzjr8s-etc-hosts.drv
  22. /nix/store/783qdyc768z9hz7ckjf6gbw8bvx5a60d-unit-nscd.service.drv
  23. /nix/store/8aqjp4mgvwlhb3cyy1snghc494w7w9wq-system-units.drv
  24. /nix/store/ic8ivzir3skn7hkr5dklmb32aakm0jvy-etc.drv
  25. /nix/store/a4n83srarq5ican3jazmm9b5qrh537s9-nixos-system-machine-18.09.1023.06fb0253afa.drv
  26. /nix/store/04m0sa27rinvdaj2v7hqb78rmrw77fcx-nixops-machines.drv
  27. building '/nix/store/srazf5iqfb6qh05w6bpp71w5q9pzjr8s-etc-hosts.drv'...
  28. building '/nix/store/7r16bbqpavd7mkfn9n975qkb03mkvv09-etc-ssh_known_hosts.drv'...
  29. building '/nix/store/smjy4v0m8df0sbg31swshm9vcz8q7v8w-unit-script-create-raid0-raid-start.drv'...
  30. building '/nix/store/783qdyc768z9hz7ckjf6gbw8bvx5a60d-unit-nscd.service.drv'...
  31. building '/nix/store/5cxnligq2r4skcmwf20yxr6g267f0nsn-unit-create-raid0-raid.service.drv'...
  32. building '/nix/store/8aqjp4mgvwlhb3cyy1snghc494w7w9wq-system-units.drv'...
  33. building '/nix/store/ic8ivzir3skn7hkr5dklmb32aakm0jvy-etc.drv'...
  34. building '/nix/store/a4n83srarq5ican3jazmm9b5qrh537s9-nixos-system-machine-18.09.1023.06fb0253afa.drv'...
  35. building '/nix/store/04m0sa27rinvdaj2v7hqb78rmrw77fcx-nixops-machines.drv'...
  36. machine...........> copying closure...
  37. machine...........> copying path '/nix/store/jydcprmgp4qjracq9x59310bkwa2qbzk-ena-1.5.2-4.14.78' from 'https://cache.nixos.org'...
  38. machine...........> copying path '/nix/store/fvgy6ydh3jishw50s7f13y8l6b0dj4cn-etc-hostname' from 'https://cache.nixos.org'...
  39. machine...........> copying path '/nix/store/65inzfy4wifqym6lqcyfmi6w7kkmiy51-etc-os-release' from 'https://cache.nixos.org'...
  40. machine...........> copying path '/nix/store/bf62q0fziprnmph0d0c3cis2swwnq7x1-firmware' from 'https://cache.nixos.org'...
  41. machine...........> copying path '/nix/store/87gd6h9zc8vb5glfy7i49f9dbn2zp603-initrd' from 'https://cache.nixos.org'...
  42. machine...........> copying path '/nix/store/42av4pzapm52rywk5lkmxgjidrlph7zz-etc-nixos.conf' from 'https://cache.nixos.org'...
  43. machine...........> copying path '/nix/store/30ql1vpiw4ygicjrx7fg72nmg2r0ngd4-issue' from 'https://cache.nixos.org'...
  44. machine...........> copying path '/nix/store/7q9z44scdnc6cd1c8h4ps4g0x7w41yk2-ixgbevf-4.3.4-4.14.78' from 'https://cache.nixos.org'...
  45. machine...........> copying path '/nix/store/ld86a2lkbs95rn9k8nqn3rkgq1rv67hi-linux-4.14.78' from 'https://cache.nixos.org'...
  46. machine...........> copying path '/nix/store/4lrrqsahbclgn4xd0f4p37bjcix1i5ga-nixos-manpages' from 'https://cache.nixos.org'...
  47. machine...........> copying path '/nix/store/4rzy16a26919h384vxf0barjjk44bzi2-kernel-modules' from 'https://cache.nixos.org'...
  48. machine...........> copying path '/nix/store/xs4h7211vh40ywzw6paxh7fgf0ijhay5-nixos-manual' from 'https://cache.nixos.org'...
  49. machine...........> copying path '/nix/store/vmk3wpgw5wgmacc92dvwbqbvphmmqggj-nixos-version' from 'https://cache.nixos.org'...
  50. machine...........> copying path '/nix/store/qkymiz60fhfhyg5v89nj4q1r6yax8gqv-nixos-help' from 'https://cache.nixos.org'...
  51. machine...........> copying path '/nix/store/x1ysifjlglyjk38kkjp8swighk21jv8q-system-path' from 'https://cache.nixos.org'...
  52. machine...........> copying path '/nix/store/jsd5h4cd555zgz55b1q8ysb7zi4ad66c-dbus-1' from 'https://cache.nixos.org'...
  53. machine...........> copying path '/nix/store/5nz95lqalri97y4qnwz9b4gs5aplpbr3-unit-polkit.service' from 'https://cache.nixos.org'...
  54. machine...........> copying path '/nix/store/azf4jbfcc73apxq6ii05gp27jy8ybsvy-unit-dbus.service' from 'https://cache.nixos.org'...
  55. machine...........> copying path '/nix/store/wgwv3pb69klv06mw30j3423yj8wn3adi-unit-dbus.service' from 'https://cache.nixos.org'...
  56. machine...........> copying path '/nix/store/xi99hh2x9cnnqq5ii79iw46d28233mfq-unit-systemd-fsck-.service' from 'https://cache.nixos.org'...
  57. machine...........> copying path '/nix/store/la5ibpm91gbi9g2c3dc9z7259nc9ajqv-user-units' from 'https://cache.nixos.org'...
  58. machine...........> copying 16 paths...
  59. machine...........> copying path '/nix/store/3i37rg99q0p2h6x1s77cz8lnjvbnnc9n-etc-hosts' to 'ssh://root@54.85.183.15'...
  60. machine...........> copying path '/nix/store/6snz1s07x07g1mx1zgm7ac6klll61zsv-unit-script-mkfs-dev-raid-raid-start' to 'ssh://root@54.85.183.15'...
  61. machine...........> copying path '/nix/store/4dbkmd1gqjkdvnqrain32l6ag3j6pyn7-etc-ssh_known_hosts' to 'ssh://root@54.85.183.15'...
  62. machine...........> copying path '/nix/store/7fn6zbrk93bzfihm64cjqgqsqvbiqs43-unit-script-apply-ec2-data-start' to 'ssh://root@54.85.183.15'...
  63. machine...........> copying path '/nix/store/ccami970924lzxyk56qwwgx7qvzi4mf7-etc-fstab' to 'ssh://root@54.85.183.15'...
  64. machine...........> copying path '/nix/store/dz5pnsdscvs82nxc2prwkxccc97al5ix-setup-keys.sh' to 'ssh://root@54.85.183.15'...
  65. machine...........> copying path '/nix/store/h7iki3s5rh5b2187zs3471g4mpl3ni8x-unit-nixops-keys.service-disabled' to 'ssh://root@54.85.183.15'...
  66. machine...........> copying path '/nix/store/i1rdll1zlax3nsazkm5a0vglqhqpmk9d-unit-script-create-raid0-raid-start' to 'ssh://root@54.85.183.15'...
  67. machine...........> copying path '/nix/store/5lkaxliwy9zyy3aqmbmxpg8azzdbj7r3-unit-nscd.service' to 'ssh://root@54.85.183.15'...
  68. machine...........> copying path '/nix/store/p83jxzhpk1igz76b0p2h5x19jly20npd-unit-apply-ec2-data.service' to 'ssh://root@54.85.183.15'...
  69. machine...........> copying path '/nix/store/pzlb7i9pipf9n9vbb2ph1dmk4aqgj9cz-unit-encrypted-links.target' to 'ssh://root@54.85.183.15'...
  70. machine...........> copying path '/nix/store/8irsjq14855vcna01bd8hv926067cv9l-unit-mkfs-dev-raid-raid.service' to 'ssh://root@54.85.183.15'...
  71. machine...........> copying path '/nix/store/vh297d3wfidka8fn6j3qqxdn9crn09zi-unit-create-raid0-raid.service' to 'ssh://root@54.85.183.15'...
  72. machine...........> copying path '/nix/store/87xrmvfw0r4gsp1riqgwspqc6ghfaqix-system-units' to 'ssh://root@54.85.183.15'...
  73. machine...........> copying path '/nix/store/m7i7kc4fn89p3ci3i1cpdw50v54psvqb-etc' to 'ssh://root@54.85.183.15'...
  74. machine...........> copying path '/nix/store/x7nq0wlgx9ralkhx2xshf7amclsl0jy1-nixos-system-machine-18.09.1023.06fb0253afa' to 'ssh://root@54.85.183.15'...
  75. unnamed> closures copied successfully
  76. machine...........> updating GRUB 2 menu...
  77. machine...........> stopping the following units: apply-ec2-data.service, nscd.service
  78. machine...........> setting up /etc...
  79. machine...........> activating the configuration...
  80. machine...........> reloading user units for root...
  81. machine...........> setting up tmpfiles
  82. machine...........> reloading the following units: dbus.service
  83. machine...........> starting the following units: apply-ec2-data.service, nscd.service
  84. 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
  85. machine...........> activation finished successfully
  86. unnamed> deployment finished successfully
  87. tests> echo -n important-data > /data/back-me-up
  88. machine...........> backing up machine ‘machine’ using id ‘20181110190216’
  89. machine...........> + created snapshot of volume ‘vol-0bd27fa0a9a6ffe03’: ‘snap-05a46bbab4fafc29b’
  90. machine...........> + created snapshot of volume ‘vol-0c0f90e1be9557721’: ‘snap-0ce7503679f98b8b5’
  91. machine...........> + created snapshot of volume ‘vol-0a13fcfbebdf5bba4’: ‘snap-089895b8d60a1b9c3’
  92. tests> rm /data/back-me-up
  93. warning: are you sure you want to stop machine 'machine' (y/N) y
  94. machine...........> stopping EC2 machine... Connection to 54.85.183.15 closed by remote host.
  95. [stopping] [stopping] [stopping] [stopping] [stopped]
  96. machine...........> restoring machine ‘machine’ to backup ‘20181110190216’
  97. machine...........> detaching volume from ‘machine’
  98. machine...........> creating volume from snapshot ‘snap-0ce7503679f98b8b5’
  99. machine...........> waiting for snapshot ‘snap-0ce7503679f98b8b5’ to have status ‘completed’... [pending] [pending] [pending] [completed]
  100. machine...........> waiting for volume ‘vol-0c0f90e1be9557721’ to become available... [available]
  101. machine...........> waiting for volume ‘vol-03e4921a6b1b0bb85’ to become available... [creating] [available]
  102. machine...........> attaching volume ‘vol-03e4921a6b1b0bb85’ to ‘machine’ as /dev/xvda1
  103. warning: are you sure you want to destroy EBS volume ‘vol-0c0f90e1be9557721’? (y/N) y
  104. machine...........> destroying EBS volume ‘vol-0c0f90e1be9557721’...
  105. machine...........> detaching volume from ‘machine’
  106. machine...........> creating volume from snapshot ‘snap-05a46bbab4fafc29b’
  107. machine...........> waiting for snapshot ‘snap-05a46bbab4fafc29b’ to have status ‘completed’... [completed]
  108. machine...........> waiting for volume ‘vol-0bd27fa0a9a6ffe03’ to become available... [available]
  109. machine...........> waiting for volume ‘vol-0d8f6709422f9a3bf’ to become available... [creating] [available]
  110. machine...........> attaching volume ‘vol-0d8f6709422f9a3bf’ to ‘machine’ as /dev/xvdg
  111. warning: are you sure you want to destroy EBS volume ‘vol-0bd27fa0a9a6ffe03’? (y/N) y
  112. machine...........> destroying EBS volume ‘vol-0bd27fa0a9a6ffe03’...
  113. machine...........> detaching volume from ‘machine’
  114. machine...........> creating volume from snapshot ‘snap-089895b8d60a1b9c3’
  115. machine...........> waiting for snapshot ‘snap-089895b8d60a1b9c3’ to have status ‘completed’... [completed]
  116. machine...........> waiting for volume ‘vol-0a13fcfbebdf5bba4’ to become available... [available]
  117. machine...........> waiting for volume ‘vol-01d06449fd4d2a8b2’ to become available... [creating] [available]
  118. machine...........> attaching volume ‘vol-01d06449fd4d2a8b2’ to ‘machine’ as /dev/xvdh
  119. warning: are you sure you want to destroy EBS volume ‘vol-0a13fcfbebdf5bba4’? (y/N) y
  120. machine...........> destroying EBS volume ‘vol-0a13fcfbebdf5bba4’...
  121. machine...........> starting EC2 machine...
  122. machine...........> waiting for IP address... [pending] [pending] [pending] [running] 34.228.9.224 / 172.31.4.79
  123. machine...........> warning: IP address has changed, you may need to run ‘nixops deploy’
  124. machine...........> waiting for SSH....................
  125. warning: restore finished; please note that you might need to run ‘nixops deploy’ to fix configuration issues regarding changed IP addresses
  126. tests> echo -n important-data | diff /data/back-me-up -
  127. machine...........> removing backup 20181110190216
  128. machine...........> removing snapshot snap-05a46bbab4fafc29b
  129. machine...........> removing snapshot snap-0ce7503679f98b8b5
  130. machine...........> removing snapshot snap-089895b8d60a1b9c3
  131. warning: are you sure you want to destroy EC2 machine ‘machine’? (y/N) y
  132. machine...........> destroying EC2 machine... [shutting-down] Connection to 34.228.9.224 closed by remote host.
  133. [shutting-down] [shutting-down] [shutting-down] [shutting-down] [shutting-down] [terminated]
  134. warning: are you sure you want to destroy EBS volume ‘vol-0d8f6709422f9a3bf’? (y/N) y
  135. machine...........> destroying EBS volume ‘vol-0d8f6709422f9a3bf’...
  136. warning: are you sure you want to destroy EBS volume ‘vol-03e4921a6b1b0bb85’? (y/N) y
  137. machine...........> destroying EBS volume ‘vol-03e4921a6b1b0bb85’...
  138. warning: are you sure you want to destroy EBS volume ‘vol-01d06449fd4d2a8b2’? (y/N) y
  139. machine...........> destroying EBS volume ‘vol-01d06449fd4d2a8b2’...
  140. warning: are you sure you want to destroy keypair ‘charon-15d99091-e50a-11e8-9161-0242da8f56fe-my-key-pair’? (y/N) y
  141. ssh-security-group> deleting EC2 security group `charon-15d99091-e50a-11e8-9161-0242da8f56fe-ssh-security-group' ID `sg-0b22142318da9c9b6'...
  142. my-key-pair.......> deleting EC2 key pair ‘charon-15d99091-e50a-11e8-9161-0242da8f56fe-my-key-pair’...
  143. deployment ‘15d99091-e50a-11e8-9161-0242da8f56fe’ destroyed
  144. .ssh-security-group> creating EC2 security group ‘charon-c35c2070-e50a-11e8-9e9b-0242da8f56fe-ssh-security-group’...
  145. my-key-pair.......> uploading EC2 key pair ‘charon-c35c2070-e50a-11e8-9e9b-0242da8f56fe-my-key-pair’...
  146. ssh-security-group> adding new rules to EC2 security group ‘charon-c35c2070-e50a-11e8-9e9b-0242da8f56fe-ssh-security-group’...
  147. machine...........> creating EC2 instance (AMI ‘ami-009c9c3f1af480ff3’, type ‘c4.large’, region ‘us-east-1’)...
  148. machine...........> waiting for IP address... [pending] [pending] [pending] [running] 54.198.147.27 / 172.31.7.19
  149. machine...........> waiting for SSH....................
  150. machine...........> replacing temporary host key...
  151. machine...........> creating EBS volume of 1 GiB...
  152. machine...........> waiting for volume ‘vol-099a5432d479c0ff9’ to become available... [creating] [available]
  153. machine...........> creating EBS volume of 1 GiB...
  154. machine...........> waiting for volume ‘vol-017d7024da492b52c’ to become available... [creating] [available]
  155. machine...........> attaching volume ‘vol-099a5432d479c0ff9’ as ‘/dev/xvdg’... [attaching] [attached]
  156. machine...........> attaching volume ‘vol-017d7024da492b52c’ as ‘/dev/xvdh’... [attaching] [attached]
  157. machine...........> setting state version to 18.09
  158. building all machine configurations...
  159. these derivations will be built:
  160. /nix/store/9ayvm6jkabjjlk7f5pn7g2ksij01y1v4-etc-ssh_known_hosts.drv
  161. /nix/store/r2ff9glban4hg5sww7i2s7kkw2y6ldx3-etc-hosts.drv
  162. /nix/store/dd3qy7iv25wx56i1q831i6piybgvgk3b-unit-nscd.service.drv
  163. /nix/store/pclj5qk5qx8v31gc2307hcr9qvsi1sri-system-units.drv
  164. /nix/store/8p2jzyhinv64jj9h242lmmzv61xvxrmv-etc.drv
  165. /nix/store/b2gn81iysm7xn06lb5yikx8hl431f3qh-nixos-system-machine-18.09.1023.06fb0253afa.drv
  166. /nix/store/da7ymfwhyjjiz1m5fqy69gfs4jyj5yaz-nixops-machines.drv
  167. building '/nix/store/r2ff9glban4hg5sww7i2s7kkw2y6ldx3-etc-hosts.drv'...
  168. building '/nix/store/9ayvm6jkabjjlk7f5pn7g2ksij01y1v4-etc-ssh_known_hosts.drv'...
  169. building '/nix/store/dd3qy7iv25wx56i1q831i6piybgvgk3b-unit-nscd.service.drv'...
  170. building '/nix/store/pclj5qk5qx8v31gc2307hcr9qvsi1sri-system-units.drv'...
  171. building '/nix/store/8p2jzyhinv64jj9h242lmmzv61xvxrmv-etc.drv'...
  172. building '/nix/store/b2gn81iysm7xn06lb5yikx8hl431f3qh-nixos-system-machine-18.09.1023.06fb0253afa.drv'...
  173. building '/nix/store/da7ymfwhyjjiz1m5fqy69gfs4jyj5yaz-nixops-machines.drv'...
  174. machine...........> copying closure...
  175. machine...........> copying path '/nix/store/jydcprmgp4qjracq9x59310bkwa2qbzk-ena-1.5.2-4.14.78' from 'https://cache.nixos.org'...
  176. machine...........> copying path '/nix/store/fvgy6ydh3jishw50s7f13y8l6b0dj4cn-etc-hostname' from 'https://cache.nixos.org'...
  177. machine...........> copying path '/nix/store/65inzfy4wifqym6lqcyfmi6w7kkmiy51-etc-os-release' from 'https://cache.nixos.org'...
  178. machine...........> copying path '/nix/store/bf62q0fziprnmph0d0c3cis2swwnq7x1-firmware' from 'https://cache.nixos.org'...
  179. machine...........> copying path '/nix/store/87gd6h9zc8vb5glfy7i49f9dbn2zp603-initrd' from 'https://cache.nixos.org'...
  180. machine...........> copying path '/nix/store/42av4pzapm52rywk5lkmxgjidrlph7zz-etc-nixos.conf' from 'https://cache.nixos.org'...
  181. machine...........> copying path '/nix/store/30ql1vpiw4ygicjrx7fg72nmg2r0ngd4-issue' from 'https://cache.nixos.org'...
  182. machine...........> copying path '/nix/store/7q9z44scdnc6cd1c8h4ps4g0x7w41yk2-ixgbevf-4.3.4-4.14.78' from 'https://cache.nixos.org'...
  183. machine...........> copying path '/nix/store/ld86a2lkbs95rn9k8nqn3rkgq1rv67hi-linux-4.14.78' from 'https://cache.nixos.org'...
  184. machine...........> copying path '/nix/store/4lrrqsahbclgn4xd0f4p37bjcix1i5ga-nixos-manpages' from 'https://cache.nixos.org'...
  185. machine...........> copying path '/nix/store/4rzy16a26919h384vxf0barjjk44bzi2-kernel-modules' from 'https://cache.nixos.org'...
  186. machine...........> copying path '/nix/store/xs4h7211vh40ywzw6paxh7fgf0ijhay5-nixos-manual' from 'https://cache.nixos.org'...
  187. machine...........> copying path '/nix/store/vmk3wpgw5wgmacc92dvwbqbvphmmqggj-nixos-version' from 'https://cache.nixos.org'...
  188. machine...........> copying path '/nix/store/qkymiz60fhfhyg5v89nj4q1r6yax8gqv-nixos-help' from 'https://cache.nixos.org'...
  189. machine...........> copying path '/nix/store/x1ysifjlglyjk38kkjp8swighk21jv8q-system-path' from 'https://cache.nixos.org'...
  190. machine...........> copying path '/nix/store/jsd5h4cd555zgz55b1q8ysb7zi4ad66c-dbus-1' from 'https://cache.nixos.org'...
  191. machine...........> copying path '/nix/store/5nz95lqalri97y4qnwz9b4gs5aplpbr3-unit-polkit.service' from 'https://cache.nixos.org'...
  192. machine...........> copying path '/nix/store/azf4jbfcc73apxq6ii05gp27jy8ybsvy-unit-dbus.service' from 'https://cache.nixos.org'...
  193. machine...........> copying path '/nix/store/wgwv3pb69klv06mw30j3423yj8wn3adi-unit-dbus.service' from 'https://cache.nixos.org'...
  194. machine...........> copying path '/nix/store/xi99hh2x9cnnqq5ii79iw46d28233mfq-unit-systemd-fsck-.service' from 'https://cache.nixos.org'...
  195. machine...........> copying path '/nix/store/la5ibpm91gbi9g2c3dc9z7259nc9ajqv-user-units' from 'https://cache.nixos.org'...
  196. machine...........> copying 16 paths...
  197. machine...........> copying path '/nix/store/6snz1s07x07g1mx1zgm7ac6klll61zsv-unit-script-mkfs-dev-raid-raid-start' to 'ssh://root@54.198.147.27'...
  198. machine...........> copying path '/nix/store/7fn6zbrk93bzfihm64cjqgqsqvbiqs43-unit-script-apply-ec2-data-start' to 'ssh://root@54.198.147.27'...
  199. machine...........> copying path '/nix/store/h7iki3s5rh5b2187zs3471g4mpl3ni8x-unit-nixops-keys.service-disabled' to 'ssh://root@54.198.147.27'...
  200. machine...........> copying path '/nix/store/ccami970924lzxyk56qwwgx7qvzi4mf7-etc-fstab' to 'ssh://root@54.198.147.27'...
  201. machine...........> copying path '/nix/store/dz5pnsdscvs82nxc2prwkxccc97al5ix-setup-keys.sh' to 'ssh://root@54.198.147.27'...
  202. machine...........> copying path '/nix/store/i1rdll1zlax3nsazkm5a0vglqhqpmk9d-unit-script-create-raid0-raid-start' to 'ssh://root@54.198.147.27'...
  203. machine...........> copying path '/nix/store/9b97b9bdssql8ry8y964qwdf4dsf93n8-etc-hosts' to 'ssh://root@54.198.147.27'...
  204. machine...........> copying path '/nix/store/p83jxzhpk1igz76b0p2h5x19jly20npd-unit-apply-ec2-data.service' to 'ssh://root@54.198.147.27'...
  205. machine...........> copying path '/nix/store/8irsjq14855vcna01bd8hv926067cv9l-unit-mkfs-dev-raid-raid.service' to 'ssh://root@54.198.147.27'...
  206. machine...........> copying path '/nix/store/pzlb7i9pipf9n9vbb2ph1dmk4aqgj9cz-unit-encrypted-links.target' to 'ssh://root@54.198.147.27'...
  207. machine...........> copying path '/nix/store/vh297d3wfidka8fn6j3qqxdn9crn09zi-unit-create-raid0-raid.service' to 'ssh://root@54.198.147.27'...
  208. machine...........> copying path '/nix/store/vj2xqfjiizy5a8m3m1l9nx2d64jzz5wf-etc-ssh_known_hosts' to 'ssh://root@54.198.147.27'...
  209. machine...........> copying path '/nix/store/yr2s8j2r940zykpy7mcca7jbw50j3jyx-unit-nscd.service' to 'ssh://root@54.198.147.27'...
  210. machine...........> copying path '/nix/store/6k2bi8kv32q8i4qqfyzm3nnnlb5ikxr2-system-units' to 'ssh://root@54.198.147.27'...
  211. machine...........> copying path '/nix/store/y04m3mi8v043rlb4l5s4a0l1aq4vfdzh-etc' to 'ssh://root@54.198.147.27'...
  212. machine...........> copying path '/nix/store/jgb8lld26m0bp9kcsvzbzjjlsmphmbyg-nixos-system-machine-18.09.1023.06fb0253afa' to 'ssh://root@54.198.147.27'...
  213. unnamed> closures copied successfully
  214. machine...........> updating GRUB 2 menu...
  215. machine...........> stopping the following units: apply-ec2-data.service, nscd.service
  216. machine...........> setting up /etc...
  217. machine...........> activating the configuration...
  218. machine...........> reloading user units for root...
  219. machine...........> setting up tmpfiles
  220. machine...........> reloading the following units: dbus.service
  221. machine...........> starting the following units: apply-ec2-data.service, nscd.service
  222. 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
  223. machine...........> activation finished successfully
  224. unnamed> deployment finished successfully
  225. tests> echo -n important-data > /data/back-me-up
  226. machine...........> backing up machine ‘machine’ using id ‘20181110190709’
  227. machine...........> + created snapshot of volume ‘vol-099a5432d479c0ff9’: ‘snap-0086fe934bf5a3724’
  228. machine...........> + created snapshot of volume ‘vol-09a6e7d5ce7474a15’: ‘snap-08b2915ba8a8ba41e’
  229. machine...........> + created snapshot of volume ‘vol-017d7024da492b52c’: ‘snap-0c497dd2f26f540b8’
  230. tests> rm /data/back-me-up
  231. warning: are you sure you want to stop machine 'machine' (y/N) y
  232. machine...........> stopping EC2 machine... Connection to 54.198.147.27 closed by remote host.
  233. [stopping] [stopping] [stopping] [stopping] [stopped]
  234. machine...........> restoring machine ‘machine’ to backup ‘20181110190709’
  235. machine...........> detaching volume from ‘machine’
  236. machine...........> creating volume from snapshot ‘snap-08b2915ba8a8ba41e’
  237. machine...........> waiting for snapshot ‘snap-08b2915ba8a8ba41e’ to have status ‘completed’... [pending] [pending] [pending] [pending] [pending] [pending] [pending] [completed]
  238. machine...........> waiting for volume ‘vol-09a6e7d5ce7474a15’ to become available... [available]
  239. machine...........> waiting for volume ‘vol-0209cc97588f3494b’ to become available... [creating] [available]
  240. machine...........> attaching volume ‘vol-0209cc97588f3494b’ to ‘machine’ as /dev/xvda1
  241. warning: are you sure you want to destroy EBS volume ‘vol-09a6e7d5ce7474a15’? (y/N) y
  242. machine...........> destroying EBS volume ‘vol-09a6e7d5ce7474a15’...
  243. machine...........> detaching volume from ‘machine’
  244. machine...........> creating volume from snapshot ‘snap-0086fe934bf5a3724’
  245. machine...........> waiting for snapshot ‘snap-0086fe934bf5a3724’ to have status ‘completed’... [completed]
  246. machine...........> waiting for volume ‘vol-099a5432d479c0ff9’ to become available... [available]
  247. machine...........> waiting for volume ‘vol-0a4682dea70cdcf18’ to become available... [creating] [available]
  248. machine...........> attaching volume ‘vol-0a4682dea70cdcf18’ to ‘machine’ as /dev/xvdg
  249. warning: are you sure you want to destroy EBS volume ‘vol-099a5432d479c0ff9’? (y/N) y
  250. machine...........> destroying EBS volume ‘vol-099a5432d479c0ff9’...
  251. machine...........> detaching volume from ‘machine’
  252. machine...........> creating volume from snapshot ‘snap-0c497dd2f26f540b8’
  253. machine...........> waiting for snapshot ‘snap-0c497dd2f26f540b8’ to have status ‘completed’... [completed]
  254. machine...........> waiting for volume ‘vol-017d7024da492b52c’ to become available... [available]
  255. machine...........> waiting for volume ‘vol-0b481d3205026a547’ to become available... [creating] [available]
  256. machine...........> attaching volume ‘vol-0b481d3205026a547’ to ‘machine’ as /dev/xvdh
  257. warning: are you sure you want to destroy EBS volume ‘vol-017d7024da492b52c’? (y/N) y
  258. machine...........> destroying EBS volume ‘vol-017d7024da492b52c’...
  259. machine...........> starting EC2 machine...
  260. machine...........> waiting for IP address... [pending] [pending] [pending] [running] 34.229.11.73 / 172.31.7.19
  261. machine...........> warning: IP address has changed, you may need to run ‘nixops deploy’
  262. machine...........> waiting for SSH.......................
  263. warning: restore finished; please note that you might need to run ‘nixops deploy’ to fix configuration issues regarding changed IP addresses
  264. tests> echo -n important-data | diff /data/back-me-up -
  265. machine...........> removing backup 20181110190709
  266. machine...........> removing snapshot snap-0086fe934bf5a3724
  267. machine...........> removing snapshot snap-08b2915ba8a8ba41e
  268. machine...........> removing snapshot snap-0c497dd2f26f540b8
  269. warning: are you sure you want to destroy EC2 machine ‘machine’? (y/N) y
  270. machine...........> destroying EC2 machine... [shutting-down] Connection to 34.229.11.73 closed by remote host.
  271. [shutting-down] [shutting-down] [shutting-down] [shutting-down] [shutting-down] [terminated]
  272. warning: are you sure you want to destroy EBS volume ‘vol-0a4682dea70cdcf18’? (y/N) y
  273. machine...........> destroying EBS volume ‘vol-0a4682dea70cdcf18’...
  274. warning: are you sure you want to destroy EBS volume ‘vol-0209cc97588f3494b’? (y/N) y
  275. machine...........> destroying EBS volume ‘vol-0209cc97588f3494b’...
  276. warning: are you sure you want to destroy EBS volume ‘vol-0b481d3205026a547’? (y/N) y
  277. machine...........> destroying EBS volume ‘vol-0b481d3205026a547’...
  278. ssh-security-group> deleting EC2 security group `charon-c35c2070-e50a-11e8-9e9b-0242da8f56fe-ssh-security-group' ID `sg-0810204da18951c0b'...
  279. warning: are you sure you want to destroy keypair ‘charon-c35c2070-e50a-11e8-9e9b-0242da8f56fe-my-key-pair’? (y/N) y
  280. my-key-pair.......> deleting EC2 key pair ‘charon-c35c2070-e50a-11e8-9e9b-0242da8f56fe-my-key-pair’...
  281. deployment ‘c35c2070-e50a-11e8-9e9b-0242da8f56fe’ destroyed
  282. .
  283. ----------------------------------------------------------------------
  284. Ran 2 tests in 638.155s
  285.  
  286. OK
RAW Paste Data