Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
## this is all-in-one install on localhost .. so being root# from start
# apt-get update
# apt-get install python-dev libffi-dev gcc libssl-dev python-selinux python-setuptools
## using virtualenv to setup the environment
apt-get install python-virtualenv
virtualenv kolla-setup
cd kolla-setup
source ./bin/activate
(kolla-setup) #
(kolla-setup) # pip install -U pip
(kolla-setup) # pip install ansible
(kolla-setup) # pip install kolla-ansible
(kolla-setup) # mkdir -p /etc/kolla
(kolla-setup) # cp -r share/kolla-ansible/etc_examples/kolla/* /etc/kolla
(kolla-setup) # cp share/kolla-ansible/ansible/inventory/* .
-------------------------------------------------------
(kolla-setup) # ls -al
total 48
drwxr-xr-x 6 root root 4096 Feb 8 18:32 .
drwxr-xr-x 6 sd sd 4096 Feb 8 18:27 ..
-rw-r--r-- 1 root root 9245 Feb 8 18:32 all-in-one
drwxr-xr-x 2 root root 4096 Feb 8 18:29 bin
drwxr-xr-x 3 root root 4096 Feb 8 18:27 lib
drwxr-xr-x 2 root root 4096 Feb 8 18:27 local
-rw-r--r-- 1 root root 9719 Feb 8 18:32 multinode
drwxr-xr-x 4 root root 4096 Feb 8 18:29 share
-------------------------------------------------------
(kolla-setup) # mkdir /etc/ansible
(kolla-setup) # cat <<EOF > /etc/ansible/ansible.cfg
[defaults]
host_key_checking=False
pipelining=True
forks=100
EOF
(kolla-setup) # kolla-genpwd
(kolla-setup) # vim /etc/kolla/globals.yml ##
---
kolla_base_distro: "ubuntu"
kolla_install_type: "source"
openstack_release: "train"
kolla_internal_vip_address: "192.168.88.99"
network_interface: "eno0s3"
neutron_external_interface: "enp0s8"
neutron_plugin_agent: "openvswitch"
openstack_region_name: "NL"
enable_openstack_core: "yes"
(kolla-setup) # kolla-ansible -i ./all-in-one bootstrap-servers
PLAY RECAP **********************************************************************************************************
localhost : ok=40 changed=18 unreachable=0 failed=0 skipped=32 rescued=0 ignored=0
(kolla-setup) # kolla-ansible -i ./all-in-one prechecks
TASK [prechecks : include_tasks] ************************************************************************************
included: /home/sd/kolla-setup/share/kolla-ansible/ansible/roles/prechecks/tasks/package_checks.yml for localhost
TASK [prechecks : Checking docker SDK version] **********************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["/usr/bin/python", "-c", "import docker; print(docker.__version__)"], "delta": "0:00:00.006506", "end": "2020-02-08 18:41:41.576385", "failed_when_result": true, "msg": "non-zero return code", "rc": 1, "start": "2020-02-08 18:41:41.569879", "stderr": "Traceback (most recent call last):\n File \"<string>\", line 1, in <module>\nImportError: No module named docker", "stderr_lines": ["Traceback (most recent call last):", " File \"<string>\", line 1, in <module>", "ImportError: No module named docker"], "stdout": "", "stdout_lines": []}
PLAY RECAP **********************************************************************************************************
localhost : ok=10 changed=0 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment