You are viewing documentation for a release that is no longer maintained. To view the documentation for the most recent version, see the latest RHACS docs.
13.4. JIRA 集成故障排除
如果您在 JIRA 项目中使用自定义优先级或强制自定义字段,当您尝试将 Red Hat Advanced Cluster Security for Kubernetes 与 JIRA Software 集成时,可能会出现错误。这个错误可能是由于严重性和优先级字段值之间的不匹配。
如果您不知道 JIRA 项目中的自定义优先级值,请使用 roxctl CLI 为 JIRA 集成启用调试日志记录。
流程
要获取 JIRA 项目的自定义优先级值,请运行以下命令来打开 debug logging for JIRA:
roxctl -e "$ROX_CENTRAL_ADDRESS" central debug log --level Debug --modules notifiers/jira
$ roxctl -e "$ROX_CENTRAL_ADDRESS" central debug log --level Debug --modules notifiers/jiraCopy to Clipboard Copied! Toggle word wrap Toggle overflow - 按照说明配置 Red Hat Advanced Cluster Security for Kubernetes for JIRA 集成。当您测试集成时,即使集成测试失败,生成的日志都包含您的 JIRA 项目模式和自定义优先级。
要将调试信息保存为压缩的
.zip文件,请运行以下命令:roxctl -e "$ROX_CENTRAL_ADDRESS" central debug dump
$ roxctl -e "$ROX_CENTRAL_ADDRESS" central debug dumpCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
解压缩
.zip文件,以检索 JIRA 项目中使用的自定义优先级值。 要关闭 debug 日志记录,请运行以下命令:
roxctl -e "$ROX_CENTRAL_ADDRESS" central debug log --level Info
$ roxctl -e "$ROX_CENTRAL_ADDRESS" central debug log --level InfoCopy to Clipboard Copied! Toggle word wrap Toggle overflow - 再次配置 Red Hat Advanced Cluster Security for Kubernetes for JIRA 集成,并使用优先级值配置自定义优先级。