0

在 ICP 上全新安装 CAM 2.1.0.2 后,运行以下命令:

kubectl -n services get pods

我注意到“cam-bpd-ui”吊舱没有启动。所以我无法登录到 Process Designer UI,我收到了错误:"Readiness probe failed: HTTP probe failed with statuscode: 404".

根据 ICP 概览窗格,它正在运行且可用。但是我在日志中看到了这个

 "[Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1146: Table 'mysql.gtid_slave_pos' doesn't exist
Version: '10.1.16-MariaDB-1~jessie'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution
2018-04-24 16:15:52 140411194034112 [Note] mysqld: ready for connections."

检查 cam-bpd-ui pod 中的事件时,我们会看到以下内容:

kubectl describe pod cam-bpd-ui-687764b5fc-qxjnp -n services
Name:           cam-bpd-ui-687764b5fc-qxjnp
Namespace:      services

...

Events:
  Type     Reason                 Age                 From                     Message
  ----     ------                 ----                ----                     -------
  Normal   Scheduled              27m                 default-scheduler        Successfully assigned cam-bpd-ui-687764b5fc-qxjnp to 10.190.155.237
  Normal   SuccessfulMountVolume  27m                 kubelet, 10.190.155.237  MountVolume.SetUp succeeded for volume "default-token-c8nq4"
  Normal   SuccessfulMountVolume  27m                 kubelet, 10.190.155.237  MountVolume.SetUp succeeded for volume "cam-logs-pv"
  Normal   SuccessfulMountVolume  27m                 kubelet, 10.190.155.237  MountVolume.SetUp succeeded for volume "cam-bpd-appdata-pv"
  Normal   Pulled                 27m                 kubelet, 10.190.155.237  Container image "icp-dev.watsonplatform.net:8500/services/icam-busybox:2.1.0.2-x86_64" already present on machine
  Normal   Created                27m                 kubelet, 10.190.155.237  Created container
  Normal   Pulled                 27m                 kubelet, 10.190.155.237  Container image "icp-dev.watsonplatform.net:8500/services/icam-bpd-ui:2.1.0.2-x86_64" already present on machine
  Normal   Started                27m                 kubelet, 10.190.155.237  Started container
  Normal   Created                27m                 kubelet, 10.190.155.237  Created container
  Normal   Started                27m                 kubelet, 10.190.155.237  Started container
  Warning  Unhealthy              26m (x2 over 26m)   kubelet, 10.190.155.237  Readiness probe failed: Get http://10.1.45.36:8080/landscaper/login: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
  Warning  BackOff                12m (x3 over 12m)   kubelet, 10.190.155.237  Back-off restarting failed container
  Warning  Unhealthy              2m (x129 over 26m)  kubelet, 10.190.155.237  Readiness probe failed: HTTP probe failed with statuscode: 404 
4

1 回答 1

0

Process Designer (BPD) 需要连接到 mariadb 以便它可以填充。您需要 100% 确定数据库正常运行。如果不是,bpd 将不会为您返回登录页面。

一些提示:

1) 如果您有 NFS,请确保 /etc/exports 有 /export *(rw,insecure,no_subtree_check,async,no_root_squash)

有关 no_root_squash 的更多详细信息,您可以在此处查看链接:https ://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-16-04

作为解决方法,您可以执行以下操作:

您可以设置自己的数据库并进行配置,以便 BPD 使用它。详细信息可以在这里找到:

https://www.ibm.com/support/knowledgecenter/SS4GSP_6.2.7/com.ibm.edt.doc/topics/install_database_mysql_bds.html

于 2018-04-26T09:56:27.453 回答