libvscmgmt.git
10 years ago[lib] Use stack-based virSchedParameter to avoid a free() problem.
Matthias Bolte [Tue, 27 Oct 2009 16:13:12 +0000 (17:13 +0100)]
[lib] Use stack-based virSchedParameter to avoid a free() problem.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

10 years ago[network/common] Fix linked list loop problem.
Matthias Bolte [Tue, 27 Oct 2009 16:00:41 +0000 (17:00 +0100)]
[network/common] Fix linked list loop problem.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

10 years ago[lib] Ensure VM info is deleted before image_retract() in tabula_rasa().
Maximilian Wilhelm [Tue, 27 Oct 2009 13:48:36 +0000 (14:48 +0100)]
[lib] Ensure VM info is deleted before image_retract() in tabula_rasa().

  image_retract() will refuse to retract the image of a VM which is still
  known to the library data backend. So remove all VM information before
  calling image_retract() - if there are any.

  refs #98

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoRevert "[lib] Make tabula rasa power off and retract a known VM before retracting...
Maximilian Wilhelm [Tue, 27 Oct 2009 15:17:44 +0000 (16:17 +0100)]
Revert "[lib] Make tabula rasa power off and retract a known VM before retracting the image."

  This was a nice catch, but there is a nicer way to do this.

This reverts commit 44d49f21d7c064945b3bba9c09e2e4b106aa9cfc.

10 years agoMerge branch 'master' of ssh://vsc-master/data/scm/git/libvscmgmt
Maximilian Wilhelm [Tue, 27 Oct 2009 15:16:09 +0000 (16:16 +0100)]
Merge branch 'master' of ssh://vsc-master/data/scm/git/libvscmgmt

10 years ago[lib] Remove _tabula_rasa_image_fate() functon entierly for now.
Maximilian Wilhelm [Tue, 27 Oct 2009 13:52:44 +0000 (14:52 +0100)]
[lib] Remove _tabula_rasa_image_fate() functon entierly for now.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Make tabula rasa power off and retract a known VM before retracting the image.
Matthias Bolte [Mon, 26 Oct 2009 00:28:33 +0000 (01:28 +0100)]
[lib] Make tabula rasa power off and retract a known VM before retracting the image.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

10 years ago[lib] Fix error message.
Matthias Bolte [Sun, 25 Oct 2009 23:17:20 +0000 (00:17 +0100)]
[lib] Fix error message.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

10 years ago[lib] Fix domain pointer leak.
Matthias Bolte [Sun, 25 Oct 2009 23:16:49 +0000 (00:16 +0100)]
[lib] Fix domain pointer leak.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

10 years ago[network/common] Fix segmentation fault.
Matthias Bolte [Sun, 25 Oct 2009 23:19:39 +0000 (00:19 +0100)]
[network/common] Fix segmentation fault.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

10 years ago[python] Add python bindings for the vsc_mgmt_tabula_rasa() function.
Maximilian Wilhelm [Sun, 25 Oct 2009 00:15:49 +0000 (02:15 +0200)]
[python] Add python bindings for the vsc_mgmt_tabula_rasa() function.

  refs #98

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Implement the vsc_mgmt_tabula_rasa() function
Maximilian Wilhelm [Sun, 25 Oct 2009 00:14:10 +0000 (02:14 +0200)]
[lib] Implement the vsc_mgmt_tabula_rasa() function

  This function will make the library to remove all (known) VMs from all
  known hosts (regarding to the hosts list read before) wrt to the given
  force level.

  refs #98

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/dhcponly] Implement a tabula_rasa() function for the dhcponly network backend.
Maximilian Wilhelm [Sun, 25 Oct 2009 00:12:01 +0000 (02:12 +0200)]
[network/dhcponly] Implement a tabula_rasa() function for the dhcponly network backend.

  This function will tell the dhcponly network backend to forget about all
  networks and thereby reset to the initial configuration.
  It will also call the tabula_rasa() function of the underlying common
  network backend to reset the whole state of the network subsystem.

  refs #98

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/common] Implement a tabula_rasa() function for the common network backend.
Maximilian Wilhelm [Sun, 25 Oct 2009 00:09:35 +0000 (02:09 +0200)]
[network/common] Implement a tabula_rasa() function for the common network backend.

  This function will reset all networks to the inital state and let the backend
  forget about all IPs, MACs and VM information.

  refs #98

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[data/glibtree] Implement tabula_rasa() function for data backend.
Maximilian Wilhelm [Sun, 25 Oct 2009 00:06:43 +0000 (02:06 +0200)]
[data/glibtree] Implement tabula_rasa() function for data backend.

  This function will tell the data backend to forget about all VMs but leave
  the host information intact.

  refs #98

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[data/glibtree] Generalize 'free' tree traversal function.
Maximilian Wilhelm [Sun, 25 Oct 2009 00:05:46 +0000 (02:05 +0200)]
[data/glibtree] Generalize 'free' tree traversal function.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Style fixes.
Maximilian Wilhelm [Tue, 20 Oct 2009 14:31:53 +0000 (16:31 +0200)]
[lib] Style fixes.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/dhcponly] Unlock mutex in _vsc_mgmt_network_recover_start() on success.
Maximilian Wilhelm [Tue, 13 Oct 2009 17:11:40 +0000 (19:11 +0200)]
[network/dhcponly] Unlock mutex in _vsc_mgmt_network_recover_start() on success.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Set up lock before parsing the configuration.
Maximilian Wilhelm [Tue, 13 Oct 2009 16:36:24 +0000 (18:36 +0200)]
[lib] Set up lock before parsing the configuration.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Remove dead code in _vsc_mgmt_mac_to_uint().
Maximilian Wilhelm [Tue, 13 Oct 2009 16:35:29 +0000 (18:35 +0200)]
[lib] Remove dead code in _vsc_mgmt_mac_to_uint().

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Remove dead code.
Maximilian Wilhelm [Tue, 13 Oct 2009 16:34:55 +0000 (18:34 +0200)]
[lib] Remove dead code.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/dhcponly] The gateway parameter is called 'option routers' for ISC DHCPD.
Maximilian Wilhelm [Mon, 12 Oct 2009 00:31:20 +0000 (02:31 +0200)]
[network/dhcponly] The gateway parameter is called 'option routers' for ISC DHCPD.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/dhcponly] Make _vsc_mgmt_network_synchronize() write DHCP on atomic way.
Maximilian Wilhelm [Mon, 12 Oct 2009 00:07:06 +0000 (02:07 +0200)]
[network/dhcponly] Make _vsc_mgmt_network_synchronize() write DHCP on atomic way.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Use _vsc_mgmt_ipv4_copy(9 instead of memcpy() in _vsc_mgmt_network_new().
Maximilian Wilhelm [Sun, 11 Oct 2009 23:49:50 +0000 (01:49 +0200)]
[lib] Use _vsc_mgmt_ipv4_copy(9 instead of memcpy() in _vsc_mgmt_network_new().

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/dhcponly] Print 'routers <gateway_ip>' for each subnet in DHCP config.
Maximilian Wilhelm [Sun, 11 Oct 2009 23:48:44 +0000 (01:48 +0200)]
[network/dhcponly] Print 'routers <gateway_ip>' for each subnet in DHCP config.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/common] Copy gateway IP in _vsc_mgmt_network_common_getinfo().
Maximilian Wilhelm [Sun, 11 Oct 2009 23:48:16 +0000 (01:48 +0200)]
[network/common] Copy gateway IP in _vsc_mgmt_network_common_getinfo().

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/dhcpony] More locking fixes and initialization checking
Maximilian Wilhelm [Sun, 11 Oct 2009 21:06:02 +0000 (23:06 +0200)]
[network/dhcpony] More locking fixes and initialization checking

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/dhcponly] Generalize _map_dhcp_config_file_header() and prepare footer handling.
Maximilian Wilhelm [Sun, 11 Oct 2009 20:55:32 +0000 (22:55 +0200)]
[network/dhcponly] Generalize _map_dhcp_config_file_header() and prepare footer handling.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/dhcponly] Fix some locking and check for initialization.
Maximilian Wilhelm [Sun, 11 Oct 2009 20:43:43 +0000 (22:43 +0200)]
[network/dhcponly] Fix some locking and check for initialization.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/dhcponly] Cleanup common network backend if init of dhcponly one fails.
Maximilian Wilhelm [Sat, 10 Oct 2009 11:38:38 +0000 (13:38 +0200)]
[network/dhcponly] Cleanup common network backend if init of dhcponly one fails.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Implement vm_set_resource_config and core_clock handling in vm_power_on()
Maximilian Wilhelm [Tue, 6 Oct 2009 23:00:30 +0000 (01:00 +0200)]
[lib] Implement vm_set_resource_config and core_clock handling in vm_power_on()

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

