openstack overcloud config download unzip|gtar could not handle archive

Bug #1896523 reported by Harald Jensås
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Low
Harald Jensås

Bug Description

(undercloud) [centos@undercloud ~]$ sudo -E openstack overcloud config download --name overcloud --config-dir config-download-manual
[WARNING]: Skipping plugin (/usr/share/ansible/plugins/filter/number_list.py)
as it seems to be invalid: No module named 'tripleo_ansible'
[WARNING]: Skipping plugin (/usr/share/ansible/plugins/filter/range_list.py) as
it seems to be invalid: No module named 'tripleo_ansible'

PLAY [Config Download Export] **************************************************
2020-09-21 17:54:55.019096 | fa163e3e-4c78-62da-ff9f-000000000008 | TASK | Set config_dir
2020-09-21 17:54:55.082486 | fa163e3e-4c78-62da-ff9f-000000000008 | SKIPPED | Set config_dir | localhost
2020-09-21 17:54:55.093000 | fa163e3e-4c78-62da-ff9f-000000000009 | TASK | Set config_container
2020-09-21 17:54:55.102841 | fa163e3e-4c78-62da-ff9f-000000000008 | TIMING | Set config_dir | 0:00:00.229831 | 0.08s
2020-09-21 17:54:55.173802 | fa163e3e-4c78-62da-ff9f-000000000009 | OK | Set config_container | localhost
2020-09-21 17:54:55.184007 | fa163e3e-4c78-62da-ff9f-00000000000a | TASK | set work_dir
2020-09-21 17:54:55.185283 | fa163e3e-4c78-62da-ff9f-000000000009 | TIMING | Set config_container | 0:00:00.312318 | 0.08s
2020-09-21 17:54:55.257275 | fa163e3e-4c78-62da-ff9f-00000000000a | OK | set work_dir | localhost
2020-09-21 17:54:55.269292 | fa163e3e-4c78-62da-ff9f-00000000000c | TASK | Clean work_dir
2020-09-21 17:54:55.270609 | fa163e3e-4c78-62da-ff9f-00000000000a | TIMING | set work_dir | 0:00:00.397643 | 0.08s
2020-09-21 17:54:55.335748 | fa163e3e-4c78-62da-ff9f-00000000000c | SKIPPED | Clean work_dir | localhost
2020-09-21 17:54:55.347130 | fa163e3e-4c78-62da-ff9f-00000000000d | TASK | Create config dir if does not exist
2020-09-21 17:54:55.348435 | fa163e3e-4c78-62da-ff9f-00000000000c | TIMING | Clean work_dir | 0:00:00.475461 | 0.08s
2020-09-21 17:54:56.182213 | fa163e3e-4c78-62da-ff9f-00000000000d | CHANGED | Create config dir if does not exist | localhost
2020-09-21 17:54:56.196020 | fa163e3e-4c78-62da-ff9f-00000000000e | TASK | Get config
2020-09-21 17:54:56.197439 | fa163e3e-4c78-62da-ff9f-00000000000d | TIMING | Create config dir if does not exist | 0:00:01.324455 | 0.85s
2020-09-21 17:55:43.882507 | fa163e3e-4c78-62da-ff9f-00000000000e | CHANGED | Get config | localhost
2020-09-21 17:55:43.899131 | fa163e3e-4c78-62da-ff9f-00000000000f | TASK | Get temp url for archive
2020-09-21 17:55:43.900584 | fa163e3e-4c78-62da-ff9f-00000000000e | TIMING | Get config | 0:00:49.027574 | 47.70s
2020-09-21 17:55:48.827875 | fa163e3e-4c78-62da-ff9f-00000000000f | CHANGED | Get temp url for archive | localhost
2020-09-21 17:55:48.844682 | fa163e3e-4c78-62da-ff9f-000000000010 | TASK | Extract config download
2020-09-21 17:55:48.846048 | fa163e3e-4c78-62da-ff9f-00000000000f | TIMING | Get temp url for archive | 0:00:53.973076 | 4.94s
2020-09-21 17:55:51.150433 | fa163e3e-4c78-62da-ff9f-000000000010 | FATAL | Extract config download | localhost | error={"changed": false, "msg": "Failed to find handler for \"/root/.ansible/tmp/ansible-tmp-1600710948.9285123-621099-171997096274804/overcloud-config.tarto6zcp24.gz?temp_url_sig=6b65aee4dd1a97ec80
f3a84fa6765a945b0eebe5&temp_url_expires=1600797348\". Make sure the required command to extract the file is installed. Command \"unzip\" not found. Command \"/bin/gtar\" could not handle archive."}

The dependency should be installed as a dependency of python-tripleoclient or tripleo-common?

Revision history for this message
Harald Jensås (harald-jensas) wrote :

Installing unzip does not help:

2020-09-21 18:01:29.014221 | fa163e3e-4c78-a346-3f23-000000000010 | FATAL | Extract config download | localhost | error={"changed": false, "msg": "Failed to find handler for \"/root/.ansible/tmp/ansible-tmp-1600711286.776019-629581-74415823507579/overcloud-config.tarvvk0t2ha.gz?temp_url_sig=0b58587f32e6f9f901b53a95b04dabe9bdeb3bc5&temp_url_expires=1600797686\". Make sure the required command to extract the file is installed. Command \"/bin/unzip\" could not handle archive. Command \"/bin/gtar\" could not handle archive."}

Revision history for this message
Harald Jensås (harald-jensas) wrote :

ansible-2.9.13-1.el8.noarch
tripleo-ansible-1.7.1-0.20200917194132.d5aaeb3.el8.noarch

summary: - openstack overcloud config download require unzip
+ openstack overcloud config download unzip|gtar could not handle archive
Revision history for this message
Alex Schultz (alex-schultz) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)

Fix proposed to branch: master
Review: https://review.opendev.org/753122

Changed in tripleo:
assignee: nobody → Harald Jensås (harald-jensas)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.opendev.org/753122
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=a34eb64c6d91daa44c5ef7760afb74a49326b30c
Submitter: Zuul
Branch: master

commit a34eb64c6d91daa44c5ef7760afb74a49326b30c
Author: Harald Jensås <email address hidden>
Date: Mon Sep 21 20:46:07 2020 +0200

    Make config_dir absolute path for ansible

    When not specifying an absolute path for config_dir the
    unarchive command fails. Make config dir absolute path
    with os.path.abspath().

    Closes-Bug: #1896523
    Closes-Bug: #1896522
    Change-Id: Icf1e2da05d328c70175fef7126519377df095150

Changed in tripleo:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.