Advertisement
Guest User

Untitled

a guest
Feb 11th, 2021
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. sudo -E ./tools/deployment/33_cluster_move_target_node.sh
  2. + export TIMEOUT=3600
  3. + TIMEOUT=3600
  4. + export KUBECONFIG=/home/dingo/.airship/kubeconfig
  5. + KUBECONFIG=/home/dingo/.airship/kubeconfig
  6. + export KUBECONFIG_EPHEMERAL_CONTEXT=ephemeral-cluster
  7. + KUBECONFIG_EPHEMERAL_CONTEXT=ephemeral-cluster
  8. + export KUBECONFIG_TARGET_CONTEXT=target-cluster
  9. + KUBECONFIG_TARGET_CONTEXT=target-cluster
  10. + export TARGET_NODE=node01
  11. + TARGET_NODE=node01
  12. + export CLUSTER_NAMESPACE=default
  13. + CLUSTER_NAMESPACE=default
  14. + echo 'Check Cluster Status'
  15. Check Cluster Status
  16. + kubectl --kubeconfig /home/dingo/.airship/kubeconfig --context ephemeral-cluster -n default get cluster target-cluster -o json
  17. + jq .status.controlPlaneReady
  18. true
  19. + echo 'Annotate BMH for target node'
  20. Annotate BMH for target node
  21. + kubectl --kubeconfig /home/dingo/.airship/kubeconfig --context ephemeral-cluster -n default annotate bmh node01 baremetalhost.metal3.io/paused=true
  22. baremetalhost.metal3.io/node01 annotated
  23. + echo 'Move Cluster Object to Target Cluster'
  24. Move Cluster Object to Target Cluster
  25. + airshipctl phase run clusterctl-move
  26. {"Message":"starting clusterctl move executor","Operation":"ClusterctlMoveStart","Timestamp":"2021-02-11T13:18:54.780180847Z","Type":"ClusterctlEvent"}
  27. [airshipctl] 2021/02/11 13:18:56 command 'clusterctl move' is going to be executed
  28. [airshipctl] 2021/02/11 13:18:57 Received error on event channel {error during clusterctl move: [provider bootstrap-kubeadm watching namespace default not found in the target cluster, provider control-plane-kubeadm watching namespace default not found in the target cluster, provider cluster-api watching namespace default not found in the target cluster, provider infrastructure-metal3 watching namespace default not found in the target cluster]}
  29. Error events received on channel, errors are:
  30. [error during clusterctl move: [provider bootstrap-kubeadm watching namespace default not found in the target cluster, provider control-plane-kubeadm watching namespace default not found in the target cluster, provider cluster-api watching namespace default not found in the target cluster, provider infrastructure-metal3 watching namespace default not found in the target cluster]]
  31. dingo@airship:~/airshipctl$ sudo -E ./tools/deployment/33_cluster_move_target_node.sh
  32. + export TIMEOUT=3600
  33. + TIMEOUT=3600
  34. + export KUBECONFIG=/home/dingo/.airship/kubeconfig
  35. + KUBECONFIG=/home/dingo/.airship/kubeconfig
  36. + export KUBECONFIG_EPHEMERAL_CONTEXT=ephemeral-cluster
  37. + KUBECONFIG_EPHEMERAL_CONTEXT=ephemeral-cluster
  38. + export KUBECONFIG_TARGET_CONTEXT=target-cluster
  39. + KUBECONFIG_TARGET_CONTEXT=target-cluster
  40. + export TARGET_NODE=node01
  41. + TARGET_NODE=node01
  42. + export CLUSTER_NAMESPACE=default
  43. + CLUSTER_NAMESPACE=default
  44. + echo 'Check Cluster Status'
  45. Check Cluster Status
  46. + kubectl --kubeconfig /home/dingo/.airship/kubeconfig --context ephemeral-cluster -n default get cluster target-cluster -o json
  47. + jq .status.controlPlaneReady
  48. true
  49. + echo 'Annotate BMH for target node'
  50. Annotate BMH for target node
  51. + kubectl --kubeconfig /home/dingo/.airship/kubeconfig --context ephemeral-cluster -n default annotate bmh node01 baremetalhost.metal3.io/paused=true
  52. error: --overwrite is false but found the following declared annotation(s): 'baremetalhost.metal3.io/paused' already has a value (true)
  53.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement