Re: [openstack-dev] [nova] libvirtError: XML error: Missing CPU model name on 2nd level vm
Hi Kevin, Running devstack in a VM is perfectly doable. Many developers use devstack inside a VM (I run mine inside a VM launched using libvirt on KVM). I can't comment on the issue that you're encountering, but perhaps something wasn't configured correctly when you launched the VM? Best Regards, Solly Ross - Original Message - From: Chen CH Ji jiche...@cn.ibm.com To: openstack-dev@lists.openstack.org Sent: Friday, August 1, 2014 5:04:16 AM Subject: [openstack-dev] [nova] libvirtError: XML error: Missing CPU model name on 2nd level vm Hi I don't have a real PC to so created a test env ,so I created a 2nd level env (create a kvm virtual machine on top of a physical host then run devstack o the vm) I am not sure whether it's doable because I saw following error when start nova-compute service , is it a bug or I need to update my configuration instead? thanks 2014-08-01 17:04:51.532 DEBUG nova.virt.libvirt.config [-] Generated XML ('cpu\n archx86_64/arch\n topology sockets=1 cores=1 threads=1/\n/cpu\n',) from (pid=16956) to_xml /opt/stack/nova/nova/virt/libvirt/config.py:79 Traceback (most recent call last): File /usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py, line 346, in fire_timers timer() File /usr/lib/python2.7/dist-packages/eventlet/hubs/timer.py, line 56, in __call__ cb(*args, **kw) File /usr/lib/python2.7/dist-packages/eventlet/event.py, line 163, in _do_send waiter.switch(result) File /usr/lib/python2.7/dist-packages/eventlet/greenthread.py, line 194, in main result = function(*args, **kwargs) File /opt/stack/nova/nova/openstack/common/service.py, line 490, in run_service service.start() File /opt/stack/nova/nova/service.py, line 164, in start self.manager.init_host() File /opt/stack/nova/nova/compute/manager.py, line 1055, in init_host self.driver.init_host(host=self.host) File /opt/stack/nova/nova/virt/libvirt/driver.py, line 633, in init_host self._do_quality_warnings() File /opt/stack/nova/nova/virt/libvirt/driver.py, line 616, in _do_quality_warnings caps = self._get_host_capabilities() File /opt/stack/nova/nova/virt/libvirt/driver.py, line 2942, in _get_host_capabilities libvirt.VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES) File /usr/lib/python2.7/dist-packages/eventlet/tpool.py, line 179, in doit result = proxy_call(self._autowrap, f, *args, **kwargs) File /usr/lib/python2.7/dist-packages/eventlet/tpool.py, line 139, in proxy_call rv = execute(f,*args,**kwargs) File /usr/lib/python2.7/dist-packages/eventlet/tpool.py, line 77, in tworker rv = meth(*args,**kwargs) File /usr/lib/python2.7/dist-packages/libvirt.py, line 3127, in baselineCPU if ret is None: raise libvirtError ('virConnectBaselineCPU() failed', conn=self) libvirtError: XML error: Missing CPU model name Best Regards! Kevin (Chen) Ji 纪 晨 Engineer, zVM Development, CSTL Notes: Chen CH Ji/China/IBM@IBMCN Internet: jiche...@cn.ibm.com Phone: +86-10-82454158 Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District, Beijing 100193, PRC ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [nova] libvirtError: XML error: Missing CPU model name on 2nd level vm
cat /proc/cpuinfo Make sure the cpu model and version is listed on /usr/share/libvirt/cpu_map.xml Hope this helps. On Tue, Aug 5, 2014 at 2:49 PM, Solly Ross sr...@redhat.com wrote: Hi Kevin, Running devstack in a VM is perfectly doable. Many developers use devstack inside a VM (I run mine inside a VM launched using libvirt on KVM). I can't comment on the issue that you're encountering, but perhaps something wasn't configured correctly when you launched the VM? Best Regards, Solly Ross - Original Message - From: Chen CH Ji jiche...@cn.ibm.com To: openstack-dev@lists.openstack.org Sent: Friday, August 1, 2014 5:04:16 AM Subject: [openstack-dev] [nova] libvirtError: XML error: Missing CPU model name on 2nd level vm Hi I don't have a real PC to so created a test env ,so I created a 2nd level env (create a kvm virtual machine on top of a physical host then run devstack o the vm) I am not sure whether it's doable because I saw following error when start nova-compute service , is it a bug or I need to update my configuration instead? thanks 2014-08-01 17:04:51.532 DEBUG nova.virt.libvirt.config [-] Generated XML ('cpu\n archx86_64/arch\n topology sockets=1 cores=1 threads=1/\n/cpu\n',) from (pid=16956) to_xml /opt/stack/nova/nova/virt/libvirt/config.py:79 Traceback (most recent call last): File /usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py, line 346, in fire_timers timer() File /usr/lib/python2.7/dist-packages/eventlet/hubs/timer.py, line 56, in __call__ cb(*args, **kw) File /usr/lib/python2.7/dist-packages/eventlet/event.py, line 163, in _do_send waiter.switch(result) File /usr/lib/python2.7/dist-packages/eventlet/greenthread.py, line 194, in main result = function(*args, **kwargs) File /opt/stack/nova/nova/openstack/common/service.py, line 490, in run_service service.start() File /opt/stack/nova/nova/service.py, line 164, in start self.manager.init_host() File /opt/stack/nova/nova/compute/manager.py, line 1055, in init_host self.driver.init_host(host=self.host) File /opt/stack/nova/nova/virt/libvirt/driver.py, line 633, in init_host self._do_quality_warnings() File /opt/stack/nova/nova/virt/libvirt/driver.py, line 616, in _do_quality_warnings caps = self._get_host_capabilities() File /opt/stack/nova/nova/virt/libvirt/driver.py, line 2942, in _get_host_capabilities libvirt.VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES) File /usr/lib/python2.7/dist-packages/eventlet/tpool.py, line 179, in doit result = proxy_call(self._autowrap, f, *args, **kwargs) File /usr/lib/python2.7/dist-packages/eventlet/tpool.py, line 139, in proxy_call rv = execute(f,*args,**kwargs) File /usr/lib/python2.7/dist-packages/eventlet/tpool.py, line 77, in tworker rv = meth(*args,**kwargs) File /usr/lib/python2.7/dist-packages/libvirt.py, line 3127, in baselineCPU if ret is None: raise libvirtError ('virConnectBaselineCPU() failed', conn=self) libvirtError: XML error: Missing CPU model name Best Regards! Kevin (Chen) Ji 纪 晨 Engineer, zVM Development, CSTL Notes: Chen CH Ji/China/IBM@IBMCN Internet: jiche...@cn.ibm.com Phone: +86-10-82454158 Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District, Beijing 100193, PRC ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev ___ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [nova] libvirtError: XML error: Missing CPU model name on 2nd level vm
Thanks a lot for your suggestions , I guess it might be 2nd level configuration issue ... will take more time on it , thanks my 1st level host has following output when 'virsh capabilities' host uuidc476d525-bba7-e211-98a9-9cd4d92d1300/uuid cpu archx86_64/arch modelSandyBridge/model vendorIntel/vendor topology sockets='1' cores='4' threads='1'/ feature name='erms'/ feature name='smep'/ feature name='fsgsbase'/ feature name='rdrand'/ feature name='f16c'/ feature name='osxsave'/ feature name='pcid'/ feature name='pdcm'/ feature name='xtpr'/ feature name='tm2'/ feature name='est'/ feature name='smx'/ feature name='vmx'/ feature name='ds_cpl'/ feature name='monitor'/ feature name='dtes64'/ feature name='pbe'/ feature name='tm'/ feature name='ht'/ feature name='ss'/ feature name='acpi'/ feature name='ds'/ feature name='vme'/ /cpu while the output on 2nd level is host uuida1bb0066-80d2-f9db-aa4e-0520a0562875/uuid cpu archx86_64/arch topology sockets='1' cores='1' threads='1'/ /cpu Best Regards! Kevin (Chen) Ji 纪 晨 Engineer, zVM Development, CSTL Notes: Chen CH Ji/China/IBM@IBMCN Internet: jiche...@cn.ibm.com Phone: +86-10-82454158 Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District, Beijing 100193, PRC From: Rafael Folco rafaelfo...@gmail.com To: OpenStack Development Mailing List (not for usage questions) openstack-dev@lists.openstack.org, Date: 08/06/2014 02:11 AM Subject:Re: [openstack-dev] [nova] libvirtError: XML error: Missing CPU model name on 2nd level vm cat /proc/cpuinfo Make sure the cpu model and version is listed on /usr/share/libvirt/cpu_map.xml Hope this helps. On Tue, Aug 5, 2014 at 2:49 PM, Solly Ross sr...@redhat.com wrote: Hi Kevin, Running devstack in a VM is perfectly doable. Many developers use devstack inside a VM (I run mine inside a VM launched using libvirt on KVM). I can't comment on the issue that you're encountering, but perhaps something wasn't configured correctly when you launched the VM? Best Regards, Solly Ross - Original Message - From: Chen CH Ji jiche...@cn.ibm.com To: openstack-dev@lists.openstack.org Sent: Friday, August 1, 2014 5:04:16 AM Subject: [openstack-dev] [nova] libvirtError: XML error: Missing CPU model name on 2nd level vm Hi I don't have a real PC to so created a test env ,so I created a 2nd level env (create a kvm virtual machine on top of a physical host then run devstack o the vm) I am not sure whether it's doable because I saw following error when start nova-compute service , is it a bug or I need to update my configuration instead? thanks 2014-08-01 17:04:51.532 DEBUG nova.virt.libvirt.config [-] Generated XML ('cpu\n archx86_64/arch\n topology sockets=1 cores=1 threads=1/\n/cpu\n',) from (pid=16956) to_xml /opt/stack/nova/nova/virt/libvirt/config.py:79 Traceback (most recent call last): File /usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py, line 346, in fire_timers timer() File /usr/lib/python2.7/dist-packages/eventlet/hubs/timer.py, line 56, in __call__ cb(*args, **kw) File /usr/lib/python2.7/dist-packages/eventlet/event.py, line 163, in _do_send waiter.switch(result) File /usr/lib/python2.7/dist-packages/eventlet/greenthread.py, line 194, in main result = function(*args, **kwargs) File /opt/stack/nova/nova/openstack/common/service.py, line 490, in run_service service.start() File /opt/stack/nova/nova/service.py, line 164, in start self.manager.init_host() File /opt/stack/nova/nova/compute/manager.py, line 1055, in init_host self.driver.init_host(host=self.host) File /opt/stack/nova/nova/virt/libvirt/driver.py, line 633, in init_host self._do_quality_warnings() File /opt/stack/nova/nova/virt/libvirt/driver.py, line 616, in _do_quality_warnings caps = self._get_host_capabilities() File /opt/stack/nova/nova/virt/libvirt/driver.py, line 2942, in _get_host_capabilities libvirt.VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES) File /usr/lib/python2.7/dist-packages/eventlet/tpool.py, line 179, in doit result = proxy_call(self._autowrap, f, *args, **kwargs) File /usr/lib/python2.7/dist-packages/eventlet/tpool.py, line 139, in proxy_call rv = execute(f,*args,**kwargs) File /usr/lib/python2.7/dist-packages/eventlet/tpool.py, line 77, in tworker rv = meth(*args,**kwargs) File /usr/lib/python2.7/dist-packages/libvirt.py, line 3127, in baselineCPU if ret is None: raise libvirtError ('virConnectBaselineCPU() failed', conn=self) libvirtError: XML error: Missing CPU model name Best Regards! Kevin (Chen) Ji 纪 晨 Engineer, zVM Development, CSTL
Re: [openstack-dev] [nova] libvirtError: XML error: Missing CPU model name on 2nd level vm
You can search nested kvm on the web to get more info, or you can try just use qemu not kvm on 2nd level. On 2014?08?06? 11:32, Chen CH Ji wrote: Thanks a lot for your suggestions , I guess it might be 2nd level configuration issue ... will take more time on it , thanks my 1st level host has following output when 'virsh capabilities' host uuidc476d525-bba7-e211-98a9-9cd4d92d1300/uuid cpu archx86_64/arch modelSandyBridge/model vendorIntel/vendor topology sockets='1' cores='4' threads='1'/ feature name='erms'/ feature name='smep'/ feature name='fsgsbase'/ feature name='rdrand'/ feature name='f16c'/ feature name='osxsave'/ feature name='pcid'/ feature name='pdcm'/ feature name='xtpr'/ feature name='tm2'/ feature name='est'/ feature name='smx'/ feature name='vmx'/ feature name='ds_cpl'/ feature name='monitor'/ feature name='dtes64'/ feature name='pbe'/ feature name='tm'/ feature name='ht'/ feature name='ss'/ feature name='acpi'/ feature name='ds'/ feature name='vme'/ /cpu while the output on 2nd level is host uuida1bb0066-80d2-f9db-aa4e-0520a0562875/uuid cpu archx86_64/arch topology sockets='1' cores='1' threads='1'/ /cpu Best Regards! Kevin (Chen) Ji ? ? Engineer, zVM Development, CSTL Notes: Chen CH Ji/China/IBM@IBMCN Internet: jiche...@cn.ibm.com Phone: +86-10-82454158 Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District, Beijing 100193, PRC Inactive hide details for Rafael Folco ---08/06/2014 02:11:26 AM---cat /proc/cpuinfo Make sure the cpu model and version is lisRafael Folco ---08/06/2014 02:11:26 AM---cat /proc/cpuinfo Make sure the cpu model and version is listed on From: Rafael Folco rafaelfo...@gmail.com To: OpenStack Development Mailing List (not for usage questions) openstack-dev@lists.openstack.org, Date: 08/06/2014 02:11 AM Subject: Re: [openstack-dev] [nova] libvirtError: XML error: Missing CPU model name on 2nd level vm cat /proc/cpuinfo Make sure the cpu model and version is listed on /usr/share/libvirt/cpu_map.xml Hope this helps. On Tue, Aug 5, 2014 at 2:49 PM, Solly Ross _sross@redhat.com_ mailto:sr...@redhat.com wrote: Hi Kevin, Running devstack in a VM is perfectly doable. Many developers use devstack inside a VM (I run mine inside a VM launched using libvirt on KVM). I can't comment on the issue that you're encountering, but perhaps something wasn't configured correctly when you launched the VM? Best Regards, Solly Ross - Original Message - From: Chen CH Ji _jiche...@cn.ibm.com_ mailto:jiche...@cn.ibm.com To: _openstack-dev@lists.openstack.org_ mailto:openstack-dev@lists.openstack.org Sent: Friday, August 1, 2014 5:04:16 AM Subject: [openstack-dev] [nova] libvirtError: XML error: Missing CPU model name on 2nd level vm Hi I don't have a real PC to so created a test env ,so I created a 2nd level env (create a kvm virtual machine on top of a physical host then run devstack o the vm) I am not sure whether it's doable because I saw following error when start nova-compute service , is it a bug or I need to update my configuration instead? thanks 2014-08-01 17:04:51.532 DEBUG nova.virt.libvirt.config [-] Generated XML ('cpu\n archx86_64/arch\n topology sockets=1 cores=1 threads=1/\n/cpu\n',) from (pid=16956) to_xml /opt/stack/nova/nova/virt/libvirt/config.py:79 Traceback (most recent call last): File /usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py, line 346, in fire_timers timer() File /usr/lib/python2.7/dist-packages/eventlet/hubs/timer.py, line 56, in __call__ cb(*args, **kw) File /usr/lib/python2.7/dist-packages/eventlet/event.py, line 163, in _do_send waiter.switch(result) File /usr/lib/python2.7/dist-packages/eventlet/greenthread.py, line 194, in main result = function(*args, **kwargs) File /opt/stack/nova/nova/openstack/common/service.py, line 490, in run_service service.start() File /opt/stack/nova/nova/service.py, line 164, in start self.manager.init_host() File /opt/stack/nova/nova/compute/manager.py, line 1055, in init_host self.driver.init_host(host=self.host) File /opt/stack/nova/nova/virt/libvirt/driver.py, line 633, in init_host self._do_quality_warnings() File /opt/stack/nova/nova/virt/libvirt/driver.py, line 616, in _do_quality_warnings caps = self._get_host_capabilities() File /opt/stack/nova/nova/virt/libvirt/driver.py, line 2942, in _get_host_capabilities libvirt.VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES) File /usr/lib