Revision:

Revisions

# Date Author Comment
86879b97 12/11/2014 01:11 pm Dimitris Aragiorgis

Bump new upstream version

Signed-off-by: Dimitris Aragiorgis <>

495abb3c 12/11/2014 01:09 pm Dimitris Aragiorgis

Merge branch 'stable-2.10-bpo2' into debian-2.10

6070be5b 12/11/2014 01:08 pm Dimitris Aragiorgis

Fix NIC env in case seq is 0

Commit bd770b4 introduced a bug where the INTERFACE_INDEX was not
exported in scripts' environmenti if NIC's seq was 0. Fix this.

Signed-off-by: Dimitris Aragiorgis <>

0d1b82ce 12/11/2014 01:08 pm Dimitris Aragiorgis

Add --dry-run option to gnt-cluster add-tags

This will be useful for checking snf-ganeti-eventd/snf-dispatcher
sanity. By running:

  1. gnt-cluster add-tags --dry-run snf:enentd:heartbeat

snf-ganeti-eventd should send a message that snf-dispatcher will
receive....

fc203c6c 12/11/2014 01:08 pm Dimitris Aragiorgis

Fix tcpudp_port_pool in cfgupgrade

Use --fix-pool to fix tcpudp_port_pool and highest_used_port
in case they are not in sync.

Signed-off-by: Dimitris Aragiorgis <>

080245dc 12/11/2014 01:08 pm Dimitris Aragiorgis

(ext) Pass disk geometry in kvm command

Currently we allow this feature only for ext templates that
allow arbitrary params per disk. If both 'heads' and 'secs'
params are given then 'cyls' is calculated from the disk size.

TODO: export these params in IDISK_PARAMS since the can be...

81344ab0 12/11/2014 01:08 pm Dimitris Aragiorgis

(ext) Override disk_cache hvp with disk param in ext

This is a hack that brings disk_cache hypervisor param
at disk level. This is supported only for disks of ext
template that allow arbitrary params. The corresponding
param that should be used is 'cache'....

daec079b 12/11/2014 01:08 pm Dimitris Aragiorgis

(ext) Do not remove disks if --keep-disks and DT_EXT

Signed-off-by: Dimitris Aragiorgis <>

ab86530b 12/11/2014 01:08 pm Dimitris Aragiorgis

(grnet) Remove deprecated physical_id if found

In 2.8 disks have been added to runtime files for hotplug support.
Back then physical_id slot existed. Remove this slot in the early
stage of Disk.FromDict() otherwise an exception will be raised.

Signed-off-by: Dimitris Aragiorgis <>

0cf1515d 12/11/2014 01:07 pm Dimitris Aragiorgis

(grnet) Upgrade runtime files

Each disk entry should include (disk dict, link name, disk uri).

When hotplug was backported in 2.8 access uri was not supported.
Thus the relevant entry for each disk entry might be missing from
the runtime files. Add an empty string in this case....

1a93514a 12/11/2014 01:07 pm Dimitris Aragiorgis

(b64) Use base64 encoding in networks' bitarrays

This is needed for GRNET'S production environment.

Signed-off-by: Dimitris Aragiorgis <>

45460c20 12/11/2014 01:07 pm Dimitris Aragiorgis

(snap) LUInstanceSnapshot for the ext disk template

Add support for snapshotting disks of an instance. This will
only work for the ext disk template. Example:

gnt-instance snapshot --disk &lt;ident&gt;:snapshot_name=snap inst1

