Bug 1343383

Summary: Connection to storage server failed / mnt_options=None in hosted-engine.conf
Product: [oVirt] ovirt-hosted-engine-setup Reporter: Jiri Belka <jbelka>
Component: Plugins.NFSAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED DUPLICATE QA Contact: meital avital <mavital>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.3.7.0CC: bugs, dfediuck, jbelka, stirabos
Target Milestone: ovirt-3.6.8Flags: dfediuck: ovirt-3.6.z?
dfediuck: ovirt-4.0.0?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
Target Release: ---   
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: 2016-06-08 07:36:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Belka 2016-06-07 08:55:47 UTC
Description of problem:

My HE env was not working and I see following messages:

~~~
Jun 07 10:48:34 10-34-60-151.example.com ovirt-ha-agent[24878]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.agent.Agent ERROR Error: 'Connection to storage server failed' - trying to restart agent
Jun 07 10:48:34 10-34-60-151.example.com ovirt-ha-agent[24878]: ERROR:ovirt_hosted_engine_ha.agent.agent.Agent:Error: 'Connection to storage server failed' - trying to restart agent
~~~

Inspecting HE agent log I see:

~~~
# grep 'nfs.*None' /var/log/vdsm/vdsm.log | tail -n1
Thread-334::DEBUG::2016-06-07 10:46:45,416::mount::229::Storage.Misc.excCmd::(_runcmd) /usr/bin/taskset --cpu-list 0-1 /usr/bin/sudo -n /usr/bin/mount -t nfs -o soft,nosharecache,timeo=600,retrans=6,nfsvers=3,None 10.34.63.199:/jbelka/jb-vhe1 /rhev/data-center/mnt/10.34.63.199:_jbelka_jb-vhe1 (cwd None)
~~~

See ',None' as mount option, this is odd.

But it is taken from hosted-engine.conf, thus maybe setup put wrong value in the config?

~~~
# grep =None /etc/ovirt-hosted-engine/hosted-engine.conf 
mnt_options=None
~~~

Version-Release number of selected component (if applicable):
ovirt-hosted-engine-setup-1.3.7.1-1.el7ev.noarch

How reproducible:
??

Steps to Reproduce:
1. hosted-engine --deploy on 3.6.7
2. inspect mnt_options in hosted-engine.conf
3. inspect vdsm.log for mount options for HE shared storage

Actual results:
mnt_options=None in hosted-engine.conf seems to cause failure to mount HE shared storage

Expected results:
mnt_options shoud probably have real existing option values and not python 'None'

Additional info:
to make HE work again I put following as workaround:

~~~
# grep mnt_options /etc/ovirt-hosted-engine/hosted-engine.conf 
mnt_options=noexec,nosuid,nodev,noatime
~~~

Comment 3 Doron Fediuck 2016-06-08 06:54:00 UTC
Jiri,
which host are you using (RHEV-H / NGN / RHEL-H)?

Comment 4 Simone Tiraboschi 2016-06-08 07:36:45 UTC

*** This bug has been marked as a duplicate of bug 1342988 ***

Comment 5 Jiri Belka 2016-06-08 08:12:30 UTC
(In reply to Doron Fediuck from comment #3)
> Jiri,
> which host are you using (RHEV-H / NGN / RHEL-H)?

(Vanilla) RHEL7.2.