Statistics
| Branch: | Tag: | Revision:

root @ 45460c20

Name Size
  autotools
  daemons
  devel
  doc
  lib
  man
  qa
  src
  test
  tools
.ghci 21 Bytes
.gitignore 2.5 kB
COPYING 1.3 kB
INSTALL 11.1 kB
Makefile.am 73.4 kB
NEWS 132.7 kB
README 191 Bytes
UPGRADE 10.8 kB
autogen.sh 283 Bytes
configure.ac 25.5 kB
epydoc.conf.in 444 Bytes
pylintrc 2.9 kB
pylintrc-test 2.9 kB

Latest revisions

# Date Author Comment
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 <ident>: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 <>

View all revisions | View revisions

Also available in: Atom