This will take a snapshot of the disk identified by <ident> (e.g...

cab1c252 12/11/2014 01:07 pm Dimitris Aragiorgis

Revert "Fix query mechanism wrt networks and vlans"

Synnefo 0.15.2 still expects only mode and link and not vlan
in group_list field of the GetNetwork() query response.

Until it gets fixed we do not return the vlan netparam.

This reverts commit b6afa809538b9f6dd80953362e99a129147bf634.

c4fa9e56 12/11/2014 01:07 pm Dimitris Aragiorgis

ifdown: Use new methods to unconfigure NICs

We unconfigure a NIC (invoke ifdown script) during:

  • instance cleanup
  • finalizing successful migration on source node
  • hot-unplugging a NIC

In case of migration we do only a local cleanup.

Signed-off-by: Dimitris Aragiorgis <>

fd5af336 12/11/2014 01:07 pm Dimitris Aragiorgis

ifdown: Use new methods to create NIC files

NIC files containing corresponding tap name are created during:

  • instance startup
  • NIC hot-add

For compatibility we continue creating indexed based NIC files along
with uuid based ones.

Signed-off-by: Dimitris Aragiorgis <>

93610b9e 12/11/2014 01:07 pm Dimitris Aragiorgis

ifdown: Introduce _UnconfigureNIC() helper method

This method takes a NIC object, creates the proper invironment
and invokes ifdown script.

It takes an extra boolean argument only_local which is passed
to ifdown script as the second positional argument. It states...

1f0ab629 12/11/2014 01:07 pm Dimitris Aragiorgis

ifdown: Make Read/LoadKVMRuntime classmethods

.. and make LoadKVMRuntime() take instance_name rather than the
whole instance object as first argument. This will be needed during
instance cleanup where we the instance object is not available.

We are going to retrieve current NIC configuration from the runtime...

13e46f1a 12/11/2014 01:07 pm Dimitris Aragiorgis

ifdown: Extract env creation from ConfigureNic()

Introduce new helper method that creates the environment passed
to ifup/ifdown scripts. Instance tags and NIC index will be passed
only during ifup script since only then are available and valid.
Both can change until a NIC gets removed and thus will not be passed...

fcbf3d43 12/11/2014 01:07 pm Dimitris Aragiorgis

ifdown: Introduce helper methods

Until now Ganeti upon TAP creation, a NIC file was created
under $RUNDIR/kvm-hypervisor/nic/<instance_name>/<nic_index>

Since NICs have obtained a UUID, we are going to create another
file named after its UUID. This will be needed during ifdown...

e3e51401 12/11/2014 01:07 pm Dimitris Aragiorgis

ifdown: Change kvm-if* scripts

  • Rename kvm-vif-bridge to kvm-ifup-custom
  • Search if /etc/ganeti/kvm-if*-custom is available
    and execute it instead
  • Pass positional argument to custom script

Signed-off-by: Dimitris Aragiorgis <>

9e0ced60 12/11/2014 01:07 pm Dimitris Aragiorgis

ifdown: Add example kvm-ifdown script

This script currently does nothing more that calling user the
user provided one if it exists.

User provided script should be placed under /etc/ganeti/
and named `ganeti-kvm-ifdown`.

Signed-off-by: Dimitris Aragiorgis <>

5fcaa75b 12/11/2014 01:06 pm Dimitris Aragiorgis

(2.13) Fix Xen's NIC file

Xen exports all environment variables to a file so that an
external script (see vif_script hvparam) can source it.
In case of multiple values per variable (e.g. TAGS), we
should use XXX="a b c" instead of XXX=a b c. Fix this.

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

97b4a0af 12/11/2014 01:01 pm Dimitris Aragiorgis

debian: Add new debian/changelog section

Signed-off-by: Dimitris Aragiorgis <>

2811d96d 12/11/2014 01:01 pm Dimitris Aragiorgis

debian: ganeti.* -> snf-ganeti.* debian files

Change genscript.py to search for those files

Signed-off-by: Dimitris Aragiorgis <>

c6141806 12/11/2014 01:01 pm Dimitris Aragiorgis

debian: ganeti -> snf-ganeti in debian/rules

Override dh_install init, cron, logrotate with --name option.

Additional changes:
- Let ganeti run as root
- Do not enable restricted commands and do not require specific user/group.

Signed-off-by: Dimitris Aragiorgis <>

bbd537e4 12/11/2014 01:01 pm Dimitris Aragiorgis

debian: ganeti -> snf-ganeti in control file

Change source and top binary package to snf-ganeti.

Move ganeti-instance-debootstrap to Suggests.

Signed-off-by: Dimitris Aragiorgis <>

a3833bde 12/11/2014 01:01 pm Dimitris Aragiorgis

debian: Add vcs-version file

Signed-off-by: Dimitris Aragiorgis <>

b19e4e5d 12/11/2014 01:01 pm Dimitris Aragiorgis

debian: Run ./autogen.sh before configure

This is needed so that packaging can be done by using official
src tree found on git repo.

Official debian packages provide in orig tarball the files
that get generated by automake, autoconf, and aclocal:

  • configure...
2cda447f 12/11/2014 01:01 pm Dimitris Aragiorgis

debian: Remove debian patches

Signed-off-by: Dimitris Aragiorgis <>

aa68cea6 12/11/2014 01:01 pm Dimitris Aragiorgis

debian: Import debian files from backports

Signed-off-by: Dimitris Aragiorgis <>

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

(2.13) kvm: Delegate socket handling to monitor module

Introduce @_ensure_connection decorator that properly handles
the socket connection (i.e. connect, close) and propagates
any exceptions raised in the decorated method.

In general @_ensure_connection wraps external methods....

6155a05d 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) kvm: Use vhostfds obtained by OpenTap

