[Bug 1439280] Re: Libvirt CPU affinity error

2015-05-11 Thread Jeffrey Zhang
I found the root cause in my environment.

I use libvirt in LXC. And the lxc doesn't enable the cgroup w/ read and
write permission. I add/change the config file with following line.

lxc.aa_profile = lxc-container-default-with-nesting

And install `cgroup-lite` in lxc guest. The libvirt works with CPU
affinity.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/1439280

Title:
  Libvirt CPU affinity error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1439280/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1439280] Re: Libvirt CPU affinity error

2015-05-07 Thread Jeffrey Zhang
@Tony
Yes. You are right. I am sorry that I make a wrong file diff.  I hide my last 
comment, and paste a correct one. 

I meet this issue too. After applied following patch, it works. I think
in the ubuntu, the libvirt (1.2.12, from cloud-archive) doesn't support
numa.

diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py
index 98a4537..4d573e1 100644
--- a/nova/virt/libvirt/driver.py
+++ b/nova/virt/libvirt/driver.py
@@ -355,7 +355,7 @@ REQ_HYPERVISOR_DISCARD = QEMU
 # to pin guest nodes to host nodes, so mandate that. Without
 # this the scheduler cannot make guaranteed decisions, as the
 # guest placement may not match what was requested
-MIN_LIBVIRT_NUMA_VERSION = (1, 2, 7)
+MIN_LIBVIRT_NUMA_VERSION = (1, 2, 99)
 # While earlier versions could support hugepage backed
 # guests, not until 1.2.8 was there the ability to request
 # a particular huge page size. Without this the scheduler

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/1439280

Title:
  Libvirt CPU affinity error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1439280/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1439280] Re: Libvirt CPU affinity error

2015-05-04 Thread Jeffrey Zhang
I meet this issue too. After applied following patch, it works. I think
in the ubuntu, the libvirt (1.2.12, from cloud-archive) doesn't support
numa.

`
diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py
index 4e94b60..d3a37e5 100644
--- a/nova/virt/libvirt/driver.py
+++ b/nova/virt/libvirt/driver.py
@@ -346,7 +346,7 @@ MIN_LIBVIRT_BLOCKIO_VERSION = (0, 10, 2)
 MIN_LIBVIRT_BLOCKJOBINFO_VERSION = (1, 1, 1)
 # Relative block commit (feature is detected,
 # this version is only used for messaging)
-MIN_LIBVIRT_BLOCKCOMMIT_RELATIVE_VERSION = (1, 2, 7)
+MIN_LIBVIRT_BLOCKCOMMIT_RELATIVE_VERSION = (1, 2, 99)
 # libvirt discard feature
 MIN_LIBVIRT_DISCARD_VERSION = (1, 0, 6)
 MIN_QEMU_DISCARD_VERSION = (1, 6, 0)

`

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/1439280

Title:
  Libvirt CPU affinity error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1439280/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs