Bug 782810

Summary: Engine-setup failed when hostname is too long
Product: [Retired] oVirt Reporter: Vaclav Ehrlich <vehrlich>
Component: ovirt-engine-installerAssignee: Eyal Edri <eedri>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acathrow, iheim, oschreib, tpelka, ykaul
Target Milestone: ---   
Target Release: 3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-09 07:57:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
engine-setup log none

Description Vaclav Ehrlich 2012-01-18 15:13:17 UTC
Description of problem:
When finishing oVirt installation engine-setup end with error. Creating of certificate authority is not possible if is used too long host name.

Version-Release number of selected component (if applicable):
oVirt 3.0.0_0001-1.2.fc16

How reproducible:
Always

Steps to Reproduce:
1.Follow instructions to install oVirt http://ovirt.org/wiki/Installing_ovirt_from_rpm
2.When run engine-setup set long host name (42 characters)
3.Continue with set-up until the end
  
Actual results:
Set-up finish with error with creating certificate authority

Expected results:
Set-up create certificate authority and finish without errors.

Additional info:
Or user should be informed with maximum length of hostname.

Comment 1 Ofer Schreiber 2012-01-18 15:51:28 UTC
1. Please provide the relevant setup logs
2. I think we should restrict the hostname length (or cut it), since the actuall issue here is that openssl doesn't allow really long subjects (which is usually hostname + 5 digit random)

Comment 2 Eyal Edri 2012-01-18 16:23:14 UTC
Regarding the solution,

Miki, is there a preference here for truncating the hostname or limiting it in the setup?

Comment 3 Vaclav Ehrlich 2012-01-19 09:47:52 UTC
Created attachment 556231 [details]
engine-setup log

Show the bug with hostname long 55 characters

Comment 4 Itamar Heim 2012-08-09 07:57:11 UTC
closing ON_QA bugs as oVirt 3.1 was released:
http://www.ovirt.org/get-ovirt/