在ICP上进行CAM 2.1.0.2全新安装后,运行以下命令:
kubectl -n services get pods
我注意到“cam-bpd-ui”pod没有启动。所以我无法登录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
答案 0 :(得分: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使用它。 详情请见: