Bug 1656762 - [libvirt 5.0.0]VM XML Validation does not fail if maxvcpu vs total cpus in numa cell range does not match
Summary: [libvirt 5.0.0]VM XML Validation does not fail if maxvcpu vs total cpus in nu...
Keywords:
Status: NEW
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-06 09:41 UTC by Satheesh Rajendran
Modified: 2018-12-06 09:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)
vm1.xml (2.30 KB, text/plain)
2018-12-06 09:41 UTC, Satheesh Rajendran
no flags Details

Description Satheesh Rajendran 2018-12-06 09:41:56 UTC
Created attachment 1512018 [details]
vm1.xml

Description of problem:
---Problem Description---
VMXML( numa cell )validation does not fail if maxvcpu vs total cpus in numa cellid does not match
  
---Steps to Reproduce---
 1. Define a vm(vm1) with two numa cell with 2 vcpus each with maxvcpus as 4

<vcpu placement='static' current='2'>4</vcpu>
<cpu>
    <topology cores="4" sockets="1" threads="1" />
    <numa>
      <cell id='0' cpus='0-1' memory='4194304' unit='KiB'/>
      <cell id='1' cpus='2-3' memory='4194304' unit='KiB'/>
    </numa>
  </cpu>

2. edit vm xml to increase the max vcpus
virsh edit vm1

<vcpu placement='static' current='2'>40</vcpu>
<cpu>
    <topology cores="40" sockets="1" threads="1" />
     <numa>
      <cell id='0' cpus='0-1' memory='4194304' unit='KiB'/>
      <cell id='1' cpus='2-3' memory='4194304' unit='KiB'/>
    </numa>
  </cpu>

3. Save the changes, vm xml saved ----NOK

Expected: VM XML validation should throw an error as numa cell's cpu range mismatch with maxvcpu


Version-Release number of selected component (if applicable):
Env:
Host Kernel: 4.20.0-rc4-gb5bd23361
#libvirtd -V
libvirtd (libvirt) 5.0.0
HW: power8 ppc64le


Note You need to log in before you can comment on or make changes to this bug.