|
|
|
@ -86,9 +86,11 @@ public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
|
connectOracle(tmpPod, key);
|
|
|
|
|
|
|
|
|
|
if (i == 10) {
|
|
|
|
|
|
|
|
|
|
String cmd = "kubectl --server "
|
|
|
|
|
+ Configs.KUBE_MASTER_ADDRESS
|
|
|
|
|
+ " label --overwrite rc " + key + " status=1";
|
|
|
|
|
|
|
|
|
|
List<String> rList = Constant.ganymedSSH
|
|
|
|
|
.execCmdWaitAcquiescent(cmd);
|
|
|
|
|
StringBuffer sb = new StringBuffer();
|
|
|
|
@ -98,6 +100,7 @@ public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
|
+ "\t[标签更新为: 失败]");
|
|
|
|
|
log.info(sb.toString());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String cmd2 = "kubectl --server "
|
|
|
|
|
+ Configs.KUBE_MASTER_ADDRESS
|
|
|
|
|
+ " annotate --overwrite rc " + key
|
|
|
|
@ -175,8 +178,10 @@ public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
|
+ ",password:" + Configs.ORACLE_PSW);
|
|
|
|
|
String message = "失败";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String cmd3 = "kubectl --server " + Configs.KUBE_MASTER_ADDRESS
|
|
|
|
|
+ " annotate --overwrite rc " + key + " checkoutFlag=0";
|
|
|
|
|
|
|
|
|
|
List<String> rList3 = Constant.ganymedSSH
|
|
|
|
|
.execCmdWaitAcquiescent(cmd3);
|
|
|
|
|
StringBuffer sb3 = new StringBuffer();
|
|
|
|
@ -186,9 +191,11 @@ public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
|
log.info("更新replicationController标签: " + key + "\t[标签更新为:未校验]");
|
|
|
|
|
|
|
|
|
|
if (flag) {
|
|
|
|
|
|
|
|
|
|
String cmd = "kubectl --server "
|
|
|
|
|
+ Configs.KUBE_MASTER_ADDRESS
|
|
|
|
|
+ " label --overwrite rc " + key + " status=2";
|
|
|
|
|
|
|
|
|
|
// 设置服务为 成功
|
|
|
|
|
List<String> rList = Constant.ganymedSSH
|
|
|
|
|
.execCmdWaitAcquiescent(cmd);
|
|
|
|
@ -200,6 +207,7 @@ public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
|
log.info("更新replicationController标签: " + key
|
|
|
|
|
+ "\t[标签更新为: 成功]");
|
|
|
|
|
// 校验标签
|
|
|
|
|
|
|
|
|
|
String cmd2 = "kubectl --server "
|
|
|
|
|
+ Configs.KUBE_MASTER_ADDRESS
|
|
|
|
|
+ " annotate --overwrite rc " + key
|
|
|
|
@ -277,6 +285,7 @@ public class ThreadCheckoutStandardOracle extends Thread {
|
|
|
|
|
/* CacheOracleCheckoutEntity.putExtract(key, */CacheOracleCheckoutEntity
|
|
|
|
|
.checkRemove(key)/* ) */;
|
|
|
|
|
// 更新kuber状态
|
|
|
|
|
|
|
|
|
|
cmd2 = "kubectl --server "
|
|
|
|
|
+ Configs.KUBE_MASTER_ADDRESS
|
|
|
|
|
+ " annotate --overwrite rc " + key
|
|
|
|
|