10 years ago[lib] Fix locking in vm_deploy().
Maximilian Wilhelm [Tue, 6 Oct 2009 22:58:06 +0000 (00:58 +0200)]
[lib] Fix locking in vm_deploy().

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Fix error semantics in config file parsing function.
Maximilian Wilhelm [Tue, 6 Oct 2009 22:55:29 +0000 (00:55 +0200)]
[lib] Fix error semantics in config file parsing function.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[data/glibtree] Minor readability fix.
Maximilian Wilhelm [Tue, 6 Oct 2009 22:53:07 +0000 (00:53 +0200)]
[data/glibtree] Minor readability fix.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[data/glibtree] Update VM's host_ip instead of it's own IP in vm_move().
Maximilian Wilhelm [Sat, 3 Oct 2009 17:01:41 +0000 (19:01 +0200)]
[data/glibtree] Update VM's host_ip instead of it's own IP in vm_move().

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Undefine migrated VM on former host, as libVirt doesn't do it automatically.
Maximilian Wilhelm [Sat, 3 Oct 2009 16:54:05 +0000 (18:54 +0200)]
[lib] Undefine migrated VM on former host, as libVirt doesn't do it automatically.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[data/glibtree] Fix *really* silly comparison error in vm_move().
Maximilian Wilhelm [Sat, 3 Oct 2009 16:30:55 +0000 (18:30 +0200)]
[data/glibtree] Fix *really* silly comparison error in vm_move().

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoMerge branch 'config'
Maximilian Wilhelm [Thu, 1 Oct 2009 05:56:23 +0000 (07:56 +0200)]
Merge branch 'config'

10 years agoMerge branch 'master' of ssh://vsc-master/data/scm/git/libvscmgmt
Maximilian Wilhelm [Thu, 1 Oct 2009 05:19:24 +0000 (07:19 +0200)]
Merge branch 'master' of ssh://vsc-master/data/scm/git/libvscmgmt

10 years ago[lib] Add configuration for whole library and rework some image path stuff.
Maximilian Wilhelm [Thu, 1 Oct 2009 05:14:06 +0000 (07:14 +0200)]
[lib] Add configuration for whole library and rework some image path stuff.

  refs #97

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[docs,tests] Update host list format documentation and tests.
Matthias Bolte [Tue, 29 Sep 2009 13:17:35 +0000 (15:17 +0200)]
[docs,tests] Update host list format documentation and tests.

  * Both had references to the old ESX vCenter handling.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

