Description of problem: I see that when hosted_storage is imported into UI mount options are not persisted in UI and database. Attaching the screenshot showing mount options not present in UI. Below is the query i ran to check in database and i do not see it their either. root@hostedenginesm2 ~]# su - postgres Last login: Tue Mar 21 06:36:20 EDT 2017 on pts/0 -bash-4.2$ psql -d engine psql (9.2.18) Type "help" for help. engine=# SELECT * FROM storage_server_connections; id | connection | user_name | password | iqn | port | portal | storage_type | mount_options | vf s_type | nfs_version | nfs_timeo | nfs_retrans | gluster_volume_id --------------------------------------+---------------------+-----------+----------+-----+------+--------+--------------+------------------------------------------------+--- --------+-------------+-----------+-------------+-------------------------------------- 228012f0-bc6e-47fe-922f-6fdbce532194 | 10.70.36.82:/data | | | | | 1 | 7 | backup-volfile-servers=10.70.36.83:10.70.36.84 | gl usterfs | | | | c5f995d3-938d-4eed-9159-386b52ca20be d832dd3e-e67c-4d94-850c-ede4bd259b4c | 10.70.36.82:/engine | | | | | 1 | 7 | | gl usterfs | | | | (2 rows) Version-Release number of selected component (if applicable): Red Hat Virtualization Manager Version: 4.1.1.2-0.1.el7 How reproducible: Always Steps to Reproduce: 1. Install latest RHV-H ISO 2. Deploy gluster using cockpit 3. Once deployment is done proceed to hosted engine deployment. 4. Create first master storage domain Actual results: Once master storage domain is created hosted_storage is imported to the UI but mount options are not persisted in UI and Database. Expected results: when hosted_storage is imported to the UI mount options should be persisted in UI and DB. Additional info:
Created attachment 1265072 [details] Attaching screenshot for hosted_storage
Yes, we know, that's why we hided the relevant query in ovirt-hosted-engine-setup. AFAIK for NFS storage domain, VDSM is neither reporting them back to the engine. Please see: https://bugzilla.redhat.com/show_bug.cgi?id=1402417 - Mount options are lost when storage is imported to the engine, please block it from the setup. https://bugzilla.redhat.com/show_bug.cgi?id=1426517 - Additional mount option for glusterfs volume as backend for HE storage
(In reply to Simone Tiraboschi from comment #2) > Yes, we know, that's why we hided the relevant query in > ovirt-hosted-engine-setup. AFAIK for NFS storage domain, VDSM is neither > reporting them back to the engine. Simone, but i have a question here. will this not effect restarting of engine if the primary server is down? > > Please see: > > https://bugzilla.redhat.com/show_bug.cgi?id=1402417 - Mount options are lost > when storage is imported to the engine, please block it from the setup. > > https://bugzilla.redhat.com/show_bug.cgi?id=1426517 - Additional mount > option for glusterfs volume as backend for HE storage In this bug i see that restarting HE setup causes the issue. But in my case there was no restart of HE setup.
(In reply to RamaKasturi from comment #3) > (In reply to Simone Tiraboschi from comment #2) > > Yes, we know, that's why we hided the relevant query in > > ovirt-hosted-engine-setup. AFAIK for NFS storage domain, VDSM is neither > > reporting them back to the engine. > > Simone, but i have a question here. will this not effect restarting of > engine if the primary server is down? Yes, it will. If the engine is down, ovirt-ha-agent will try to reconnect the storage according to how it's described under /etc/ovirt-hosted-engine/hosted-engine.conf and this includes the mnt_option field. The point is that, for additional hosts, that file is wrote by host-deploy according to what the engine knows about the storage. > > Please see: > > > > https://bugzilla.redhat.com/show_bug.cgi?id=1402417 - Mount options are lost > > when storage is imported to the engine, please block it from the setup. > > > > https://bugzilla.redhat.com/show_bug.cgi?id=1426517 - Additional mount > > option for glusterfs volume as backend for HE storage > > In this bug i see that restarting HE setup causes the issue. But in my case > there was no restart of HE setup. The root cause is not a restart of the hosted-engine-setup, the issue is VDSM not reporting back the mount options to the engine so the engine ignores them.
Please test this flow: + Run gdeploy with two volumes (HE and data). + After first host setup of HE with the mount options for replica set. + Check that the first HE host conf contains the mount options. + Add the data volume as SD to engine. + Wait for the HE SD import to complete after the data SD is added. + Check that mount options for replica were added to engine (please check how much time this takes to happen). + Only then deploy the two additional hosts. + See if the conf of the addtional hosts contains the mount option Please report on any issues.
(In reply to Yaniv Dary from comment #5) > Please test this flow: > + Run gdeploy with two volumes (HE and data). > + After first host setup of HE with the mount options for replica set. > + Check that the first HE host conf contains the mount options. > + Add the data volume as SD to engine. > + Wait for the HE SD import to complete after the data SD is added. > + Check that mount options for replica were added to engine (please check > how much time this takes to happen). > + Only then deploy the two additional hosts. > + See if the conf of the addtional hosts contains the mount option > > Please report on any issues. Hi Yaniv, This is the same flow what we follow currently in HC. When we follow this flow we see that mount options are not persisted in DB and UI. I see the options in /etc/ovirt-hosted-engine/hosted-engine.conf file. Thanks kasturi
(In reply to RamaKasturi from comment #6) > > Hi Yaniv, > > This is the same flow what we follow currently in HC. When we follow this > flow we see that mount options are not persisted in DB and UI. I see the > options in /etc/ovirt-hosted-engine/hosted-engine.conf file. > > Thanks > kasturi The engine queries the peers for the Gluster volume HCI or not. You do not need get it from the HE setup. Please work in this flow and retest, it should provide the peers for the volume.
Created attachment 1270404 [details] hosted_storage domain screenshot
just wanted to highlight , host deploy writes the mnt_options for the /etc/hosted-engine/hosted-engine.conf on all the nodes in the gluster cluster. problem here appears with hosted_storage domain imported into the UI does not have the mnt_options present
Re-targeting to 4.2.0 since it depends on bug #1373930 which has been targeted to 4.2.0
The mnt_options value is wrote by host-deploy on /etc/hosted-engine/hosted-engine.conf on all the hosts since the initial value is saved in the answer file of the first host on the hosted-engine configuration volume and the engine extracts it. That value is not saved in the engine DB (and so it's also not visibile in the UI) since VDSM doesn't report it back to the engine as https://bugzilla.redhat.com/show_bug.cgi?id=1373930 Always relying on the initial value from the answerfile is wrong since in that way we are always going to consume just the initial value (the set of three initial hosts) regardless of host that have been decommissioned and so on.
Kasturi, is this bug still relevant? If so, what's the impact?
(In reply to Sahina Bose from comment #12) > Kasturi, is this bug still relevant? If so, what's the impact? Implicitly not relevant for node 0
It's implicitly fixed by the new node-zero design. Moving to QE for testing.
Tested with RHV 4.2.3 and ovirt-hosted-engine-setup-2.2.18 After HE deployment, the mount options are available after importing HostedEngine Storage
This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018. Since the problem described in this bug report should be resolved in oVirt 4.2.2 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.