3.3. 从基于代理的安装收集日志数据
使用以下步骤收集有关基于代理的安装失败的日志数据,以便为支持问题单提供。
流程
运行以下命令并收集输出:
$ ./openshift-install --dir <install_directory> agent wait-for bootstrap-complete --log-level=debug错误信息示例
... ERROR Bootstrap failed to complete: : bootstrap process timed out: context deadline exceeded如果上一命令的输出显示失败,或者 bootstrap 没有进行,请在节点 0 上运行以下命令并收集输出:
$ ssh core@<node-ip> sudo /usr/local/bin/agent-gather -O > <local_tmp_path>/agent-gather.tar.xz注意您只需要从节点 0 收集数据,但从每个节点收集数据会很有用。
如果 bootstrap 完成且集群节点重启,请运行以下命令并收集输出:
$ ./openshift-install --dir <install_directory> agent wait-for install-complete --log-level=debug如果上一命令的输出显示失败,请执行以下步骤:
运行以下命令,将
kubeconfig文件导出到您的环境:$ export KUBECONFIG=<install_directory>/auth/kubeconfig要收集用于调试的信息,请运行以下命令:
$ oc adm must-gather运行以下命令,从工作目录中刚刚创建的
must-gather目录创建一个压缩文件:$ tar cvaf must-gather.tar.gz <must_gather_directory>
-
排除
/auth子目录,将部署期间使用的安装目录附加到 红帽客户门户网站上的 支持问题单中。 - 将从此流程收集的所有其他数据添加到您的支持问题单中。