Alexandre Derumier
7e4e69a6d2
die if vdisk_free fail on delete_drive
...
replace the warn by a die.
Currently, if we vdisk_free a disk and something goes wrong (network
storage problem by example), the drive is removed from config and we
cannot retry to remove it later.
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2012-05-29 07:59:06 +02:00
Dietmar Maurer
5d0094ead9
avoid warning if vm does not belong to a pool
2012-05-23 07:42:55 +02:00
Dietmar Maurer
22d646a733
fix bug in storage availability check (migrate)
2012-04-07 08:26:51 +02:00
Dietmar Maurer
d7810bc123
fix bug #134 : allow to pass file names to qmrestore and 'qm set'
2012-04-02 10:52:05 +02:00
Dietmar Maurer
47152e2ee3
fix bug #12 : check storage availability early (migrate)
2012-03-30 09:13:31 +02:00
Dietmar Maurer
8b192abf57
fix bug #121 : activate volumes correctly
2012-03-29 11:09:52 +02:00
Dietmar Maurer
cce3774992
do not use clusvcadm if we start using 'starturi' parameter
2012-03-27 12:21:15 +02:00
Dietmar Maurer
3be30d6325
avoid recursive calls to clusvcadm
2012-03-27 10:55:59 +02:00
Dietmar Maurer
88fc87b467
fix bug #97 : execute 'clusvcadm' commands for HA managed VMs
2012-03-27 10:37:39 +02:00
Dietmar Maurer
191435c643
only wait 1 second to aquire lock on vm_create
...
Waiting is not necessary, and we want to avoid delays in the GUI.
2012-03-27 09:02:50 +02:00
Dietmar Maurer
f5782fd0ad
fix cdrom permission check
2012-02-20 07:17:47 +01:00
Dietmar Maurer
49f9db93c0
correctly remove cdrom and iscsi devices
2012-02-15 10:48:55 +01:00
Dietmar Maurer
6e5c4da7ef
fix typo
2012-02-07 10:44:43 +01:00
Dietmar Maurer
ab6b35dfdf
fix typo
2012-02-06 12:52:29 +01:00
Dietmar Maurer
ba68cf0938
use check_volume_access from $rpcenv
2012-02-06 12:36:16 +01:00
Dietmar Maurer
fcbb753e3c
use check() instead of check_storage_perm()
2012-02-06 12:19:35 +01:00
Dietmar Maurer
502d18a2e7
correctly add/remove VMs to pool
2012-02-03 13:44:12 +01:00
Dietmar Maurer
ae9ca91d80
fix typo
2012-02-03 13:13:47 +01:00
Dietmar Maurer
09d0ee6473
fix CD eject
2012-02-03 10:49:37 +01:00
Dietmar Maurer
ae57f6b352
cleanup update_vm - factor out code to make is simpler
2012-02-03 10:23:50 +01:00
Dietmar Maurer
1858638fe3
replace change_config_nolock with update_config_nolock
...
We now use cfs_file_write() in order to avoid race conditions between
file IO and cfs operations (read after write works now).
2012-02-02 14:18:41 +01:00
Dietmar Maurer
5d7a6767be
cleanup update_vm - carefully reload config after changes
...
Split out code to delete drive into delete_drive()
Always hotplug after config is written and reloaded.
Do not revert config if hotplug fails.
Do not safe config in add_unused_volume.
2012-02-02 10:57:16 +01:00
Dietmar Maurer
1e68cb191a
cleanup update_vm - always reload config
...
And moved parameter parsing code to top.
2012-02-02 08:35:11 +01:00
Dietmar Maurer
0532bc6391
cleanup update_vm - move param checks to start of function
2012-02-02 07:19:46 +01:00
Dietmar Maurer
a0d1b1a2fe
start adding permission checks
2012-02-02 06:57:47 +01:00
Derumier Alexandre
3a1e36bb5a
add nic hotplug to update_vm
...
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-01-30 05:54:54 +01:00
Dietmar Maurer
5d39a18227
add lock around update_vm code
2012-01-27 09:53:48 +01:00
Dietmar Maurer
afdb31d5f8
removed trailing whitespace
2012-01-27 09:35:26 +01:00
Derumier Alexandre
c2a64aa7cf
update_vm rework
...
now we write conf after each option.
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-01-27 05:55:00 +01:00
Dietmar Maurer
378b359eef
use new syntax for permission attribute
2012-01-23 11:59:28 +01:00
Derumier Alexandre
fcdb011702
rework of hotplug/unplug in Qemu.pm
...
manage errors on more than 1 device
use unused disk for new created disk but failed hotplug
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-01-23 09:15:57 +01:00
Derumier Alexandre
ec21aa112d
rename vm_deviceadd to vm_deviceplug, and vm_devicedel to vm_deviceunplug
...
Signed-off-by: Derumier Alexandre <aderumier@odiso.com>
2012-01-23 09:06:24 +01:00
Dietmar Maurer
b6f39da2af
use new assemble_vnc_ticket
2012-01-19 09:31:40 +01:00
Dietmar Maurer
254575e971
fix bug #81 : do no deactivate volumes in vzdump stop mode
...
We add a keepActive parameter to stop/shutdown API.
2012-01-17 11:56:56 +01:00
Dietmar Maurer
8610701ae6
add ha flag to status info
2011-12-22 13:18:37 +01:00
Dietmar Maurer
4d81a1d327
dont raise errors if not needed
2011-12-16 06:32:09 +01:00
Dietmar Maurer
9269013a93
implement forceStop for vm_shutdown
2011-12-15 12:58:29 +01:00
Dietmar Maurer
16e903f2dc
use new AbstractMigrate.pm
2011-12-07 06:36:20 +01:00
Dietmar Maurer
02d07cf579
fix vm_shutdown bug - pass storecfg parameter
2011-11-30 09:33:43 +01:00
Dietmar Maurer
b7eeab2151
we can only resume a VM which is running
2011-11-29 06:24:55 +01:00
Dietmar Maurer
a5ed42d347
try to detect errors before starting the background task
2011-11-25 13:25:32 +01:00
Dietmar Maurer
ff1a2432c8
activate LVM LVs more carefully
...
And remove syslog whenever possible (we run most commands as tasks, so
the output is loged anyways)
2011-11-25 08:08:27 +01:00
Dietmar Maurer
971f27c404
improve error message when archive does not exist
2011-11-23 07:30:43 +01:00
Dietmar Maurer
a591eebacb
only raise exception when parameter -force is set
2011-11-17 13:36:56 +01:00
Dietmar Maurer
91c94f0a23
implement monitor API
2011-11-09 08:26:46 +01:00
Dietmar Maurer
4f1be36cdc
allow node name 'localhost'
2011-11-03 07:39:01 +01:00
Dietmar Maurer
5b9d692ae7
allow to pass volume IDs in create_vm (restore)
2011-10-20 11:18:46 +02:00
Dietmar Maurer
bc4dcb99a1
test for CLI when using pipe
2011-10-20 10:51:28 +02:00
Dietmar Maurer
9c502e26f3
enable piped input with qmrestore
2011-10-19 11:27:42 +02:00
Dietmar Maurer
51586c3a4c
implement unique option for restore
...
Also try to convert old vlanX to new netX syntax.
2011-10-18 09:14:05 +02:00