10 years ago[test] Remove superflous 'host_test' test without any relavant code.
Maximilian Wilhelm [Sat, 26 Sep 2009 02:22:34 +0000 (04:22 +0200)]
[test] Remove superflous 'host_test' test without any relavant code.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Add example configuration file the the VSC magement library.
Maximilian Wilhelm [Sat, 26 Sep 2009 01:57:44 +0000 (03:57 +0200)]
[lib] Add example configuration file the the VSC magement library.

  refs #97

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Add support for the ESX hypervisor.
Maximilian Wilhelm [Sat, 26 Sep 2009 00:16:10 +0000 (02:16 +0200)]
[lib] Add support for the ESX hypervisor.

  With theses changes it is possible to deploy and retract VMs to ESX hosts.

  refs #107

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Make sure we got a vCenter IP in ESX special case in libVirt auth callback.
Maximilian Wilhelm [Fri, 25 Sep 2009 22:32:20 +0000 (00:32 +0200)]
[lib] Make sure we got a vCenter IP in ESX special case in libVirt auth callback.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Fix wording in comment.
Maximilian Wilhelm [Fri, 25 Sep 2009 22:19:06 +0000 (00:19 +0200)]
[lib] Fix wording in comment.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Prepare support for ESX hypervisor
Maximilian Wilhelm [Fri, 25 Sep 2009 22:05:22 +0000 (00:05 +0200)]
[lib] Prepare support for ESX hypervisor

  The library now can connect to an ESX host.
  If the host is managed by a vCenter, the library has to know the credentials
  for the vCenter so it can supply them to libVirt if it's asks about them.

  The mapping between ESX hosts and vCenter(s) is now completely done by the
  libVirt driver. The library just provides the credentials for vCenters.

  refs #107

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[docs] Add example configuration file for the network backends.
Maximilian Wilhelm [Thu, 24 Sep 2009 00:24:09 +0000 (02:24 +0200)]
[docs] Add example configuration file for the network backends.

  refs #97

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/dhcponly] Make dhcponly network backend configurable.
Maximilian Wilhelm [Thu, 24 Sep 2009 00:19:56 +0000 (02:19 +0200)]
[network/dhcponly] Make dhcponly network backend configurable.

  refs #97

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/common] Make common network backend configureable.
Maximilian Wilhelm [Thu, 24 Sep 2009 00:19:31 +0000 (02:19 +0200)]
[network/common] Make common network backend configureable.

  refs #97

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Make use of vsc_str_skip_whitespaces() and vsc_str_read_until_marker().
Maximilian Wilhelm [Wed, 23 Sep 2009 19:42:31 +0000 (21:42 +0200)]
[lib] Make use of vsc_str_skip_whitespaces() and vsc_str_read_until_marker().

  Remove the aquivalent static functions from the parser.c file.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/dhcponly] Track num of used IPs.
Maximilian Wilhelm [Tue, 22 Sep 2009 21:29:35 +0000 (23:29 +0200)]
[network/dhcponly] Track num of used IPs.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/common] Fix another bug in f912e961d315de46e5cb5b1c1e840d40811908a8.
Maximilian Wilhelm [Tue, 22 Sep 2009 21:28:38 +0000 (23:28 +0200)]
[network/common] Fix another bug in f912e961d315de46e5cb5b1c1e840d40811908a8.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/common] Fix typo introduced in f912e961d315de46e5cb5b1c1e840d40811908a8.
Maximilian Wilhelm [Tue, 22 Sep 2009 21:09:55 +0000 (23:09 +0200)]
[network/common] Fix typo introduced in f912e961d315de46e5cb5b1c1e840d40811908a8.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/common] Fix *really* silly array indexing error.
Maximilian Wilhelm [Tue, 22 Sep 2009 20:55:53 +0000 (22:55 +0200)]
[network/common] Fix *really* silly array indexing error.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/common] Add used MACs to used_macs tree on recover.
Maximilian Wilhelm [Tue, 22 Sep 2009 20:41:19 +0000 (22:41 +0200)]
[network/common] Add used MACs to used_macs tree on recover.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Reconnect all hosts after recover() and fix some stuff.
Maximilian Wilhelm [Mon, 21 Sep 2009 18:37:49 +0000 (20:37 +0200)]
[lib] Reconnect all hosts after recover() and fix some stuff.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Add backup and recover of host and VM timevals and VM state.
Maximilian Wilhelm [Mon, 21 Sep 2009 17:17:36 +0000 (19:17 +0200)]
[lib] Add backup and recover of host and VM timevals and VM state.

  refs #89

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Add _vsc_mgmt_xml_print_timeval() function.
Maximilian Wilhelm [Mon, 21 Sep 2009 17:16:02 +0000 (19:16 +0200)]
[lib] Add _vsc_mgmt_xml_print_timeval() function.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Fix compile errors intoduced in last commit.
Matthias Bolte [Sun, 20 Sep 2009 13:22:17 +0000 (15:22 +0200)]
[lib] Fix compile errors intoduced in last commit.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

