Bug 1034873

Summary: hosted-engine --deploy fails with NFS v4
Product: Red Hat Enterprise Virtualization Manager Reporter: Andrew Dingman <adingman>
Component: ovirt-hosted-engine-setupAssignee: Yedidyah Bar David <didi>
Status: CLOSED ERRATA QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: medium    
Version: 3.3.0CC: dfediuck, fsimonce, iheim, pstehlik, sbonazzo, scohen, srevivo
Target Milestone: ---Keywords: Triaged
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 16:56:10 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 Andrew Dingman 2013-11-26 16:08:55 UTC
Description of problem:

'hosted-engine --deploy' fails when using an NFS share that is available over NFSv4 only


Version-Release number of selected component (if applicable):
ovirt-hosted-engine-setup-1.0.0-0.9.beta4.el6ev.noarch from is24.2 build


How reproducible: always


Steps to Reproduce:
1. run hosted-engine --deploy
2. when prompted for a storage path, provide a path which is available only over NFSv4

Actual results:
Setup fails after providing the path. Sometimes it presents as a bogus SSL error, and sometimes as a read timeout. The two errors I have seen are:

[ ERROR ] Failed to execute stage 'Environment customization': [Errno 1] _ssl.c:492: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

and

[ ERROR ] Failed to execute stage 'Environment customization': The read operation timed out


Expected results:
The share is mounted and setup continues

Additional info:
Both errors disappeared for me when I enabled NFS v3 on the storage server as well as NFSv4. Mounting the share manually from the same system worked both before and after enabling NFSv3

Comment 1 Sandro Bonazzola 2013-11-28 10:25:36 UTC
Federico, is NFS v4 supported by VDSM? If so, how may I specify to enable support for that while connecting the storage?

Comment 2 Federico Simoncelli 2013-11-28 12:30:19 UTC
(In reply to Sandro Bonazzola from comment #1)
> Federico, is NFS v4 supported by VDSM? If so, how may I specify to enable
> support for that while connecting the storage?

protocol_version in connectStorageServer:

Thread-8155::INFO::2013-11-28 07:27:35,768::logUtils::44::dispatcher::(wrapper) Run and protect: connectStorageServer(domType=1, spUUID='00000000-0000-0000-0000-000000000000', conList=[{'port': '', 'connection': '
vm-rhsrv1:/srv/export1/nfs/ovirt2', 'iqn': '', 'portal': '', 'user': '', 'protocol_version': '4', 'password': '******', 'id': '1f2b41ec-23a6-493c-9bfe-bb274ad45663'}], options=None)

Comment 3 Sandro Bonazzola 2013-11-29 15:51:33 UTC
Didi, can you change storage type selection dialog for adding NFSv3 and NFSv4 instead of NFS and change the protocol version accordingly?

Comment 4 Sandro Bonazzola 2013-12-09 15:58:37 UTC
Merged on upstream master and 1.0 branches.

Comment 7 errata-xmlrpc 2014-01-21 16:56:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-0083.html