summaryrefslogtreecommitdiff
path: root/vmadm.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-01-29 13:45:29 +0200
committerLars Wirzenius <liw@liw.fi>2022-01-29 13:45:29 +0200
commitaa11e479718aaa79aceb76f4d9760f3e22c70fa8 (patch)
tree2e5d320b77198b5f034d7a86c48717b40f4319f6 /vmadm.md
parent0f81ce2cf72c33cd7d08f18a8e3a11dc843e3456 (diff)
downloadvmadm-aa11e479718aaa79aceb76f4d9760f3e22c70fa8.tar.gz
feat: allow start, stop, new, delete on multiple specs at once
Sponsored-by: author
Diffstat (limited to 'vmadm.md')
-rw-r--r--vmadm.md61
1 files changed, 61 insertions, 0 deletions
diff --git a/vmadm.md b/vmadm.md
index 8bfd476..aec706f 100644
--- a/vmadm.md
+++ b/vmadm.md
@@ -22,6 +22,10 @@ This section has some data files used by scenarios.
smoke: {}
~~~
+~~~{#other.yaml .file .yaml}
+other: {}
+~~~
+
~~~{#ssh_key .file}
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABFwAAAAdzc2gtcn
@@ -271,6 +275,63 @@ when I run vmadm delete --config config.yaml smoke.yaml
+
+# Manage several specs at once
+
+This scenario verifies that vmadm can manage virtual machines from
+several specifications at once.
+
+First some setup.
+
+~~~scenario
+given an installed vmadm
+given a Debian 10 OpenStack cloud image
+given file smoke.yaml
+given file other.yaml
+given file config.yaml
+given file ca_key
+given file .ssh/id_rsa from ssh_key
+given file .ssh/id_rsa.pub from ssh_key_pub
+given file .ssh/config from ssh_config
+given file .ssh/known_hosts from known_hosts
+when I run chmod -R u=rwX,go= .ssh
+~~~
+
+Then we create the VMs. We don't verify that each works, beyond that
+we can log in.
+
+~~~scenario
+when I run vmadm new --config config.yaml smoke.yaml other.yaml
+when I run ssh -F .ssh/config debian@smoke hostname
+then stdout contains "smoke"
+when I run ssh -F .ssh/config debian@other hostname
+then stdout contains "other"
+~~~
+
+Then we shut them all down.
+
+~~~scenario
+when I run vmadm shutdown --config config.yaml smoke.yaml other.yaml
+~~~
+
+Then we start them back up again and verify we can log in.
+
+~~~scenario
+when I run vmadm start --config config.yaml smoke.yaml other.yaml
+when I run ssh -F .ssh/config debian@smoke hostname
+when I run ssh -F .ssh/config debian@other hostname
+~~~
+
+Finally, we delete them.
+
+~~~scenario
+when I run vmadm delete --config config.yaml smoke.yaml other.yaml
+~~~
+
+
+
+
+
# Give useful error if image for new VM already exists
This scenario verifies that if the VM image file already exists, vmadm