Identify virt type of PowerVM and KVM on Power

Using platform and model values as the criteria to distinguish KVM
on Power from PowerVM. Further info of platform and model is listed below.
- Host for KVM on Power
  platform        : PowerNV
  model           : 8247-22L
- VM running on KVM on Power
  platform        : pSeries
  model           : IBM pSeries (emulated by qemu)
- PowerVM (VM or NovaLink host)
  platform        : pSeries
  model           : IBM,8247-22L

Change-Id: I3d19ada78038caafdb3a89e8ddf5a91041e31e60
This commit is contained in:
Qing Wu Wang 2016-10-19 04:05:45 -05:00
parent 21c3727914
commit e659628047

View File

@ -27,6 +27,9 @@
when: cpuinfo_contents.stdout.find('vmx') != -1
or cpuinfo_contents.stdout.find('svm') != -1
or cpuinfo_contents.stdout.find('PowerNV') != -1
or (cpuinfo_contents.stdout.find('pSeries') != -1
and cpuinfo_contents.stdout.find('qemu') != -1
and ansible_architecture == 'ppc64le')
tags:
- nova-virt-type-set
@ -36,6 +39,7 @@
when:
- cpuinfo_contents.stdout.find('pSeries') != -1
- ansible_architecture == 'ppc64le'
- cpuinfo_contents.stdout.find('qemu') == -1
tags:
- nova-virt-type-set