18562: Fix UsePreemptibleInstances behavior.
[arvados.git] / services / api / test / fixtures / containers.yml
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 queued:
6   uuid: zzzzz-dz642-queuedcontainer
7   owner_uuid: zzzzz-tpzed-000000000000000
8   state: Queued
9   priority: 1
10   created_at: 2016-01-11 11:11:11.111111111 Z
11   updated_at: 2016-01-11 11:11:11.111111111 Z
12   container_image: test
13   cwd: test
14   output_path: test
15   command: ["echo", "hello"]
16   runtime_constraints:
17     ram: 12000000000
18     vcpus: 4
19   mounts:
20     /tmp:
21       kind: tmp
22       capacity: 24000000000
23     /var/spool/cwl:
24       kind: tmp
25       capacity: 24000000000
26
27 running:
28   uuid: zzzzz-dz642-runningcontainr
29   owner_uuid: zzzzz-tpzed-000000000000000
30   state: Running
31   priority: 12
32   created_at: <%= 1.minute.ago.to_s(:db) %>
33   updated_at: <%= 1.minute.ago.to_s(:db) %>
34   started_at: <%= 1.minute.ago.to_s(:db) %>
35   container_image: test
36   cwd: /tmp
37   output_path: /tmp
38   command: ["echo", "hello"]
39   runtime_constraints:
40     ram: 12000000000
41     vcpus: 4
42   mounts:
43     /tmp:
44       kind: tmp
45       capacity: 24000000000
46   secret_mounts:
47     /secret/6x9:
48       kind: text
49       content: "42\n"
50   secret_mounts_md5: <%= Digest::MD5.hexdigest(SafeJSON.dump({'/secret/6x9' => {'content' => "42\n", 'kind' => 'text'}})) %>
51   auth_uuid: zzzzz-gj3su-077z32aux8dg2s2
52
53 running_older:
54   uuid: zzzzz-dz642-runningcontain2
55   owner_uuid: zzzzz-tpzed-000000000000000
56   state: Running
57   priority: 1
58   created_at: <%= 2.minute.ago.to_s(:db) %>
59   updated_at: <%= 2.minute.ago.to_s(:db) %>
60   started_at: <%= 2.minute.ago.to_s(:db) %>
61   container_image: test
62   cwd: /tmp
63   output_path: /tmp
64   command: ["echo", "hello"]
65   mounts:
66     /tmp:
67       kind: tmp
68       capacity: 24000000000
69   runtime_constraints:
70     ram: 12000000000
71     vcpus: 4
72   secret_mounts: {}
73   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
74
75 locked:
76   uuid: zzzzz-dz642-lockedcontainer
77   owner_uuid: zzzzz-tpzed-000000000000000
78   state: Locked
79   locked_by_uuid: zzzzz-gj3su-k9dvestay1plssr
80   priority: 2
81   created_at: <%= 2.minute.ago.to_s(:db) %>
82   updated_at: <%= 2.minute.ago.to_s(:db) %>
83   modified_at: <%= 2.minute.ago.to_s(:db) %>
84   container_image: test
85   cwd: test
86   output_path: test
87   command: ["echo", "hello"]
88   runtime_constraints:
89     ram: 12000000000
90     vcpus: 4
91   secret_mounts: {}
92   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
93
94 completed:
95   uuid: zzzzz-dz642-compltcontainer
96   owner_uuid: zzzzz-tpzed-000000000000000
97   state: Complete
98   exit_code: 0
99   priority: 1
100   created_at: 2016-01-11 11:11:11.111111111 Z
101   updated_at: 2016-01-11 11:11:11.111111111 Z
102   started_at: 2016-01-11 11:11:11.111111111 Z
103   finished_at: 2016-01-12 11:12:13.111111111 Z
104   container_image: test
105   cwd: test
106   log: ea10d51bcf88862dbcc36eb292017dfd+45
107   output: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45
108   output_path: test
109   command: ["echo", "hello", "/bin/sh", "-c", "'cat' '/keep/fa7aeb5140e2848d39b416daeef4ffc5+45/foobar' '/keep/fa7aeb5140e2848d39b416daeef4ffc5+45/baz' '|' 'gzip' '>' '/dev/null'"]
110   runtime_constraints:
111     ram: 12000000000
112     vcpus: 4
113   secret_mounts: {}
114   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
115
116 completed_older:
117   uuid: zzzzz-dz642-compltcontainr2
118   owner_uuid: zzzzz-tpzed-000000000000000
119   state: Complete
120   exit_code: 0
121   priority: 1
122   created_at: 2016-01-11 11:11:11.111111111 Z
123   updated_at: 2016-01-11 11:11:11.111111111 Z
124   started_at: 2016-01-13 11:11:11.111111111 Z
125   finished_at: 2016-01-14 11:12:13.111111111 Z
126   container_image: test
127   cwd: test
128   output: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45
129   output_path: test
130   command: ["echo", "hello"]
131   runtime_constraints:
132     ram: 12000000000
133     vcpus: 4
134   secret_mounts: {}
135   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
136
137 diagnostics_completed_requester:
138   uuid: zzzzz-dz642-diagcompreq0001
139   owner_uuid: zzzzz-tpzed-000000000000000
140   state: Complete
141   exit_code: 0
142   priority: 562948349145881771
143   created_at: 2020-11-02T00:03:50.192697000Z
144   modified_at: 2020-11-02T00:20:43.987275000Z
145   started_at: 2020-11-02T00:08:07.186711000Z
146   finished_at: 2020-11-02T00:20:43.975416000Z
147   container_image: d967ef4a1ca90a096a39f5ce68e4a2e7+261
148   cwd: /var/spool/cwl
149   log: 6129e376cb05c942f75a0c36083383e8+244
150   output: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45
151   output_path: /var/spool/cwl
152   command: [
153              "arvados-cwl-runner",
154              "--local",
155              "--api=containers",
156              "--no-log-timestamps",
157              "--disable-validate",
158              "--disable-color",
159              "--eval-timeout=20",
160              "--thread-count=1",
161              "--disable-reuse",
162              "--collection-cache-size=256",
163              "--on-error=continue",
164              "/var/lib/cwl/workflow.json#main",
165              "/var/lib/cwl/cwl.input.json"
166            ]
167   runtime_constraints:
168     API: true
169     keep_cache_ram: 268435456
170     ram: 1342177280
171     vcpus: 1
172
173 diagnostics_completed_hasher1:
174   uuid: zzzzz-dz642-diagcomphasher1
175   owner_uuid: zzzzz-tpzed-000000000000000
176   state: Complete
177   exit_code: 0
178   priority: 562948349145881771
179   created_at: 2020-11-02T00:08:18.829222000Z
180   modified_at: 2020-11-02T00:16:55.142023000Z
181   started_at: 2020-11-02T00:16:52.375871000Z
182   finished_at: 2020-11-02T00:16:55.105985000Z
183   container_image: d967ef4a1ca90a096a39f5ce68e4a2e7+261
184   cwd: /var/spool/cwl
185   log: fed8fb19fe8e3a320c29fed0edab12dd+220
186   output: d3a687732e84061f3bae15dc7e313483+62
187   output_path: /var/spool/cwl
188   command: [
189              "md5sum",
190              "/keep/9f26a86b6030a69ad222cf67d71c9502+65/hasher-input-file.txt"
191            ]
192   runtime_constraints:
193     API: true
194     keep_cache_ram: 268435456
195     ram: 268435456
196     vcpus: 1
197
198 diagnostics_completed_hasher2:
199   uuid: zzzzz-dz642-diagcomphasher2
200   owner_uuid: zzzzz-tpzed-000000000000000
201   state: Complete
202   exit_code: 0
203   priority: 562948349145881771
204   created_at: 2020-11-02T00:17:07.026493000Z
205   modified_at: 2020-11-02T00:20:23.505908000Z
206   started_at: 2020-11-02T00:20:21.513185000Z
207   finished_at: 2020-11-02T00:20:23.478317000Z
208   container_image: d967ef4a1ca90a096a39f5ce68e4a2e7+261
209   cwd: /var/spool/cwl
210   log: 4fc03b95fc2646b0dec7383dbb7d56d8+221
211   output: 6bd770f6cf8f83e7647c602eecfaeeb8+62
212   output_path: /var/spool/cwl
213   command: [
214              "md5sum",
215              "/keep/d3a687732e84061f3bae15dc7e313483+62/hasher1.md5sum.txt"
216            ]
217   runtime_constraints:
218     API: true
219     keep_cache_ram: 268435456
220     ram: 268435456
221     vcpus: 2
222
223 diagnostics_completed_hasher3:
224   uuid: zzzzz-dz642-diagcomphasher3
225   owner_uuid: zzzzz-tpzed-000000000000000
226   state: Complete
227   exit_code: 0
228   priority: 562948349145881771
229   created_at: 2020-11-02T00:20:30.943856000Z
230   modified_at: 2020-11-02T00:20:38.746541000Z
231   started_at: 2020-11-02T00:20:36.748957000Z
232   finished_at: 2020-11-02T00:20:38.732199000Z
233   container_image: d967ef4a1ca90a096a39f5ce68e4a2e7+261
234   cwd: /var/spool/cwl
235   log: 1eeaf70de0f65b1346e54c59f09e848d+210
236   output: 11b5fdaa380102e760c3eb6de80a9876+62
237   output_path: /var/spool/cwl
238   command: [
239              "md5sum",
240              "/keep/6bd770f6cf8f83e7647c602eecfaeeb8+62/hasher2.md5sum.txt"
241            ]
242   runtime_constraints:
243     API: true
244     keep_cache_ram: 268435456
245     ram: 268435456
246     vcpus: 1
247
248 diagnostics_completed_requester2:
249   uuid: zzzzz-dz642-diagcompreq0002
250   owner_uuid: zzzzz-tpzed-000000000000000
251   state: Complete
252   exit_code: 0
253   priority: 1124295487972526
254   created_at: 2020-11-03T15:54:36.504661000Z
255   modified_at: 2020-11-03T16:17:53.242868000Z
256   started_at: 2020-11-03T16:09:51.123659000Z
257   finished_at: 2020-11-03T16:17:53.220358000Z
258   container_image: d967ef4a1ca90a096a39f5ce68e4a2e7+261
259   cwd: /var/spool/cwl
260   log: f1933bf5191f576613ea7f65bd0ead53+244
261   output: 941b71a57208741ce8742eca62352fb1+123
262   output_path: /var/spool/cwl
263   command: [
264              "arvados-cwl-runner",
265              "--local",
266              "--api=containers",
267              "--no-log-timestamps",
268              "--disable-validate",
269              "--disable-color",
270              "--eval-timeout=20",
271              "--thread-count=1",
272              "--disable-reuse",
273              "--collection-cache-size=256",
274              "--on-error=continue",
275              "/var/lib/cwl/workflow.json#main",
276              "/var/lib/cwl/cwl.input.json"
277            ]
278   runtime_constraints:
279     API: true
280     keep_cache_ram: 268435456
281     ram: 1342177280
282     vcpus: 1
283
284 requester:
285   uuid: zzzzz-dz642-requestingcntnr
286   owner_uuid: zzzzz-tpzed-000000000000000
287   state: Complete
288   exit_code: 0
289   priority: 1
290   created_at: 2016-01-11 11:11:11.111111111 Z
291   updated_at: 2016-01-11 11:11:11.111111111 Z
292   container_image: test
293   cwd: test
294   output: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45
295   output_path: test
296   command: ["echo", "hello"]
297   runtime_constraints:
298     ram: 12000000000
299     vcpus: 4
300   secret_mounts: {}
301   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
302
303 requester_container:
304   uuid: zzzzz-dz642-requestercntnr1
305   owner_uuid: zzzzz-tpzed-000000000000000
306   state: Complete
307   exit_code: 0
308   priority: 1
309   created_at: 2016-01-11 11:11:11.111111111 Z
310   updated_at: 2016-01-11 11:11:11.111111111 Z
311   container_image: test
312   cwd: test
313   output: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45
314   output_path: test
315   command: ["echo", "hello"]
316   runtime_constraints:
317     ram: 12000000000
318     vcpus: 4
319   secret_mounts: {}
320   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
321
322 failed_container:
323   uuid: zzzzz-dz642-failedcontainr1
324   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
325   state: Complete
326   exit_code: 33
327   priority: 1
328   created_at: 2016-01-11 11:11:11.111111111 Z
329   updated_at: 2016-01-11 11:11:11.111111111 Z
330   container_image: test
331   cwd: test
332   output: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45
333   output_path: test
334   command: ["echo", "hello"]
335   runtime_constraints:
336     ram: 12000000000
337     vcpus: 4
338   secret_mounts: {}
339   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
340
341 ancient_container_with_logs:
342   uuid: zzzzz-dz642-logscontainer01
343   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
344   state: Complete
345   exit_code: 0
346   priority: 1
347   created_at: <%= 2.year.ago.to_s(:db) %>
348   updated_at: <%= 2.year.ago.to_s(:db) %>
349   container_image: test
350   cwd: test
351   output_path: test
352   command: ["echo", "hello"]
353   runtime_constraints:
354     ram: 12000000000
355     vcpus: 4
356   finished_at: <%= 2.year.ago.to_s(:db) %>
357   log: ea10d51bcf88862dbcc36eb292017dfd+45
358   output: test
359   secret_mounts: {}
360   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
361
362 previous_container_with_logs:
363   uuid: zzzzz-dz642-logscontainer02
364   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
365   state: Complete
366   exit_code: 0
367   priority: 1
368   created_at: <%= 1.month.ago.to_s(:db) %>
369   updated_at: <%= 1.month.ago.to_s(:db) %>
370   container_image: test
371   cwd: test
372   output_path: test
373   command: ["echo", "hello"]
374   runtime_constraints:
375     ram: 12000000000
376     vcpus: 4
377   finished_at: <%= 1.month.ago.to_s(:db) %>
378   log: ea10d51bcf88862dbcc36eb292017dfd+45
379   output: test
380   secret_mounts: {}
381   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
382
383 running_container_with_logs:
384   uuid: zzzzz-dz642-logscontainer03
385   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
386   state: Running
387   priority: 1
388   created_at: <%= 1.hour.ago.to_s(:db) %>
389   updated_at: <%= 1.hour.ago.to_s(:db) %>
390   container_image: test
391   cwd: test
392   output_path: test
393   command: ["echo", "hello"]
394   mounts:
395     /tmp:
396       kind: tmp
397       capacity: 24000000000
398   runtime_constraints:
399     ram: 12000000000
400     vcpus: 4
401   secret_mounts: {}
402   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
403   auth_uuid: zzzzz-gj3su-n4xycwjpvvi776n
404
405 running_to_be_deleted:
406   uuid: zzzzz-dz642-runnincntrtodel
407   owner_uuid: zzzzz-tpzed-000000000000000
408   state: Running
409   priority: 1
410   created_at: <%= 1.minute.ago.to_s(:db) %>
411   updated_at: <%= 1.minute.ago.to_s(:db) %>
412   started_at: <%= 1.minute.ago.to_s(:db) %>
413   container_image: test
414   cwd: test
415   output_path: test
416   command: ["echo", "hello"]
417   mounts:
418     /tmp:
419       kind: tmp
420       capacity: 24000000000
421   runtime_constraints:
422     ram: 12000000000
423     vcpus: 4
424   auth_uuid: zzzzz-gj3su-ty6lvu9d7u7c2sq
425   secret_mounts: {}
426   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
427
428 runtime_token:
429   uuid: zzzzz-dz642-20isqbkl8xwnsao
430   owner_uuid: zzzzz-tpzed-000000000000000
431   state: Locked
432   locked_by_uuid: zzzzz-gj3su-jrriu629zljsnuf
433   priority: 1
434   created_at: 2016-01-11 11:11:11.111111111 Z
435   updated_at: 2016-01-11 11:11:11.111111111 Z
436   container_image: test
437   cwd: test
438   output_path: test
439   command: ["echo", "hello"]
440   runtime_token: v2/zzzzz-gj3su-2nj68s291f50gd9/2d19ue6ofx26o3mm7fs9u6t7hov9um0v92dzwk1o2xed3abprw
441   runtime_user_uuid: zzzzz-tpzed-l3skomkti0c4vg4
442   runtime_auth_scopes: ["all"]
443   runtime_constraints:
444     ram: 12000000000
445     vcpus: 4
446   mounts:
447     /tmp:
448       kind: tmp
449       capacity: 24000000000
450     /var/spool/cwl:
451       kind: tmp
452       capacity: 24000000000