During instance startup, if vhost_net is True, OpenTap() opens
/dev/vhost-net device to obtain some fds. These fds were never
used. This patch adds the vhostsfd option to the --netdev option.

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

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

(2.13) hotplug: Retry VerifyHotplugCommand up to 5 times

It seems that QMP upon device_del returns without QEMU having
completely removed the device from the PCI bus. This probably has to
do PCI bus hotplug handlers (DeviceState->BusState->hotplug_handler)....

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

(2.13) Update hotplug design doc

..to reflect the transition from HMP to QMP during hotplug
actions.

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

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

(2.13) qmp: Log qmp commands and responses

Add debug logging for all qmp commands and responses, except for
query-commands, and qmp_capabilities, that are executed upon
initialization of QmpConnection (and their output is not really
useful).

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

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

(2.13) hotplug: Is not supported for QEMU < 1.7

Change the bulk check of whether hotplug is supported or not.
Only versions >= 1.7 support the required qmp commands.

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

196f7c06 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) hotplug: Remove unused code after refacoring

All HMP related code gets removed since everything is done via QMP.

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

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

(2.13) hotplug: Use QMP during HotDelDevice

During device hot-del use new QMP helper methods: HotDelDisk() for
disk hotplug and HotDelNic() for NIC hotplug.

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

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

(2.13) hotplug: Use QMP during HotAddDevice

During device hot-add use new QMP helper methods: GetFreePCISlot()
for allocating a free PCI slot, HotAddDisk() for disk hotplug and
HotAddNic() for NIC hotplug.

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

3fdca25e 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) kvm: Use the new interface during instance start

Use new OpenTap() and _GetNetworkDeviceFeatures() interfaces
during _ExecuteKVMRuntime().

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

57c24313 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) monitor: Extend HotAddNic() for advanced features

In case vhost is enabled we have to pass the vhostfds as returned by
OpenTap() via SCM_RIGHTS prior issuing netdev_add command with vhost
and vhostfds extra arguments.

In case multiqueue is enabled we add the mq and vectors extra...

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

(2.13) kvm: Refactor _GetNetworkDeviceFeatures() helper

Make _GetNetworkDeviceFeatures() return a tuple of (dict, str, str).
The first item should be a dictionary including the enabled
netdev/device features (vhost, vnet_hdr, mq). The other two are
strings to be appended to --netdev and --device qemu options....

14b8592f 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) netdev: Refactor OpenTap for future use

Make OpenTap() helper method to take a dictionary with the features
that should be enabled or not. Currently these features are: vhost,
vnet_hdr, multiqueue.

In case vhost is enabled, along with the tapfds we return a list of...

06d0b17d 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) hotplug: Use QMP in VerifyHotplugCommand

This used to check whether a specific hotplug action has succeeded.
Use HasPCIDevice() qmp method to verify if the requested device
exists or not.

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

744ff486 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) hotplug: Use QMP in VerifyHotplugSupport

This used to check whether a specific hotplug action is supported.
Since everything is about to be done via qmp commands delegate these
checks to QmpConnection class.

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

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

(2.13) monitor: Close socket fd if already connected

We close the socket fd only if we have an active connection.
We hide this logic in the public close() method, and all
the actions are moved to a private method.

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

18c03e18 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) kvm: New _with_qmp decorator

The decorator takes the hypervisor and the instance object as passed
to all hotplug related commands and ensures a valid QmpConnection()
object is found in hypervisor's qmp attribute.

This decorator is responsible for all actions related to the...

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

(2.13) qmp: Add Disk hotplugging related methods

HotAddDisk() uses blockdev-add and device_add after getting the
drive fd and passing it with the AddFd() helper method. Please note
that in case of userspace access mode this step will be omitted.

HotDelDisk() uses device_del. Please note that drive_del is...

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

(2.13) qmp: Add NIC hotplugging related methods

HotAddNic() uses netdev_add and device_add after passing the tapfd
to the running process with the GetFd() helper method.

HotDelNic() uses device_del and netdev_del qmp commands.

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

565fa7f1 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) qmp: Helper methods for parsing query-pci output

Introduce GetPCIDevices() that gets the devices of the first PCI bus
of a running instance, HasPCIDevice() that will be used to verify
if a specific device is correctly hotplugged or not, and
GetFreePCISlot() that will be used during hot-add to find the first...

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...

1b79725e 12/11/2014 12:54 pm Ilias Tsitsimpis

(2.13) Move ExtStorage code out from bdev

Move the ExtStorage related code out from bdev to a new
file called 'extstorage.py'.

Signed-off-by: Ilias Tsitsimpis <>
Signed-off-by: Thomas Thrainer <>
Reviewed-by: Thomas Thrainer <>...

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

(2.13) Design document for ExtStorage userspace access

This patch extends the 'shared-storage' design document and more
specifically the ExtStorage Interface to support userspace disk access.

Signed-off-by: Ilias Tsitsimpis <>
Signed-off-by: Thomas Thrainer <>...

6ab31455 12/11/2014 12:54 pm Ilias Tsitsimpis

(2.13) Add 'access' disk option to man pages

Update 'gnt-instance' man page and document the 'access' disk option.
Also fix a typo in 'metavg' disk parameter.

Signed-off-by: Ilias Tsitsimpis <>
Signed-off-by: Klaus Aehlig <>...

8e56ecfb 12/11/2014 12:54 pm Ilias Tsitsimpis

(2.13) Make 'access' an optional disk parameter

This patch makes 'access' an optional disk parameter just like
spindles, mode, name, vg and metavg. This option can only be set to
'kernelspace' or 'userspace'. When 'userspace' is used, the instance
will access this disk directly without going through a block device....

0c2c4dba 12/11/2014 12:54 pm Luka Blaskovic

(2.12) Add support for KVM multiqueue virtio-net

This patch adds support for multiqueue virtio-net1 which sets a number of
queues (file descriptors) from virtio_net_queues parameter for tap device
to parallelize packets sending or receiving. Tap devices will be created with...

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

(2.12) Add DiskParams to Disk object

The 'DiskParams' slot was missing from Haskell's Disk objects.
Since Wconfd is now responsible for writting the config file this was
causing the 'params' slot to not be written in the config file.

Signed-off-by: Ilias Tsitsimpis <>...

6dd47a8c 12/11/2014 12:54 pm Ilias Tsitsimpis

(2.12) Rename DiskParams to GroupDiskParams

DiskParams was used for the cluster/group disk parameters type. This
patch renames it to GroupDiskParams and uses the DiskParams type for
the parameters of one single Disk object.

Signed-off-by: Ilias Tsitsimpis <>...

13bb1b4c 12/11/2014 12:54 pm Apollon Oikonomopoulos

(2.12) QMP: make QmpConnection act as a context manager

This will allow automatic connection and socket cleanup on command
completion.

We also repeat the Qmp tests using the context manager. For this to be
feasible, we move the test scenario to class variables and modify...

546cdf7a 12/11/2014 12:54 pm Apollon Oikonomopoulos

(2.12) QMP: always return the command result

According to the QEMU Machine Protocol Specification, the messages sent
by QMP as a response to a command can be of two types: either an error
message (identified by the "error" key), or a success message
(identified by the "return" key)....

7b648a55 12/11/2014 12:53 pm Apollon Oikonomopoulos

(2.12) QMP: keep greeting message version info

QMP will always report the QEMU version and package-specific string in
the greeting message, as per the QEMU Machine Protocol Specification. We
store this information and make it available to users of the monitor....

d7afb578 12/11/2014 12:53 pm Apollon Oikonomopoulos

(2.12) QMP: test supported_commands

Add test for supported_commands.

Signed-off-by: Apollon Oikonomopoulos <>
Signed-off-by: Thomas Thrainer <>
Reviewed-by: Thomas Thrainer <>