10 years ago[lib] Cleanup error code usage for strdup() and fopen().
Matthias Bolte [Sun, 20 Sep 2009 13:20:52 +0000 (15:20 +0200)]
[lib] Cleanup error code usage for strdup() and fopen().

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

10 years ago[lib, tests] Add VMDK info file parser/formater and add tests for it.
Matthias Bolte [Sun, 20 Sep 2009 02:30:29 +0000 (04:30 +0200)]
[lib, tests] Add VMDK info file parser/formater and add tests for it.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

10 years ago[lib] Add _vsc_mgmt_xml_parse_timeval() function.
Maximilian Wilhelm [Sun, 20 Sep 2009 01:32:08 +0000 (03:32 +0200)]
[lib] Add _vsc_mgmt_xml_parse_timeval() function.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Add recover for data and network backend.
Maximilian Wilhelm [Tue, 15 Sep 2009 20:17:34 +0000 (22:17 +0200)]
[lib] Add recover for data and network backend.

  refs #89

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Only try to parse netmask in _vsc_mgmt_xml_parse_ipv4() if requested.
Maximilian Wilhelm [Tue, 15 Sep 2009 20:03:18 +0000 (22:03 +0200)]
[lib] Only try to parse netmask in _vsc_mgmt_xml_parse_ipv4() if requested.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Add XML parser helper functions.
Maximilian Wilhelm [Tue, 15 Sep 2009 14:54:45 +0000 (16:54 +0200)]
[lib] Add XML parser helper functions.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[types] Make host/VM core_clock and num_cores signed int.
Maximilian Wilhelm [Tue, 15 Sep 2009 14:22:49 +0000 (16:22 +0200)]
[types] Make host/VM core_clock and num_cores signed int.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoMerge branch 'master' of ssh://vsc-master/data/scm/git/libvscmgmt
Maximilian Wilhelm [Tue, 15 Sep 2009 14:15:51 +0000 (16:15 +0200)]
Merge branch 'master' of ssh://vsc-master/data/scm/git/libvscmgmt

10 years ago[tests] Fix an uninitialized variable warning.
Matthias Bolte [Fri, 11 Sep 2009 14:43:22 +0000 (16:43 +0200)]
[tests] Fix an uninitialized variable warning.

  * Seems to be GCC 4.4 specific, as Andreas has GCC 4.4.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

