Open GunSik2 opened 4 years ago
sudo yum install ruby-devel libvirt-devel zlib-devel libpng-devel gcc \
qemu-kvm qemu-img libvirt libvirt-python libvirt-client virt-install \
bridge-utils git
sudo yum install https://releases.hashicorp.com/vagrant/2.2.7/vagrant_2.2.7_x86_64.rpm
vagrant plugin install vagrant-hostmanager vagrant plugin install --plugin-version ">= 0.0.31" vagrant-libvirt sudo gpasswd -a ${USER} libvirt newgrp libvirt
sudo firewall-cmd --zone=internal --add-interface=virbr0 sudo firewall-cmd --zone=internal --add-interface=virbr1 sudo firewall-cmd --permanent --zone=internal --add-service=nfs sudo firewall-cmd --permanent --zone=internal --add-service=rpc-bind sudo firewall-cmd --permanent --zone=internal --add-service=mountd sudo firewall-cmd --permanent --zone=internal --add-port=2049/udp sudo firewall-cmd --permanent --add-port=2049/tcp sudo firewall-cmd --permanent --add-port=111/udp sudo firewall-cmd --permanent --add-port=111/tcp
sudo firewall-cmd --reload sudo systemctl restart firewalld sudo firewall-cmd --list-all sudo firewall-cmd --zone=internal --list-all
// enable udp
[nfsd] udp=y
sudo systemctl start nfs-server sudo systemctl start rpcbind.service sudo systemctl enable nfs-server sudo systemctl enable rpcbind.service
sudo systemctl start libvirtd sudo systemctl enable libvirtd
- create vm using vagrant
mkdir kolla; cd kolla; git clone https://opendev.org/openstack/kolla-cli -b stable/train git clone https://opendev.org/openstack/kolla-ansible -b stable/train git clone https://opendev.org/openstack/kolla -b stable/train
sudo yum install -y python3-pip sudo ln -s /bin/python3 /bin/python // sudo alternatives --set python /bin/python3
cd kolla-ansible/contrib/dev/vagrant && vagrant up vagrant status
- ssh to operator vm and deploy kolla-ansible to multiple vm nodes
vagrant ssh operator
sudo rm /etc/yum.repos.d/docker.repo // fix sudo yum install epel-release sudo yum install ansible
sudo pip install --upgrade pip sudo yum install -y epel-release python-pip sudo pip install -r kolla/requirements.txt -r kolla/test-requirements.txt
sudo pip install "kolla-ansible==5.0.0"
kolla-genpwd sudo kolla-ansible deploy -i /usr/share/kolla-ansible/ansible/inventory/multinode kolla-ansible post-deploy . /etc/kolla/admin-openrc.sh openstack user list
# Reference
- https://docs.openstack.org/tacker/latest/install/kolla.html
yum install python-devel libffi-devel gcc openssl-devel libselinux-python
yum install python-virtualenv
virtualenv kolla-env
source kolla-env/bin/activate
(kolla-env) git clone https://github.com/openstack/kolla-ansible.git -b stable/train
(kolla-env) cd kolla-ansible
(kolla-env) pip install -r requirements.txt
(kolla-env) pip install --upgrade pip
(kolla-env) python setup.py install
(kolla-env) pip install "kolla-ansible==9.0.1"
(kolla-env) kolla-genpwd
(kolla-env) kolla-ansible deploy -i /etc/kolla/inventory/all-in-one
/root/kolla-env/bin/kolla-ansible: line 28: ansible-playbook: command not found
(kolla-env) kolla-ansible post-deploy
(kolla-env) docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Names}}"
Install dependencies¶
Install dependencies using a virtual environment
Install Kolla-ansible
Configure Ansible
Prepare initial configuration
Deployment
Using OpenStack
Reference