libvscmgmt.git
9 years ago[doc] Update INSTALL file once more. master origin/HEAD origin/master pg_vsc_final
Maximilian Wilhelm [Tue, 16 Feb 2010 17:16:55 +0000 (18:16 +0100)]
[doc] Update INSTALL file once more.

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

9 years ago[doc] Updated INSTALL file.
Maximilian Wilhelm [Tue, 16 Feb 2010 17:13:20 +0000 (18:13 +0100)]
[doc] Updated INSTALL file.

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

9 years agoAdd dependency to libxml2{,-dev} to INSTALL file.
Maximilian Wilhelm [Tue, 2 Feb 2010 11:05:43 +0000 (12:05 +0100)]
Add dependency to libxml2{,-dev} to INSTALL file.

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

9 years ago[docs] Fix typos in example configuration files.
Maximilian Wilhelm [Fri, 15 Jan 2010 22:37:35 +0000 (23:37 +0100)]
[docs] Fix typos in example configuration files.

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

9 years ago[docs] Add some more Doxygen strings.
Maximilian Wilhelm [Thu, 14 Jan 2010 23:48:16 +0000 (00:48 +0100)]
[docs] Add some more Doxygen strings.

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

9 years ago[lib] Declare private struct '_host_fields_required' as static.
Maximilian Wilhelm [Thu, 14 Jan 2010 23:38:59 +0000 (00:38 +0100)]
[lib] Declare private struct '_host_fields_required' as static.

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

9 years ago[docs] Add more comments and default values to examples network backend config
Maximilian Wilhelm [Thu, 14 Jan 2010 22:44:56 +0000 (23:44 +0100)]
[docs] Add more comments and default values to examples network backend config

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

9 years ago[docs] Add explicit declaration of default values to libvscmgmt example configuration.
Maximilian Wilhelm [Thu, 14 Jan 2010 22:44:22 +0000 (23:44 +0100)]
[docs] Add explicit declaration of default values to libvscmgmt example configuration.

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

9 years ago[network/dhcponly] Don't generate Doxygen documentation for dhcponly backend.
Maximilian Wilhelm [Thu, 14 Jan 2010 18:25:47 +0000 (19:25 +0100)]
[network/dhcponly] Don't generate Doxygen documentation for dhcponly backend.

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

9 years ago[network/common] Update Doxygen documentation.
Maximilian Wilhelm [Thu, 14 Jan 2010 18:25:31 +0000 (19:25 +0100)]
[network/common] Update Doxygen documentation.

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

9 years ago[backend/mutex] Update Doxygen documentation.
Maximilian Wilhelm [Thu, 14 Jan 2010 18:25:02 +0000 (19:25 +0100)]
[backend/mutex] Update Doxygen documentation.

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

9 years agoFirst shot on code documentation with Doxygen.
Maximilian Wilhelm [Sat, 28 Nov 2009 07:07:49 +0000 (08:07 +0100)]
First shot on code documentation with Doxygen.

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

9 years ago[lib] Add trace error to internal errors in vsc_mgmt_backup().
Maximilian Wilhelm [Sat, 28 Nov 2009 07:07:14 +0000 (08:07 +0100)]
[lib] Add trace error to internal errors in vsc_mgmt_backup().

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

10 years ago[python] Fix reference counting for Py_None.
Matthias Bolte [Thu, 5 Nov 2009 14:26:13 +0000 (15:26 +0100)]
[python] Fix reference counting for Py_None.

  * Before returning Py_None its reference count has to be
    increased by Py_INCREF(), otherwise the reference count
    of Py_None drops to zero after some time.

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

10 years ago[python] On error output the whole error trace to stdout.
Matthias Bolte [Tue, 3 Nov 2009 19:18:31 +0000 (20:18 +0100)]
[python] On error output the whole error trace to stdout.

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

10 years ago[lib] Undefine domain before killing image in _tabula_rasa_kill_domain().
Maximilian Wilhelm [Tue, 3 Nov 2009 18:49:13 +0000 (19:49 +0100)]
[lib] Undefine domain before killing image in _tabula_rasa_kill_domain().

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

10 years ago[lib] Ignore ESX VCs in tabula_rasa().
Maximilian Wilhelm [Tue, 3 Nov 2009 18:32:16 +0000 (19:32 +0100)]
[lib] Ignore ESX VCs in tabula_rasa().

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

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

10 years ago[lib] Fix error handling in tabula_rasa().
Maximilian Wilhelm [Tue, 3 Nov 2009 15:34:48 +0000 (16:34 +0100)]
[lib] Fix error handling in tabula_rasa().

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

10 years ago[lib] Check number of CPU scheduler parameters.
Matthias Bolte [Tue, 3 Nov 2009 15:08:13 +0000 (16:08 +0100)]
[lib] Check number of CPU scheduler parameters.

  * It seems to be undefined if the nparams parameter of
    can be NULL virDomainGetSchedulerType(), so pass it.

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

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>