← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1580000] [NEW] cpu model Haswell doesn't work on openstack mitaka

 

Public bug reported:

Description
===========

I'm running devstack Mitaka with networking-ovs-dpdk. I set the cpu model to Haswell in the flavor, but the guest is created with the default qemu cpu model:
model name      : QEMU Virtual CPU version 2.3.0

It worked when I was running on Kilo.

Steps to reproduce
==================

Simply run devstack mitaka, then:
nova flavor-create CIRROS-PERF auto 1024 80 6
openstack flavor set CIRROS-PERF --property hw:cpu_model=Haswell
nova --os-tenant-name admin boot --poll --image cirros-0.3.4-x86_64-uec --flavor CIRROS-PERF --nic net-id=d34b5e4c-b39b-4787-8e8d-ebd9464932c5 --nic net-id=7556233d-a09d-421a-bace-59500971539a demo-vm-cirros-1

More Info
=========

stack@dl-360-115:/opt/stack/nova$ nova --version
3.3.1

stack@dl-360-115:~/devstack-mitaka$ virsh --version
1.2.16

stack@dl-360-115:~/devstack-mitaka$ sudo kvm --version
QEMU emulator version 2.3.0 (Debian 1:2.3+dfsg-5ubuntu9.2), Copyright (c) 2003-2008 Fabrice Bellard

stack@dl-360-115:~/devstack-mitaka$ neutron --version
4.1.1

flavor:
stack@dl-360-115:~/devstack-mitaka$ nova flavor-show TG-PERF | grep model
| extra_specs                | {"hw:cpu_model": "Haswell"}          |

stack@dl-360-115:~/nvp/scripts$ nova show demo-vm-cirros-1|grep flav
| flavor                               | TG-PERF (ce4dfd95-86d7-4d8d-a0da-f955ac999390)

stack@dl-360-115:/opt/stack/nova$ ps -ef | grep qemu | grep Haswell
stack@dl-360-115:/opt/stack/nova$ 

On Kilo it works:
root@BASE-CCP-CPN-N0001-NETCLM:~# ps -ef | grep qemu | grep Haswell
root      2688     1 18 May09 ?        03:27:34 /usr/bin/qemu-system-x86_64 -name instance-000001d8 -S -machine pc-i440fx-2.5,accel=kvm,usb=off -cpu Haswell-noTSX,+abm,+pdpe1gb,+rdrand,+f16c,+osxsave,+dca,+pdcm,+xtpr,+tm2,+est,+smx,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme ...

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1580000

Title:
  cpu model Haswell doesn't work on openstack mitaka

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===========

  I'm running devstack Mitaka with networking-ovs-dpdk. I set the cpu model to Haswell in the flavor, but the guest is created with the default qemu cpu model:
  model name      : QEMU Virtual CPU version 2.3.0

  It worked when I was running on Kilo.

  Steps to reproduce
  ==================

  Simply run devstack mitaka, then:
  nova flavor-create CIRROS-PERF auto 1024 80 6
  openstack flavor set CIRROS-PERF --property hw:cpu_model=Haswell
  nova --os-tenant-name admin boot --poll --image cirros-0.3.4-x86_64-uec --flavor CIRROS-PERF --nic net-id=d34b5e4c-b39b-4787-8e8d-ebd9464932c5 --nic net-id=7556233d-a09d-421a-bace-59500971539a demo-vm-cirros-1

  More Info
  =========

  stack@dl-360-115:/opt/stack/nova$ nova --version
  3.3.1

  stack@dl-360-115:~/devstack-mitaka$ virsh --version
  1.2.16

  stack@dl-360-115:~/devstack-mitaka$ sudo kvm --version
  QEMU emulator version 2.3.0 (Debian 1:2.3+dfsg-5ubuntu9.2), Copyright (c) 2003-2008 Fabrice Bellard

  stack@dl-360-115:~/devstack-mitaka$ neutron --version
  4.1.1

  flavor:
  stack@dl-360-115:~/devstack-mitaka$ nova flavor-show TG-PERF | grep model
  | extra_specs                | {"hw:cpu_model": "Haswell"}          |

  stack@dl-360-115:~/nvp/scripts$ nova show demo-vm-cirros-1|grep flav
  | flavor                               | TG-PERF (ce4dfd95-86d7-4d8d-a0da-f955ac999390)

  stack@dl-360-115:/opt/stack/nova$ ps -ef | grep qemu | grep Haswell
  stack@dl-360-115:/opt/stack/nova$ 

  On Kilo it works:
  root@BASE-CCP-CPN-N0001-NETCLM:~# ps -ef | grep qemu | grep Haswell
  root      2688     1 18 May09 ?        03:27:34 /usr/bin/qemu-system-x86_64 -name instance-000001d8 -S -machine pc-i440fx-2.5,accel=kvm,usb=off -cpu Haswell-noTSX,+abm,+pdpe1gb,+rdrand,+f16c,+osxsave,+dca,+pdcm,+xtpr,+tm2,+est,+smx,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme ...

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1580000/+subscriptions


Follow ups