1. Deployment environment: VMware Workstation Ubuntu16.04 system (4G memory, 80G hard disk) Note: Network mode selection bridge
2. Devstack version: ocata
Third, the deployment process: (all commands are entered in the Ubuntu system terminal)
1. Install git: sudo apt-get install git
2. Modify the source of apt to a domestic source: (1) Open the file: vim /etc/apt/sources.list
(2) The modified content is:
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu / xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
2. Download the Devstack source code:git clone https://git.openstack.org/openstack-dev/devstack -b stable / ocata
3. Create a stack user: devstack/tools/create-stack-user.sh
4. View pip: (1) Enter the command: pip
(2) If there is no prompt, please install: sudo apt-get install python-pip
5. Modify the pip source of root and stack users
(1) Under the root user: 1. Create a .pip directory: mkdir ~/.pip
2. Modify the source of pip: vim ~/.pip/pip.conf
3. The modification content is:
(2) Switch to stack user: su - stack
1. Create a .pip directory: mkdir ~/.pip
2. Modify the source of pip: vim ~/.pip/pip.conf
3. The modification content is:
[global]
6. Create the local.conf file in the devstack directory
(1)vim devstack/local.conf
(2) The content is: (Some parameters need to be modified, see the next section)
(3) Parameter modification
1.HOST_IP=192.168.1.141 - this IP address needs to be changed to the IP address of your Ubuntu system
These can be customized, the password of ADMIN_PASSWORD can be used to log in to the horizon of OpenStack
3.HORIZON_BRANCH = stable
HEAT_BRANCH=stable/ocata
SWIFT_BRANCH=stable/ocata
The branches of these components should be consistent with the Devstack version branch you downloaded
4.FLOATING_RANGE="192.168.1.0/24"
These must be consistent with the address segment of your HOST_IP
5.PUBLIC_INTERFACE=ens33 - this one should be consistent with the network card of your Ubuntu system, you can use ifconfig to view in Ubuntu
6. Other parameters can be modified without modification
7. Run script deployment
(1) Switch to stack user: su - stack
(2) Enter the devstack directory: ./stack.sh
(3) Wait for the system to run the script by itself
When the content shown in the figure above appears, the deployment is successful. You can enter: http://HOST_IP/dashboard on the browser to access it.
8. The execution of the stack.sh script is generally not smooth sailing. There will be some errors in the middle. Be patient. If you have any questions, you can leave a message to communicate.