Bug 1999049

Summary: hosted engine installation fails if locale is Greek
Product: [oVirt] ovirt-hosted-engine-setup Reporter: Kosmas Mackrogamvrakis <kosmas>
Component: GeneralAssignee: Yedidyah Bar David <didi>
Status: CLOSED INSUFFICIENT_DATA QA Contact: meital avital <mavital>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.5.3CC: bugs, didi, stirabos
Target Milestone: ---Keywords: EasyFix
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-04 10:04:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kosmas Mackrogamvrakis 2021-08-30 10:26:28 UTC
Description of problem:

On fresh installation of hostedengine on a Lenovo Server with CentOS Stream 8, while the answerfile is being fed to the appliance, it fails with:
"Install selinux module /usr/share/ovirt-engine/selinux/ansible-runner-service.cil\n[ ERROR ] Failed to execute stage 'Misc configuration': Command '/usr/sbin/semanage' failed to execute"

Version-Release number of selected component (if applicable):
ovirt release 4.4

How reproducible:

Steps to Reproduce:
1. Install CentOS 8 stream with Greek locales as default
2. Start hosted engine installation
3. Hosted engine install fails

Actual results:
Hosted engine installation fails with:
"Install selinux module /usr/share/ovirt-engine/selinux/ansible-runner-service.cil\n[ ERROR ] Failed to execute stage 'Misc configuration': Command '/usr/sbin/semanage' failed to execute"

Expected results:
Engine setup complete successfully.

Additional info:

Comment 1 RHEL Program Management 2021-08-31 05:53:12 UTC
The documentation text flag should only be set after 'doc text' field is provided. Please provide the documentation text and set the flag to '?' again.

Comment 2 Sandro Bonazzola 2022-04-01 08:45:28 UTC
Didi, this seems to be quick to fix, running the deployment forcing LC_ALL=C. Can you please have a look?

Comment 3 Yedidyah Bar David 2022-04-04 06:23:39 UTC
Please attach the setup logs. Thanks.

Comment 4 Kosmas Mackrogamvrakis 2022-04-04 09:25:01 UTC
Sorry, it is a long time since the installation. I do not have the logs any more.
I assume it can be recreated, but I am unable to perform a new installation at the time being.

Comment 5 Yedidyah Bar David 2022-04-04 10:04:47 UTC
Very well. I am closing, for now. If this is reproducible, please reopen, with complete logs.

That said, if semanage failed, that's a bug in libsemanage, not in oVirt.

Also, it might be a duplicate of bug 1913224, but can't tell without more information.

Re Sandro's suggestion in comment 2: I'd rather not, without more details, because IMO
if something fails with a non-US locale, that's a bug, and should be fixed - not worked
around. Most likely, such a workaround would prevent getting localized error messages,
for one thing.

Thanks for the report, anyway!