10 years ago[lib] Add some more mac helper functions
Maximilian Wilhelm [Wed, 9 Sep 2009 09:51:51 +0000 (11:51 +0200)]
[lib] Add some more mac helper functions

  * _vsc_mgmt_mac_to_uint ()
  * _vsc_mgmt_mac_from_uint ()
  * _vsc_mgmt_mac_clear ()
  * _vsc_mgmt_mac_is_valid ()

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Set timing information of hosts
Maximilian Wilhelm [Tue, 8 Sep 2009 20:10:23 +0000 (22:10 +0200)]
[lib] Set timing information of hosts

  refs #114

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Add check for already used VM UUIDs in vm_deploy()
Maximilian Wilhelm [Tue, 8 Sep 2009 16:33:00 +0000 (18:33 +0200)]
[lib] Add check for already used VM UUIDs in vm_deploy()

  refs #113

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Let vm_deploy take a vm_resource_config list
Maximilian Wilhelm [Tue, 8 Sep 2009 16:25:22 +0000 (18:25 +0200)]
[lib] Let vm_deploy take a vm_resource_config list

  The current API only supports one vm_resource_config for a set of VMs to be
  deployed by one call to vm_deploy().

  This change introduces the possibility to deploy a bunch of VMs with
  different resource configurations at once.

  refs #108

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Query libVirt domain pointer in vm_<state change> function on each run.
Maximilian Wilhelm [Tue, 8 Sep 2009 01:20:08 +0000 (03:20 +0200)]
[lib] Query libVirt domain pointer in vm_<state change> function on each run.

  Don't rely on a stored domain pointer within the library over the whole
  run time but query it on each run.

  This will make the library more robust against potential problems and
  simplifies the recover process.

  refs #72

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[cli] Removed old and superflous CLI.
Maximilian Wilhelm [Mon, 7 Sep 2009 17:08:40 +0000 (19:08 +0200)]
[cli] Removed old and superflous CLI.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Add 'vsc_mgmt_mac_parse()' helper function.
Maximilian Wilhelm [Mon, 7 Sep 2009 01:34:46 +0000 (03:34 +0200)]
[lib] Add 'vsc_mgmt_mac_parse()' helper function.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Remove obsolete 'deployment_state' and 'num_vms_being_deployed' values
Maximilian Wilhelm [Sun, 6 Sep 2009 23:59:00 +0000 (01:59 +0200)]
[lib] Remove obsolete 'deployment_state' and 'num_vms_being_deployed' values

  The two values aren't neccessary any more due to the
  vm_deploy() -> image_deploy() / vm_deploy() split as vm_deploy() does not
  release it's global lock anymore and there can't happen any other requests
  or changes to the host information within the vm_deploy() call.

  refs 96

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[backends] Don't backup empty values.
Maximilian Wilhelm [Thu, 3 Sep 2009 18:35:54 +0000 (20:35 +0200)]
[backends] Don't backup empty values.

  Ignore empty or irrelevant values in the backup file.

  refs #89

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Fixed _vsc_mgmt_host_is_valid() function.
Maximilian Wilhelm [Thu, 3 Sep 2009 17:29:37 +0000 (19:29 +0200)]
[lib] Fixed _vsc_mgmt_host_is_valid() function.

  _vsc_mgmt_host_is_valid() did consider it an error if a host of any type did
  not have an username or password specified.
  This was a bug, as for examples for Xen hosts there is neither an username
  nor a password required.

  closes #100

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Remove all occurences of 'KVM' in the library as it's not suppored now.
Maximilian Wilhelm [Thu, 3 Sep 2009 17:21:23 +0000 (19:21 +0200)]
[lib] Remove all occurences of 'KVM' in the library as it's not suppored now.

  refs #100

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years agoMerge branch 'master' of ssh://vsc-master/data/scm/git/libvscmgmt
Maximilian Wilhelm [Thu, 3 Sep 2009 17:03:15 +0000 (19:03 +0200)]
Merge branch 'master' of ssh://vsc-master/data/scm/git/libvscmgmt

10 years ago[contrib] Added script to automagically restart the DHCP server.
Maximilian Wilhelm [Thu, 3 Sep 2009 17:02:38 +0000 (19:02 +0200)]
[contrib] Added script to automagically restart the DHCP server.

  closes #68

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network] Add proper initialization for some pointers.
Matthias Bolte [Thu, 3 Sep 2009 11:08:37 +0000 (13:08 +0200)]
[network] Add proper initialization for some pointers.

  * Discovered by the LLVM clang analyzer.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

