Skip to contentSkip to conversation

changeset 1.1403 breaks previous xm behaviour

DISCUSSION Kip Macy 5 participants 6 messages May 15, 2005 – May 16, 2005

lore
Share & tools
lore

Kip Macy

author
#0 lore raw

With the move to unix sockets from http, xm no longer works if you're not running it as root. This is perfectly reasonable, but I just wasted 45 minutes trying to figure out why it didn't work. I kept on assuming it was a versioning with my libraries.

Did I miss an announcement on the list?

-Kip

#1 lore raw
Quoted 7 lines

With the move to unix sockets from http, xm no longer works if you're not running it as root. This is perfectly reasonable, but I just wasted 45 minutes trying to figure out why it didn't work. I kept on assuming it was a versioning with my libraries.

Did I miss an announcement on the list?

No, there was no specific announcement about this incompatability; however there were a bunch of discussions in the past about the move and the increased security features. Cset 1.1403 includes this enhancement along with a whole bunch more work Mike has been doing over the past while (which, among other things, removes the dependence on twisted).

Note that as we move towards 3.0 there are likely to be situations in which xen-unstable is just that: it may not compile, it may not support previous platforms or maintain precise semantics. We aim to minimize these situations but we are trying hard to move to a point where we support all the functionality slated for 3.0. It is tougher to keep up with unstable so if it's not required for your particular application you may find using 2.0.5 or 2.0-testing easier.

If you require http access to xend, you can still enable this by adding (xend-http-server yes) in /var/xen/xend-config.sxp

cheers,

S.

#2 lore raw
Quoted 6 lines · Steven Hand
Quoted 6 lines

With the move to unix sockets from http, xm no longer works if you're not running it as root. This is perfectly reasonable, but I just wasted 45 minutes trying to figure out why it didn't work. I kept on assuming it was a versioning with my libraries.

Quoted 7 lines
Quoted 1 line

Did I miss an announcement on the list?

No, there was no specific announcement about this incompatability; however there were a bunch of discussions in the past about the move and the increased security features. Cset 1.1403 includes this enhancement along with a whole bunch more work Mike has been doing over the past while (which, among other things, removes the dependence on twisted).

Steven, that means we will remove twisted completely in the (near) future?

regards,
aq

#3 lore raw
Quoted 3 lines · aq
Quoted 1 line

(which, among other things, removes the dependence on twisted).

Steven, that means we will remove twisted completely in the (near) future?

Is twisted *evil*?

I thought I read something about wanting to get away from it, but is there a particular reason?

/me is curious.

Signature · 2 lines
Andrew Thompson
http://aktzero.com/
#4 lore raw
Quoted 7 lines
Quoted 3 lines · aq
Quoted 1 line

(which, among other things, removes the dependence on twisted).

Steven, that means we will remove twisted completely in the (near) future?

Is twisted *evil*?

Well I wouldn't say that twisted is *evil* but it is somewhat *twisted* :-)

Quoted 2 lines

I thought I read something about wanting to get away from it, but is there a particular reason?

Just generally trying to:

a) minimize dependencies on any non-standard stuff (one the faqs on the list has to do with twisted), and
b) simplify the code so that we can understand it - twisted is overkill for the functionality we require.

cheers,

S.

#5 lore raw
In reply to Andrew Thompson
Quoted 4 lines

Is twisted *evil*?

I thought I read something about wanting to get away from it, but is there a particular reason?

Xend has to deal with *loads* of different kinds of events (admin socket connections, console data demux, device control messages...). Twisted gives us an infrastructure for dealing with these in a non-threaded way. It also gives some nifty things like an HTTP server, etc...

The new approach is to use language-level threads instead. This makes certain things easier to follow, since you can have a thread for each logical stream of events.

Twisted has some nice features but we won't really need it once we move to the threaded model. It's a shame to lose the HTTP server but the new Xend will include a minimal HTTP server in Python, which will be fine for our needs.

Cheers,
Mark