6c464d30 12/11/2014 12:53 pm Apollon Oikonomopoulos

(2.12) QMP: raise exception on unsupported QMP command

Raise a special exception, qmp.QmpCommandNotSupported, whenever an
unsupported QMP command is about to be executed. This is intended to
assist in falling back to the human monitor for hotplug operations. As...

9b7ef3eb 12/11/2014 12:53 pm Apollon Oikonomopoulos

(2.12) QMP: fetch supported commands on connect

Store the set of supported QMP commands in
QmpConnection.supported_commands. This allows selective error handling
to give the caller a chance to downgrade to HMP when unsupported
commands are encountered.

The `query-commands` QMP command used to implement this, appeared in...

f511a776 12/11/2014 12:53 pm Dimitris Aragiorgis

(2.12) KVM: move tap control functions to a submodule

Move all tap-related functionality to the hv_kvm.netdev submodule.
We rename _OpenTap to OpenTap, since it will now be used as a public
function.

Also, change the hv_kvm tests to import the new code....

8acd00fc 12/11/2014 12:53 pm Apollon Oikonomopoulos

(2.12) Convert QmpMessage to a new-style class

Signed-off-by: Apollon Oikonomopoulos <>
Reviewed-by: Hrvoje Ribicic <>

904d32bc 12/11/2014 12:53 pm Dimitris Aragiorgis

(2.12) KVM: move monitor & QMP classes to a submodule

We move the HMP and QMP classes to the hv_kvm.monitor module.

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

a2d7c939 12/11/2014 12:53 pm Dimitris Aragiorgis

(2.12) Convert hv_kvm to a package

Weighing in at 3k LOC, it is probably time to split hv_kvm into a
number of modules before adding new code.

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

8f348496 12/11/2014 12:53 pm Dimitris Aragiorgis

(2.12) kvm: Add migration capabilities as an hvparam

Latest QEMU versions support various migration capabilities. Each
can be enabled/disabled with 'migrate_set_capability' monitor
command.

Version 1.7.0 defines x-rdma-pin-all, auto-converge, zero-blocks,...

85c5fc4d 12/11/2014 12:53 pm Jose A. Lopes

(2.12) Add TAP interface name as argument in '_OpenTap'

This is necessary in order to create TAP interfaces for the
communication mechanism, which are named 'gnt.com.%d', where '%d' is a
unique number within a given node.

Signed-off-by: Jose A. Lopes <>...

cd326f57 12/11/2014 12:53 pm Jose A. Lopes

(2.12) Rename 'CdromOption' to '_CdromOption'

... because it is a protected definition.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Michele Tartara <>
Signed-off-by: Dimitris Aragiorgis <>

c881fa4b 12/11/2014 12:53 pm Jose A. Lopes

(2.12) Fix KVM cdrom image URL in the second cdrom drive

  • The previous patch introduced cdrom image URLs for KVM cdrom drives.
    However, it worked only for the first drive and not the second.
    This patch generalizes the KVM cdrom command line option to allow...
20f5cdbd 12/11/2014 12:53 pm Jose A. Lopes

(2.12) kvm: check that the ISO image is there if it's a URL

Perform a simple urllib2 check on ISO images specified as URL before
instance start, so as to work around qemu bug #597575 [1].

[1] https://bugs.launchpad.net/qemu/+bug/597575

Signed-off-by: Apollon Oikonomopoulos <>...

11ee28ac 12/11/2014 12:53 pm Jose A. Lopes

(2.12) Allow KVM to boot from HTTP

New versions of KVM support booting from HTTP-hosted ISO images, via
libcurl. This patch adds a proper check to allow defining either a sane,
absolute path or an HTTP URL as an iso image path.

Remove "format=raw" from the cdrom device options when iso_image starts...

217e5e95 12/11/2014 12:53 pm Klaus Aehlig

(2.11) Add andRestArguments to IDiskParams

In this way, we cann pass through the opaque parameters
required for disk creation and modification in the case of
external storage.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>...

31ea7961 12/11/2014 12:53 pm Klaus Aehlig

(2.11) Add function providing the canonical andRestArguments

The field catching the remaining fields will always be of the same
shape, so add a function for this to make usage simple.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>...

1 2 3 ... 161 Next » (1-100/16089) | Per page: 25, 50, 100

Also available in: Atom