Bug 1391927 - Incorrect host cpu is given to emulator threads when cpu_realtime_mask flag is set.
Summary: Incorrect host cpu is given to emulator threads when cpu_realtime_mask flag i...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 9.0 (Mitaka)
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: async
: 9.0 (Mitaka)
Assignee: Sahid Ferdjaoui
QA Contact: Prasanth Anbalagan
URL:
Whiteboard:
Depends On: 1357461
Blocks: 1342229 1392019 1392367
TreeView+ depends on / blocked
 
Reported: 2016-11-04 12:10 UTC by Sahid Ferdjaoui
Modified: 2019-09-09 15:22 UTC (History)
14 users (show)

Fixed In Version: openstack-nova-13.1.2-5.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1357461
: 1392019 1392367 (view as bug list)
Environment:
Last Closed: 2016-12-21 16:38:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 356383 0 None None None 2016-11-04 12:10:55 UTC
Red Hat Product Errata RHBA-2016:2992 0 normal SHIPPED_LIVE openstack-nova bug fix advisory 2016-12-21 21:34:25 UTC

Comment 4 Prasanth Anbalagan 2016-12-15 19:03:00 UTC
Verified as follows - id of host cpu is used in instance xml.
********
VERSION
********

# yum list installed | grep openstack-nova
openstack-nova-api.noarch            1:13.1.2-9.el7ost       @rhelosp-9.0-puddle
openstack-nova-cert.noarch           1:13.1.2-9.el7ost       @rhelosp-9.0-puddle
openstack-nova-common.noarch         1:13.1.2-9.el7ost       @rhelosp-9.0-puddle
openstack-nova-compute.noarch        1:13.1.2-9.el7ost       @rhelosp-9.0-puddle
openstack-nova-conductor.noarch      1:13.1.2-9.el7ost       @rhelosp-9.0-puddle
openstack-nova-console.noarch        1:13.1.2-9.el7ost       @rhelosp-9.0-puddle
openstack-nova-novncproxy.noarch     1:13.1.2-9.el7ost       @rhelosp-9.0-puddle
openstack-nova-scheduler.noarch      1:13.1.2-9.el7ost       @rhelosp-9.0-puddle

*********
LOGS
*********

# nova flavor-show 100
+----------------------------+----------------------------------------------------------------------------------------+
| Property                   | Value                                                                                  |
+----------------------------+----------------------------------------------------------------------------------------+
| OS-FLV-DISABLED:disabled   | False                                                                                  |
| OS-FLV-EXT-DATA:ephemeral  | 0                                                                                      |
| disk                       | 5                                                                                      |
| extra_specs                | {"hw:cpu_realtime_mask": "^1", "hw:cpu_policy": "dedicated", "hw:cpu_realtime": "yes"} |
| id                         | 100                                                                                    |
| name                       | m1.rt                                                                                  |
| os-flavor-access:is_public | True                                                                                   |
| ram                        | 512                                                                                    |
| rxtx_factor                | 1.0                                                                                    |
| swap                       |                                                                                        |
| vcpus                      | 2                                                                                      |
+----------------------------+----------------------------------------------------------------------------------------+

# nova show vm1
+--------------------------------------+----------------------------------------------------------+
| Property                             | Value                                                    |
+--------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                                   |
| OS-EXT-AZ:availability_zone          | nova                                                     |
| OS-EXT-SRV-ATTR:host                 | serverA             |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | serverA             |
| OS-EXT-SRV-ATTR:instance_name        | instance-00000001                                        |
| OS-EXT-STS:power_state               | 1                                                        |
| OS-EXT-STS:task_state                | -                                                        |
| OS-EXT-STS:vm_state                  | active                                                   |
| OS-SRV-USG:launched_at               | 2016-12-15T18:58:13.000000                               |
| OS-SRV-USG:terminated_at             | -                                                        |
| accessIPv4                           |                                                          |
| accessIPv6                           |                                                          |
| config_drive                         |                                                          |
| created                              | 2016-12-15T18:57:58Z                                     |
| flavor                               | m1.rt (100)                                              |
| hostId                               | ec6c755bfc7436b29d35c316488387054e8c1dbe6ea8ad4283523d12 |
| id                                   | 354fd78d-6330-463e-8eaf-31543a0fbcef                     |
| image                                | cirros (4a0e5fdb-93ce-423c-b37f-7d61b1e0cfb6)            |
| key_name                             | -                                                        |
| metadata                             | {}                                                       |
| name                                 | vm1                                                      |
| os-extended-volumes:volumes_attached | []                                                       |
| progress                             | 0                                                        |
| public network                       | 172.24.4.227                                             |
| security_groups                      | default                                                  |
| status                               | ACTIVE                                                   |
| tenant_id                            | 4e7049ec4c84485998c4b7e6c4a10130                         |
| updated                              | 2016-12-15T18:58:13Z                                     |
| user_id                              | 97e24ea8ca164b229b0faaf5bf222aa0                         |
+--------------------------------------+----------------------------------------------------------+

# virsh dumpxml 2
..
....
  <vcpu placement='static'>2</vcpu>
  <cputune>
    <shares>2048</shares>
    <vcpupin vcpu='0' cpuset='10'/>
    <vcpupin vcpu='1' cpuset='4'/>
    <emulatorpin cpuset='4'/>
    <vcpusched vcpus='0' scheduler='fifo' priority='1'/>
  </cputune>
...
..

Comment 6 errata-xmlrpc 2016-12-21 16:38:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2992.html


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