Bug 1803112 - cannot interact with toolbox container after first execution
Summary: cannot interact with toolbox container after first execution
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: RHCOS
Version: 4.4
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
: 4.4.0
Assignee: Micah Abbott
QA Contact: Michael Nguyen
URL:
Whiteboard:
Depends On:
Blocks: 1803122 1803128
TreeView+ depends on / blocked
 
Reported: 2020-02-14 14:08 UTC by Micah Abbott
Modified: 2020-05-04 11:37 UTC (History)
6 users (show)

Fixed In Version: toolbox-0.0.7-1.rhaos4.4.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1803122 (view as bug list)
Environment:
Last Closed: 2020-05-04 11:36:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github coreos toolbox pull 62 0 None closed rhcos-toolbox: use interactive flag for exec 2021-02-04 23:03:12 UTC
Red Hat Product Errata RHBA-2020:0581 0 None None None 2020-05-04 11:37:46 UTC

Internal Links: 1811514 1815460

Description Micah Abbott 2020-02-14 14:08:26 UTC
Users trying to invoke the toolbox container after the first execution will encounter a stuck session where no input is possible.

This has already been fixed upstream

https://github.com/coreos/toolbox/pull/62

Comment 5 Micah Abbott 2020-03-12 12:57:18 UTC
The fixed package landed in 44.81.202003062006-0; all subsequent builds should include the fix.

Comment 6 Micah Abbott 2020-03-12 13:22:21 UTC
Booted the latest 4.4 QEMU image and ran the `toolbox` a number of times.

```
$ coreos-assembler run -d rhcos-44.81.202003110830-0-qemu.x86_64.qcow2
...
Red Hat Enterprise Linux CoreOS 44.81.202003110830-0 (Ootpa) 4.4                                                                                                                                                     
SSH host key: SHA256:UR7ro00A08MyeuvtJLz4E788ZErEoDvzCtwb0R9YW4k (ED25519)                                                                                                                                           
SSH host key: SHA256:Ddyukz4BwaNAHZehefnTz0T2/yD0x2lBjL6suUfVIik (ECDSA)                                                                                                                                             
SSH host key: SHA256:0J93G62JAp4sDGKBb4WaSz6A+mYnV8YEhrj6noiqfLI (RSA)                                                                                                                                               
ens5: 10.0.2.15 fe80::12a2:53f:116d:ec9                                                                                                                                                                              
ibm-p8-kvm-03-guest-02 login: core (automatic login)                                                                                                                                                                 
                                                                                                                                                                                                                     
Red Hat Enterprise Linux CoreOS 44.81.202003110830-0                                                                                                                                                                 
  Part of OpenShift 4.4, RHCOS is a Kubernetes native operating system                                                                                                                                               
  managed by the Machine Config Operator (`clusteroperator/machine-config`).                                                                                                                                         
                                                                                                                                                                                                                     
WARNING: Direct SSH access to machines is not recommended; instead,                                                                                                                                                  
make configuration changes via `machineconfig` objects:                                                                                                                                                              
  https://docs.openshift.com/container-platform/4.4/architecture/architecture-rhcos.html                  
                                                                                                                                                                                                                     
---                                                                                                                                                                                                                  
ICMP traffic (ping) does not work with QEMU and user mode networking.                                                                                                                                                
To exit, press Ctrl-A and then X.                                                                                                                                                                                    
                                                                                                                                                                                                                     
[core@ibm-p8-kvm-03-guest-02 ~]$ rpm-ostree status                                                                                                                                                                   
State: idle                                                                                                                                                                                                          
AutomaticUpdates: disabled                                                                                                                                                                                           
Deployments:                                                                                                                                                                                                         
* ostree://e6285cbf6737188a7d3ee3efa580d0af5b3694f6b164f9dd8fe81c061206e9f2                                                                                                                                          
                   Version: 44.81.202003110830-0 (2020-03-11T08:36:13Z)                                                                                                                                              
[core@ibm-p8-kvm-03-guest-02 ~]$ rpm -q toolbox                                                                                                                                                                      
toolbox-0.0.7-1.rhaos4.4.el8.noarch                                                                                                                                                                                  
[core@ibm-p8-kvm-03-guest-02 ~]$ toolbox                                                                                                                                                                             
Trying to pull registry.redhat.io/rhel8/support-tools...                                                                                                                                                             
  unable to retrieve auth token: invalid username/password: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhatn
Error: error pulling image "registry.redhat.io/rhel8/support-tools": unable to pull registry.redhat.io/rhel8/support-tools: unable to pull image: Error initializing source docker://registry.redhat.io/rhel8/supporn
Would you like to manually authenticate to registry: 'registry.redhat.io' and try again? [y/N] y
Username: miabbott
Password: 
Login Succeeded!
Trying to pull registry.redhat.io/rhel8/support-tools...
Getting image source signatures
Copying blob eae5d284042d done  
Copying blob 0a4a43613721 done  
Copying blob ff6f434a470a done  
Copying config 53d1e01dae [======================================] 4.4KiB / 4.4KiB
Writing manifest to image destination
Storing signatures
53d1e01dae0c44c45f36e72d2d1f0fa91069c147bbd9d2971335ecf2ca93b446
Spawning a container 'toolbox-core' with image 'registry.redhat.io/rhel8/support-tools'
Detected RUN label in the container image. Using that as the default...
command: podman run -it --name toolbox-core --privileged --ipc=host --net=host --pid=host -e HOST=/host -e NAME=toolbox-core -e IMAGE=registry.redhat.io/rhel8/support-tools:latest -v /run:/run -v /var/log:/var/lot
[root@ibm-p8-kvm-03-guest-02 /]# exit
exit
[core@ibm-p8-kvm-03-guest-02 ~]$ toolbox 
Container 'toolbox-core' already exists. Trying to start...
(To remove the container and start with a fresh toolbox, run: sudo podman rm 'toolbox-core')
toolbox-core
Container started successfully. To exit, type 'exit'.
sh-4.4# exit 
exit
[core@ibm-p8-kvm-03-guest-02 ~]$ toolbox 
Container 'toolbox-core' already exists. Trying to start...
(To remove the container and start with a fresh toolbox, run: sudo podman rm 'toolbox-core')
toolbox-core
Container started successfully. To exit, type 'exit'.
sh-4.4# ps
sh: ps: command not found
sh-4.4# cat /etc/os-release 
NAME="Red Hat Enterprise Linux"
VERSION="8.1 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.1"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.1 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.1:GA"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.1
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.1"
sh-4.4# exit
exit
```

This can safely be marked VERIFIED once it is swept up into an errata and put in ON QA

Comment 9 Micah Abbott 2020-03-12 15:07:17 UTC
Moving to VERIFIED based on comment #6

Comment 11 errata-xmlrpc 2020-05-04 11:36:41 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/RHBA-2020:0581


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