| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
@weizhouapache can you explain it me a little bit better. if i understand it correctly if guestosmapping and host is null then we set guestOS.getDisplayName(). why display name? maybe i stand on the line 😕 |
Sorry, something went wrong.
@svenvogel mysql> select id,name,display_name from guest_os where id in (289,290); +-----+------+-----------------------------+ | id | name | display_name | +-----+------+-----------------------------+ | 289 | NULL | Debian GNU/Linux 9 (32-bit) | | 290 | NULL | Debian GNU/Linux 9 (64-bit) | +-----+------+-----------------------------+ 2 rows in set (0.01 sec) however, in guest_os_hypervisor, there is no record for these guest oses on kvm mysql> select * from guest_os_hypervisor where guest_os_id in (289,290) and hypervisor_type='KVM'; Empty set (0.00 sec) when we start a vm with Debian 9, in StartCommand it shows "arch":"x86_64","os":"Debian GNU/Linux 9 (64-bit)","platformEmulator":"Other" so vm is started with ide disk and e1000 nic. with this change, "platformEmulator" will be set to same value as "os" |
Sorry, something went wrong.
|
Some testing required - @DaanHoogland @andrijapanicsb |
Sorry, something went wrong.
|
@andrijapanicsb a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-856 |
Sorry, something went wrong.
| } | ||
| if (guestOsMapping == null || host == null) { | ||
| to.setPlatformEmulator("Other"); | ||
| to.setPlatformEmulator(guestOS.getDisplayName()); |
There was a problem hiding this comment.
@ustcweizhou how about we check and fallback to "Other" in case guestOS.getDisplayName() is null or empty (unlikely but just to make code more defensive)?
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM, left a minor remark. Did not test it.
Sorry, something went wrong.
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Sorry, something went wrong.
|
sorry @weizhouapache, i editted according to @rhtyd 's comment (kinda, revert if you want) |
Sorry, something went wrong.
|
@DaanHoogland thanks Daan ! |
Sorry, something went wrong.
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-887 |
Sorry, something went wrong.
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Sorry, something went wrong.
|
Trillian test result (tid-1015)
|
Sorry, something went wrong.
|
Tests LGTM, the failures are known issue |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM based on code changes and travis
Sorry, something went wrong.
When we add new guest os, sometimes we missed the records in guest_os_hypervisor. However, the guest disk model (virtio/ide) is determined by record in the table. It causes the issue that some new guest os(eg Debian 8/9) uses e1000 instead of virtio nic, and ide disk instead of virtio disk. To fix the issue permanantly, pass the guest os name in guest_os if the record for kvm is not found in guest_os_hypervisor. Related commit:7ac9f00eeeb4cd37ec39efeba066e799b581b1a0
When we add new guest os, sometimes we missed the records in guest_os_hypervisor. However, the guest disk model (virtio/ide) is determined by record in the table. It causes the issue that some new guest os(eg Debian 8/9) uses e1000 instead of virtio nic, and ide disk instead of virtio disk. To fix the issue permanantly, pass the guest os name in guest_os if the record for kvm is not found in guest_os_hypervisor. Related commit:7ac9f00eeeb4cd37ec39efeba066e799b581b1a0
When we add new guest os, sometimes we missed the records in guest_os_hypervisor. However, the guest disk model (virtio/ide) is determined by record in the table. It causes the issue that some new guest os(eg Debian 8/9) uses e1000 instead of virtio nic, and ide disk instead of virtio disk. To fix the issue permanantly, pass the guest os name in guest_os if the record for kvm is not found in guest_os_hypervisor. Related commit:7ac9f00eeeb4cd37ec39efeba066e799b581b1a0
When we add new guest os, sometimes we missed the records in guest_os_hypervisor. However, the guest disk model (virtio/ide) is determined by record in the table. It causes the issue that some new guest os(eg Debian 8/9) uses e1000 instead of virtio nic, and ide disk instead of virtio disk. To fix the issue permanantly, pass the guest os name in guest_os if the record for kvm is not found in guest_os_hypervisor. Related commit:7ac9f00eeeb4cd37ec39efeba066e799b581b1a0
| Back | FazBrowse Home | New Git URL |
Description
When we add new guest os, sometimes we missed the records in guest_os_hypervisor.
However, the guest disk model (virtio/ide) is determined by record in the table.
It causes the issue that some new guest os(eg Debian 8/9) uses e1000 instead of virtio nic, and ide disk instead of virtio disk.
To fix the issue permanantly, pass the guest os name in guest_os if the record for kvm is not found in guest_os_hypervisor.
Related commit:7ac9f00eeeb4cd37ec39efeba066e799b581b1a0
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?