Skip to contentSkip to conversation

"xl list --long" bug with only 1 CPU pool

DISCUSSION Olivier Bonvalet 3 participants 7 messages Sep 11, 2014 – Sep 12, 2014

lore
Share & tools
lore
#0 lore raw

Hi,

on Xen 4.4, if you have only one CPU pool, "xl list --long" doesn't work anymore, throwing error "Illegal pool specified" :

murmillia:~# xl cpupool-numa-split
murmillia:~# 
murmillia:~# xl cpupool-list
Name               CPUs   Sched     Active   Domain count
Pool-node0          16    credit       y         39
Pool-node1          16    credit       y          0
murmillia:~# 
murmillia:~# xl list --long | wc -l
8040

Here, it works fine.
Then I remove one cpupool :

murmillia:~#

murmillia:~# xl cpupool-destroy Pool-node1
murmillia:~# 
murmillia:~# xl cpupool-list
Name               CPUs   Sched     Active   Domain count
Pool-node0          16    credit       y         39
murmillia:~# 
murmillia:~# xl list --long | wc -l
Illegal pool specified
0

Now, it doesn't work anymore.

Thanks for your work,
Olivier

#1 lore raw
Quoted 29 lines · Olivier Bonvalet

Hi,

on Xen 4.4, if you have only one CPU pool, "xl list --long" doesn't work anymore, throwing error "Illegal pool specified" :

murmillia:~# xl cpupool-numa-split
murmillia:~# 
murmillia:~# xl cpupool-list
Name               CPUs   Sched     Active   Domain count
Pool-node0          16    credit       y         39
Pool-node1          16    credit       y          0
murmillia:~# 
murmillia:~# xl list --long | wc -l
8040

Here, it works fine.
Then I remove one cpupool :

murmillia:~#

murmillia:~# xl cpupool-destroy Pool-node1
murmillia:~# 
murmillia:~# xl cpupool-list
Name               CPUs   Sched     Active   Domain count
Pool-node0          16    credit       y         39
murmillia:~# 
murmillia:~# xl list --long | wc -l
Illegal pool specified
0
Quoted 2 lines

Now, it doesn't work anymore.

I presume the pool name changed after the split and you once speficied a pool name in your VM config file. If so:

This is a limitation of xl. You can rename the pool name to its original name (presumably "Pool-0") and try again. I think this will be fixed in 4.5.

Wei.

Quoted 8 lines

Thanks for your work,
Olivier

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw

On Fri, Sep 12, 2014 at 09:35:22AM +0100, Wei Liu wrote:
[...]

Quoted 7 lines

I presume the pool name changed after the split and you once speficied a pool name in your VM config file. If so:

This is a limitation of xl. You can rename the pool name to its original name (presumably "Pool-0") and try again. I think this will be fixed in 4.5.

Actually no. In the end we still need a way to transform a pool name a pool id. Without a daemon keeping track of the change it's not likely to be fixed in the future.

Does this ever work with xend? What's the last version of Xen you see it working?

So in short, do change the pool name after you've created VMs in it. ;-)

Wei.

Quoted 10 lines

Wei.

Quoted 8 lines

Thanks for your work,
Olivier

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#3 lore raw
Quoted 5 lines · Wei Liu

On Fri, Sep 12, 2014 at 09:35:22AM +0100, Wei Liu wrote:
[...]

Quoted 3 lines

I presume the pool name changed after the split and you once speficied a pool name in your VM config file. If so:

Quoted 8 lines
Quoted 4 lines

This is a limitation of xl. You can rename the pool name to its original name (presumably "Pool-0") and try again. I think this will be fixed in 4.5.

Actually no. In the end we still need a way to transform a pool name a pool id. Without a daemon keeping track of the change it's not likely to be fixed in the future.

I thought the pool name was stored in xenstore, in which case it should be updated when the pol is renamed, shouldn't it?

Ian.

#4 lore raw
Quoted 11 lines · Ian Campbell
Quoted 10 lines · Wei Liu

On Fri, Sep 12, 2014 at 09:35:22AM +0100, Wei Liu wrote:
[...]

Quoted 7 lines

I presume the pool name changed after the split and you once speficied a pool name in your VM config file. If so:

This is a limitation of xl. You can rename the pool name to its original name (presumably "Pool-0") and try again. I think this will be fixed in 4.5.

Quoted 7 lines
Quoted 3 lines

Actually no. In the end we still need a way to transform a pool name a pool id. Without a daemon keeping track of the change it's not likely to be fixed in the future.

I thought the pool name was stored in xenstore, in which case it should be updated when the pol is renamed, shouldn't it?

The culprit is that pool name stored in guest config is not updated...

Wei.

Quoted 1 line

Ian.

#5 lore raw
Quoted 16 lines · Wei Liu
Quoted 15 lines · Ian Campbell
Quoted 13 lines · Wei Liu

On Fri, Sep 12, 2014 at 09:35:22AM +0100, Wei Liu wrote:
[...]

Quoted 7 lines

I presume the pool name changed after the split and you once speficied a pool name in your VM config file. If so:

This is a limitation of xl. You can rename the pool name to its original name (presumably "Pool-0") and try again. I think this will be fixed in 4.5.

Actually no. In the end we still need a way to transform a pool name a pool id. Without a daemon keeping track of the change it's not likely to be fixed in the future.

Quoted 5 lines
Quoted 3 lines

I thought the pool name was stored in xenstore, in which case it should be updated when the pol is renamed, shouldn't it?

The culprit is that pool name stored in guest config is not updated...

Oh right. That's a tricky one to resolve.

In theory we could arrange to store the pool-id in the stashed config (e.g. after your json stuff), but then that probably doesn't work with migration (since poolname->poolid is per host, I think?).

Iterating over all saved configs updating their pool-name doesn't sounds very nice either.

Ian.

#6 lore raw
Quoted 21 lines · Ian Campbell
Quoted 20 lines · Wei Liu
Quoted 18 lines · Ian Campbell
Quoted 5 lines · Wei Liu

On Fri, Sep 12, 2014 at 09:35:22AM +0100, Wei Liu wrote:
[...]

Quoted 3 lines

I presume the pool name changed after the split and you once speficied a pool name in your VM config file. If so:

Quoted 8 lines
Quoted 4 lines

This is a limitation of xl. You can rename the pool name to its original name (presumably "Pool-0") and try again. I think this will be fixed in 4.5.

Actually no. In the end we still need a way to transform a pool name a pool id. Without a daemon keeping track of the change it's not likely to be fixed in the future.

I thought the pool name was stored in xenstore, in which case it should be updated when the pol is renamed, shouldn't it?

Quoted 8 lines
Quoted 1 line

The culprit is that pool name stored in guest config is not updated...

Oh right. That's a tricky one to resolve.

In theory we could arrange to store the pool-id in the stashed config (e.g. after your json stuff), but then that probably doesn't work with migration (since poolname->poolid is per host, I think?).

The remote host will still use pool name to identify what pool to use.

Quoted 3 lines

Iterating over all saved configs updating their pool-name doesn't sounds very nice either.

This is my thought as well.

I'm now trying to figure out if this is a functional regression or something never worked (hence the question to ask about "last working version"). If that's a functional regression and users are very eager to get it fixed, we can figure out a way to fix it or workaround it.

Wei.

Quoted 1 line

Ian.