Project

General

Profile

Cloudtest utility » History » Version 1

Tom Clegg, 06/25/2019 07:21 PM

1 1 Tom Clegg
h1. Cloudtest utility
2
3
The @arvados-server@ package provides a @cloudtest@ tool that checks compatibility between your Arvados configuration, your cloud driver, your cloud provider's API, your cloud provider's VM instances, and the worker image you use for [[Dispatching containers to cloud VMs]].
4
5
@arvados-server cloudtest@ performs the following sequence:
6
# Create a new instance
7
# Wait for it to finish booting
8
# Run a shell command on the new instance (optional)
9
# Pause while you log in to the new instance and do other tests yourself (optional)
10
# Shut down the instance
11
12
This is meant to be a convenient way to expose problems like these:
13
* Configured credentials don't work
14
* Configured image types don't work
15
* Configured driver is not compatible with your cloud API/region
16
* Newly created instances are not usable due to a network problem or misconfiguration
17
* Selected machine image does not boot properly
18
* Selected machine image is incompatible with some instance types
19
* Driver has bugs
20
21
Before bringing up the arvados-dispatch-cloud service for the first time, we recommend running cloudtest to check your configuration:
22
<pre>
23
$ arvados-server cloudtest -command "crunch-run --list"
24
</pre>
25
26
Before updating your configuration with a new VM image, we recommend running cloudtest with the new image
27
<pre>
28
$ arvados-server cloudtest -image-id $new_image_id -command "crunch-run --list"
29
</pre>
30
31
After adding an instance type to your configuration, we recommend testing your image with the new instance type:
32
<pre>
33
$ arvados-server cloudtest -instance-type $new_instance_type_name
34
</pre>
35
36
For a list of additional options, use the @-help@ flag:
37
<pre>
38
$ arvados-server cloudtest -help
39
Usage:
40
  -command string
41
        Run an interactive shell command on the test instance when it boots
42
  -config file
43
        Site configuration file (default "/etc/arvados/config.yml")
44
  -destroy-existing
45
        Destroy any existing instances tagged with our InstanceSetID, instead of erroring out
46
  -image-id string
47
        Image ID to use when creating the test instance (if empty, use cluster config)
48
  -instance-set-id value
49
        InstanceSetID tag value to use on the test instance (default "cloudtest-user@hostname.example")
50
  -instance-type string
51
        Instance type to create (if empty, use cheapest type in config)
52
  -pause-before-destroy
53
        Prompt and wait before destroying the test instance
54
</pre>