Project

General

Profile

Bug #41378

ceph-ansible fails to auto-install the apt module, breaks tests

Added by Alfredo Deza over 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

This doesn't happen all the time, and I've not been able to replicate. At the very least we should export the environment variable in APT systems so that there is no need to require a "front end".


TASK [ceph-common : configure ceph debian development repository] **************
task path: /tmp/tox.fKXrNZj3r4/xenial-filestore-single_type_dmcrypt/tmp/ceph-ansible/roles/ceph-common/tasks/installs/debian_dev_repository.yml:8
fatal: [mon0]: FAILED! => {
    "changed": false
}

MSG:

Failed to auto-install python-apt. Error was: 'debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
E: Sub-process /usr/bin/dpkg returned an error code (2)'
changed: [osd0] => {
    "changed": true, 
    "repo": "deb [trusted=yes] https://4.chacra.ceph.com/r/ceph/mimic/be7c9ce20937e8c0c1da11e231668191e42443ce/ubuntu/xenial/flavors/default/ xenial main\n", 
    "state": "present" 
}

The environment variable should go into the tox.ini where other environment variables are set:

DEBIAN_FRONTEND=noninteractive

History

#2 Updated by Alfredo Deza over 1 year ago

  • Status changed from Fix Under Review to Resolved

#3 Updated by Alfredo Deza about 1 year ago

  • Status changed from Resolved to New

This is still failing, will have to try another fix for this one as the environment variable is not doing anything

#4 Updated by Alfredo Deza about 1 year ago

  • Status changed from New to Fix Under Review

#5 Updated by Alfredo Deza about 1 year ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF