“Smartphy”的版本间的差异

来自qingwei personal wiki
跳转至: 导航搜索
GCP container
换image
第5行: 第5行:
 
</source>
 
</source>
  
===  换image===
+
===  设置debug模式 ===
 
<source lang="shell">
 
<source lang="shell">
 +
kubectl get pods --all-namespaces
 +
kubectl exec --namespace=kube-system -it <robot-orch-container> bash
 +
# 进入orch container 后
 +
robotctl spec  - generates the new yaml file for the containers
 +
robotctl update – my guess updates pod.conf
 +
robotctl stop – stop existing default namespace containers, sometimes I needed to wait for few seconds till they stopped
 +
kubectl get pods --all-namespaces        --- check that all default namespace containers stopped
 +
robotctl start – start all containers
 +
kubectl get pods --all-namespaces        --- verify all containers RUNNING
 +
 
scp qingwyan@10.75.12.21:/home/qingwyan/workspace3/gcp-service/spring/target/gcp-service-0.1-SNAPSHOT.jar .
 
scp qingwyan@10.75.12.21:/home/qingwyan/workspace3/gcp-service/spring/target/gcp-service-0.1-SNAPSHOT.jar .
 
java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006 gcp-service-0.1-SNAPSHOT.jar
 
java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006 gcp-service-0.1-SNAPSHOT.jar

2017年12月4日 (一) 05:33的版本

GCP container

debug

docker pull "dockerhub.cisco.com/cabu-cmts-orch-docker/gcp-service:debug"

设置debug模式

kubectl get pods --all-namespaces
kubectl exec --namespace=kube-system -it <robot-orch-container> bash
# 进入orch container 后
robotctl spec   - generates the new yaml file for the containers
robotctl update – my guess updates pod.conf
robotctl stop – stop existing default namespace containers, sometimes I needed to wait for few seconds till they stopped
kubectl get pods --all-namespaces         --- check that all default namespace containers stopped
robotctl start – start all containers
kubectl get pods --all-namespaces         --- verify all containers RUNNING

scp qingwyan@10.75.12.21:/home/qingwyan/workspace3/gcp-service/spring/target/gcp-service-0.1-SNAPSHOT.jar .
java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006 gcp-service-0.1-SNAPSHOT.jar

nso

debug手段

  • 状态为disable
1 admin@ncs# show devices device state
2 devices device 2c678746-c18d-3f32-8bcc-74a64c76da91
3  state oper-state     disabled
4  state oper-state-error-tag noconnection
5 # 查看错误原因
6 admin@ncs# devices device 2c678746-c18d-3f32-8bcc-74a64c76da91 sync-from 
7 result false
8 info Failed to authenticate towards device 2c678746-c18d-3f32-8bcc-74a64c76da91: Bad password for local/remote user admin/admin Auth failed