Skip to content

B #178: Add missing sync_ha operation for FireEdge#180

Merged
tinova merged 1 commit into
masterfrom
b-178
Feb 26, 2026
Merged

B #178: Add missing sync_ha operation for FireEdge#180
tinova merged 1 commit into
masterfrom
b-178

Conversation

@sk4zuzu
Copy link
Copy Markdown
Collaborator

@sk4zuzu sk4zuzu commented Feb 26, 2026

fixes #178

Signed-off-by: Michal Opala <sk4zuzu@gmail.com>
@tinova tinova merged commit ea0a619 into master Feb 26, 2026
@mkutouski
Copy link
Copy Markdown

mkutouski commented Feb 27, 2026

@sk4zuzu , if I run one-deploy with that patch I am getting the following error:

TASK [opennebula.deploy.gui : Unarchive FireEdge data into /var/lib/one/.one/ (ha)] *********************************************************************************************************************************
task path: /home/user/one-deploy/ansible_collections/opennebula/deploy/roles/gui/tasks/sync_ha.yml:73
Friday 27 February 2026  09:19:29 +0000 (0:00:01.584)       0:01:21.679 ******* 
skipping: [f1] => 
    changed: false
    false_condition: inventory_hostname != leader
    skip_reason: Conditional result was False
fatal: [f2]: FAILED! => 
    changed: false
    msg: |-
        Failed to find handler for "/var/tmp/fireedge-leader.tar.gz". Make sure the required command to extract the file is installed.
        Command "/usr/bin/tar" could not handle archive: Unable to list files in the archive: xz: (stdin): File format not recognized
        /usr/bin/tar: Child returned status 1
        /usr/bin/tar: Error is not recoverable: exiting now

        Command "/usr/bin/tar" could not handle archive: Unable to list files in the archive: tar (child): bzip2: Cannot exec: No such file or directory
        tar (child): Error is not recoverable: exiting now
        /usr/bin/tar: Child returned status 2
        /usr/bin/tar: Error is not recoverable: exiting now

        Command "/usr/bin/unzip" could not handle archive:   End-of-central-directory signature not found.  Either this file is not
          a zipfile, or it constitutes one disk of a multi-part archive.  In the
          latter case the central directory and zipfile comment will be found on
          the last disk(s) of this archive.
        unzip:  cannot find zipfile directory in one of /var/tmp/fireedge-leader.tar.gz or
                /var/tmp/fireedge-leader.tar.gz.zip, and cannot find /var/tmp/fireedge-leader.tar.gz.ZIP, period.

        Command "/usr/bin/tar" found no files in archive. Empty archive files are not supported.
fatal: [f3]: FAILED! => 
    changed: false
    msg: |-
        Failed to find handler for "/var/tmp/fireedge-leader.tar.gz". Make sure the required command to extract the file is installed.
        Command "/usr/bin/unzip" could not handle archive:   End-of-central-directory signature not found.  Either this file is not
          a zipfile, or it constitutes one disk of a multi-part archive.  In the
          latter case the central directory and zipfile comment will be found on
          the last disk(s) of this archive.
        unzip:  cannot find zipfile directory in one of /var/tmp/fireedge-leader.tar.gz or
                /var/tmp/fireedge-leader.tar.gz.zip, and cannot find /var/tmp/fireedge-leader.tar.gz.ZIP, period.

        Command "/usr/bin/tar" could not handle archive: Unable to list files in the archive: tar (child): bzip2: Cannot exec: No such file or directory
        tar (child): Error is not recoverable: exiting now
        /usr/bin/tar: Child returned status 2
        /usr/bin/tar: Error is not recoverable: exiting now

        Command "/usr/bin/tar" found no files in archive. Empty archive files are not supported.
        Command "/usr/bin/tar" could not handle archive: Unable to list files in the archive: xz: (stdin): File format not recognized
        /usr/bin/tar: Child returned status 1
        /usr/bin/tar: Error is not recoverable: exiting now

TASK [opennebula.deploy.gui : Remove fireedge-leader.tar.gz (cleanup)] **********************************************************************************************************************************************
task path: /home/user/one-deploy/ansible_collections/opennebula/deploy/roles/gui/tasks/sync_ha.yml:39
Friday 27 February 2026  09:19:30 +0000 (0:00:01.185)       0:01:22.865 ******* 
changed: [f1] => 
    changed: true
    path: /var/tmp/fireedge-leader.tar.gz
    state: absent
changed: [f3] => 
    changed: true
    path: /var/tmp/fireedge-leader.tar.gz
    state: absent
changed: [f2] => 
    changed: true
    path: /var/tmp/fireedge-leader.tar.gz
    state: absent

The bzip2 was not installed on any HA FE VM indeed. But even if I install that package manually (on u2404 with apt install bzip2 command) another error pops up:

task path: /home/user/one-deploy/ansible_collections/opennebula/deploy/roles/gui/tasks/sync_ha.yml:73
Friday 27 February 2026  09:44:50 +0000 (0:00:01.519)       0:01:22.336 ******* 
skipping: [f1] => 
    changed: false
    false_condition: inventory_hostname != leader
    skip_reason: Conditional result was False
fatal: [f3]: FAILED! => 
    changed: false
    msg: |-
        Failed to find handler for "/var/tmp/fireedge-leader.tar.gz". Make sure the required command to extract the file is installed.
        Command "/usr/bin/tar" found no files in archive. Empty archive files are not supported.
        Command "/usr/bin/unzip" could not handle archive:   End-of-central-directory signature not found.  Either this file is not
          a zipfile, or it constitutes one disk of a multi-part archive.  In the
          latter case the central directory and zipfile comment will be found on
          the last disk(s) of this archive.
        unzip:  cannot find zipfile directory in one of /var/tmp/fireedge-leader.tar.gz or
                /var/tmp/fireedge-leader.tar.gz.zip, and cannot find /var/tmp/fireedge-leader.tar.gz.ZIP, period.

        Command "/usr/bin/tar" could not handle archive: Unable to list files in the archive: xz: (stdin): File format not recognized
        /usr/bin/tar: Child returned status 1
        /usr/bin/tar: Error is not recoverable: exiting now

        Command "/usr/bin/tar" could not handle archive: Unable to list files in the archive: bzip2: (stdin) is not a bzip2 file.
        /usr/bin/tar: Child returned status 2
        /usr/bin/tar: Error is not recoverable: exiting now
fatal: [f2]: FAILED! => 
    changed: false
    msg: |-
        Failed to find handler for "/var/tmp/fireedge-leader.tar.gz". Make sure the required command to extract the file is installed.
        Command "/usr/bin/unzip" could not handle archive:   End-of-central-directory signature not found.  Either this file is not
          a zipfile, or it constitutes one disk of a multi-part archive.  In the
          latter case the central directory and zipfile comment will be found on
          the last disk(s) of this archive.
        unzip:  cannot find zipfile directory in one of /var/tmp/fireedge-leader.tar.gz or
                /var/tmp/fireedge-leader.tar.gz.zip, and cannot find /var/tmp/fireedge-leader.tar.gz.ZIP, period.

        Command "/usr/bin/tar" could not handle archive: Unable to list files in the archive: xz: (stdin): File format not recognized
        /usr/bin/tar: Child returned status 1
        /usr/bin/tar: Error is not recoverable: exiting now

        Command "/usr/bin/tar" could not handle archive: Unable to list files in the archive: bzip2: (stdin) is not a bzip2 file.
        /usr/bin/tar: Child returned status 2
        /usr/bin/tar: Error is not recoverable: exiting now

        Command "/usr/bin/tar" found no files in archive. Empty archive files are not supported.

TASK [opennebula.deploy.gui : Remove fireedge-leader.tar.gz (cleanup)] **********************************************************************************************************************************************
task path: /home/user/one-deploy/ansible_collections/opennebula/deploy/roles/gui/tasks/sync_ha.yml:39
Friday 27 February 2026  09:44:51 +0000 (0:00:01.185)       0:01:23.521 ******* 
changed: [f2] => 
    changed: true
    path: /var/tmp/fireedge-leader.tar.gz
    state: absent
changed: [f3] => 
    changed: true
    path: /var/tmp/fireedge-leader.tar.gz
    state: absent
changed: [f1] => 
    changed: true
    path: /var/tmp/fireedge-leader.tar.gz
    state: absent

@sk4zuzu
Copy link
Copy Markdown
Collaborator Author

sk4zuzu commented Feb 27, 2026

@mkutouski probably force_archive option is needed, let me investigate. I never saw this problem though locally. 🤔

@sk4zuzu
Copy link
Copy Markdown
Collaborator Author

sk4zuzu commented Feb 27, 2026

@mkutouski Fix #182 has been merged, please check if that helps, thank you. 👍 😇

@mkutouski
Copy link
Copy Markdown

@sk4zuzu , now it works, i.e. the fireedge_key is the same on all HA FEs. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sync_ha task is skipped when deploying HA FE VMs setup

3 participants