Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display ESXi model, CPU model and code name at deploy_vm failure #554

Merged
merged 3 commits into from
Mar 7, 2024

Conversation

keirazhang
Copy link
Contributor

Added a script to query Intel CPU code name from Intel website, and display the ESXi model, CPU model information at deploy_vm failure. Failures on 70GA, 71U1 with Intel Skylake, Ice Lake, and Cascade Lake CPU, print known issue.

failed_tasks.log

2024-03-02 11:00:48,002 | Failed at Play [1_deploy_vm] *******************************

2024-03-02 11:00:48,002 | TASK [1_deploy_vm][Check VMware Tools is running and collects guest OS fullname successfully] 
task path: /home/qiz/workspace/github/ansible-vsphere-gos-validation/common/vm_wait_guest_fullname.yml:46
fatal: [localhost]: FAILED! => {
    "assertion": "vm_guestinfo.instance.guest.toolsRunningStatus == \"guestToolsRunning\"",
    "changed": false,
    "evaluated_to": false,
    "msg": "It's timed out for VMware Tools collecting guest OS fullname in 5 seconds. Current VMware Tools running status is 'guestToolsNotRunning', and guest OS fullname is ''."
}
error message:
It's timed out for VMware Tools collecting guest OS fullname in 5 seconds. Current VMware Tools running status is 'guestToolsNotRunning', and guest OS fullname is ''.


2024-03-02 11:00:49,002 | TASK [1_deploy_vm][Display ESXi and CPU model information at deployment failure] 
task path: /home/qiz/workspace/github/ansible-vsphere-gos-validation/linux/deploy_vm/deploy_vm.yml:63
ok: [localhost] => {
    "msg": "VM deployment failed on server VMware, Inc. VMware7,1 with ESXi version 7.0.1 build 16850804 installed. The server's CPU model is Intel(R) Xeon(R) Gold 6330 CPU @ 2.00GHz (code name Ice Lake)"
}
error message:
VM deployment failed on server VMware, Inc. VMware7,1 with ESXi version 7.0.1 build 16850804 installed. The server's CPU model is Intel(R) Xeon(R) Gold 6330 CPU @ 2.00GHz (code name Ice Lake)

known_issues.log

2024-03-02 11:00:49,002 | Known Issue in Play [1_deploy_vm] **************************

2024-03-02 11:00:49,002 | TASK [1_deploy_vm][Known issue - Linux guest OS hung] ******
task path: /home/qiz/workspace/github/ansible-vsphere-gos-validation/linux/deploy_vm/deploy_vm.yml:73
ok: [localhost] => {
    "msg": "Linux guest OS could be hung on ESXi 7.0.1 server based on Intel Ice Lake CPU. Refer to KB articles https://kb.vmware.com/s/article/92361 and https://kb.vmware.com/s/article/91250."
}

Signed-off-by: Qi Zhang <qi-keira.zhang@broadcom.com>
@keirazhang keirazhang added this to the 3.2 milestone Mar 4, 2024
Signed-off-by: Qi Zhang <qi-keira.zhang@broadcom.com>
@keirazhang keirazhang changed the title [Linux] Display ESXi model, CPU model and code name at deploy_vm failure Display ESXi model, CPU model and code name at deploy_vm failure Mar 4, 2024
Signed-off-by: Qi Zhang <qi-keira.zhang@broadcom.com>
Copy link
Collaborator

@123lzxm 123lzxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

Copy link
Member

@Tomorrow9 Tomorrow9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@keirazhang keirazhang merged commit fe93a81 into vmware:main Mar 7, 2024
@keirazhang keirazhang deleted the query_cpu_codename branch March 7, 2024 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants