adding variant

144 views
Skip to first unread message

David Sedeño

unread,
Oct 2, 2014, 11:56:00 AM10/2/14
to gan...@googlegroups.com
Hi,

sorry if this a newbie question, but i'm trying to add a variant of instance-debootstrap, so I add it to variant.list, add the conf file in variants/ and copy to the other machine with gnt-cluster copyfile both files.

gnt-os list and gnt-os diagnose doesn't show it at all. It's needed any other step in order to add it ?

My setup: ganeti 2.11.5 in ubuntu 14.04 with two nodes.

Regards,

David Sedeño


David Sedeño

unread,
Oct 2, 2014, 12:19:55 PM10/2/14
to gan...@googlegroups.com
Just to respond myself: I was editing the incorrect file: /etc/ganeti/instance-debootstrap/variants.list instead of /usr/share/ganeti/os/debootstrap/variants.list

sorry for the noise :)

David

candlerb

unread,
Oct 3, 2014, 7:18:11 AM10/3/14
to gan...@googlegroups.com
No, you were right the first time :-) At least if we're talking about a Debian or Ubuntu-based host.

You should not touch the files under /usr/share/ganeti/os/ or /etc/default/ganeti-instance-deboostrap/

You should edit /etc/ganeti/instance-debootstrap/variants.list and /etc/ganeti/instance-debootstrap/variants/<foo>.conf
where <foo> is the variant you are making. e.g.

==> /etc/ganeti/instance-debootstrap/variants.list <==
default
precise

==> /etc/ganeti/instance-debootstrap/variants/precise.conf <==
SUITE="precise"
EXTRA_PKGS="acpid,console-tools,udev,linux-image-virtual,openssh-server"
COMPONENTS="main,restricted,universe,multiverse"
ARCH="amd64"

You should also find that /usr/share/ganeti/os/debootstrap/variants.list is a symlink to /etc/ganeti/instance-debootstrap/variants.list

If that's not true, then you may have a broken instance of the ganeti-instance-debootstrap package. I use version 0.14 from wheezy-backports.

HTH,

Brian.

David Sedeño

unread,
Oct 6, 2014, 2:20:04 AM10/6/14
to gan...@googlegroups.com
Ok, the problem was that I had ganeti-instance-debootstrap vers. 0.11 from ubuntu trusty (14.04) and that package doesn't have a link in
/usr/share/ganeti/os/debootstrap/variants.list (it's a regular file).

I have upgrade the package from https://launchpad.net/ubuntu/+archive/primary/+files/ganeti-instance-debootstrap_0.14-2_all.deb (it's for the next ubuntu release, but install without errors). and now the file it's a link to /etc/ganeti/instance-debootstrap/variants.list

Thanks!
---
David
Reply all
Reply to author
Forward
0 new messages