RHV Host installation failed due to "Configure host for vdsm failed to execute" error
Issue
RHV-H installation failed with folowing error in the /var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible
2022-03-02 13:20:06 MYT - fatal: [host]: FAILED! => {"changed": true, "cmd": ["vdsm-tool", "configure", "--force"], "delta": "0:00:05.144490", "end": "2022-03-02 13:20:03.622760", "msg": "n
on-zero return code", "rc": 1, "start": "2022-03-02 13:19:58.478270", "stderr": "libsepol.context_from_record: type cloud_what_var_cache_t is not defined\nlibsepol.context_from_record: could not create context s
tructure\nlibsepol.context_from_string: could not create context structure\nlibsepol.sepol_context_to_sid: could not convert system_u:object_r:cloud_what_var_cache_t:s0 to sid\ninvalid context system_u:object_r:
cloud_what_var_cache_t:s0\nlibsemanage.semanage_validate_and_compile_fcontexts: setfiles returned error code 255.\nTraceback (most recent call last):\n File \"/usr/bin/vdsm-tool\", line 209, in main\n return
So vdsm-tool
fails with following error:
libsepol.context_from_record: type cloud_what_var_cache_t is not defined
libsepol.context_from_record: type cloud_what_var_cache_t is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert system_u:object_r:cloud_what_var_cache_t:s0 to sid
invalid context system_u:object_r:cloud_what_var_cache_t:s0
libsemanage.semanage_validate_and_compile_fcontexts: setfiles returned error code 255.
Environment
- Red Hat Virtualization (RHV) 4.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.