ganeti-local: Revisionshttps://code.grnet.gr/2014-05-29T18:31:03+03:00Greek Research and Technology Network's projects
Redmine Revision 7a215c45: Check drbd helper only in VM capable nodeshttps://code.grnet.gr/projects/ganeti-local/repository/revisions/7a215c455b25af17b5bddd96486b64bd466520bf2014-05-29T18:31:03+03:00Dimitris Aragiorgis
<p>Upon change of enabled disk templates Ganeti checks for a valid drbd<br />helper among all nodes. Let those nodes be only the VM capable ones.</p>
<p>Signed-off-by: Dimitris Aragiorgis <<a class="email" href="mailto:dimara@grnet.gr">dimara@grnet.gr</a>></p> Revision f3d59dc2: Disable CheckFileStoragePathNotWritable testhttps://code.grnet.gr/projects/ganeti-local/repository/revisions/f3d59dc288b64dd4d84d0cd39d2782f702cb39ec2014-05-29T14:08:07+03:00Dimitris Aragiorgis
<p>..because it fails when runs as root.</p>
<p>Signed-off-by: Dimitris Aragiorgis <<a class="email" href="mailto:dimara@grnet.gr">dimara@grnet.gr</a>></p> Revision 6e7d075c: (grnet) Remove deprecated physical_id if foundhttps://code.grnet.gr/projects/ganeti-local/repository/revisions/6e7d075c4db2da7c792ff4c105eec8aebbf638f92014-05-29T14:08:07+03:00Dimitris Aragiorgis
<p>In 2.8 disks have been added to runtime files for hotplug support.<br />Back then physical_id slot existed. Remove this slot in the early<br />stage of Disk.FromDict() otherwise an exception will be raised.</p>
<p>Signed-off-by: Dimitris Aragiorgis <<a class="email" href="mailto:dimara@grnet.gr">dimara@grnet.gr</a>></p> Revision 08879a9d: ifdown: Use new methods to unconfigure NICshttps://code.grnet.gr/projects/ganeti-local/repository/revisions/08879a9dbe4f1983a9ae300ed007304f667db8c72014-05-29T14:08:06+03:00Dimitris Aragiorgis
<p>We unconfigure a NIC (invoke ifdown script) during:</p>
<ul>
<li>instance cleanup</li>
<li>finalizing successful migration on source node</li>
<li>hot-unplugging a NIC</li>
</ul>
<p>In case of migration we do only a local cleanup.</p>
<p>Signed-off-by: Dimitris Aragiorgis <<a class="email" href="mailto:dimara@grnet.gr">dimara@grnet.gr</a>></p> Revision 6ebbfc37: (grnet) Upgrade runtime fileshttps://code.grnet.gr/projects/ganeti-local/repository/revisions/6ebbfc377de1f3cc901d876e96add029fe2e1c4a2014-05-29T14:08:06+03:00Dimitris Aragiorgis
<p>Each disk entry should include (disk dict, link name, disk uri).</p>
<p>When hotplug was backported in 2.8 access uri was not supported.<br />Thus the relevant entry for each disk entry might be missing from<br />the runtime files. Add an empty string in this case.</p>
<p>Signed-off-by: Dimitris Aragiorgis <<a class="email" href="mailto:dimara@grnet.gr">dimara@grnet.gr</a>></p> Revision 1fda39c4: ifdown: Use new methods to create NIC fileshttps://code.grnet.gr/projects/ganeti-local/repository/revisions/1fda39c4bde71c7aba3fe456410cfd14b68088bf2014-05-29T14:08:05+03:00Dimitris Aragiorgis
<p>NIC files containing corresponding tap name are created during:</p>
<ul>
<li>instance startup</li>
<li>NIC hot-add</li>
</ul>
<p>For compatibility we continue creating indexed based NIC files along<br />with uuid based ones.</p>
<p>Signed-off-by: Dimitris Aragiorgis <<a class="email" href="mailto:dimara@grnet.gr">dimara@grnet.gr</a>></p> Revision 3889f749: ifdown: Introduce _UnconfigureNIC() helper methodhttps://code.grnet.gr/projects/ganeti-local/repository/revisions/3889f749db86f71b34482bfdcf5f8bd37d8057db2014-05-29T14:08:05+03:00Dimitris Aragiorgis
<p>This method takes a NIC object, creates the proper invironment<br />and invokes ifdown script.</p>
<p>It takes an extra boolean argument only_local which is passed<br />to ifdown script as the second positional argument. It states<br />if the external script should wipe out every configuration<br />related to the NIC or should only clean up local thinks, e.g.<br />during a successful migration we are going to invoke ifdown<br />on the source node but we do not want to purge any DDNS<br />configuration related to instance's NICs.</p>
<p>Signed-off-by: Dimitris Aragiorgis <<a class="email" href="mailto:dimara@grnet.gr">dimara@grnet.gr</a>></p> Revision 79f3e9e9: ifdown: Make Read/LoadKVMRuntime classmethodshttps://code.grnet.gr/projects/ganeti-local/repository/revisions/79f3e9e9445fe3c880bc2668922fc6762a3e770a2014-05-29T14:08:04+03:00Dimitris Aragiorgis
<p>.. and make LoadKVMRuntime() take instance_name rather than the<br />whole instance object as first argument. This will be needed during<br />instance cleanup where we the instance object is not available.</p>
<p>We are going to retrieve current NIC configuration from the runtime<br />file in order to invoke the corresponding ifdown scripts.</p>
<p>Signed-off-by: Dimitris Aragiorgis <<a class="email" href="mailto:dimara@grnet.gr">dimara@grnet.gr</a>></p> Revision 0d2863a2: ifdown: Extract env creation from ConfigureNic()https://code.grnet.gr/projects/ganeti-local/repository/revisions/0d2863a266f37d969d658783f90ce6733f4437372014-05-29T14:08:04+03:00Dimitris Aragiorgis
<p>Introduce new helper method that creates the environment passed<br />to ifup/ifdown scripts. Instance tags and NIC index will be passed<br />only during ifup script since only then are available and<br />valid. Both can change until a NIC gets removed and thus will not<br />be passed to ifdown script.</p>
<p>Note that TAP name may be not available during ifdown script for<br />old instances without UUID indexed NIC files. That's why it gets<br />included in env only if it exists.</p>
<p>Signed-off-by: Dimitris Aragiorgis <<a class="email" href="mailto:dimara@grnet.gr">dimara@grnet.gr</a>></p> Revision aec254f5: ifdown: Introduce helper methodshttps://code.grnet.gr/projects/ganeti-local/repository/revisions/aec254f58f3a24754088756fec292d38497c59dc2014-05-29T14:08:04+03:00Dimitris Aragiorgis
<p>Until now Ganeti upon TAP creation, a NIC file was created<br />under $RUNDIR/kvm-hypervisor/nic/<instance_name>/<nic_index></p>
<p>Since NICs have obtained a UUID, we are going to create another<br />file named after its UUID. This will be needed during ifdown<br />script in order to retrieve the tap name related to the<br />corresponding NIC. Index of a NIC may change but UUID will not;<br />When a NIC is getting hot-plugged may be the third one from<br />the master perspective but after removing the second, its index<br />will change.</p>
<p>In the following patches we are going to refer to NIC files<br />named after NIC's uuid. Here we add helper methods that<br />add/remove those kind of files. For retrieving NIC's tap name<br />we search <strong>only</strong> for a NIC file named after its UUID. If not<br />found (e.g. in case of already existing instances) we fail<br />silently. External ifdown script must deal with this corner case.</p>
<p>To keep compatibility we still create NIC files based on their<br /><strong>current</strong> index.</p>
<p>Signed-off-by: Dimitris Aragiorgis <<a class="email" href="mailto:dimara@grnet.gr">dimara@grnet.gr</a>></p> Revision 36774e23: ifdown: Add example kvm-ifdown scripthttps://code.grnet.gr/projects/ganeti-local/repository/revisions/36774e23bdd6598cab4c3911e833c032918b76f12014-05-29T14:08:03+03:00Dimitris Aragiorgis
<p>This script currently does nothing more that calling user the<br />user provided one if it exists.</p>
<p>User provided script should be placed under /etc/ganeti/<br />and named `ganeti-kvm-ifdown`.</p>
<p>Signed-off-by: Dimitris Aragiorgis <<a class="email" href="mailto:dimara@grnet.gr">dimara@grnet.gr</a>></p> Revision 18f16482: ifdown: Change kvm-if* scriptshttps://code.grnet.gr/projects/ganeti-local/repository/revisions/18f16482accda99e51bb93e47e3c830a11839e132014-05-29T14:08:03+03:00Dimitris Aragiorgis
<ul>
<li>Rename kvm-vif-bridge to kvm-ifup-custom</li>
<li>Search if /etc/ganeti/kvm-if*-custom is available<br /> and execute it instead</li>
<li>Pass positional argument to custom script</li>
</ul>
<p>Signed-off-by: Dimitris Aragiorgis <<a class="email" href="mailto:dimara@grnet.gr">dimara@grnet.gr</a>></p> Revision f665d9de: (ext) Do not remove disks if --keep-disks and DT_EXThttps://code.grnet.gr/projects/ganeti-local/repository/revisions/f665d9deab690fc6926ad39b84d8157afd892eb72014-05-29T14:08:02+03:00Dimitris Aragiorgis
<p>Signed-off-by: Dimitris Aragiorgis <<a class="email" href="mailto:dimara@grnet.gr">dimara@grnet.gr</a>></p> Revision d43a4dd9: (ipfix) Allow NICs with mode=routed and ip=nonehttps://code.grnet.gr/projects/ganeti-local/repository/revisions/d43a4dd966f4b34f874852793e64861c9e8da4142014-05-29T14:08:02+03:00Dimitris Aragiorgis
<p>This allows us to define an IPv6 only network (currently with a<br />dummy IPv4 network) with connectivity mode 'routed' and let<br />the NICs inside this network have only IPv6 address (auto-generated<br />from their MAC and the network's prefix).</p>
<p>Signed-off-by: Dimitris Aragiorgis <<a class="email" href="mailto:dimara@grnet.gr">dimara@grnet.gr</a>></p> Revision 1a1af037: (ext) Override disk_cache hvp with disk param in exthttps://code.grnet.gr/projects/ganeti-local/repository/revisions/1a1af037ce2e3e94b0ae4d8fc8a71934ee8a7b752014-05-29T14:08:01+03:00Dimitris Aragiorgis
<p>This is a hack that brings disk_cache hypervisor param<br />at disk level. This is supported only for disks of ext<br />template that allow arbitrary params. The corresponding<br />param that should be used is 'cache'.</p>
<p>Signed-off-by: Dimitris Aragiorgis <<a class="email" href="mailto:dimara@grnet.gr">dimara@grnet.gr</a>></p>