Revision:

Revisions

# Date Author Comment
ff81c659 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) qmp: Add helper methods to verify hotplug support

Introduce CheckDiskHotAddSupport() and CheckNicHotAddSupport()
helper methods that will be used to verify hotplug support.
Both check for fdsend python module and if the required qmp
commands are supported....

81bd73d1 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) qmp: Add GetFd() wrapper around getfd command

getfd qmp command will be used to pass an fd using SCM_RIGHTS
and name it properly so that NIC hot-add can take place.

Signed-off-by: Dimitris Aragiorgis <>
Reviewed-by: Hrvoje Ribicic <>

105a40f2 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) qmp: Refactor of add-fd and remove-fd commands

Instead of sending the qmp command along with the SCM_RIGHTS control
message we send just a blank (idea taken from qemu iotests). Then we
invoke the corresponding command (add-fd, remove-fd) with the
regular way (qmp.Execute). Since the qmp connection does not close...

977b383d 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) utils: Introduce GetFreeSlot() function

Since this is a generic function that implements bitarray logic move
it from kvm to utils so that it can be easily used across all modules.

Make it raise errors.GenericError if it cannot find a free slot in...

fcad5eb4 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) kvm: Minor refactor of MonitorSocket

Create socket upon connect(), keep the status of connection
(self._connected = False) in close(), make existing connect()
method protected and let connect() act as a reconnect method.

Signed-off-by: Dimitris Aragiorgis <>...

b6e31c23 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Let drbd disks resync during cluster verify

Commit 9b0e86e issues an error during cluster verify if the status
of DRBD is degraded and if the local disk is not UpToDate.

Still in case of a newly created instance or a newly attached disk with
--no-wait-for-sync, if a cluster verify runs it will report errors...

cf4a40e5 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.12) Gen nic_type related opts inside _WriteNicConfig()

The xen-hvm hypervisor has two extra hvparams concerning NICS;
nic_type, and vif_type. Let _WriteNicConfig() calculate all needed
extra options for the instance's NICs based on its hvparams.

Signed-off-by: Dimitris Aragiorgis <>...

ad7da226 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.12) Fix NIC options in Xen's config files

Commit e32cc48 added wrongly an extra comma between mac and
type in NIC options. Fix this.

Signed-off-by: Dimitris Aragiorgis <>
Signed-off-by: Klaus Aehlig <>
Reviewed-by: Klaus Aehlig <>

868b069b 12/11/2014 12:54 pm Jose A. Lopes

(2.12) Refactor NIC configuration for Xen

Extract common code between the PVM and HVM Xen hypervisors regarding
NIC configuration.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>

36b31aea 12/11/2014 12:54 pm Jose A. Lopes

(2.12) Move 'ConfigureNIC' to 'hv_base'

... so it can be reused by the Xen hypervisor.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Hrvoje Ribicic <>
Signed-off-by: Dimitris Aragiorgis <>

ceaa02e7 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Fix size handling in ExtStorage

Commit 9504487 introduced the Snapshot() method in ExtStrorage,
where the snap_size was erroneously exported to the external
script's environment without making it a string. This patch fixes
that in the following manner: The size/snap_size/grow of a disk are...

4559fa24 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Check if chroot/SM is used without add-fd support

..and raise HotplugError inside VerifyHotplugSupport(). This
way disk hot-add is not supported only if chroot or user/pool
security model is used AND QMP does not support add-fd command
(QEMU versions < 1.7) OR fdsend python module is missing....

7dd6dd09 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Support disk hot-add even with chroot or SM

Up until now we did not allow disk hot-add in case of chroot
or pool/user security model because the running QEMU process
does not have access permissions on the disk link.

This patch slightly changes the way we hot-add a disk; before...

78d67a63 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Some minor kvm refactoring wrt hotplug

Make _CallHotplugCommands() a classmethod, rename _PassTapFd()
to _HMPPassFd() and make it a wrapper for MonitorSocket's GetFd().

Signed-off-by: Dimitris Aragiorgis <>
Reviewed-by: Helga Velroyen <>

655188a2 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Add helper methods for passing fds via SCM_RIGHTS

..through qemu monitor sockets using fdsend.

For the hmp the `get-fd` command is used while for the qmp the
`add-fd` command is used, where the fd is added to the first
available fdset. Currently the first one is used during NIC hot-add...

0d8f9629 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Let the snapshot script be optional

..for the ExtStorage providers. This way we do not break
compatibility with existing providers that do not implement
such a functionality.

In case an action that is not supported is requested raise
the proper exception....

d26ee0f9 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Update docs wrt snapshot support for ext

Mention the new snapshot script and the new exported variables
in both docs and man pages.

Signed-off-by: Dimitris Aragiorgis <>
Reviewed-by: Hrvoje Ribicic <>

97e3cece 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Add snap_name/size to the blockdev_snapshot RPC

Currently, this remains unused, until we add support for
explicitly snapshotting instance disks.

Signed-off-by: Dimitris Aragiorgis <>
Reviewed-by: Hrvoje Ribicic <>

1ecc03c1 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Support Snapshot() for the ExtStorage interface

The `snapshot` script is added to the interface and the new variables
VOL_SNAPSHOT_NAME and VOL_SNAPSHOT_SIZE are exported to the
environment.

Signed-off-by: Dimitris Aragiorgis <>
Reviewed-by: Hrvoje Ribicic <>

54e2b513 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Introduce Snapshot() method at bdev

Currently the Snapshot() method is used only during
`gnt-backup export` and is only implemented in the LogicalVolume()
class.

This patch makes this method a BlockDev() method, changes its
signature so that it can take both snap_size and snap_name and...

acd77fbd 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Export logical_id info to hooks env

..and let utils compute the hooks environment related to disks.

Until now, the only exported information regarding disks in hooks
context was their size, mode, name and uuid.

With this patch, depending on the disk template, we export the info...

4fd90052 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Allow NICs with routed mode and no IP

..in case attached to a network.

This allows us to define an IPv6 only network (currently with a
dummy IPv4 subnet) with connectivity mode 'routed' and let a NIC
inside this network have only an IPv6 address, e.g. an...

933147e3 12/11/2014 12:54 pm Ilias Tsitsimpis

(2.13) Pass the access parameter to ExtStorage template

Add the ExtStorage template to the set of templates that accept the
'access' parameter. The default 'access' of the node-group for
ExtStorage devices will be 'kernelspace'.

Update the man page for gnt-instance to state that ExtStorage templates...

a34f2caf 12/11/2014 12:54 pm Ilias Tsitsimpis

(2.13) Handle IDISK_ACCESS parameter in ComputeDisks

The IDISK_ACCESS disk parameter was not handled in the 'ComputeDisks'
function, thus the 'access' parameter was ignored during the instance
creation. This patch fixes this and also fixes a typo in
'_VerifyDiskModification'....

370e96cd 12/11/2014 12:54 pm Ilias Tsitsimpis

(2.13) Implement GetUserspaceAccessUri for ExtStorage

Allow ExtStorage devices to support userspace access.
The 'attach' script of an ExtStorage provider is now allowed to return
more than one line. The first line will contain as always the block
device path. Each one of the extra lines will contain a URI to be used...

« Previous 1 2 3 4 5 ... 644 Next » (51-75/16089) | Per page: 25, 50, 100

Also available in: Atom