<div dir="ltr">Hi, <div><br></div><div>I wonder if someone can help. After a system reboot, the Hosted-Agent isn&#39;t running. This is on a fresh installaion CentOS Linux release 7.4.1708 running ovirt-release41-4.1.7-1.el7.centos.noarch. Gluster is setup on 3 nodes, but hosted-engine is only setup on the 1st node for now. </div><div><br></div><div>[root@virt1 ~]# hosted-engine --console</div><div>Virtual machine does not exist</div><div>The engine VM is not on this host</div><div><br></div><div>[root@virt1 ~]# hosted-engine --vm-status</div><div>The hosted engine configuration has not been retrieved from shared storage. Please ensure that ovirt-ha-agent is running and the storage server is reachable.</div><div><br></div><div><div><br></div><div>[root@virt1 ~]# ps ax | grep ovirt-ha-agent</div><div>41309 ?        Rsl    0:14 /usr/bin/python /usr/share/ovirt-hosted-engine-ha/ovirt-ha-agent --no-daemon</div><div>42818 pts/0    S+     0:00 grep --color=auto ovirt-ha-agent</div></div><div><br></div><div><br></div><div><div>[root@virt1 ~]# mount | grep engine</div><div>/dev/mapper/storage-engine on /storage/engine type xfs (rw,relatime,seclabel,attr2,inode64,sunit=1024,swidth=2048,noquota)</div><div>virt1:/engine on /mnt/engine type fuse.glusterfs (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,max_read=131072)</div><div>virt1:/engine on /rhev/data-center/mnt/glusterSD/virt1:_engine type fuse.glusterfs (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,max_read=131072)</div></div><div><br></div><div><br></div><div>And then I see this error:</div><div><br></div><div><div>[root@virt1 ~]# systemctl status ovirt-ha-agent -l</div><div>● ovirt-ha-agent.service - oVirt Hosted Engine High Availability Monitoring Agent</div><div>   Loaded: loaded (/usr/lib/systemd/system/ovirt-ha-agent.service; enabled; vendor preset: disabled)</div><div>   Active: active (running) since Thu 2017-11-16 07:44:43 SAST; 4min 23s ago</div><div> Main PID: 41309 (ovirt-ha-agent)</div><div>   CGroup: /system.slice/ovirt-ha-agent.service</div><div>           └─41309 /usr/bin/python /usr/share/ovirt-hosted-engine-ha/ovirt-ha-agent --no-daemon</div><div><br></div><div>Nov 16 07:48:30 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config ERROR Unable to identify the OVF_STORE volume, falling back to initial vm.conf. Please ensure you already added your first data domain for regular VMs</div><div>Nov 16 07:48:30 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config ERROR &#39;version&#39; is not stored in the HE configuration image</div><div>Nov 16 07:48:39 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config ERROR Unable to identify the OVF_STORE volume, falling back to initial vm.conf. Please ensure you already added your first data domain for regular VMs</div><div>Nov 16 07:48:39 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config ERROR &#39;version&#39; is not stored in the HE configuration image</div><div>Nov 16 07:48:41 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config ERROR Unable to identify the OVF_STORE volume, falling back to initial vm.conf. Please ensure you already added your first data domain for regular VMs</div><div>Nov 16 07:48:41 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config ERROR &#39;version&#39; is not stored in the HE configuration image</div><div>Nov 16 07:48:41 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.agent.Agent ERROR Traceback (most recent call last):</div><div>                                                            File &quot;/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/agent.py&quot;, line 191, in _run_agent</div><div>                                                              return action(he)</div><div>                                                            File &quot;/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/agent.py&quot;, line 64, in action_proper</div><div>                                                              return he.start_monitoring()</div><div>                                                            File &quot;/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py&quot;, line 423, in start_monitoring</div><div>                                                              for old_state, state, delay in self.fsm:</div><div>                                                            File &quot;/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py&quot;, line 127, in next</div><div>                                                              new_data = self.refresh(self._state.data)</div><div>                                                            File &quot;/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/state_machine.py&quot;, line 123, in refresh</div><div>                                                              ] = self.hosted_engine.min_memory_threshold</div><div>                                                            File &quot;/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py&quot;, line 183, in min_memory_threshold</div><div>                                                              return int(self._config.get(config.VM, config.MEM_SIZE))</div><div>                                                            File &quot;/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/env/config.py&quot;, line 226, in get</div><div>                                                              key</div><div>                                                          KeyError: &#39;Configuration value not found: file=/var/run/ovirt-hosted-engine-ha/vm.conf, key=memSize&#39;</div><div>Nov 16 07:48:41 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.agent.Agent ERROR Trying to restart agent</div><div>Nov 16 07:49:01 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config ERROR Unable to identify the OVF_STORE volume, falling back to initial vm.conf. Please ensure you already added your first data domain for regular VMs</div><div>Nov 16 07:49:01 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config ERROR &#39;version&#39; is not stored </div></div><div><br></div><div><br></div><div><br></div><div>All the nodes resolve fine, and has been added to /etc/hosts:</div><div><br></div><div><div>[root@virt1 ~]# systemctl status ovirt-ha-agent -l</div><div>● ovirt-ha-agent.service - oVirt Hosted Engine High Availability Monitoring Agent</div><div>   Loaded: loaded (/usr/lib/systemd/system/ovirt-ha-agent.service; enabled; vendor preset: disabled)</div><div>   Active: active (running) since Thu 2017-11-16 07:44:43 SAST; 4min 23s ago</div><div> Main PID: 41309 (ovirt-ha-agent)</div><div>   CGroup: /system.slice/ovirt-ha-agent.service</div><div>           └─41309 /usr/bin/python /usr/share/ovirt-hosted-engine-ha/ovirt-ha-agent --no-daemon</div><div><br></div><div>Nov 16 07:48:30 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config ERROR Unable to identify the OVF_STORE volume, falling back to initial vm.conf. Please ensure you already added your first data domain for regular VMs</div><div>Nov 16 07:48:30 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config ERROR &#39;version&#39; is not stored in the HE configuration image</div><div>Nov 16 07:48:39 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config ERROR Unable to identify the OVF_STORE volume, falling back to initial vm.conf. Please ensure you already added your first data domain for regular VMs</div><div>Nov 16 07:48:39 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config ERROR &#39;version&#39; is not stored in the HE configuration image</div><div>Nov 16 07:48:41 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config ERROR Unable to identify the OVF_STORE volume, falling back to initial vm.conf. Please ensure you already added your first data domain for regular VMs</div><div>Nov 16 07:48:41 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config ERROR &#39;version&#39; is not stored in the HE configuration image</div><div>Nov 16 07:48:41 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.agent.Agent ERROR Traceback (most recent call last):</div><div>                                                            File &quot;/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/agent.py&quot;, line 191, in _run_agent</div><div>                                                              return action(he)</div><div>                                                            File &quot;/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/agent.py&quot;, line 64, in action_proper</div><div>                                                              return he.start_monitoring()</div><div>                                                            File &quot;/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py&quot;, line 423, in start_monitoring</div><div>                                                              for old_state, state, delay in self.fsm:</div><div>                                                            File &quot;/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/fsm/machine.py&quot;, line 127, in next</div><div>                                                              new_data = self.refresh(self._state.data)</div><div>                                                            File &quot;/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/state_machine.py&quot;, line 123, in refresh</div><div>                                                              ] = self.hosted_engine.min_memory_threshold</div><div>                                                            File &quot;/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py&quot;, line 183, in min_memory_threshold</div><div>                                                              return int(self._config.get(config.VM, config.MEM_SIZE))</div><div>                                                            File &quot;/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/env/config.py&quot;, line 226, in get</div><div>                                                              key</div><div>                                                          KeyError: &#39;Configuration value not found: file=/var/run/ovirt-hosted-engine-ha/vm.conf, key=memSize&#39;</div><div>Nov 16 07:48:41 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.agent.Agent ERROR Trying to restart agent</div><div>Nov 16 07:49:01 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config ERROR Unable to identify the OVF_STORE volume, falling back to initial vm.conf. Please ensure you already added your first data domain for regular VMs</div><div>Nov 16 07:49:01 virt ovirt-ha-agent[41309]: ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine.config ERROR &#39;version&#39; is not stored </div></div><div><br></div><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Kind Regards<br>Rudi Ahlers<br>Website: <a href="http://www.rudiahlers.co.za" target="_blank">http://www.rudiahlers.co.za</a><br></div>
</div></div>