노드에 대한 SSH 액세스를 사용하여 OpenShift 4의 Red Hat Enterprise Linux CoreOS에서 SOS 보고서를 생성하는 방법
Issue
- OCP 4의 Red Hat Enterprise Linux CoreOS에서
sos report
를 생성하는 방법은 무엇입니까? - Red Hat OpenShift 4 노드에 대한
sos report
를 생성하는 방법은 무엇입니까? -
rhel7/support-tools
이미지를 사용하여sos report
생성이 역추적과 함께 실패합니다.[root@ip-1-1-1-1 ~]# podman run -it registry.access.redhat.com/rhel7/support-tools /usr/bin/bash bash-4.2# sosreport Traceback (most recent call last): File "/usr/sbin/sosreport", line 19, in <module> main(sys.argv[1:]) File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1498, in main sos = SoSReport(args) File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 360, in __init__ self.policy = sos.policies.load(sysroot=self.opts.sysroot) File "/usr/lib/python2.7/site-packages/sos/policies/__init__.py", line 44, in load cache['policy'] = policy(sysroot=sysroot) File "/usr/lib/python2.7/site-packages/sos/policies/redhat.py", line 258, in __init__ super(RHELPolicy, self).__init__(sysroot=sysroot) File "/usr/lib/python2.7/site-packages/sos/policies/redhat.py", line 58, in __init__ sysroot = self._container_init() File "/usr/lib/python2.7/site-packages/sos/policies/redhat.py", line 153, in _container_init host_tmp_dir = os.path.abspath(self._host_sysroot + self._tmp_dir) TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
- RHCOS(Red Hat Enterprise Linux CoreOS)
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.