Can't get the OS list

313 views
Skip to first unread message

Coalescence

unread,
Dec 30, 2009, 9:14:28 AM12/30/09
to ganeti
Hi all, I'm having trouble creating instances.

vmserver01:~# gnt-os list
Can't get the OS list

vmserver01:~# gnt-instance add -t drbd -s 1G -n vmserver01:vmserver02 -
o debootstrap tester
Failure: prerequisites not met for this operation:
OS 'debootstrap' not in supported os list for primary node


It's a fresh install and I'm pretty certain everything is setup right
(I deleted the drbd resources, rather than skipping them, is this
right?)

I followed the instructions to the letter, this is on x64 Debian Lenny
b.t.w.

Any help greatly appreciated!


vmserver01:~# gnt-cluster verify
Wed Dec 30 14:09:39 2009 * Verifying global settings
Wed Dec 30 14:09:39 2009 * Gathering data (2 nodes)
Wed Dec 30 14:09:40 2009 * Verifying node vmserver01 (master)
Wed Dec 30 14:09:40 2009 * Verifying node vmserver02 (master
candidate)
Wed Dec 30 14:09:40 2009 * Verifying orphan volumes
Wed Dec 30 14:09:40 2009 * Verifying remaining instances
Wed Dec 30 14:09:40 2009 * Verifying N+1 Memory redundancy
Wed Dec 30 14:09:40 2009 * Other Notes
Wed Dec 30 14:09:40 2009 * Hooks Results


vmserver01:~# gnt-cluster info
Cluster name: zencluster
Master node: vmserver01
Architecture (this node): 64bit (x86_64)
Tags: (none)
Default hypervisor: xen-pvm
Enabled hypervisors: xen-pvm
Hypervisor parameters:
- xen-pvm:
root_path: /dev/sda1
kernel_path: /boot/vmlinuz-2.6-xenU
initrd_path:
kernel_args: ro
Cluster parameters:
- candidate pool size: 10
- master netdev: xenbr0
- default bridge: xenbr0
- lvm volume group: xenvg
- file storage path: /srv/ganeti/file-storage
Default instance parameters:
- default:
auto_balance: True
vcpus: 1
memory: 128

Coalescence

unread,
Dec 30, 2009, 9:23:23 AM12/30/09
to ganeti
vmserver01:~# gnt-cluster version
Software version: 2.0.5
Internode protocol: 20
Configuration format: 2000000
OS api version: 10
Export interface: 0

also..

DRBD - Version: 8.3.2 (api:88)

If this helps..

Iustin Pop

unread,
Dec 30, 2009, 9:26:18 AM12/30/09
to gan...@googlegroups.com
On Wed, Dec 30, 2009 at 06:14:28AM -0800, Coalescence wrote:
> Hi all, I'm having trouble creating instances.
>
> vmserver01:~# gnt-os list
> Can't get the OS list
>
> vmserver01:~# gnt-instance add -t drbd -s 1G -n vmserver01:vmserver02 -
> o debootstrap tester
> Failure: prerequisites not met for this operation:
> OS 'debootstrap' not in supported os list for primary node
>
>
> It's a fresh install and I'm pretty certain everything is setup right
> (I deleted the drbd resources, rather than skipping them, is this
> right?)
>
> I followed the instructions to the letter, this is on x64 Debian Lenny
> b.t.w.
>
> Any help greatly appreciated!

Hi,

For this case there is the command "gnt-os diagnose". What does it tell
you?

iustin

Coalescence

unread,
Dec 30, 2009, 9:28:10 AM12/30/09
to ganeti
Hi!

On Dec 30, 2:26 pm, Iustin Pop <iu...@k1024.org> wrote:
> Hi,
>
> For this case there is the command "gnt-os diagnose". What does it tell
> you?
>


vmserver01:~# gnt-os diagnose


Can't get the OS list


Same thing :(

Iustin Pop

unread,
Dec 30, 2009, 9:32:49 AM12/30/09
to gan...@googlegroups.com

OK, that means you don't really have any OSes. What is your OS path?
(Unfortunately gnt-cluster info doesn't tell you, you have to check in the file
_autoconf.py for OS_SEARCH_PATH, I'll file a bug about this).

And then, what do you have in those directory(es)?

iustin

Coalescence

unread,
Dec 30, 2009, 9:44:30 AM12/30/09
to ganeti

On Dec 30, 2:32 pm, Iustin Pop <iu...@k1024.org> wrote:
> OK, that means you don't really have any OSes. What is your OS path?
> (Unfortunately gnt-cluster info doesn't tell you, you have to check in the file
> _autoconf.py for OS_SEARCH_PATH, I'll file a bug about this).
>
> And then, what do you have in those directory(es)?
>
> iustin

vmserver01:/# cat /usr/local/lib/python2.5/site-packages/ganeti/
_autoconf.py | grep OS
OS_SEARCH_PATH = ['/srv/ganeti/os']


There's nothing at all in this path...


vmserver01:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Iustin Pop

unread,
Dec 30, 2009, 10:29:58 AM12/30/09
to gan...@googlegroups.com
On Wed, Dec 30, 2009 at 06:44:30AM -0800, Coalescence wrote:
>
>
> On Dec 30, 2:32 pm, Iustin Pop <iu...@k1024.org> wrote:
> > OK, that means you don't really have any OSes. What is your OS path?
> > (Unfortunately gnt-cluster info doesn't tell you, you have to check in the file
> > _autoconf.py for OS_SEARCH_PATH, I'll file a bug about this).
> >
> > And then, what do you have in those directory(es)?
> >
> > iustin
>
> vmserver01:/# cat /usr/local/lib/python2.5/site-packages/ganeti/
> _autoconf.py | grep OS
> OS_SEARCH_PATH = ['/srv/ganeti/os']
>
>
> There's nothing at all in this path...

Well, there is where you need to install the deboostrap OS, under
/srv/ganeti/os/[debootstrap/create, import, export, etc.].

iustin

Joel Merrick

unread,
Dec 30, 2009, 10:31:12 AM12/30/09
to gan...@googlegroups.com


Could you point me to the documentation for this please?


iustin



--
$ echo "kpfmAdpoofdufevq/dp/vl" | perl -pe 's/(.)/chr(ord($1)-1)/ge'

Coalescence

unread,
Dec 30, 2009, 10:38:14 AM12/30/09
to ganeti
Ahh, I have found the files in /usr/local/share/ganeti/os

vmserver01:/usr/local/share/ganeti/os# cp -r debootstrap/ /srv/ganeti/
os/

That seems to want to work, however now I'm getting..

vmserver01:/usr/local/share/ganeti/os# gnt-instance add -t drbd -s 1G -
n vmserver01:vmserver02 -o debootstrap tester
Wed Dec 30 15:34:53 2009 * creating instance disks...
Wed Dec 30 15:34:55 2009 adding instance tester to cluster config
Wed Dec 30 15:34:55 2009 - INFO: Waiting for instance tester to sync
disks.
Wed Dec 30 15:35:06 2009 - INFO: Instance tester's disks are in sync.
Failure: command execution error:
There are some degraded disks for this instance


Oh well, one down.. more to go! :)

Coalescence

unread,
Dec 30, 2009, 11:08:41 AM12/30/09
to ganeti
Fully resolved.. I needed to add

usermode_helper=/bin/true

to the /etc/modules drbd line

Iustin Pop

unread,
Dec 30, 2009, 11:50:23 AM12/30/09
to gan...@googlegroups.com

Good to hear :)

iustin

Reply all
Reply to author
Forward
0 new messages