Bug 1711672 - hosted-engine-setup fails if LANGUAGE set to some local language
Summary: hosted-engine-setup fails if LANGUAGE set to some local language
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-ansible-collection
Classification: oVirt
Component: hosted-engine-setup
Version: unspecified
Hardware: Unspecified
OS: Linux
high
high
Target Milestone: ovirt-4.3.6
: 1.0.27
Assignee: Ido Rosenzwig
QA Contact: Nikolai Sednev
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-19 12:51 UTC by Joachim von Thadden
Modified: 2019-09-26 19:42 UTC (History)
2 users (show)

Fixed In Version: ovirt-ansible-hosted-engine-setup-1.0.27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-26 19:42:58 UTC
oVirt Team: Integration
Embargoed:
sbonazzo: ovirt-4.3?


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-ansible-hosted-engine-setup pull 236 0 None closed Add LANGUAGE env variable 2020-04-06 19:18:47 UTC

Description Joachim von Thadden 2019-05-19 12:51:53 UTC
Description of problem:
Using "hosted-engine --deploy --config-append=<whatever>" fails when a language is set. It fails when trying to check for space for the HE setup:

[ INFO  ] TASK [ovirt.hosted_engine_setup : Ensure we have enough space to extract the appliance]
[ ERROR ] fatal: [localhost]: FAILED! => {
             "assertion": "local_vm_dir_space_out.stdout_lines[0]|int * 1024 > appliance_size.stdout_lines[0]|int * 1.1", 
             "changed": false, 
             "evaluated_to": false, 
             "msg": "/var/tmp doesn't provide enough free space to extract the engine appliance: 0.0 Mb are available while 2892.13867188 Mb are required.\n"
         }

This is due to 
/usr/share/ansible/roles/ovirt.hosted_engine_setup/tasks/bootstrap_local_vm/02_create_local_vm.yml
      - name: Check available space on local VM directory
        shell: df -k --output=avail "{{ he_local_vm_dir_path }}" | grep -v Avail

which checks for "Avail" which is only there if LANGUAGE is english or set to "C".


How reproducible:
Always with LANGUAGE set to non english.

Steps to Reproduce:
1. export LANGUAGE=de_DE.UTF-8
2. hosted-engine --deploy --config-append=<whatever>


Actual results:
Deployment fails with erraneous message about to enough space in /var/tmp.

Expected results:
Deployment succeeds.

Additional info:
To avoid you can use
LANGUAGE=C hosted-engine --deploy --config-append=<whatever>
which should be added to the documentation!

Comment 1 Nikolai Sednev 2019-09-09 12:23:40 UTC
Works for me on these components:
Followed the reproduction steps and successfully deployed over NFS storage.
ovirt-hosted-engine-setup-2.3.12-1.el7ev.noarch
rhv-release-engine-4.3.6-7-001.noarch.rpm
Red Hat Enterprise Linux Server release 7.7 (Maipo)

Comment 2 Sandro Bonazzola 2019-09-26 19:42:58 UTC
This bugzilla is included in oVirt 4.3.6 release, published on September 26th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.6 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.


Note You need to log in before you can comment on or make changes to this bug.