Releases: ryran/valine
Releases · ryran/valine
elydoric unwiped shillalah
laudably valiant meerkat
All about #24
- lvm state files moved from
/etc/valineto/var/lib/valine - If
/var/lib/valinedoesn't exist and it needs to be created,valineexits with an explanation of how to create it - When doing normal printing and an lvm state file exists: replaced calls to
sudo lvm lvswith other logic - All
sudo lvmcommands are nowsudo -n lvm, i.e., requiringnopasswd-- i.e., they fail if sudo needs to ask for a password - If a statefile doesn't exist for a VM with lvm storage and the current user can't do
sudo -n lvm, we gracefully continue -- print a warning to stderr but still display the primary storage as reported by xml - If a user that can't do
sudo -n lvmtries to usenew-snap,revert-snap, orDelete-snap, gracefully exit with an error and explanation - State files get deleted by
NUKEnow
valentine squeeze
Changelog:
- rename NUKE shortcut of "K" to "N"
- get rid of extra blank lines in the standard list output
gleemen gamogamy
Wow! I got a little carried away tonight and spent 6 hours on this. Here's the changelog:
- #8 Rename
shutdownw/hshortcut toShutdownw/Sshortcut - #2 Add
h|hibernatecmd - #3 Add
l|loop-sshcmd - #10 Add
C|Change-mediacmd to insert/eject isos - #14 Add
H|Hard-rebootcmd - #4 Fix for
--all: makestart,shutdown,destroy,hibernateexecute
conditionally (e.g., when doingvaline -a shutdownit would previously
print errors for all the VMs that were already off) - #5
valine --helpnow automatically pipes itself toless -R - #6 Intelligently hide subcommands based on VM state, i.e.:
- Only suggest
startif VM is off - Only suggest
revert-snap&Delete-snapif VM has snapshots - Only suggest
Change-mediaif VM has cdrom - Only suggest
console,Shutdown,Hard-reboot,destroy,hibernateif
VM is running
- Only suggest
- #7 Get rid of forced 2sec sleep when using
NUKE - #17 Enhance
valine DOMAINoutput, i.e., when run against a VM with no
subcommand we now also includevirsh dominfoandvirsh domblklistoutput
in addition to snapshot-details
lightless fluster
valine was previously housed in https://github.com/ryran/b19scripts ... With some of the future work I have planned, it was time to move it to its own repo. Here's the initial release, which compared to the old one has the following changes:
/usr/bin/valineinstead of/usr/sbin/valine- No longer requires root access to be run
- Instead, expects you to have added users to the
libvirtgroup forvirsh - For lvm snapshotting, it explicitly calls
sudo lvm {lvs|lvcreate|lvremove} - Renamed subcommands:
revert ==> revert-snapDelete ==> Delete-snapnew ==> new-snap
- Added subcommand
NUKEto delete a VM and all of its storage (has confirmation prompt + a 2 second-pause)
Note that all sub-command short-names are still available -- but don't take my word for it; check the help page. Here's an excerpt:
Starting/stopping/accessing/deleting domains with valine:
┐
│valine DOMAIN {s|start} | {h|shutdown} | {d|destroy} | {c|console} | {K|NUKE}
│
│start, shutdown, destroy, console commands are available as a convenience due
│to virsh's lack of intelligent BASH tab-completion
│The NUKE command is equivalent to running:
│ virsh destroy DOMAIN
│ virsh undefine --snapshots-metadata --remove-all-storage DOMAIN
└──────────────────────────────────────────────────────────────────────────────
Managing ALL domains at once with valine:
┐
│valine --all [ {n|new-snap} | {r|revert-snap} | {s|start} |
│ {h|shutdown} | {d|destroy} ]
│
│Replace DOMAIN with '--all' (or '-a') to operate on all detected domains in
│parallel (jobs are backgrounded, verbose output is lessened, and cancelling
│requires double Ctrl-c)
│Note: Does not work with console or Delete-snap or NUKE commands
│As above, the --off switch is optional with new-snap and revert-snap
└──────────────────────────────────────────────────────────────────────────────