Bump new upstream version
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Merge branch 'stable-2.10-bpo2' into debian-2.10
Fix NIC env in case seq is 0
Commit bd770b4 introduced a bug where the INTERFACE_INDEX was notexported in scripts' environmenti if NIC's seq was 0. Fix this.
Add --dry-run option to gnt-cluster add-tags
This will be useful for checking snf-ganeti-eventd/snf-dispatchersanity. By running:
snf-ganeti-eventd should send a message that snf-dispatcher willreceive....
Fix tcpudp_port_pool in cfgupgrade
Use --fix-pool to fix tcpudp_port_pool and highest_used_portin case they are not in sync.
(ext) Pass disk geometry in kvm command
Currently we allow this feature only for ext templates thatallow 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...
(ext) Override disk_cache hvp with disk param in ext
This is a hack that brings disk_cache hypervisor paramat disk level. This is supported only for disks of exttemplate that allow arbitrary params. The correspondingparam that should be used is 'cache'....
(ext) Do not remove disks if --keep-disks and DT_EXT
(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 earlystage of Disk.FromDict() otherwise an exception will be raised.
(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 fromthe runtime files. Add an empty string in this case....
(b64) Use base64 encoding in networks' bitarrays
This is needed for GRNET'S production environment.
(snap) LUInstanceSnapshot for the ext disk template
Add support for snapshotting disks of an instance. This willonly work for the ext disk template. Example:
gnt-instance snapshot --disk <ident>:snapshot_name=snap inst1
This will take a snapshot of the disk identified by <ident> (e.g...
Revert "Fix query mechanism wrt networks and vlans"
Synnefo 0.15.2 still expects only mode and link and not vlanin group_list field of the GetNetwork() query response.
Until it gets fixed we do not return the vlan netparam.
This reverts commit b6afa809538b9f6dd80953362e99a129147bf634.
ifdown: Use new methods to unconfigure NICs
We unconfigure a NIC (invoke ifdown script) during:
In case of migration we do only a local cleanup.
ifdown: Use new methods to create NIC files
NIC files containing corresponding tap name are created during:
For compatibility we continue creating indexed based NIC files alongwith uuid based ones.
ifdown: Introduce _UnconfigureNIC() helper method
This method takes a NIC object, creates the proper invironmentand invokes ifdown script.
It takes an extra boolean argument only_local which is passedto ifdown script as the second positional argument. It states...
ifdown: Make Read/LoadKVMRuntime classmethods
.. and make LoadKVMRuntime() take instance_name rather than thewhole instance object as first argument. This will be needed duringinstance cleanup where we the instance object is not available.
We are going to retrieve current NIC configuration from the runtime...
ifdown: Extract env creation from ConfigureNic()
Introduce new helper method that creates the environment passedto ifup/ifdown scripts. Instance tags and NIC index will be passedonly during ifup script since only then are available and valid.Both can change until a NIC gets removed and thus will not be passed...
ifdown: Introduce helper methods
Until now Ganeti upon TAP creation, a NIC file was createdunder $RUNDIR/kvm-hypervisor/nic/<instance_name>/<nic_index>
Since NICs have obtained a UUID, we are going to create anotherfile named after its UUID. This will be needed during ifdown...
ifdown: Change kvm-if* scripts
ifdown: Add example kvm-ifdown script
This script currently does nothing more that calling user theuser provided one if it exists.
User provided script should be placed under /etc/ganeti/and named `ganeti-kvm-ifdown`.
(2.13) Fix Xen's NIC file
Xen exports all environment variables to a file so that anexternal script (see vif_script hvparam) can source it.In case of multiple values per variable (e.g. TAGS), weshould use XXX="a b c" instead of XXX=a b c. Fix this.
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>...
debian: Add new debian/changelog section
debian: ganeti.* -> snf-ganeti.* debian files
Change genscript.py to search for those files
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.
debian: ganeti -> snf-ganeti in control file
Change source and top binary package to snf-ganeti.
Move ganeti-instance-debootstrap to Suggests.
debian: Add vcs-version file
debian: Run ./autogen.sh before configure
This is needed so that packaging can be done by using officialsrc tree found on git repo.
Official debian packages provide in orig tarball the filesthat get generated by automake, autoconf, and aclocal:
debian: Remove debian patches
debian: Import debian files from backports
(2.13) kvm: Delegate socket handling to monitor module
Introduce @_ensure_connection decorator that properly handlesthe socket connection (i.e. connect, close) and propagatesany exceptions raised in the decorated method.
In general @_ensure_connection wraps external methods....
(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 neverused. This patch adds the vhostsfd option to the --netdev option.
(2.13) hotplug: Retry VerifyHotplugCommand up to 5 times
It seems that QMP upon device_del returns without QEMU havingcompletely removed the device from the PCI bus. This probably has todo PCI bus hotplug handlers (DeviceState->BusState->hotplug_handler)....
(2.13) Update hotplug design doc
..to reflect the transition from HMP to QMP during hotplugactions.
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>Reviewed-by: Hrvoje Ribicic <riba@google.com>
(2.13) qmp: Log qmp commands and responses
Add debug logging for all qmp commands and responses, except forquery-commands, and qmp_capabilities, that are executed uponinitialization of QmpConnection (and their output is not reallyuseful).
(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.
(2.13) hotplug: Remove unused code after refacoring
All HMP related code gets removed since everything is done via QMP.
(2.13) hotplug: Use QMP during HotDelDevice
During device hot-del use new QMP helper methods: HotDelDisk() fordisk hotplug and HotDelNic() for NIC hotplug.
(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 andHotAddNic() for NIC hotplug.
(2.13) kvm: Use the new interface during instance start
Use new OpenTap() and _GetNetworkDeviceFeatures() interfacesduring _ExecuteKVMRuntime().
(2.13) monitor: Extend HotAddNic() for advanced features
In case vhost is enabled we have to pass the vhostfds as returned byOpenTap() via SCM_RIGHTS prior issuing netdev_add command with vhostand vhostfds extra arguments.
In case multiqueue is enabled we add the mq and vectors extra...
(2.13) kvm: Refactor _GetNetworkDeviceFeatures() helper
Make _GetNetworkDeviceFeatures() return a tuple of (dict, str, str).The first item should be a dictionary including the enablednetdev/device features (vhost, vnet_hdr, mq). The other two arestrings to be appended to --netdev and --device qemu options....
(2.13) netdev: Refactor OpenTap for future use
Make OpenTap() helper method to take a dictionary with the featuresthat 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...
(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 deviceexists or not.
(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 thesechecks to QmpConnection class.
(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 allthe actions are moved to a private method.
(2.13) kvm: New _with_qmp decorator
The decorator takes the hypervisor and the instance object as passedto 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...
(2.13) qmp: Add Disk hotplugging related methods
HotAddDisk() uses blockdev-add and device_add after getting thedrive fd and passing it with the AddFd() helper method. Please notethat in case of userspace access mode this step will be omitted.
HotDelDisk() uses device_del. Please note that drive_del is...
(2.13) qmp: Add NIC hotplugging related methods
HotAddNic() uses netdev_add and device_add after passing the tapfdto the running process with the GetFd() helper method.
HotDelNic() uses device_del and netdev_del qmp commands.
(2.13) qmp: Helper methods for parsing query-pci output
Introduce GetPCIDevices() that gets the devices of the first PCI busof a running instance, HasPCIDevice() that will be used to verifyif a specific device is correctly hotplugged or not, andGetFreePCISlot() that will be used during hot-add to find the first...
1 2 3 ... 322 Next » (1-50/16089) | Per page: 25, 50, 100
Also available in: Atom