Bug 1425774

Summary: add a link to engine's certificate on upload image network error event
Product: [oVirt] ovirt-engine Reporter: Daniel Erez <derez>
Component: Frontend.WebAdminAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Natalie Gavrielov <ngavrilo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: bugs, lveyde, sellis, ylavi
Target Milestone: ovirt-4.1.2Flags: rule-engine: ovirt-4.1+
Target Release: 4.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-23 08:20:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Erez 2017-02-22 11:49:29 UTC
Created attachment 1256423 [details]
missing_certificate_event

Description of problem:
Upon uploading an image from the WebAdmin, if the engine certificate is missing in the browser, a link to the certificate should be a part of the event for easier mitigation of the issue.

Version-Release number of selected component (if applicable):
4.1

How reproducible:
100%

Steps to Reproduce:
1. Have a browser with no engine certificate
2. Upload an image from the WebAdmin

Actual results:
The following event is displayed:
Unable to upload image to disk ${DiskId} due to a network error. Make sure ovirt-imageio-proxy service is installed and configured, and ovirt-engine's certificate is registered as a valid CA in the browser.

Expected results:
The event includes an (hard-coded) link:
The certificate can be fetched from https://<engine_url>/ovirt-engine/services/pki-resource?resource=ca-certificate&format=X509-PEM-CA 

Additional info:
Attached is a screenshot

Comment 1 Natalie Gavrielov 2017-04-30 11:47:57 UTC
Verified, rhevm-4.1.2-0.1.el7.noarch

Unable to upload image to disk ce410d60-3bb5-44cd-b96a-5c44babc8fc8 due to a network error. Make sure ovirt-imageio-proxy service is installed and configured, and ovirt-engine's certificate is registered as a valid CA in the browser. The certificate can be fetched from https://<engine_url>/ovirt-engine/services/pki-resource?resource=ca-certificate&format=X509-PEM-CA