Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1689660

Summary: "bash: tput: command not found" when connecting to containers in undercloud
Product: Red Hat OpenStack Reporter: Sasha Smolyak <ssmolyak>
Component: openstack-containersAssignee: Jon Schlueter <jschluet>
Status: CLOSED ERRATA QA Contact: Sasha Smolyak <ssmolyak>
Severity: low Docs Contact: Andrew Burden <aburden>
Priority: medium    
Version: 15.0 (Stein)CC: jschluet, m.andre, mburns, sbaker
Target Milestone: betaKeywords: Triaged
Target Release: 15.0 (Stein)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-base-container-15.0-25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-21 16:39:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sasha Smolyak 2019-03-17 11:56:13 UTC
Description of problem:
When connecting to any container in undercloud, get: 

(undercloud) [stack@undercloud-0 ~]$ sudo podman exec -ti mistral_api /bin/bash
bash: tput: command not found
bash: tput: command not found

When checking for $PS1, saw that it's not defined

Version-Release number of selected component (if applicable):
RHOS_TRUNK-15.0-RHEL-8-20190314.n.0

How reproducible:
100% on every container

Steps to Reproduce:
1. Deploy undercloud
2. Try to log into container

Actual results:
You get log into container, but first you get the error message

Expected results:
No error messages while logging into containers

Additional info:

Comment 1 Steve Baker 2019-03-18 21:24:05 UTC
This doesn't seem to affect the upstream images. Assigning to DFG:ReleaseDelivery to install the ncurses package which provides tput

Comment 2 Jon Schlueter 2019-03-20 11:56:19 UTC
need to research why it is not getting pulled in by default, and may need to get upstream kolla patch to ensure ncurses is around for tput

Comment 3 Jon Schlueter 2019-03-20 13:25:48 UTC
So apparently kolla is expecting tput to just be available from base image.

/usr/bin/tput comes from ncurses rpm

installed in ubi8 container image by default is

ncurses-base-6.1-7.20180224.el8.noarch
ncurses-libs-6.1-7.20180224.el8.x86_64

Comment 7 Sasha Smolyak 2019-07-21 08:25:51 UTC
Doesn't happen anymore, verified

Comment 9 errata-xmlrpc 2019-09-21 16:39:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:2853