Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@airshipit:~/deploy/airship-in-a-bottle/manifests/dev_single_node# ./airship-in-a-bottle.sh
- Welcome to Airship in a Bottle
- /--------------------\
- | \
- | |---| \----
- | | x | \
- | |---| |
- | | /
- | \____|____/ /----
- | /
- \--------------------/
- A prototype example of deploying the Airship suite on a single VM.
- This example will run through:
- - Setup
- - Genesis of Airship (Kubernetes)
- - Basic deployment of Openstack (including Nova, Neutron, and Horizon using Openstack Helm)
- - VM creation automation using Heat
- The expected runtime of this script is greater than 1 hour
- The minimum recommended size of the Ubuntu 16.04 VM is 4 vCPUs, 20GB of RAM with 32GB disk space.
- Let's collect some information about your VM to get started.
- Is your HOST IFACE ens3? (Y/n)
- Is your LOCAL IP 192.168.2.40? (Y/n)
- ++ hostname -s
- + export SHORT_HOSTNAME=airshipit
- + SHORT_HOSTNAME=airshipit
- + set +x
- Not updating /etc/hosts, entry 192.168.2.40 airshipit already exists.
- + export HOSTIP=192.168.2.40
- + HOSTIP=192.168.2.40
- + export HOSTCIDR=192.168.2.40/32
- + HOSTCIDR=192.168.2.40/32
- + export NODE_NET_IFACE=ens3
- + NODE_NET_IFACE=ens3
- + export TARGET_SITE=demo
- + TARGET_SITE=demo
- + set +x
- Using DNS servers 192.168.3.100 and 192.168.3.100.
- Starting Airship deployment...
- + LAST_STEP_NAME=demo
- + [[ demo == \c\o\l\l\e\c\t ]]
- + [[ demo == \g\e\n\e\s\i\s ]]
- + [[ demo == \d\e\p\l\o\y ]]
- + [[ demo == \d\e\m\o ]]
- + STEP_BREAKPOINT=40
- + export WORKSPACE=/root/deploy
- + WORKSPACE=/root/deploy
- + TARGET_SITE=demo
- + http_proxy=
- + https_proxy=
- + no_proxy=
- + SHORT_HOSTNAME=airshipit
- + HOSTIP=192.168.2.40
- + HOSTCIDR=192.168.2.40/32
- + NODE_NET_IFACE=ens3
- + POST_GENESIS_DELAY=60
- + AIRSHIP_IN_A_BOTTLE_REPO=https://git.openstack.org/openstack/airship-in-a-bottle
- + AIRSHIP_IN_A_BOTTLE_REFSPEC=
- + PEGLEG_REPO=https://git.openstack.org/openstack/airship-pegleg.git
- + PEGLEG_REFSPEC=
- + SHIPYARD_REPO=https://git.openstack.org/openstack/airship-shipyard.git
- + SHIPYARD_REFSPEC=
- + PEGLEG_IMAGE=quay.io/airshipit/pegleg:1ada48cc360ec52c7ab28b96c28a0c7df8bcee40
- + PROMENADE_IMAGE=quay.io/airshipit/promenade:master
- + PEGLEG=/root/deploy/airship-pegleg/tools/pegleg.sh
- + trap clean EXIT
- + check_preconditions
- + set +x
- + configure_apt
- + [[ ! -z '' ]]
- + [[ ! -z '' ]]
- + setup_workspace
- + mkdir -p /root/deploy/collected
- + mkdir -p /root/deploy/genesis
- + chmod -R 777 /root/deploy/genesis
- + setup_repos
- + get_repo airship-pegleg https://git.openstack.org/openstack/airship-pegleg.git
- + cd /root/deploy
- + '[' '!' -d airship-pegleg ']'
- + get_repo airship-in-a-bottle https://git.openstack.org/openstack/airship-in-a-bottle
- + cd /root/deploy
- + '[' '!' -d airship-in-a-bottle ']'
- + get_repo airship-shipyard https://git.openstack.org/openstack/airship-shipyard.git
- + cd /root/deploy
- + '[' '!' -d airship-shipyard ']'
- + configure_dev_configurables
- + cat
- + install_dependencies
- + apt -qq update
- 219 packages can be upgraded. Run 'apt list --upgradable' to see them.
- + apt -y install --no-install-recommends docker.io jq nmap
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- nmap is already the newest version (7.01-2ubuntu2).
- docker.io is already the newest version (17.03.2-0ubuntu2~16.04.1).
- jq is already the newest version (1.5+dfsg-1ubuntu0.1).
- The following packages were automatically installed and are no longer required:
- libexpat1-dev libpython-all-dev libpython-dev libpython2.7 libpython2.7-dev python-all python-all-dev
- python-dev python-pip-whl python-pkg-resources python-setuptools python-wheel python2.7-dev
- Use 'apt autoremove' to remove them.
- 0 upgraded, 0 newly installed, 0 to remove and 219 not upgraded.
- + configure_docker
- + [[ ! -z '' ]]
- + [[ ! -z '' ]]
- + [[ 40 -ge 10 ]]
- + run_pegleg_collect
- + IMAGE=quay.io/airshipit/pegleg:1ada48cc360ec52c7ab28b96c28a0c7df8bcee40
- + /root/deploy/airship-pegleg/tools/pegleg.sh site -p /workspace/airship-in-a-bottle/deployment_files collect demo -s /workspace/collected
- == NOTE: Workspace /root/deploy is the execution directory in the container ==
- + [[ 40 -ge 20 ]]
- + generate_certs
- + set +x
- === Generating updated certificates ===
- + cp /root/deploy/collected/deployment_files.yaml /root/deploy/genesis
- ++ ls /root/deploy/genesis
- + 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
- + PORT=9000
- + UWSGI_TIMEOUT=300
- + PROMENADE_THREADS=1
- + PROMENADE_WORKERS=4
- + '[' promenade = server ']'
- + exec promenade generate-certs -o /target certificates.yaml deployment_files.yaml genesis.sh validate-cluster.sh validate-genesis.sh
- /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!
- RequestsDependencyWarning)
- 2018-09-10 19:29:43,039 INFO - - - promenade.config:from_streams [ 54] Loading documents from certificates.yaml
- 2018-09-10 19:29:43,193 INFO - - - promenade.config:from_streams [ 58] Successfully loaded 42 documents from certificates.yaml
- 2018-09-10 19:29:43,193 INFO - - - promenade.config:from_streams [ 54] Loading documents from deployment_files.yaml
- 2018-09-10 19:29:45,262 INFO - - - promenade.config:from_streams [ 58] Successfully loaded 204 documents from deployment_files.yaml
- 2018-09-10 19:29:45,262 INFO - - - promenade.config:from_streams [ 54] Loading documents from genesis.sh
- Traceback (most recent call last):
- File "/usr/local/bin/promenade", line 11, in <module>
- load_entry_point('promenade', 'console_scripts', 'promenade')()
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in __call__
- return self.main(*args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
- rv = self.invoke(ctx)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
- return _process_result(sub_ctx.command.invoke(sub_ctx))
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
- return ctx.invoke(self.callback, **ctx.params)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
- return callback(*args, **kwargs)
- File "/opt/promenade/promenade/cli.py", line 67, in genereate_certs
- validate=False)
- File "/opt/promenade/promenade/config.py", line 55, in from_streams
- stream_documents = list(yaml.safe_load_all(stream))
- File "/usr/local/lib/python3.6/site-packages/yaml/__init__.py", line 84, in load_all
- yield loader.get_data()
- File "/usr/local/lib/python3.6/site-packages/yaml/constructor.py", line 31, in get_data
- return self.construct_document(self.get_node())
- File "/usr/local/lib/python3.6/site-packages/yaml/composer.py", line 27, in get_node
- return self.compose_document()
- File "/usr/local/lib/python3.6/site-packages/yaml/composer.py", line 58, in compose_document
- self.get_event()
- File "/usr/local/lib/python3.6/site-packages/yaml/parser.py", line 118, in get_event
- self.current_event = self.state()
- File "/usr/local/lib/python3.6/site-packages/yaml/parser.py", line 193, in parse_document_end
- token = self.peek_token()
- File "/usr/local/lib/python3.6/site-packages/yaml/scanner.py", line 128, in peek_token
- self.fetch_more_tokens()
- File "/usr/local/lib/python3.6/site-packages/yaml/scanner.py", line 220, in fetch_more_tokens
- return self.fetch_value()
- File "/usr/local/lib/python3.6/site-packages/yaml/scanner.py", line 576, in fetch_value
- self.get_mark())
- yaml.scanner.ScannerError: mapping values are not allowed here
- in "genesis.sh", line 102, column 63
- + cp /root/deploy/genesis/certificates.yaml /root/deploy/airship-in-a-bottle/deployment_files/site/demo/secrets
- + generate_genesis
- ++ ls /root/deploy/genesis
- + 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
- + PORT=9000
- + UWSGI_TIMEOUT=300
- + PROMENADE_THREADS=1
- + PROMENADE_WORKERS=4
- + '[' promenade = server ']'
- + exec promenade build-all -o /target --validators certificates.yaml deployment_files.yaml genesis.sh validate-cluster.sh validate-genesis.sh
- /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!
- RequestsDependencyWarning)
- 2018-09-10 19:29:47,301 INFO - - - promenade.config:from_streams [ 54] Loading documents from certificates.yaml
- 2018-09-10 19:29:47,478 INFO - - - promenade.config:from_streams [ 58] Successfully loaded 42 documents from certificates.yaml
- 2018-09-10 19:29:47,478 INFO - - - promenade.config:from_streams [ 54] Loading documents from deployment_files.yaml
- 2018-09-10 19:29:49,762 INFO - - - promenade.config:from_streams [ 58] Successfully loaded 204 documents from deployment_files.yaml
- 2018-09-10 19:29:49,762 INFO - - - promenade.config:from_streams [ 54] Loading documents from genesis.sh
- Traceback (most recent call last):
- File "/usr/local/bin/promenade", line 11, in <module>
- load_entry_point('promenade', 'console_scripts', 'promenade')()
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 722, in __call__
- return self.main(*args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 697, in main
- rv = self.invoke(ctx)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
- return _process_result(sub_ctx.command.invoke(sub_ctx))
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 895, in invoke
- return ctx.invoke(self.callback, **ctx.params)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 535, in invoke
- return callback(*args, **kwargs)
- File "/opt/promenade/promenade/cli.py", line 42, in build_all
- streams=config_files)
- File "/opt/promenade/promenade/config.py", line 55, in from_streams
- stream_documents = list(yaml.safe_load_all(stream))
- File "/usr/local/lib/python3.6/site-packages/yaml/__init__.py", line 84, in load_all
- yield loader.get_data()
- File "/usr/local/lib/python3.6/site-packages/yaml/constructor.py", line 31, in get_data
- return self.construct_document(self.get_node())
- File "/usr/local/lib/python3.6/site-packages/yaml/composer.py", line 27, in get_node
- return self.compose_document()
- File "/usr/local/lib/python3.6/site-packages/yaml/composer.py", line 58, in compose_document
- self.get_event()
- File "/usr/local/lib/python3.6/site-packages/yaml/parser.py", line 118, in get_event
- self.current_event = self.state()
- File "/usr/local/lib/python3.6/site-packages/yaml/parser.py", line 193, in parse_document_end
- token = self.peek_token()
- File "/usr/local/lib/python3.6/site-packages/yaml/scanner.py", line 128, in peek_token
- self.fetch_more_tokens()
- File "/usr/local/lib/python3.6/site-packages/yaml/scanner.py", line 220, in fetch_more_tokens
- return self.fetch_value()
- File "/usr/local/lib/python3.6/site-packages/yaml/scanner.py", line 576, in fetch_value
- self.get_mark())
- yaml.scanner.ScannerError: mapping values are not allowed here
- in "genesis.sh", line 102, column 63
- + error 'generating genesis'
- + set +x
- Error when generating genesis.
- + exit 1
- + clean
- + set +x
- To remove files generated during this script's execution, delete /root/deploy.
Advertisement
Add Comment
Please, Sign In to add comment