10 years ago[network/dhcponly] Implemented backup of DHCPonly backend.
Maximilian Wilhelm [Wed, 2 Sep 2009 20:00:47 +0000 (22:00 +0200)]
[network/dhcponly] Implemented backup of DHCPonly backend.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/common] Print readable version of CIDR network information to backup.
Maximilian Wilhelm [Wed, 2 Sep 2009 19:58:34 +0000 (21:58 +0200)]
[network/common] Print readable version of CIDR network information to backup.

  Print 10.0.0.0/24 instead of two unint_32 values representing the bits of
  CIDR network and netmask.

  refs #89

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Add _vsc_mgmt_network_mask_{from,to}_bits helper functions.
Maximilian Wilhelm [Wed, 2 Sep 2009 19:58:00 +0000 (21:58 +0200)]
[lib] Add _vsc_mgmt_network_mask_{from,to}_bits helper functions.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Added backup of data backend and common network backend.
Maximilian Wilhelm [Tue, 1 Sep 2009 20:19:43 +0000 (22:19 +0200)]
[lib] Added backup of data backend and common network backend.

  refs #89

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[network/common] Rewrote MAC handling using Glib balanced binary trees.
Maximilian Wilhelm [Tue, 1 Sep 2009 19:19:04 +0000 (21:19 +0200)]
[network/common] Rewrote MAC handling using Glib balanced binary trees.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[python] Added uuid_generate() to binding.
Maximilian Wilhelm [Tue, 1 Sep 2009 15:32:12 +0000 (17:32 +0200)]
[python] Added uuid_generate() to binding.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Check if library is initialized in all public non-helper functions.
Maximilian Wilhelm [Tue, 1 Sep 2009 14:47:48 +0000 (16:47 +0200)]
[lib] Check if library is initialized in all public non-helper functions.

  All functions which potentially handle internal state do now check if the
  library has been initialized in advance and return and error if not.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Added _vsc_mgmt_remove_dir().
Maximilian Wilhelm [Mon, 31 Aug 2009 22:37:47 +0000 (00:37 +0200)]
[lib] Added _vsc_mgmt_remove_dir().

  refs #96

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[include] Removed superflous declaration of vsc_mgmt_get_object_type().
Maximilian Wilhelm [Sun, 30 Aug 2009 23:29:56 +0000 (01:29 +0200)]
[include] Removed superflous declaration of vsc_mgmt_get_object_type().

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[include] Remove superflous declaration of image_retract().
Maximilian Wilhelm [Sun, 30 Aug 2009 22:50:14 +0000 (00:50 +0200)]
[include] Remove superflous declaration of image_retract().

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] First shot implementation of vm_retract() -> {vm,image}_retract() split.
Maximilian Wilhelm [Tue, 25 Aug 2009 21:07:08 +0000 (23:07 +0200)]
[lib] First shot implementation of vm_retract() -> {vm,image}_retract() split.

  refs #96

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Prefer vsc_mgmt_uuid_format() over uuid_unprase().
Maximilian Wilhelm [Tue, 25 Aug 2009 21:04:53 +0000 (23:04 +0200)]
[lib] Prefer vsc_mgmt_uuid_format() over uuid_unprase().

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Correct header entries for image_* stuff.
Maximilian Wilhelm [Tue, 25 Aug 2009 21:03:05 +0000 (23:03 +0200)]
[lib] Correct header entries for image_* stuff.

  refs #96

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Move image_* function to own C file
Maximilian Wilhelm [Tue, 25 Aug 2009 20:00:54 +0000 (22:00 +0200)]
[lib] Move image_* function to own C file

  * Move image_deploy() from vm.c to new file image.c
  * Moved function _vm_image_filename() from vm.c to core.c and renamed it
    to _vsc_mgmt_gen_image_path().

  refs #96

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[lib] Don't leak libVirt domain pointer memory on vm_retract().
Maximilian Wilhelm [Tue, 25 Aug 2009 18:24:02 +0000 (20:24 +0200)]
[lib] Don't leak libVirt domain pointer memory on vm_retract().

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[python] Add vsc_mgmt_cleanup() function to Python bindings.
Maximilian Wilhelm [Tue, 25 Aug 2009 18:11:31 +0000 (20:11 +0200)]
[python] Add vsc_mgmt_cleanup() function to Python bindings.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

10 years ago[tests] Update Python binding test
Maximilian Wilhelm [Tue, 25 Aug 2009 15:25:07 +0000 (17:25 +0200)]
[tests] Update Python binding test

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>