In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to install openstack pike in devstack. It is very detailed and has a certain reference value. Friends who are interested must finish it!
1. Environment description
Physical operating system: ubuntu-16.04.4-server-amd64
Controller:192.168.18.61 ubuntu61
Compute:192.168.18.62 ubuntu62
Compute:192.168.18.63 ubuntu63
two。 Modify apt source
Vi / etc/apt/source.list
Deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
Deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
Deb http://mirrors.aliyun.com/ubuntu/ xenial-updates 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
Apt-get update
3. Install python-pip
Apt-get install python-pip
Verify that the installation is successful: pip-V
4. Download devstack
Cd / home
Git clone https://git.openstack.org/openstack-dev/devstack-b stable/pike
Domestic source
Git clone https://git.openstack.org/openstack-dev/devstack-b stable/pike
5. Create the stack user cd / home/devstack/tools/./create-stack-user.shcd / home/mv devstack/ opt/stackchown-R stack:stack / opt/stack/devstack chmod 777 / dev/pts/06. Set the mirror source of pip
Set up domestic pip sources for root and stack users respectively
Mkdir ~ / .pip vi ~ / .pip/pip.conf [global] index-url = https://pypi.douban.com/simple download_cache = ~ / .cache/pip [install] use-mirrors = true mirrors = http://pypi.douban.com/su-stack $mkdir ~ / .pip $vi ~ / .pip/pip.conf [global] index-url = https://pypi.douban.com/simple download_cache = ~ / .cache/pip [install] use- Mirrors = true mirrors = http://pypi.douban.com/7. Edit the local.conf cd / opt/stack/devstack vi local.conf of the controller node [[local | localrc]] GIT_BASE= http://git.trystack.cn NOVNC_REPO= http://git.trystack.cn/kanaka/noVNC.git SPICE_REPO= http://git.trystack.cn/git/spice/spice-html5.git # initial installation Settings true Repeat installation is set to False # RECLONE=False RECLONE=True MULTI_HOST=true HOST_IP=192.168.18.61 LOGFILE=/opt/stack/logs/stack.sh.log ADMIN_PASSWORD=123456 MYSQL_PASSWORD=123456 RABBIT_PASSWORD=123456 SERVICE_PASSWORD=123456 SERVICE_TOKEN=abcdefghijklmnopqrstuvwxyz disable_service n-net enable_service q-svc enable_service q-agt enable_service q-dhcp Enable_service q-l3 enable_service q-meta enable_service q-metering enable_service neutron Q_USE_SECGROUP=True FLOATING_RANGE= "192.168.18.0 Q_FLOATING_ALLOCATION_POOL=start=192.168.18.220 24" FIXED_RANGE= "10.0.0.0 contract 24" End=192.168.18.230 PUBLIC_NETWORK_GATEWAY= "192.168.18.3" Q_L3_ENABLED=True PUBLIC_INTERFACE=enp7s0f0 Q_USE_PROVIDERNET_FOR_PUBLIC=True OVS_PHYSICAL_BRIDGE=br-ex PUBLIC_BRIDGE=br-ex OVS_BRIDGE_MAPPINGS=public:br-ex Q_PLUGIN=ml2 ENABLE_TENANT_VLANS=True LOG_COLOR=True LOGDIR=/opt/stack/logs SCREEN_LOGDIR=$LOGDIR/screen Chown-R stack:stack / opt/stack/devstack/local.conf8. Switch to the stack user and execute the installation script su-stackcd devstack/./stack.sh
If something goes wrong in the middle
Reinstall after. / unstack.sh
Or something wrong?
Reinstall after. / clean.sh
Installation completed output
=
DevStack Component Timing
=
Total runtime 3375
Run_process 15 test_with_retry 6 apt-get-update 11 pip_install 756 osc 237 wait_for_service 25 git_timed 546 dbsync 239 apt-get 361 = This is your host IP address: 192.168.18.61 This is your host IPv6 address: 1 Horizon is now available at http://192.168.18.61/dashboard Keystone is serving at http://192.168.18.61/identity/ The default users are: admin and demo The password: 1234569. Install the compute node
Consistent with controller node operation:
Update apt source install python-pip download devstack create stack user settings pip mirror source
Edit local.conf
Cd / opt/stack/devstack vi local.conf [[local | localrc]] GIT_BASE= http://git.trystack.cn NOVNC_REPO= http://git.trystack.cn/kanaka/noVNC.git SPICE_REPO= http://git.trystack.cn/git/spice/spice-html5.git RECLONE=False MULTI_HOST=true HOST_IP=192.168.18.62 LOGFILE=/opt/stack/logs/stack.sh.log ADMIN_PASSWORD=123456 MYSQL_PASSWORD=123456 RABBIT_PASSWORD=123456 SERVICE_PASSWORD=123456 SERVICE_TOKEN=abcdefghijklmnopqrstuvwxyz SERVICE_HOST=192.168.18.61 MYSQL_HOST=$SERVICE_HOST RABBIT_HOST=$SERVICE_HOST GLANCE_HOSTPORT=$SERVICE_HOST:9292 Q_HOST=$SERVICE_HOST KEYSTONE_AUTH_HOST=$SERVICE_HOST KEYSTONE_SERVICE_HOST=$SERVICE_HOST ENABLED_SERVICES=n-cpu QMui agt http://$SERVICE_HOST:6080/vnc_auto.html" VNCSERVER_LISTEN=$HOST_IP VNCSERVER_PROXYCLIENT_ADDRESS=$VNCSERVER_LISTEN LOG_COLOR=True disable_service tempest on Q_PLUGIN=ml2 ENABLE_TENANT_VLANS=True NEUTRON_CREATE_INITIAL_NETWORKS=False enable_service placement-api NOVA_VNC_ENABLED=True NOVNCPROXY_URL=
Switch to the stack user and execute the installation script
Su-stack
Cd devstack/
. / stack.sh
Installation completed output
= DevStack Component Timing = Total runtime 275 run_process 4 apt-get-update 8 pip_install 109 osc 14 wait_for_service 16 apt-get 28 = This is your host IP address: 192.168.18.62 This is your host IPv6 address: 1 WARNING: Using lib/neutron-legacy is deprecated, and it will be removed in the future Services are running under systemd unit files. For more information see: https://docs.openstack.org/devstack/latest/systemd.html DevStack Version: pike Change: 73d848772186bf674e12f6253263aed9e164413a Merge "Bump the Cinder LVM backing file size to 24Gb." Into stable/pike 2018-04-21 05:10:38 + 0000 OS Version: Ubuntu 16.04 xenial
Finally, the compute node should be registered to run on the control node
Root@ubuntu61:/opt/stack/devstack/tools#. / discover_hosts.sh
The above is all the contents of the article "how to install openstack pike in devstack". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 217
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.