summaryrefslogtreecommitdiff
path: root/subplot/vmadm.py
AgeCommit message (Collapse)AuthorFilesLines
2022-01-21refactor: use lib/runcmd's steps instead of custom onesLars Wirzenius1-52/+0
Subplot's lib/runcmd provides a "when I run ..." step that we can use, instead of having a custom "when I invoke ..." step. Less code, fewer bugs. Sponsored-by: author
2021-11-10fix: prepend Cargo target directory to PATHLars Wirzenius1-1/+5
Sponsored-by: author
2021-08-05feat: if no networks are specified, use defaultLars Wirzenius1-0/+3
Also, drop lan, wan from test config, because we can't assume they're available in the environment the tests are run in. Sponsored-by: author
2021-07-25test: verify both dicts have the same keyLars Wirzenius1-0/+2
Sponsored-by: author
2021-07-25test: make equality check more genericLars Wirzenius1-2/+17
Sponsored-by: author
2021-07-25test: make tilde expansion be more genericLars Wirzenius1-6/+12
Sponsored-by: author
2021-07-25test: verify that "vmadm config" worksLars Wirzenius1-0/+24
Sponsored-by: author
2021-03-14fix: VMs can be restartedLars Wirzenius1-0/+16
Previously, the temporary file for the cloud-init configuration ISO was left attached to the VM. This meant the VM couldn't be turned off and back on again: the temporary no longer existed. Now we detach the ISO file after the VM has booted. As a side effect, vmadm has gained start and shutdown subcommands, so that the fix can be tested.
2021-03-04feat: use configured defaults to unspecified machine attributesLars Wirzenius1-4/+5
2021-03-04feat! allow specification files to have any number of machinesLars Wirzenius1-4/+4
2021-03-04feat: configurable image_directory where VM images go by defaultLars Wirzenius1-2/+3
Also, specification file doesn't need to specify an image file anymore. Instead the image will be named after the VM and put into the image directory named in the configuration.
2021-03-03test: make path to Debian cloud image be configurableLars Wirzenius1-0/+14
2021-02-28feat: export cloud-init config, set SSH host keysLars Wirzenius1-0/+30
2021-02-20delete take spec file, not VM nameLars Wirzenius1-7/+2
2021-02-20feat: vmadm command to create, list, and delete virtual machinesLars Wirzenius1-0/+50
Includes test suite.