Commit Graph

3091 Commits

Author SHA1 Message Date
Joshua Boniface fc0465d112 Correct several bugs from refactor 2018-09-20 11:20:23 -04:00
Joshua Boniface 461183a371 Fix changed variable name 2018-09-20 03:46:05 -04:00
Joshua Boniface 513de96626 Major refactor to separate out and standardize libraries 2018-09-20 03:43:34 -04:00
Joshua Boniface c9258edcad Refactor CLI client to split out actual functions for reuse 2018-09-20 03:25:58 -04:00
Joshua Boniface 378fcccbe5 Remove sudo from network stuff 2018-09-18 02:24:03 -04:00
Joshua Boniface f77971b4e3 Create networks folder 2018-09-18 02:20:10 -04:00
Joshua Boniface 852ce9c928 Correct typo in pvcnd service 2018-09-18 02:16:08 -04:00
Joshua Boniface 743b4cc3c7 Print error when we can't find a target HV 2018-09-17 01:41:20 -04:00
Joshua Boniface c3d37701e7 Add network daemon to manage VXLAN VNIs on hypervisors 2018-09-14 12:07:41 -04:00
Joshua Boniface 10d32e636c Change header 2018-09-12 21:35:32 -04:00
Joshua Boniface cc377c8270 Update version in CI config 2018-09-12 12:43:18 -04:00
Joshua Boniface ac2ae4b3e3 Tweak some more things in the Daemon to reflect split 2018-09-12 12:43:18 -04:00
Joshua Boniface 8791224e64 Tweak some more things in the Daemon to reflect split 2018-09-12 12:38:27 -04:00
Joshua Boniface 2b935bd923 Fix up some lingering problems from rename 2018-09-12 12:24:14 -04:00
Joshua Boniface b6c7153401 Bump version and split common libraries into separate package 2018-09-12 12:11:59 -04:00
Joshua Boniface f29ba2f458 Rename the virtualization daemon to `pvcvd`. 2018-09-12 11:59:23 -04:00
Joshua Boniface a629d4898a Rename deb package to reflect daemon splits 2018-09-10 14:24:15 -04:00
Joshua Boniface 32e3da1acc Move virt daemon location 2018-09-10 14:21:27 -04:00
Joshua Boniface d9c38aa3fb Add file header template 2018-09-10 01:19:08 -04:00
Joshua Boniface 7625abb23b Move cli client into subfolder 2018-09-10 01:15:03 -04:00
Joshua Boniface e377fcdd7f Move daemon components into subfolder 2018-09-10 01:13:31 -04:00
Joshua Boniface f8fe0d073b Move daemon into module file; add stub launcher 2018-09-10 01:12:17 -04:00
Joshua Boniface 2bf20d717b Add missing description reference 2018-09-08 17:24:41 -04:00
Joshua Boniface 9af3b032fb Set default description if not set 2018-09-06 12:16:01 -04:00
Joshua Boniface 4dbb8c7eb2 Add description parsing to VM info 2018-09-02 22:19:15 -04:00
Joshua Boniface 057a9716ae Use correct variable name
Fixes #18
2018-08-31 10:16:19 -04:00
Joshua Boniface 91dea8e7ac Ensure pvc client always returns code 1 on errors 2018-08-29 21:31:47 -04:00
Joshua Boniface 09b4191427 Correct bug where starting a running instance triggered failed state 2018-08-23 19:01:57 -04:00
Joshua Boniface 57b3c62fb0 Move node_mem_allocated to inside try block
Addresses #17
2018-08-20 13:43:00 -04:00
Joshua Boniface 3b15f09ac7 Return the proper list
Fixes #17
2018-08-20 12:24:00 -04:00
Joshua Boniface a25b0eed4f Replace valid_hypervisor_list with list
Fixes #17
2018-08-20 12:13:54 -04:00
Joshua Boniface cffb9cff5c Ignore and print about AttributeErrors from invalid domains
Addresses #16 pending longterm fix
2018-08-20 12:03:53 -04:00
Joshua Boniface 37906fdd25 Remove submodule; all of pvc client is in one file 2018-08-11 14:07:00 -04:00
Joshua Boniface d205ef2072 Correct failure modes when undefining VM
Undefining a VM would sometimes leave a remnant UUID in the
runningdomains list on the target hypervisor which persisted even
after restarting. This helps prevent that happening by splitting
the various undefine steps into separate try blocks, just in case
one fails.

Fixes #15
2018-08-09 00:29:27 -04:00
Joshua Boniface 2163143951 Create and remove the failedreason key
Fixes a forgotten addition of this element being created.

Closes #15
2018-07-26 12:13:30 -04:00
Joshua Boniface 73fcf10250 Handle restarts nicer; fix bug in failedreason write 2018-07-20 01:02:18 -04:00
Joshua Boniface 3732ecbbf3 Add trailing newline after info output 2018-07-20 01:01:59 -04:00
Joshua Boniface f9c27aea96 Add vm modification function
Adds a function to modify an existing VM object's configuration,
either directly in-editor, or by replacing with a new XML config.
In replacement mode, there is no confirmation or diff, the new
configuration is simply written and reboot triggered if specified.
In editor mode, the users local EDITOR (or `vi`) is started with
a copy of the existing config. Upon writing and exiting, the
operator is presented with a diff of the changes and is asked to
confirm before writing them to Zookeeper.

Closes #13
2018-07-20 00:50:48 -04:00
Joshua Boniface 56773d37d8 Add failure printing to client
Closes #14
2018-07-19 23:19:20 -04:00
Joshua Boniface fab8af9c04 Add debug migrate script 2018-07-19 23:12:02 -04:00
Joshua Boniface d9da59c86b Add failedreason ZK key write on VM failure 2018-07-19 22:48:14 -04:00
Joshua Boniface 61aef9fd3e Fix listing bug in node info
Fixes a listing bug during 'node info -l' introduced in previous
commit 4a3780cf as a "cleanup", and makes this a little more
elegant.

References #12
2018-07-19 22:01:31 -04:00
Joshua Boniface 090929fdde Add regex matching to list commands
Adds optional regex arguments and matching to vm list and node list
functions.

Closes #12
2018-07-19 21:58:11 -04:00
Joshua Boniface fe93b1ed3c Add try block around cur hypervisor
On initial deploy this doesn't work since the value is empty; just
set the value to None in this case.
2018-07-19 11:58:33 -04:00
Joshua Boniface 962cc0f5b0 Add missing text 2018-07-18 23:01:06 -04:00
Joshua Boniface 00f5567b9c Better help text for init command 2018-07-18 22:44:52 -04:00
Joshua Boniface e2b5feb660 Better text in root help 2018-07-18 22:33:17 -04:00
Joshua Boniface c96b4bf013 Use consistent punctuation in help text 2018-07-18 22:28:49 -04:00
Joshua Boniface 8ce6c9afd0 Remove definite article from output messages 2018-07-18 22:26:31 -04:00
Joshua Boniface 37770d0fa8 Use consistent help messages 2018-07-18 22:25:12 -04:00