Bug 1659348

Summary: VM Error doesn't show in events page
Product: Container Native Virtualization (CNV) Reporter: Guohua Ouyang <gouyang>
Component: User ExperienceAssignee: Filip Krepinsky <fkrepins>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.4CC: cnv-qe-bugs, gouyang, mlibra, ncredi, sgordon, tjelinek
Target Milestone: ---   
Target Release: 1.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 1.4.0-10 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-05 10:51:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Guohua Ouyang 2018-12-14 07:17:47 UTC
Description of problem:
Once there is an "VM Error" on vm state, hang mouse on ”VM Error", it can show the details about the error. By clicking the link, it goes to events page, but nothing shows there.

Below are VM error information from command line, it should show in the UI.
$ oc describe vm testurl1a

Status:
  Conditions:
    Last Probe Time:       <nil>
    Last Transition Time:  2018-12-14T06:50:18Z
    Message:               Failed to create DataVolume: DataVolume.cdi.kubevirt.io "rootdisk-testurl1A" is invalid: metadata.name: Invalid value: "rootdisk-testurl1A": a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
    Reason:                FailedCreate
    Status:                True
    Type:                  Failure
Events:
  Type     Reason                  Age                From                       Message
  ----     ------                  ----               ----                       -------
  Warning  FailedDataVolumeCreate  30s (x15 over 1m)  virtualmachine-controller  Error creating DataVolume rootdisk-testurl1A: DataVolume.cdi.kubevirt.io "rootdisk-testurl1A" is invalid: metadata.name: Invalid value: "rootdisk-testurl1A": a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')


Version-Release number of selected component (if applicable):
kubevirt-web-ui:v1.4.0-5

How reproducible:


Steps to Reproduce:
1. create a VM with hostname has uppercase letter
2. choose the provision source "URL"
3. fill the correct URL and goes on to create the VM.

Actual results:
VM is created and its state is "VM Error", click "VM Error" goes to event page, it's empty in events.

Expected results:
The error shows in the vm event page.

Additional info:

Comment 1 Marek Libra 2019-01-15 13:58:37 UTC
Fixed by: https://github.com/kubevirt/web-ui/pull/170

Comment 2 Guohua Ouyang 2019-01-21 08:02:46 UTC
verified on 1.4.0-10, the related errors are showing in events.