Advertisement
Guest User

Untitled

a guest
Nov 10th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.71 KB | None | 0 0
  1. [nix-shell:~/projects/nixops]$ python2 tests.py tests.functional.test_ec2_backups.test_ec2_backups_raid_nvme
  2. ssh-security-group> creating EC2 security group ‘charon-095d1d35-e508-11e8-a732-0242da8f56fe-ssh-security-group’...
  3. my-key-pair.......> uploading EC2 key pair ‘charon-095d1d35-e508-11e8-a732-0242da8f56fe-my-key-pair’...
  4. ssh-security-group> adding new rules to EC2 security group ‘charon-095d1d35-e508-11e8-a732-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.204.177.131 / 172.31.28.215
  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-0b5fdf50cf0d6613c’ to become available... [creating] [available]
  11. machine...........> creating EBS volume of 1 GiB...
  12. machine...........> waiting for volume ‘vol-0053adf1cf2609295’ to become available... [creating] [available]
  13. machine...........> attaching volume ‘vol-0053adf1cf2609295’ as ‘/dev/nvme1n1’... [attached]
  14. machine...........> attaching volume ‘vol-0b5fdf50cf0d6613c’ as ‘/dev/nvme2n1’... [attaching] [attached]
  15. machine...........> setting state version to 18.09
  16. building all machine configurations...
  17. these derivations will be built:
  18. /nix/store/6wbfap41xyzbil7r4av4kd6rrdhmg715-etc-ssh_known_hosts.drv
  19. /nix/store/yw7hl8zzdnahpfv1zrl12wg34g1j3i01-etc-hosts.drv
  20. /nix/store/zj40hnj4hqyi264nsphh7irh8ks1nhx7-unit-nscd.service.drv
  21. /nix/store/wlxilzli061h751ar0hx3n5vdxmq4xsg-system-units.drv
  22. /nix/store/kwmcw60cwm7sw5chslhj73sjjry306ww-etc.drv
  23. /nix/store/p3cqjrw3nnf0d1qxvz5hlrdmly2mnjnj-nixos-system-machine-18.09.1023.06fb0253afa.drv
  24. /nix/store/pq37f6i3y9dpp4dg9h6q25v3x1ld7v2v-nixops-machines.drv
  25. building '/nix/store/yw7hl8zzdnahpfv1zrl12wg34g1j3i01-etc-hosts.drv'...
  26. building '/nix/store/6wbfap41xyzbil7r4av4kd6rrdhmg715-etc-ssh_known_hosts.drv'...
  27. building '/nix/store/zj40hnj4hqyi264nsphh7irh8ks1nhx7-unit-nscd.service.drv'...
  28. building '/nix/store/wlxilzli061h751ar0hx3n5vdxmq4xsg-system-units.drv'...
  29. building '/nix/store/kwmcw60cwm7sw5chslhj73sjjry306ww-etc.drv'...
  30. building '/nix/store/p3cqjrw3nnf0d1qxvz5hlrdmly2mnjnj-nixos-system-machine-18.09.1023.06fb0253afa.drv'...
  31. building '/nix/store/pq37f6i3y9dpp4dg9h6q25v3x1ld7v2v-nixops-machines.drv'...
  32. machine...........> copying closure...
  33. machine...........> copying path '/nix/store/jydcprmgp4qjracq9x59310bkwa2qbzk-ena-1.5.2-4.14.78' from 'https://cache.nixos.org'...
  34. machine...........> copying path '/nix/store/fvgy6ydh3jishw50s7f13y8l6b0dj4cn-etc-hostname' from 'https://cache.nixos.org'...
  35. machine...........> copying path '/nix/store/65inzfy4wifqym6lqcyfmi6w7kkmiy51-etc-os-release' from 'https://cache.nixos.org'...
  36. machine...........> copying path '/nix/store/bf62q0fziprnmph0d0c3cis2swwnq7x1-firmware' from 'https://cache.nixos.org'...
  37. machine...........> copying path '/nix/store/87gd6h9zc8vb5glfy7i49f9dbn2zp603-initrd' from 'https://cache.nixos.org'...
  38. machine...........> copying path '/nix/store/42av4pzapm52rywk5lkmxgjidrlph7zz-etc-nixos.conf' from 'https://cache.nixos.org'...
  39. machine...........> copying path '/nix/store/30ql1vpiw4ygicjrx7fg72nmg2r0ngd4-issue' from 'https://cache.nixos.org'...
  40. machine...........> copying path '/nix/store/7q9z44scdnc6cd1c8h4ps4g0x7w41yk2-ixgbevf-4.3.4-4.14.78' from 'https://cache.nixos.org'...
  41. machine...........> copying path '/nix/store/ld86a2lkbs95rn9k8nqn3rkgq1rv67hi-linux-4.14.78' from 'https://cache.nixos.org'...
  42. machine...........> copying path '/nix/store/4lrrqsahbclgn4xd0f4p37bjcix1i5ga-nixos-manpages' from 'https://cache.nixos.org'...
  43. machine...........> copying path '/nix/store/4rzy16a26919h384vxf0barjjk44bzi2-kernel-modules' from 'https://cache.nixos.org'...
  44. machine...........> copying path '/nix/store/xs4h7211vh40ywzw6paxh7fgf0ijhay5-nixos-manual' from 'https://cache.nixos.org'...
  45. machine...........> copying path '/nix/store/vmk3wpgw5wgmacc92dvwbqbvphmmqggj-nixos-version' from 'https://cache.nixos.org'...
  46. machine...........> copying path '/nix/store/qkymiz60fhfhyg5v89nj4q1r6yax8gqv-nixos-help' from 'https://cache.nixos.org'...
  47. machine...........> copying path '/nix/store/x1ysifjlglyjk38kkjp8swighk21jv8q-system-path' from 'https://cache.nixos.org'...
  48. machine...........> copying path '/nix/store/jsd5h4cd555zgz55b1q8ysb7zi4ad66c-dbus-1' from 'https://cache.nixos.org'...
  49. machine...........> copying path '/nix/store/5nz95lqalri97y4qnwz9b4gs5aplpbr3-unit-polkit.service' from 'https://cache.nixos.org'...
  50. machine...........> copying path '/nix/store/azf4jbfcc73apxq6ii05gp27jy8ybsvy-unit-dbus.service' from 'https://cache.nixos.org'...
  51. machine...........> copying path '/nix/store/wgwv3pb69klv06mw30j3423yj8wn3adi-unit-dbus.service' from 'https://cache.nixos.org'...
  52. machine...........> copying path '/nix/store/xi99hh2x9cnnqq5ii79iw46d28233mfq-unit-systemd-fsck-.service' from 'https://cache.nixos.org'...
  53. machine...........> copying path '/nix/store/la5ibpm91gbi9g2c3dc9z7259nc9ajqv-user-units' from 'https://cache.nixos.org'...
  54. machine...........> copying 16 paths...
  55. machine...........> copying path '/nix/store/6snz1s07x07g1mx1zgm7ac6klll61zsv-unit-script-mkfs-dev-raid-raid-start' to 'ssh://root@52.204.177.131'...
  56. machine...........> copying path '/nix/store/7fn6zbrk93bzfihm64cjqgqsqvbiqs43-unit-script-apply-ec2-data-start' to 'ssh://root@52.204.177.131'...
  57. machine...........> copying path '/nix/store/b1yrhp0hq6nmzdqdydwqa07i4cizzrbg-etc-hosts' to 'ssh://root@52.204.177.131'...
  58. machine...........> copying path '/nix/store/ccami970924lzxyk56qwwgx7qvzi4mf7-etc-fstab' to 'ssh://root@52.204.177.131'...
  59. machine...........> copying path '/nix/store/d162d59lbqfyhws5kwnf1gv2vvmbbs5i-unit-script-create-raid0-raid-start' to 'ssh://root@52.204.177.131'...
  60. machine...........> copying path '/nix/store/dz5pnsdscvs82nxc2prwkxccc97al5ix-setup-keys.sh' to 'ssh://root@52.204.177.131'...
  61. machine...........> copying path '/nix/store/h7iki3s5rh5b2187zs3471g4mpl3ni8x-unit-nixops-keys.service-disabled' to 'ssh://root@52.204.177.131'...
  62. machine...........> copying path '/nix/store/8irsjq14855vcna01bd8hv926067cv9l-unit-mkfs-dev-raid-raid.service' to 'ssh://root@52.204.177.131'...
  63. machine...........> copying path '/nix/store/p83jxzhpk1igz76b0p2h5x19jly20npd-unit-apply-ec2-data.service' to 'ssh://root@52.204.177.131'...
  64. machine...........> copying path '/nix/store/pzlb7i9pipf9n9vbb2ph1dmk4aqgj9cz-unit-encrypted-links.target' to 'ssh://root@52.204.177.131'...
  65. machine...........> copying path '/nix/store/qq260aqj7h4jn6sxk922j24s6dmyd8w8-etc-ssh_known_hosts' to 'ssh://root@52.204.177.131'...
  66. machine...........> copying path '/nix/store/rfz3y2rdkz94lwi0qkqypk9cdls23lhl-unit-create-raid0-raid.service' to 'ssh://root@52.204.177.131'...
  67. machine...........> copying path '/nix/store/xgzd2nyh2wzbv0h4znbfxsd3jhyx73dq-unit-nscd.service' to 'ssh://root@52.204.177.131'...
  68. machine...........> copying path '/nix/store/icdmma94blx83dn98hs1kswy1n6nk1hz-system-units' to 'ssh://root@52.204.177.131'...
  69. machine...........> copying path '/nix/store/r9ny98i4h4j8mcwdvpdp2q7qzc95q86i-etc' to 'ssh://root@52.204.177.131'...
  70. machine...........> copying path '/nix/store/rkqxygl5lpmh5h31xqppwsjwmaxxm8k4-nixos-system-machine-18.09.1023.06fb0253afa' to 'ssh://root@52.204.177.131'...
  71. unnamed> closures copied successfully
  72. machine...........> updating GRUB 2 menu...
  73. machine...........> stopping the following units: apply-ec2-data.service, nscd.service
  74. machine...........> activating the configuration...
  75. machine...........> setting up /etc...
  76. machine...........> reloading user units for root...
  77. machine...........> setting up tmpfiles
  78. machine...........> reloading the following units: dbus.service
  79. machine...........> starting the following units: apply-ec2-data.service, nscd.service
  80. 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
  81. machine...........> activation finished successfully
  82. unnamed> deployment finished successfully
  83. tests> echo -n important-data > /data/back-me-up
  84. machine...........> backing up machine ‘machine’ using id ‘20181110184721’
  85. machine...........> + created snapshot of volume ‘vol-0b5fdf50cf0d6613c’: ‘snap-0804f6075e1579d00’
  86. machine...........> + created snapshot of volume ‘vol-05ee2235283d621b8’: ‘snap-098bc004a39e09765’
  87. machine...........> + created snapshot of volume ‘vol-0053adf1cf2609295’: ‘snap-052dc6a54f3bde829’
  88. tests> rm /data/back-me-up
  89. warning: are you sure you want to stop machine 'machine' (y/N) y
  90. machine...........> stopping EC2 machine... Connection to 52.204.177.131 closed by remote host.
  91. [stopping] [stopping] [stopping] [stopping] [stopping] [stopping] [stopping] [stopping] [stopping] [stopping] [stopped]
  92. machine...........> restoring machine ‘machine’ to backup ‘20181110184721’
  93. machine...........> detaching volume from ‘machine’
  94. machine...........> creating volume from snapshot ‘snap-052dc6a54f3bde829’
  95. machine...........> waiting for snapshot ‘snap-052dc6a54f3bde829’ to have status ‘completed’... [completed]
  96. machine...........> waiting for volume ‘vol-0053adf1cf2609295’ to become available... [available]
  97. machine...........> waiting for volume ‘vol-01fdfcd458daf4f1b’ to become available... [creating] [available]
  98. machine...........> attaching volume ‘vol-01fdfcd458daf4f1b’ to ‘machine’ as /dev/nvme1n1
  99. warning: are you sure you want to destroy EBS volume ‘vol-0053adf1cf2609295’? (y/N) y
  100. machine...........> destroying EBS volume ‘vol-0053adf1cf2609295’...
  101. machine...........> detaching volume from ‘machine’
  102. machine...........> creating volume from snapshot ‘snap-0804f6075e1579d00’
  103. machine...........> waiting for snapshot ‘snap-0804f6075e1579d00’ to have status ‘completed’... [completed]
  104. machine...........> waiting for volume ‘vol-0b5fdf50cf0d6613c’ to become available... [available]
  105. machine...........> waiting for volume ‘vol-0cfda4282110fba67’ to become available... [creating] [available]
  106. machine...........> attaching volume ‘vol-0cfda4282110fba67’ to ‘machine’ as /dev/nvme2n1
  107. warning: are you sure you want to destroy EBS volume ‘vol-0b5fdf50cf0d6613c’? (y/N) y
  108. machine...........> destroying EBS volume ‘vol-0b5fdf50cf0d6613c’...
  109. machine...........> detaching volume from ‘machine’
  110. machine...........> creating volume from snapshot ‘snap-098bc004a39e09765’
  111. machine...........> waiting for snapshot ‘snap-098bc004a39e09765’ to have status ‘completed’... [completed]
  112. machine...........> waiting for volume ‘vol-05ee2235283d621b8’ to become available... [available]
  113. machine...........> waiting for volume ‘vol-0d6ff47dc181be1fd’ to become available... [creating] [available]
  114. machine...........> attaching volume ‘vol-0d6ff47dc181be1fd’ to ‘machine’ as /dev/xvda1
  115. warning: are you sure you want to destroy EBS volume ‘vol-05ee2235283d621b8’? (y/N) y
  116. machine...........> destroying EBS volume ‘vol-05ee2235283d621b8’...
  117. machine...........> starting EC2 machine...
  118. machine...........> waiting for IP address... [pending] [pending] [running] 35.153.70.99 / 172.31.28.215
  119. machine...........> warning: IP address has changed, you may need to run ‘nixops deploy’
  120. machine...........> waiting for SSH.......................
  121. warning: restore finished; please note that you might need to run ‘nixops deploy’ to fix configuration issues regarding changed IP addresses
  122. tests> echo -n important-data | diff /data/back-me-up -
  123. tests> mount | grep '/dev/mapper/raid-raid on /data type ext4'
  124. machine...........> /dev/mapper/raid-raid on /data type ext4 (rw,relatime,stripe=32,data=ordered)
  125. tests> mount | grep '/dev/nvme0n1p1 on /'
  126. machine...........> /dev/nvme0n1p1 on / type ext4 (rw,relatime,data=ordered)
  127. machine...........> /dev/nvme0n1p1 on /nix/store type ext4 (ro,relatime,data=ordered)
  128. machine...........> removing backup 20181110184721
  129. machine...........> removing snapshot snap-0804f6075e1579d00
  130. machine...........> removing snapshot snap-098bc004a39e09765
  131. machine...........> removing snapshot snap-052dc6a54f3bde829
  132. warning: are you sure you want to destroy EC2 machine ‘machine’? (y/N) y
  133. machine...........> destroying EC2 machine... [shutting-down] Connection to 35.153.70.99 closed by remote host.
  134. [shutting-down] [shutting-down] [shutting-down] [shutting-down] [shutting-down] [shutting-down] [shutting-down] [terminated]
  135. warning: are you sure you want to destroy EBS volume ‘vol-0cfda4282110fba67’? (y/N) y
  136. machine...........> destroying EBS volume ‘vol-0cfda4282110fba67’...
  137. warning: are you sure you want to destroy EBS volume ‘vol-0d6ff47dc181be1fd’? (y/N) y
  138. machine...........> destroying EBS volume ‘vol-0d6ff47dc181be1fd’...
  139. warning: are you sure you want to destroy EBS volume ‘vol-01fdfcd458daf4f1b’? (y/N) y
  140. machine...........> destroying EBS volume ‘vol-01fdfcd458daf4f1b’...
  141. warning: are you sure you want to destroy keypair ‘charon-095d1d35-e508-11e8-a732-0242da8f56fe-my-key-pair’? (y/N) y
  142. ssh-security-group> deleting EC2 security group `charon-095d1d35-e508-11e8-a732-0242da8f56fe-ssh-security-group' ID `sg-0cf24355131fe47aa'...
  143. my-key-pair.......> deleting EC2 key pair ‘charon-095d1d35-e508-11e8-a732-0242da8f56fe-my-key-pair’...
  144. deployment ‘095d1d35-e508-11e8-a732-0242da8f56fe’ destroyed
  145. .ssh-security-group> creating EC2 security group ‘charon-df8d0b59-e508-11e8-b9db-0242da8f56fe-ssh-security-group’...
  146. my-key-pair.......> uploading EC2 key pair ‘charon-df8d0b59-e508-11e8-b9db-0242da8f56fe-my-key-pair’...
  147. ssh-security-group> adding new rules to EC2 security group ‘charon-df8d0b59-e508-11e8-b9db-0242da8f56fe-ssh-security-group’...
  148. machine...........> creating EC2 instance (AMI ‘ami-009c9c3f1af480ff3’, type ‘c5.large’, region ‘us-east-1’)...
  149. machine...........> waiting for IP address... [pending] [pending] [running] 18.234.69.140 / 172.31.30.49
  150. machine...........> waiting for SSH......................
  151. machine...........> replacing temporary host key...
  152. machine...........> creating EBS volume of 1 GiB...
  153. machine...........> waiting for volume ‘vol-025fc57a5860f3dda’ to become available... [creating] [available]
  154. machine...........> creating EBS volume of 1 GiB...
  155. machine...........> waiting for volume ‘vol-002ed0f6f93669986’ to become available... [creating] [available]
  156. machine...........> attaching volume ‘vol-002ed0f6f93669986’ as ‘/dev/nvme1n1’... [attached]
  157. machine...........> attaching volume ‘vol-025fc57a5860f3dda’ as ‘/dev/nvme2n1’... [attaching] [attached]
  158. machine...........> setting state version to 18.09
  159. building all machine configurations...
  160. these derivations will be built:
  161. /nix/store/azi7kp7wywc9nkm2ldsrl9z9wcy1f6ci-etc-hosts.drv
  162. /nix/store/h0320axm5ml8xnafizwc5q798q6m8kra-etc-ssh_known_hosts.drv
  163. /nix/store/aj8cqr2krxll68ync74lx6hv2if8i0dc-unit-nscd.service.drv
  164. /nix/store/nawdlcgjnz5dqi6r2ii6ycwlcjf290rs-system-units.drv
  165. /nix/store/pwdqy0pyjbq74zvfvml794fahph0i08m-etc.drv
  166. /nix/store/m891zf38xs1h2403j37ssjhlh2k2hpwr-nixos-system-machine-18.09.1023.06fb0253afa.drv
  167. /nix/store/9zvd080ndpa8h9lda7v5f5ivh3s6vkrb-nixops-machines.drv
  168. building '/nix/store/azi7kp7wywc9nkm2ldsrl9z9wcy1f6ci-etc-hosts.drv'...
  169. building '/nix/store/h0320axm5ml8xnafizwc5q798q6m8kra-etc-ssh_known_hosts.drv'...
  170. building '/nix/store/aj8cqr2krxll68ync74lx6hv2if8i0dc-unit-nscd.service.drv'...
  171. building '/nix/store/nawdlcgjnz5dqi6r2ii6ycwlcjf290rs-system-units.drv'...
  172. building '/nix/store/pwdqy0pyjbq74zvfvml794fahph0i08m-etc.drv'...
  173. building '/nix/store/m891zf38xs1h2403j37ssjhlh2k2hpwr-nixos-system-machine-18.09.1023.06fb0253afa.drv'...
  174. building '/nix/store/9zvd080ndpa8h9lda7v5f5ivh3s6vkrb-nixops-machines.drv'...
  175. machine...........> copying closure...
  176. machine...........> copying path '/nix/store/jydcprmgp4qjracq9x59310bkwa2qbzk-ena-1.5.2-4.14.78' from 'https://cache.nixos.org'...
  177. machine...........> copying path '/nix/store/fvgy6ydh3jishw50s7f13y8l6b0dj4cn-etc-hostname' from 'https://cache.nixos.org'...
  178. machine...........> copying path '/nix/store/65inzfy4wifqym6lqcyfmi6w7kkmiy51-etc-os-release' from 'https://cache.nixos.org'...
  179. machine...........> copying path '/nix/store/bf62q0fziprnmph0d0c3cis2swwnq7x1-firmware' from 'https://cache.nixos.org'...
  180. machine...........> copying path '/nix/store/87gd6h9zc8vb5glfy7i49f9dbn2zp603-initrd' from 'https://cache.nixos.org'...
  181. machine...........> copying path '/nix/store/42av4pzapm52rywk5lkmxgjidrlph7zz-etc-nixos.conf' from 'https://cache.nixos.org'...
  182. machine...........> copying path '/nix/store/30ql1vpiw4ygicjrx7fg72nmg2r0ngd4-issue' from 'https://cache.nixos.org'...
  183. machine...........> copying path '/nix/store/7q9z44scdnc6cd1c8h4ps4g0x7w41yk2-ixgbevf-4.3.4-4.14.78' from 'https://cache.nixos.org'...
  184. machine...........> copying path '/nix/store/ld86a2lkbs95rn9k8nqn3rkgq1rv67hi-linux-4.14.78' from 'https://cache.nixos.org'...
  185. machine...........> copying path '/nix/store/4lrrqsahbclgn4xd0f4p37bjcix1i5ga-nixos-manpages' from 'https://cache.nixos.org'...
  186. machine...........> copying path '/nix/store/4rzy16a26919h384vxf0barjjk44bzi2-kernel-modules' from 'https://cache.nixos.org'...
  187. machine...........> copying path '/nix/store/xs4h7211vh40ywzw6paxh7fgf0ijhay5-nixos-manual' from 'https://cache.nixos.org'...
  188. machine...........> copying path '/nix/store/vmk3wpgw5wgmacc92dvwbqbvphmmqggj-nixos-version' from 'https://cache.nixos.org'...
  189. machine...........> copying path '/nix/store/qkymiz60fhfhyg5v89nj4q1r6yax8gqv-nixos-help' from 'https://cache.nixos.org'...
  190. machine...........> copying path '/nix/store/x1ysifjlglyjk38kkjp8swighk21jv8q-system-path' from 'https://cache.nixos.org'...
  191. machine...........> copying path '/nix/store/jsd5h4cd555zgz55b1q8ysb7zi4ad66c-dbus-1' from 'https://cache.nixos.org'...
  192. machine...........> copying path '/nix/store/5nz95lqalri97y4qnwz9b4gs5aplpbr3-unit-polkit.service' from 'https://cache.nixos.org'...
  193. machine...........> copying path '/nix/store/azf4jbfcc73apxq6ii05gp27jy8ybsvy-unit-dbus.service' from 'https://cache.nixos.org'...
  194. machine...........> copying path '/nix/store/wgwv3pb69klv06mw30j3423yj8wn3adi-unit-dbus.service' from 'https://cache.nixos.org'...
  195. machine...........> copying path '/nix/store/xi99hh2x9cnnqq5ii79iw46d28233mfq-unit-systemd-fsck-.service' from 'https://cache.nixos.org'...
  196. machine...........> copying path '/nix/store/la5ibpm91gbi9g2c3dc9z7259nc9ajqv-user-units' from 'https://cache.nixos.org'...
  197. machine...........> copying 16 paths...
  198. machine...........> copying path '/nix/store/4yz44r7pa6ziiwc0w5r7ff2yalqf07rs-etc-ssh_known_hosts' to 'ssh://root@18.234.69.140'...
  199. machine...........> copying path '/nix/store/6snz1s07x07g1mx1zgm7ac6klll61zsv-unit-script-mkfs-dev-raid-raid-start' to 'ssh://root@18.234.69.140'...
  200. machine...........> copying path '/nix/store/d162d59lbqfyhws5kwnf1gv2vvmbbs5i-unit-script-create-raid0-raid-start' to 'ssh://root@18.234.69.140'...
  201. machine...........> copying path '/nix/store/7fn6zbrk93bzfihm64cjqgqsqvbiqs43-unit-script-apply-ec2-data-start' to 'ssh://root@18.234.69.140'...
  202. machine...........> copying path '/nix/store/dz5pnsdscvs82nxc2prwkxccc97al5ix-setup-keys.sh' to 'ssh://root@18.234.69.140'...
  203. machine...........> copying path '/nix/store/h7iki3s5rh5b2187zs3471g4mpl3ni8x-unit-nixops-keys.service-disabled' to 'ssh://root@18.234.69.140'...
  204. machine...........> copying path '/nix/store/ccami970924lzxyk56qwwgx7qvzi4mf7-etc-fstab' to 'ssh://root@18.234.69.140'...
  205. machine...........> copying path '/nix/store/8irsjq14855vcna01bd8hv926067cv9l-unit-mkfs-dev-raid-raid.service' to 'ssh://root@18.234.69.140'...
  206. machine...........> copying path '/nix/store/prpmyrpqfg2p4rl8ska5dndnpxw6gs3r-etc-hosts' to 'ssh://root@18.234.69.140'...
  207. machine...........> copying path '/nix/store/p83jxzhpk1igz76b0p2h5x19jly20npd-unit-apply-ec2-data.service' to 'ssh://root@18.234.69.140'...
  208. machine...........> copying path '/nix/store/pzlb7i9pipf9n9vbb2ph1dmk4aqgj9cz-unit-encrypted-links.target' to 'ssh://root@18.234.69.140'...
  209. machine...........> copying path '/nix/store/rfz3y2rdkz94lwi0qkqypk9cdls23lhl-unit-create-raid0-raid.service' to 'ssh://root@18.234.69.140'...
  210. machine...........> copying path '/nix/store/52bfi5lj3znmxx7yllxz2p6llr5sl2mb-unit-nscd.service' to 'ssh://root@18.234.69.140'...
  211. machine...........> copying path '/nix/store/kdy2zpa7bw8bahp5y2xvi8z1w4h77s10-system-units' to 'ssh://root@18.234.69.140'...
  212. machine...........> copying path '/nix/store/rxqxnb6n0gjpf4f4mm5kjqbixpwpfwmn-etc' to 'ssh://root@18.234.69.140'...
  213. machine...........> copying path '/nix/store/scvqgr324wlqdkny6jh3qnphxcimwlnv-nixos-system-machine-18.09.1023.06fb0253afa' to 'ssh://root@18.234.69.140'...
  214. unnamed> closures copied successfully
  215. machine...........> updating GRUB 2 menu...
  216. machine...........> stopping the following units: apply-ec2-data.service, nscd.service
  217. machine...........> setting up /etc...
  218. machine...........> activating the configuration...
  219. machine...........> reloading user units for root...
  220. machine...........> setting up tmpfiles
  221. machine...........> reloading the following units: dbus.service
  222. machine...........> starting the following units: apply-ec2-data.service, nscd.service
  223. 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
  224. machine...........> activation finished successfully
  225. unnamed> deployment finished successfully
  226. tests> echo -n important-data > /data/back-me-up
  227. machine...........> backing up machine ‘machine’ using id ‘20181110185327’
  228. machine...........> + created snapshot of volume ‘vol-025fc57a5860f3dda’: ‘snap-0cee34958762163e0’
  229. machine...........> + created snapshot of volume ‘vol-0e2f3bcb20a38ad66’: ‘snap-064f9a4a709760d9d’
  230. machine...........> + created snapshot of volume ‘vol-002ed0f6f93669986’: ‘snap-0209873f7191572b8’
  231. tests> rm /data/back-me-up
  232. warning: are you sure you want to stop machine 'machine' (y/N) y
  233. machine...........> stopping EC2 machine... Connection to 18.234.69.140 closed by remote host.
  234. [stopping] [stopping] [stopping] [stopping] [stopping] [stopped]
  235. machine...........> restoring machine ‘machine’ to backup ‘20181110185327’
  236. machine...........> detaching volume from ‘machine’
  237. machine...........> creating volume from snapshot ‘snap-0209873f7191572b8’
  238. machine...........> waiting for snapshot ‘snap-0209873f7191572b8’ to have status ‘completed’... [completed]
  239. machine...........> waiting for volume ‘vol-002ed0f6f93669986’ to become available... [available]
  240. machine...........> waiting for volume ‘vol-0cc34ace124e23053’ to become available... [creating] [available]
  241. machine...........> attaching volume ‘vol-0cc34ace124e23053’ to ‘machine’ as /dev/nvme1n1
  242. warning: are you sure you want to destroy EBS volume ‘vol-002ed0f6f93669986’? (y/N) y
  243. machine...........> destroying EBS volume ‘vol-002ed0f6f93669986’...
  244. machine...........> detaching volume from ‘machine’
  245. machine...........> creating volume from snapshot ‘snap-0cee34958762163e0’
  246. machine...........> waiting for snapshot ‘snap-0cee34958762163e0’ to have status ‘completed’... [completed]
  247. machine...........> waiting for volume ‘vol-025fc57a5860f3dda’ to become available... [available]
  248. machine...........> waiting for volume ‘vol-0d16e4c54b61c3c1b’ to become available... [creating] [available]
  249. machine...........> attaching volume ‘vol-0d16e4c54b61c3c1b’ to ‘machine’ as /dev/nvme2n1
  250. warning: are you sure you want to destroy EBS volume ‘vol-025fc57a5860f3dda’? (y/N) y
  251. machine...........> destroying EBS volume ‘vol-025fc57a5860f3dda’...
  252. machine...........> detaching volume from ‘machine’
  253. machine...........> creating volume from snapshot ‘snap-064f9a4a709760d9d’
  254. machine...........> waiting for snapshot ‘snap-064f9a4a709760d9d’ to have status ‘completed’... [completed]
  255. machine...........> waiting for volume ‘vol-0e2f3bcb20a38ad66’ to become available... [available]
  256. machine...........> waiting for volume ‘vol-0078e968be5341995’ to become available... [creating] [available]
  257. machine...........> attaching volume ‘vol-0078e968be5341995’ to ‘machine’ as /dev/xvda1
  258. warning: are you sure you want to destroy EBS volume ‘vol-0e2f3bcb20a38ad66’? (y/N) y
  259. machine...........> destroying EBS volume ‘vol-0e2f3bcb20a38ad66’...
  260. machine...........> starting EC2 machine...
  261. machine...........> waiting for IP address... [pending] [pending] [running] 52.23.249.117 / 172.31.30.49
  262. machine...........> warning: IP address has changed, you may need to run ‘nixops deploy’
  263. machine...........> waiting for SSH......................................
  264. warning: restore finished; please note that you might need to run ‘nixops deploy’ to fix configuration issues regarding changed IP addresses
  265. tests> echo -n important-data | diff /data/back-me-up -
  266. tests> mount | grep '/dev/mapper/raid-raid on /data type ext4'
  267. machine...........> /dev/mapper/raid-raid on /data type ext4 (rw,relatime,stripe=32,data=ordered)
  268. tests> mount | grep '/dev/nvme0n1p1 on /'
  269. machine...........> /dev/nvme0n1p1 on / type ext4 (rw,relatime,data=ordered)
  270. machine...........> /dev/nvme0n1p1 on /nix/store type ext4 (ro,relatime,data=ordered)
  271. machine...........> removing backup 20181110185327
  272. machine...........> removing snapshot snap-0cee34958762163e0
  273. machine...........> removing snapshot snap-064f9a4a709760d9d
  274. machine...........> removing snapshot snap-0209873f7191572b8
  275. warning: are you sure you want to destroy EC2 machine ‘machine’? (y/N) y
  276. machine...........> destroying EC2 machine... [shutting-down] Connection to 52.23.249.117 closed by remote host.
  277. [shutting-down] [shutting-down] [terminated]
  278. warning: are you sure you want to destroy EBS volume ‘vol-0d16e4c54b61c3c1b’? (y/N) y
  279. machine...........> destroying EBS volume ‘vol-0d16e4c54b61c3c1b’...
  280. warning: are you sure you want to destroy EBS volume ‘vol-0078e968be5341995’? (y/N) y
  281. machine...........> destroying EBS volume ‘vol-0078e968be5341995’...
  282. warning: are you sure you want to destroy EBS volume ‘vol-0cc34ace124e23053’? (y/N) y
  283. machine...........> destroying EBS volume ‘vol-0cc34ace124e23053’...
  284. warning: are you sure you want to destroy keypair ‘charon-df8d0b59-e508-11e8-b9db-0242da8f56fe-my-key-pair’? (y/N) y
  285. ssh-security-group> deleting EC2 security group `charon-df8d0b59-e508-11e8-b9db-0242da8f56fe-ssh-security-group' ID `sg-0b8390405e0a2146f'...
  286. my-key-pair.......> deleting EC2 key pair ‘charon-df8d0b59-e508-11e8-b9db-0242da8f56fe-my-key-pair’...
  287. deployment ‘df8d0b59-e508-11e8-b9db-0242da8f56fe’ destroyed
  288. .
  289. ----------------------------------------------------------------------
  290. Ran 2 tests in 698.877s
  291.  
  292. OK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement