Bug 1343383 - Connection to storage server failed / mnt_options=None in hosted-engine.conf
Summary: Connection to storage server failed / mnt_options=None in hosted-engine.conf
Keywords:
Status: CLOSED DUPLICATE of bug 1342988
Alias: None
Product: ovirt-hosted-engine-setup
Classification: oVirt
Component: Plugins.NFS
Version: 1.3.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-3.6.8
: ---
Assignee: Sandro Bonazzola
QA Contact: meital avital
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-07 08:55 UTC by Jiri Belka
Modified: 2017-05-11 09:29 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-06-08 07:36:45 UTC
oVirt Team: Integration
Embargoed:
dfediuck: ovirt-3.6.z?
dfediuck: ovirt-4.0.0?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.