How to use virsh cpu-compare and cpu-baseline to determine the cpu compatibility ?

Solution Verified - Updated -

Issue

  • How to use virsh cpu-compare and cpu-baseline to determine the cpu compatibility ?
  • Made the following setting in /etc/nova/nova.conf file on both compute nodes still instance live-migration is getting failed due to Unacceptable CPU error.
# grep cpu_mode /etc/nova/nova.conf
cpu_mode=host-model
  • Live-migration is getting failed with following error message.
# nova --debug live-migration 145d6082-0034-44b0-a944-632dedb36608 node1

And the trace error was:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 908, in main
    OpenStackComputeShell().main(argv)
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 835, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 3396, in do_live_migration
    args.disk_over_commit)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 351, in live_migrate
    disk_over_commit)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 1122, in live_migrate
    'disk_over_commit': disk_over_commit})
  File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 1238, in _action
    return self.api.client.post(url, body=body)
  File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 176, in post
    return self.request(url, 'POST', **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 92, in request
    raise exceptions.from_response(resp, body, url, method)
BadRequest: Unacceptable CPU info: CPU doesn't have compatibility.

Environment

  • Red Hat OpenStack Platform 10.0 (RHOSP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content