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
Joshua Boniface
943a754dae
Add default show to selector option
2018-07-18 22:22:12 -04:00
Joshua Boniface
06adebc5b0
Fix returning incorrect variable
2018-07-18 21:48:30 -04:00
Joshua Boniface
83fe95fabb
Correct variable typo
2018-07-18 21:48:00 -04:00
Joshua Boniface
969f68bae2
Forgot to update build-deb to 0.2
2018-07-18 21:40:30 -04:00
Joshua Boniface
c90e865aa6
Add cast of cpuload to a float
2018-07-18 21:36:45 -04:00
Joshua Boniface
87bf47c6d0
Use correct ZK node ID
2018-07-18 21:35:20 -04:00
Joshua Boniface
88b7059532
Correct valid_hypervisor_list to be a list
2018-07-18 21:32:57 -04:00
Joshua Boniface
22776cdaaa
Fix incorrect usage of zkhandler inside pvc.py
2018-07-18 21:31:17 -04:00
Joshua Boniface
f91e210f1a
Implement migration targets in client
...
Addresses #11
2018-07-18 21:18:43 -04:00
Joshua Boniface
eb23488486
Add config flag for migration selector
...
Addresses #11
2018-07-18 12:13:41 -04:00
Joshua Boniface
ca554cc9f1
Implement alternate node target fields
...
Implements the last additional hypervisor selector fields: vCPUs.
Addresses #11
2018-07-18 12:10:27 -04:00
Joshua Boniface
bebd0af0ac
Implement alternate node target fields
...
Implements the first 2 of the 3 additional hypervisor selector
fields: load average, and active VMs.
Addresses #11
2018-07-18 12:04:35 -04:00
Joshua Boniface
9852667f9d
Add current_hypervisor to the right place
2018-07-18 02:52:52 -04:00
Joshua Boniface
88dbc139fb
Fix bug in defname
2018-07-18 02:48:06 -04:00
Joshua Boniface
d5ca4262ee
Typo in definition
2018-07-18 02:40:20 -04:00
Joshua Boniface
8e7c883d72
Correct some bugs and remove this_node aspect
...
Addresses #9
2018-07-18 02:30:50 -04:00
Joshua Boniface
b12fc956c7
Typo missing colon
2018-07-18 02:24:45 -04:00
Joshua Boniface
4d2279230f
Version bump in GitLab CI config
2018-07-18 02:19:30 -04:00
Joshua Boniface
a810347aaf
Bump to version 0.2
2018-07-18 02:18:33 -04:00
Joshua Boniface
d8962bf998
Use memalloc for target selection
...
Uses the new memalloc ZK data to calculate the most free target
hypervisor during migrations. Also functionizes the selection
to avoid code duplication and facilitate adding alternate search
functions in the future.
Addresses #9
2018-07-18 02:14:35 -04:00
Joshua Boniface
d3cb8d4a13
Add warning if keepalive fails
2018-07-17 22:07:28 -04:00
Joshua Boniface
6a193ac5eb
Integerize the memory variable
2018-07-17 21:55:38 -04:00
Joshua Boniface
0fd8ecc019
Correct working of getmemory function
2018-07-17 21:51:49 -04:00
Joshua Boniface
329aa93d81
Put a try block around maxMemory call
2018-07-17 21:42:28 -04:00
Joshua Boniface
2c988430db
Add maxmemory to the data for each VMInstance object
2018-07-17 21:40:30 -04:00
Joshua Boniface
7c89fa8aea
Change where the memalloc increase is
2018-07-17 21:38:07 -04:00
Joshua Boniface
344881ff27
Add allocated memory for node to ZK
...
Adds field for allocated memory in addition to free and used memory
Addresses #9
2018-07-17 21:34:11 -04:00
Joshua Boniface
7f3caa2859
Explicitly copy domain_list array
...
Fixes a bug caused by looping over a changing list of domains
during the flush (and unflush) actions.
Fixes #7
2018-07-17 14:29:18 -04:00