Guest User

Untitled

a guest
Sep 10th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 11.75 KB | None | 0 0
  1. root@airshipit:~/deploy/airship-in-a-bottle/manifests/dev_single_node# ./airship-in-a-bottle.sh                
  2. Welcome to Airship in a Bottle
  3.  
  4.  /--------------------\
  5. |                      \
  6. |        |---|          \----
  7. |        | x |                \
  8. |        |---|                 |
  9. |          |                  /
  10. |     \____|____/       /----
  11. |                      /
  12.  \--------------------/
  13.  
  14.  
  15. A prototype example of deploying the Airship suite on a single VM.
  16.  
  17.  
  18. This example will run through:
  19.  - Setup
  20.  - Genesis of Airship (Kubernetes)
  21.  - Basic deployment of Openstack (including Nova, Neutron, and Horizon using Openstack Helm)
  22.  - VM creation automation using Heat
  23.  
  24. The expected runtime of this script is greater than 1 hour
  25.  
  26.  
  27. The minimum recommended size of the Ubuntu 16.04 VM is 4 vCPUs, 20GB of RAM with 32GB disk space.
  28. Let's collect some information about your VM to get started.
  29. Is your HOST IFACE ens3? (Y/n)
  30. Is your LOCAL IP 192.168.2.40? (Y/n)
  31. ++ hostname -s
  32. + export SHORT_HOSTNAME=airshipit
  33. + SHORT_HOSTNAME=airshipit
  34. + set +x
  35. Not updating /etc/hosts, entry 192.168.2.40 airshipit already exists.
  36. + export HOSTIP=192.168.2.40
  37. + HOSTIP=192.168.2.40
  38. + export HOSTCIDR=192.168.2.40/32
  39. + HOSTCIDR=192.168.2.40/32
  40. + export NODE_NET_IFACE=ens3
  41. + NODE_NET_IFACE=ens3
  42. + export TARGET_SITE=demo
  43. + TARGET_SITE=demo
  44. + set +x
  45. Using DNS servers 192.168.3.100 and 192.168.3.100.
  46.  
  47. Starting Airship deployment...
  48. + LAST_STEP_NAME=demo
  49. + [[ demo == \c\o\l\l\e\c\t ]]
  50. + [[ demo == \g\e\n\e\s\i\s ]]
  51. + [[ demo == \d\e\p\l\o\y ]]
  52. + [[ demo == \d\e\m\o ]]
  53. + STEP_BREAKPOINT=40
  54. + export WORKSPACE=/root/deploy
  55. + WORKSPACE=/root/deploy
  56. + TARGET_SITE=demo
  57. + http_proxy=
  58. + https_proxy=
  59. + no_proxy=
  60. + SHORT_HOSTNAME=airshipit
  61. + HOSTIP=192.168.2.40
  62. + HOSTCIDR=192.168.2.40/32
  63. + NODE_NET_IFACE=ens3
  64. + POST_GENESIS_DELAY=60
  65. + AIRSHIP_IN_A_BOTTLE_REPO=https://git.openstack.org/openstack/airship-in-a-bottle
  66. + AIRSHIP_IN_A_BOTTLE_REFSPEC=
  67. + PEGLEG_REPO=https://git.openstack.org/openstack/airship-pegleg.git
  68. + PEGLEG_REFSPEC=
  69. + SHIPYARD_REPO=https://git.openstack.org/openstack/airship-shipyard.git
  70. + SHIPYARD_REFSPEC=
  71. + PEGLEG_IMAGE=quay.io/airshipit/pegleg:1ada48cc360ec52c7ab28b96c28a0c7df8bcee40
  72. + PROMENADE_IMAGE=quay.io/airshipit/promenade:master
  73. + PEGLEG=/root/deploy/airship-pegleg/tools/pegleg.sh
  74. + trap clean EXIT
  75. + check_preconditions
  76. + set +x
  77. + configure_apt
  78. + [[ ! -z '' ]]
  79. + [[ ! -z '' ]]
  80. + setup_workspace
  81. + mkdir -p /root/deploy/collected
  82. + mkdir -p /root/deploy/genesis
  83. + chmod -R 777 /root/deploy/genesis
  84. + setup_repos
  85. + get_repo airship-pegleg https://git.openstack.org/openstack/airship-pegleg.git
  86. + cd /root/deploy
  87. + '[' '!' -d airship-pegleg ']'
  88. + get_repo airship-in-a-bottle https://git.openstack.org/openstack/airship-in-a-bottle
  89. + cd /root/deploy
  90. + '[' '!' -d airship-in-a-bottle ']'
  91. + get_repo airship-shipyard https://git.openstack.org/openstack/airship-shipyard.git
  92. + cd /root/deploy
  93. + '[' '!' -d airship-shipyard ']'
  94. + configure_dev_configurables
  95. + cat
  96. + install_dependencies
  97. + apt -qq update
  98. 219 packages can be upgraded. Run 'apt list --upgradable' to see them.
  99. + apt -y install --no-install-recommends docker.io jq nmap
  100. Reading package lists... Done
  101. Building dependency tree      
  102. Reading state information... Done
  103. nmap is already the newest version (7.01-2ubuntu2).
  104. docker.io is already the newest version (17.03.2-0ubuntu2~16.04.1).
  105. jq is already the newest version (1.5+dfsg-1ubuntu0.1).
  106. The following packages were automatically installed and are no longer required:
  107.  libexpat1-dev libpython-all-dev libpython-dev libpython2.7 libpython2.7-dev python-all python-all-dev
  108.  python-dev python-pip-whl python-pkg-resources python-setuptools python-wheel python2.7-dev
  109. Use 'apt autoremove' to remove them.
  110. 0 upgraded, 0 newly installed, 0 to remove and 219 not upgraded.
  111. + configure_docker
  112. + [[ ! -z '' ]]
  113. + [[ ! -z '' ]]
  114. + [[ 40 -ge 10 ]]
  115. + run_pegleg_collect
  116. + IMAGE=quay.io/airshipit/pegleg:1ada48cc360ec52c7ab28b96c28a0c7df8bcee40
  117. + /root/deploy/airship-pegleg/tools/pegleg.sh site -p /workspace/airship-in-a-bottle/deployment_files collect demo -s /workspace/collected
  118.  
  119. == NOTE: Workspace /root/deploy is the execution directory in the container ==
  120.  
  121. + [[ 40 -ge 20 ]]
  122. + generate_certs
  123. + set +x
  124. === Generating updated certificates ===
  125. + cp /root/deploy/collected/deployment_files.yaml /root/deploy/genesis
  126. ++ ls /root/deploy/genesis
  127. + docker run --rm -t -e http_proxy= -e https_proxy= -e no_proxy= -w /target -e PROMENADE_DEBUG=false -v /root/deploy/genesis:/target quay.io/airshipit/promenade:master promenade generate-certs -o /target certificates.yaml deployment_files.yaml genesis.sh validate-cluster.sh validate-genesis.sh
  128. + PORT=9000
  129. + UWSGI_TIMEOUT=300
  130. + PROMENADE_THREADS=1
  131. + PROMENADE_WORKERS=4
  132. + '[' promenade = server ']'
  133. + exec promenade generate-certs -o /target certificates.yaml deployment_files.yaml genesis.sh validate-cluster.sh validate-genesis.sh
  134. /usr/local/lib/python3.6/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.23) or chardet (3.0.4) doesn't match a supported version!
  135.   RequestsDependencyWarning)
  136. 2018-09-10 19:29:43,039 INFO     - - - promenade.config:from_streams [ 54] Loading documents from certificates.yaml
  137. 2018-09-10 19:29:43,193 INFO     - - - promenade.config:from_streams [ 58] Successfully loaded 42 documents from certificates.yaml
  138. 2018-09-10 19:29:43,193 INFO     - - - promenade.config:from_streams [ 54] Loading documents from deployment_files.yaml
  139. 2018-09-10 19:29:45,262 INFO     - - - promenade.config:from_streams [ 58] Successfully loaded 204 documents from deployment_files.yaml
  140. 2018-09-10 19:29:45,262 INFO     - - - promenade.config:from_streams [ 54] Loading documents from genesis.sh
  141. Traceback (most recent call last):
  142.   File "/usr/local/bin/promenade", line 11, in <module>
  143.     load_entry_point('promenade', 'console_scripts', 'promenade')()
  144.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in __call__
  145.     return self.main(*args, **kwargs)
  146.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
  147.     rv = self.invoke(ctx)
  148.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
  149.     return _process_result(sub_ctx.command.invoke(sub_ctx))
  150.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
  151.     return ctx.invoke(self.callback, **ctx.params)
  152.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
  153.     return callback(*args, **kwargs)
  154.   File "/opt/promenade/promenade/cli.py", line 67, in genereate_certs
  155.     validate=False)
  156.   File "/opt/promenade/promenade/config.py", line 55, in from_streams
  157.     stream_documents = list(yaml.safe_load_all(stream))
  158.   File "/usr/local/lib/python3.6/site-packages/yaml/__init__.py", line 84, in load_all
  159.     yield loader.get_data()
  160.   File "/usr/local/lib/python3.6/site-packages/yaml/constructor.py", line 31, in get_data
  161.     return self.construct_document(self.get_node())
  162.   File "/usr/local/lib/python3.6/site-packages/yaml/composer.py", line 27, in get_node
  163.     return self.compose_document()
  164.   File "/usr/local/lib/python3.6/site-packages/yaml/composer.py", line 58, in compose_document
  165.     self.get_event()
  166.   File "/usr/local/lib/python3.6/site-packages/yaml/parser.py", line 118, in get_event
  167.     self.current_event = self.state()
  168.   File "/usr/local/lib/python3.6/site-packages/yaml/parser.py", line 193, in parse_document_end
  169.     token = self.peek_token()
  170.   File "/usr/local/lib/python3.6/site-packages/yaml/scanner.py", line 128, in peek_token
  171.     self.fetch_more_tokens()
  172.   File "/usr/local/lib/python3.6/site-packages/yaml/scanner.py", line 220, in fetch_more_tokens
  173.     return self.fetch_value()
  174.   File "/usr/local/lib/python3.6/site-packages/yaml/scanner.py", line 576, in fetch_value
  175.     self.get_mark())
  176. yaml.scanner.ScannerError: mapping values are not allowed here
  177.   in "genesis.sh", line 102, column 63
  178. + cp /root/deploy/genesis/certificates.yaml /root/deploy/airship-in-a-bottle/deployment_files/site/demo/secrets
  179. + generate_genesis
  180. ++ ls /root/deploy/genesis
  181. + docker run --rm -t -e http_proxy= -e https_proxy= -e no_proxy= -w /target -e PROMENADE_DEBUG=false -v /root/deploy/genesis:/target quay.io/airshipit/promenade:master promenade build-all -o /target --validators certificates.yaml deployment_files.yaml genesis.sh validate-cluster.sh validate-genesis.sh
  182. + PORT=9000
  183. + UWSGI_TIMEOUT=300
  184. + PROMENADE_THREADS=1
  185. + PROMENADE_WORKERS=4
  186. + '[' promenade = server ']'
  187. + exec promenade build-all -o /target --validators certificates.yaml deployment_files.yaml genesis.sh validate-cluster.sh validate-genesis.sh
  188. /usr/local/lib/python3.6/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.23) or chardet (3.0.4) doesn't match a supported version!
  189.  RequestsDependencyWarning)
  190. 2018-09-10 19:29:47,301 INFO     - - - promenade.config:from_streams [ 54] Loading documents from certificates.yaml
  191. 2018-09-10 19:29:47,478 INFO     - - - promenade.config:from_streams [ 58] Successfully loaded 42 documents from certificates.yaml
  192. 2018-09-10 19:29:47,478 INFO     - - - promenade.config:from_streams [ 54] Loading documents from deployment_files.yaml
  193. 2018-09-10 19:29:49,762 INFO     - - - promenade.config:from_streams [ 58] Successfully loaded 204 documents from deployment_files.yaml
  194. 2018-09-10 19:29:49,762 INFO     - - - promenade.config:from_streams [ 54] Loading documents from genesis.sh
  195. Traceback (most recent call last):
  196.  File "/usr/local/bin/promenade", line 11, in <module>
  197.    load_entry_point('promenade', 'console_scripts', 'promenade')()
  198.  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in __call__
  199.    return self.main(*args, **kwargs)
  200.  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
  201.    rv = self.invoke(ctx)
  202.  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
  203.    return _process_result(sub_ctx.command.invoke(sub_ctx))
  204.  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
  205.    return ctx.invoke(self.callback, **ctx.params)
  206.  File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
  207.    return callback(*args, **kwargs)
  208.  File "/opt/promenade/promenade/cli.py", line 42, in build_all
  209.    streams=config_files)
  210.  File "/opt/promenade/promenade/config.py", line 55, in from_streams
  211.    stream_documents = list(yaml.safe_load_all(stream))
  212.  File "/usr/local/lib/python3.6/site-packages/yaml/__init__.py", line 84, in load_all
  213.    yield loader.get_data()
  214.  File "/usr/local/lib/python3.6/site-packages/yaml/constructor.py", line 31, in get_data
  215.    return self.construct_document(self.get_node())
  216.  File "/usr/local/lib/python3.6/site-packages/yaml/composer.py", line 27, in get_node
  217.    return self.compose_document()
  218.  File "/usr/local/lib/python3.6/site-packages/yaml/composer.py", line 58, in compose_document
  219.    self.get_event()
  220.  File "/usr/local/lib/python3.6/site-packages/yaml/parser.py", line 118, in get_event
  221.    self.current_event = self.state()
  222.  File "/usr/local/lib/python3.6/site-packages/yaml/parser.py", line 193, in parse_document_end
  223.    token = self.peek_token()
  224.  File "/usr/local/lib/python3.6/site-packages/yaml/scanner.py", line 128, in peek_token
  225.    self.fetch_more_tokens()
  226.  File "/usr/local/lib/python3.6/site-packages/yaml/scanner.py", line 220, in fetch_more_tokens
  227.    return self.fetch_value()
  228.  File "/usr/local/lib/python3.6/site-packages/yaml/scanner.py", line 576, in fetch_value
  229.    self.get_mark())
  230. yaml.scanner.ScannerError: mapping values are not allowed here
  231.  in "genesis.sh", line 102, column 63
  232. + error 'generating genesis'
  233. + set +x
  234. Error when generating genesis.
  235. + exit 1
  236. + clean
  237. + set +x
  238. To remove files generated during this script's execution, delete /root/deploy.
Advertisement
Add Comment
Please, Sign In to add comment