Bug 2004993

Summary: Switch to using the Toolbox-specific UBI image by default [rhel-8.6.0]
Product: Red Hat Enterprise Linux 8 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: toolboxAssignee: Debarshi Ray <debarshir>
Status: CLOSED ERRATA QA Contact: atomic-bugs <atomic-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.5CC: ajia, dornelas, lfriedma, lmiksik, ogutierr, sbarcomb, tpopela
Target Milestone: rcKeywords: Reopened, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: container-tools-rhel8-8060020210923073203.2e213529 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2004562 Environment:
Last Closed: 2022-05-10 13:27:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2004562    
Bug Blocks:    

Comment 4 Alex Jia 2021-10-27 14:22:25 UTC
[root@kvm-06-guest11 ~]# podman pull --tls-verify=false XXX.redhat.com/rh-osbs/toolbox-container:latest
Trying to pull XXX.redhat.com/rh-osbs/toolbox-container:latest...
Getting image source signatures
Copying blob d831e2e5fa19 done
Copying blob 61dd6a70511b done
Copying blob 2c25033c9341 done
Copying config 8eb3ac3cce done
Writing manifest to image destination
Storing signatures
8eb3ac3cce5b7e1bc23da88f6855b0d83b1049f1e8043e9a661364453394de5e

[root@kvm-06-guest11 ~]# skopeo copy containers-storage:XXX.redhat.com/rh-osbs/toolbox-container:latest containers-storage:registry.access.redhat.com/ubi8/toolbox:latest
INFO[0000] Not using native diff for overlay, this may cause degraded performance for building images: kernel has CONFIG_OVERLAY_FS_REDIRECT_DIR enabled
Getting image source signatures
Copying blob 9e1023b7a75c skipped: already exists
Copying blob da3aa1058a72 skipped: already exists
Copying blob 845624946a0a skipped: already exists
Copying config 8eb3ac3cce done
Writing manifest to image destination
Storing signatures

[root@kvm-06-guest11 ~]# toolbox
No toolbox containers found. Create now? [y/N] y

Welcome to the Toolbox; a container where you can install and run
all your tools.

 - Use DNF in the usual manner to install command line tools.
 - To create a new tools container, run 'toolbox create'.

For more information, see the documentation.

⬢[root@toolbox ~]# echo $HOST
/run/host
⬢[root@toolbox ~]# rpm -q wget procps-ng
wget-1.19.5-10.el8.x86_64
procps-ng-3.3.15-6.el8.x86_64
⬢[root@toolbox ~]# ps -ef | grep chrony
995          866       1  0 06:22 ?        00:00:00 /usr/sbin/chronyd
root       25618   25284  0 10:15 pts/0    00:00:00 grep --color=auto chrony
⬢[root@toolbox ~]# wget www.redhat.com
--2021-10-27 10:10:05--  http://www.redhat.com/
Resolving www.redhat.com (www.redhat.com)... 2600:1408:20:c93::d44, 2600:1408:20:c84::d44, 104.96.219.58
Connecting to www.redhat.com (www.redhat.com)|2600:1408:20:c93::d44|:80... failed: Network is unreachable.
Connecting to www.redhat.com (www.redhat.com)|2600:1408:20:c84::d44|:80... failed: Network is unreachable.
Connecting to www.redhat.com (www.redhat.com)|104.96.219.58|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://www.redhat.com/en [following]
--2021-10-27 10:10:05--  https://www.redhat.com/en
Connecting to www.redhat.com (www.redhat.com)|104.96.219.58|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'index.html'

index.html                                      [  <=>                                                                                     ] 118.22K   515KB/s    in 0.2s

2021-10-27 10:10:05 (515 KB/s) - 'index.html' saved [121055]
⬢[root@toolbox ~]# rpm -ivh http://XXX.redhat.com/brewroot/vol/rhel-8/packages/sos/4.1/6.el8_5/noarch/sos-4.1-6.el8_5.noarch.rpm
⬢[root@toolbox ~]# sosreport
Please note the 'sosreport' command has been deprecated in favor of the new 'sos' command, E.G. 'sos report'.
Redirecting to 'sos report '

sosreport (version 4.1)
...ignore...
Creating compressed archive...

Your sosreport has been generated and saved in:
        /run/host/var/tmp/sosreport-toolbox-2021-10-27-umhdrhe.tar.xz

 Size   30.18MiB
 Owner  root
 sha256 76e011706ee0e59aa72fe8e197ab03ddb2720a2eb1ad3237ec0f7afb9dbb81eb

Please send this file to your support representative.
⬢[root@toolbox ~]# exit
logout
[root@kvm-06-guest11 ~]# echo $?
0

[root@kvm-06-guest11 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.6 Beta (Ootpa)

[root@kvm-06-guest11 ~]# rpm -q toolbox podman runc kernel
toolbox-0.0.99.3-0.4.module+el8.6.0+12727+cc05c9e2.x86_64
podman-3.4.1-3.module+el8.6.0+12998+730dddcd.x86_64
runc-1.0.2-1.module+el8.6.0+12698+b6644727.x86_64
kernel-4.18.0-348.3.el8.x86_64

Comment 7 errata-xmlrpc 2022-05-10 13:27:31 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 (Important: container-tools:rhel8 security, bug fix, and enhancement update), 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/RHSA-2022:1762