aws i3.metal shows up as KVM VM, not baremetal

Bug #1773021 reported by Joshua Powers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Client
Confirmed
Medium
Unassigned

Bug Description

Summary:
Added the new i3.metal AWS instance type [1] to my Landscape and it shows up as a KVM VM and not as a baremetal system. According to AWS these are baremetal systems and not VMs so they should therefore be showing up as metal.

[1] https://aws.amazon.com/blogs/aws/new-amazon-ec2-bare-metal-instances-with-direct-access-to-hardware/

Expected Result:
No VM Type information

Actual Result:
VM Type: KVM

Steps to Reproduce:
1. Launch i3.metal on AWS with Xenial daily image
2. Install landscape-client and add to account
3. View machine page or hardware tab and see wrong type

Other:
Feel free to contact me for my Landscape info to view

Revision history for this message
Joshua Powers (powersj) wrote :

This occurs with both Xenial and Bionic

tags: added: id-5b05dd560239155f0a42e964
Simon Poirier (simpoir)
Changed in landscape-client:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Mitch Burton (mitchburton) wrote :

Some testing on a noble i3.metal instance:

ubuntu@ip-172-31-38-62:~$ sudo dmidecode -s system-manufacturer
Amazon EC2
ubuntu@ip-172-31-38-62:~$ sudo dmidecode | grep Product
 Product Name: i3.metal
 Product Name: Not Specified
ubuntu@ip-172-31-38-62:~$ sudo dmidecode -s system-product-name
i3.metal
ubuntu@ip-172-31-38-62:~$ systemd-detect-virt
none
ubuntu@ip-172-31-38-62:~$ sudo virt-what
aws
ubuntu@ip-172-31-38-62:~$ sudo imvirt
Physical

The issue seems to be that VM determination in landscape-client relies solely on the DMI vendor name: https://github.com/canonical/landscape-client/blob/7c312a397897d45c0512a04751f6962e9bce7fb1/landscape/lib/vm_info.py#L64

For i3.metal instances, the vendor name is "Amazon EC2", which is assumed to be KVM. It should be more sophisticated than that.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.