Ganeti + ubuntu 13.04?

148 views
Skip to first unread message

Bill

unread,
Apr 29, 2013, 8:09:25 PM4/29/13
to gan...@googlegroups.com

I just tried ganeti on a new ubuntu 13.04 server.  My motivation being the new qemu-1.4 improvements I've heard about.

Does anyone have this working?

Apparently the newer linux kernels (since 3.0, 13.04 defaults to 3.8.0-19) and the supplied python-2.7.4 have some incompatibility where SO_PEERCRED is not exported by python.  So any ganeti command results in:
AttributeError: 'module' object has no attribute 'SO_PEERCRED'

Does anyone have a work around?  Or a suggestion for a linux distro that has qemu-1.4 and doesn't have this problem?

Jake Anderson

unread,
Apr 29, 2013, 9:15:54 PM4/29/13
to gan...@googlegroups.com, Bill
I haven't heard anything much about the improvements in qemu, what's the
25 words or less?

Guido Trotter

unread,
Apr 30, 2013, 2:45:48 AM4/30/13
to gan...@googlegroups.com
On Tue, Apr 30, 2013 at 2:09 AM, Bill <broa...@gmail.com> wrote:

Hi Bill,
I would say the best workaround would be to make Ganeti work in that
configuration.
It shouldn't be that hard: SO_PEERCRED is just an integer, used in a
single place (lib/netutils.py): it should be easy there to add a
try/catch to see if it's defined, and if it's not define it to the
right number.

The patch should be small enough to get it in the stable-2.7 series.

Then of course it would help filing a bug for ubuntu's python
maintainers to fix this.

Thanks,

Guido

--
Guido Trotter
Ganeti Engineering
Google Germany GmbH
Dienerstr. 12, 80331, München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Katherine Stephens

Steuernummer: 48/725/00206
Umsatzsteueridentifikationsnummer: DE813741370

Alex Mandel

unread,
Apr 30, 2013, 3:17:21 AM4/30/13
to gan...@googlegroups.com, Jake Anderson
Performance....

Enjoy,
Alex

Bill

unread,
May 1, 2013, 5:45:01 PM5/1/13
to gan...@googlegroups.com

Indeed "SO_PEERCRED" is just an integer.  But it's a flag that turns on functionality to allow a process to tell the UID and GID of another process connecting to a unix domain socket.  I've no idea if it would be safe to fake it.  Do you?

I tried ganeti-2.5.2 (from the ubuntu repo) as well as the current 2.6.2 and the 2.7 beta 2.  All have the same problem.  I'll file a bug against the ubuntu package.  

I'm still interested in any other distro that gets qemu-1.4 + ganeti right.

Guido Trotter

unread,
May 2, 2013, 4:44:02 AM5/2/13
to gan...@googlegroups.com
On Wed, May 1, 2013 at 11:45 PM, Bill <broa...@gmail.com> wrote:
>
> Indeed "SO_PEERCRED" is just an integer. But it's a flag that turns on
> functionality to allow a process to tell the UID and GID of another process
> connecting to a unix domain socket. I've no idea if it would be safe to
> fake it. Do you?
>

I think it would, and also that trying shouldn't be problematic.

> I tried ganeti-2.5.2 (from the ubuntu repo) as well as the current 2.6.2 and
> the 2.7 beta 2. All have the same problem. I'll file a bug against the
> ubuntu package.
>

Yes, I don't think going to older versions will help.
Actually for using 1.4 properly you will need 2.7 rc1 (I just fixed a
few 1.4 related bugs in beta3).

Thanks,

Guido

Guido Trotter

unread,
May 15, 2013, 2:11:22 AM5/15/13
to gan...@googlegroups.com



On Wed, May 15, 2013 at 5:51 AM, Bjorn <snowt...@gmail.com> wrote:
Just adding some more data for other users. This is the top Google result for "ganeti ubuntu 13.04".

Replacing SO_PEERCRED in lib/netutils.py with the value 17 makes that problem go away.


Sorry. Perhaps we should use a workaround and set it ourselves, if not set?
After all it's just an integer constant.
 
A bigger problem is that Ubuntu 13.04 uses drbd 8.4.2, which isn't currently supported by ganeti.

This is going to be fixed soon. We already have the code ready in our master branch, and we'll release that one next quarter.

Thanks,

Guido

Reply all
Reply to author
Forward
0 new messages