Guest User

Untitled

a guest
Feb 5th, 2021
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.89 KB | None | 0 0
  1. sudo -E ./tools/deployment/30_deploy_controlplane.sh
  2. + TARGET_IMAGE_DIR=/srv/images
  3. + EPHEMERAL_DOMAIN_NAME=air-ephemeral
  4. + TARGET_IMAGE_URL=https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
  5. + export KUBECONFIG=/home/ubuntu/.airship/kubeconfig
  6. + KUBECONFIG=/home/ubuntu/.airship/kubeconfig
  7. + export KUBECONFIG_TARGET_CONTEXT=target-cluster
  8. + KUBECONFIG_TARGET_CONTEXT=target-cluster
  9. + echo 'Ensure all cdrom images are ejected.'
  10. Ensure all cdrom images are ejected.
  11. ++ sudo virsh list --all --name
  12. ++ grep -v air-ephemeral
  13. + for vm in $(sudo virsh list --all --name |grep -v ${EPHEMERAL_DOMAIN_NAME})
  14. + sudo virsh domblklist air-target-1
  15. + awk 'NF==2 {print $1}'
  16. + grep -v Target
  17. + xargs '-I{}' sudo virsh change-media air-target-1 '{}' --eject
  18. error: No disk found whose source path or target is sda
  19.  
  20. error: The disk device 'hdc' doesn't have media
  21.  
  22. + :
  23. + for vm in $(sudo virsh list --all --name |grep -v ${EPHEMERAL_DOMAIN_NAME})
  24. + sudo virsh domblklist air-worker-1
  25. + awk 'NF==2 {print $1}'
  26. + grep -v Target
  27. + xargs '-I{}' sudo virsh change-media air-worker-1 '{}' --eject
  28. error: No disk found whose source path or target is sda
  29.  
  30. error: The disk device 'hdc' doesn't have media
  31.  
  32. + :
  33. + echo 'Download target image'
  34. Download target image
  35. + DOWNLOAD=200
  36. + '[' -e /srv/images/target-image.qcow2 ']'
  37. +++ stat -c %Y /srv/images/target-image.qcow2
  38. ++ date -d @1612541045 '+%a, %d %b %Y %T %Z'
  39. + MTIME='Fri, 05 Feb 2021 16:04:05 UTC'
  40. ++ curl -sSLI --write-out '%{http_code}' -H 'If-Modified-Since: Fri, 05 Feb 2021 16:04:05 UTC' https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img
  41. ++ tail -1
  42. + DOWNLOAD=304
  43. + '[' 304 '!=' 304 ']'
  44. + md5sum /srv/images/target-image.qcow2
  45. + cut -d ' ' -f 1
  46. + echo 'Create target k8s cluster resources'
  47. Create target k8s cluster resources
  48. + airshipctl phase run controlplane-ephemeral --debug
  49. gpg: keybox '/tmp/pubring.kbx' created
  50. gpg: /tmp/trustdb.gpg: trustdb created
  51. gpg: key 3D16CEE4A27381B4: public key "SOPS Functional Tests Key 1 (https://github.com/mozilla/sops/) <[email protected]>" imported
  52. gpg: key 3D16CEE4A27381B4: secret key imported
  53. gpg: key D8720D957C3D3074: public key "SOPS Functional Tests Key 2 (https://github.com/mozilla/sops/) <[email protected]>" imported
  54. gpg: key D8720D957C3D3074: secret key imported
  55. gpg: key 3D16CEE4A27381B4: "SOPS Functional Tests Key 1 (https://github.com/mozilla/sops/) <[email protected]>" not changed
  56. gpg: key D8720D957C3D3074: "SOPS Functional Tests Key 2 (https://github.com/mozilla/sops/) <[email protected]>" not changed
  57. gpg: key 19F9B5DAEA91FF86: public key "SOPS Functional Tests Key 3 (https://github.com/mozilla/sops/) <[email protected]>" imported
  58. gpg: Total number processed: 5
  59. gpg: imported: 3
  60. gpg: unchanged: 2
  61. gpg: secret keys read: 2
  62. gpg: secret keys imported: 2
  63. gpg: keybox '/tmp/pubring.kbx' created
  64. gpg: /tmp/trustdb.gpg: trustdb created
  65. gpg: key 3D16CEE4A27381B4: public key "SOPS Functional Tests Key 1 (https://github.com/mozilla/sops/) <[email protected]>" imported
  66. gpg: key 3D16CEE4A27381B4: secret key imported
  67. gpg: key D8720D957C3D3074: public key "SOPS Functional Tests Key 2 (https://github.com/mozilla/sops/) <[email protected]>" imported
  68. gpg: key D8720D957C3D3074: secret key imported
  69. gpg: key 3D16CEE4A27381B4: "SOPS Functional Tests Key 1 (https://github.com/mozilla/sops/) <[email protected]>" not changed
  70. gpg: key D8720D957C3D3074: "SOPS Functional Tests Key 2 (https://github.com/mozilla/sops/) <[email protected]>" not changed
  71. gpg: key 19F9B5DAEA91FF86: public key "SOPS Functional Tests Key 3 (https://github.com/mozilla/sops/) <[email protected]>" imported
  72. gpg: Total number processed: 5
  73. gpg: imported: 3
  74. gpg: unchanged: 2
  75. gpg: secret keys read: 2
  76. gpg: secret keys imported: 2
  77. [airshipctl] 2021/02/05 16:06:26 opendev.org/airship/airshipctl@/pkg/phase/executors/k8s_applier.go:103: Getting kubeconfig context name from cluster map
  78. [airshipctl] 2021/02/05 16:06:26 opendev.org/airship/airshipctl@/pkg/phase/executors/k8s_applier.go:108: Getting kubeconfig file information from kubeconfig provider
  79. [airshipctl] 2021/02/05 16:06:29 opendev.org/airship/airshipctl@/pkg/phase/executors/k8s_applier.go:113: Filtering out documents that shouldn't be applied to kubernetes from document bundle
  80. [airshipctl] 2021/02/05 16:06:29 opendev.org/airship/airshipctl@/pkg/phase/executors/k8s_applier.go:121: Using kubeconfig at '/home/ubuntu/.airship/kubeconfig-509810630' and context 'ephemeral-cluster'
  81. [airshipctl] 2021/02/05 16:06:29 opendev.org/airship/airshipctl@/pkg/phase/executors/k8s_applier.go:92: WaitTimeout: 33m20s
  82. [airshipctl] 2021/02/05 16:06:29 opendev.org/airship/airshipctl@/pkg/k8s/applier/applier.go:76: Getting infos for bundle, inventory id is controlplane-ephemeral
  83. [airshipctl] 2021/02/05 16:06:29 opendev.org/airship/airshipctl@/pkg/k8s/applier/applier.go:109: Inventory Object config Map not found, auto generating Inventory object
  84. [airshipctl] 2021/02/05 16:06:29 opendev.org/airship/airshipctl@/pkg/k8s/applier/applier.go:116: Injecting Inventory Object: {"apiVersion":"v1","kind":"ConfigMap","metadata":{"creationTimestamp":null,"labels":{"cli-utils.sigs.k8s.io/inventory-id":"controlplane-ephemeral"},"name":"airshipit-controlplane-ephemeral","namespace":"airshipit"}}{nsfx:false,beh:unspecified} into bundle
  85. [airshipctl] 2021/02/05 16:06:29 opendev.org/airship/airshipctl@/pkg/k8s/applier/applier.go:122: Making sure that inventory object namespace airshipit exists
  86. [airshipctl] 2021/02/05 16:06:30 opendev.org/airship/airshipctl@/pkg/events/processor.go:60: Received error on event channel {can't find scope for resource Cluster.cluster.x-k8s.io target-cluster}
  87. Error events received on channel, errors are:
  88. [can't find scope for resource Cluster.cluster.x-k8s.io target-cluster]
  89. ubuntu@airship:~/airshipctl$ sudo virsh list --all --name
  90. air-ephemeral
  91. air-target-1
  92. air-worker-1
  93.  
Advertisement
Add Comment
Please, Sign In to add comment