[RHV] Hosted engine deploy fails due to 'Permission denied: '/etc/ipsec.conf'' message
Issue
The self-hosted engine deploy fails with following message in the setup log
"OSError: Failed to configure OVN controller."], "stdout": "", "stdout_lines": []
In the /var/log/messages log
Jan 30 13:06:58 test ovs-ctl[59847]: PermissionError: [Errno 13] Permission denied: '/etc/ipsec.conf'
Jan 30 13:06:58 test journal[59847]: ovs| 2 | ovs-monitor-ipsec | ERR | traceback#012Traceback (most recent call last):#012 File "/usr/share/openvswitch/scripts/ovs-monitor-ipsec", line 1297, in <module>#012
main()#012 File "/usr/share/openvswitch/scripts/ovs-monitor-ipsec", line 1243, in main#012 not args.no_restart_ike_daemon)#012 File "/usr/share/openvswitch/scripts/ovs-monitor-ipsec", line 984, in __init_
_#012 self.ike_helper.restart_ike_daemon()#012 File "/usr/share/openvswitch/scripts/ovs-monitor-ipsec", line 460, in restart_ike_daemon#012 f = open(self.IPSEC_CONF, "w")#012PermissionError: [Errno 13] Pe
rmission denied: '/etc/ipsec.conf'
Jan 30 13:06:58 test systemd[1]: openvswitch-ipsec.service: Control process exited, code=exited status=1
Jan 30 13:06:58 test systemd[1]: openvswitch-ipsec.service: Failed with result 'exit-code'.
Jan 30 13:06:58 testsystemd[1]: Failed to start OVS IPsec daemon.
Environment
- Red Hat Virtualization 4.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.