Localrc file for automatic deployment of openstack on devstack and troubleshooting

Source: Internet
Author: User
Tags qpid

After preparation, create a localrc file in the devstack directory. You are advised not to upload the file directly, and paste the following content into it. below is what I reproduced. The following are the sources, however, I also listed several problems during deployment.

# Misc
Database_password = 123456
Admin _password = 123456
Service_password = 123456
Service_token = 123456
Rabbit_password = 123456

# Reclone each time
Reclone = Yes

# For keystone
Keystone_token_format = PKI

# For Swift
# Swift_replicas = 1
# Swift_hash = 011688b44136573e209e

# Enable Logging
DeST =/home/openstack
Logfile = $ DEST/logs/stack. Sh. Log
Verbose = true
Log_color = true
Screen_logdir = $ DEST/logs

# Pre-requisite
Enabled_services = rabbit, MySQL, key

# If you want zeromq instead of rabbitmq (don't forget to un-declare 'rabbit 'from the pre-requesite)
# Enabled_services + =,-Rabbit,-qpid, zeromq

# If you want qpid instead of rabbitmq (don't forget to un-declare 'rabbit 'from the pre-requesite)
# Enabled_services + =,-Rabbit,-zeromq, qpid

# Horizon (dashboard UI)-(always use the trunk)
Enabled_services + =, Horizon
# Horizon_repo = https://github.com/openstack/horizon
# Horizon_branch = Master

# Nova-compute Service
Enabled_services + =, N-API, N-CRT, N-OBJ, N-CPU, N-Cond, N-Sch, N-novnc, N-cauth
Image_urls + = ", https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img"

# Nova network-if you don't want to use neutron and need a simple network setup (old good stuff !)
# Enabled_services + =, N-Net

# Nova Cells
Enabled_services + =, N-Cell

# Glance-Image Service
Enabled_services + =, G-API, G-Reg

# Swift-Object Storage
# Enabled_services + =, S-proxy, S-object, S-container, S-account

# Neutron-networking service
# If neutron is not declared the old good Nova-network will be used
Enabled_services + =, Q-SVC, Q-AGT, Q-DHCP, q-l3, Q-meta, neutron
Vif_plugging_is_fatal = false
Vif_plugging_timeout = 10

# Neutron-Load Balancing
# Enabled_services + =, Q-lbaas

# Neutron-VPN as a service
# Enabled_services + =, Q-VPN

# Neutron-firewall as a service
# Enabled_services + =, Q-fwaas

# VLAN configuration
# Q_plugin = ml2
# Enable_tenant_vlans = true

# GRE Tunnel Configuration
# Q_plugin = ml2
# Enable_tenant_tunnels = true

# Vxlan Tunnel Configuration
Q_plugin = ml2
Q_ml2_tenant_network_type = vxlan

# Cinder-block device service
Enabled_services + =, cinder, C-API, C-Vol, C-sch

# Heat-Orchestration Service
# Enabled_services + =, heat, H-API, H-API-CFN, H-API-CW, H-Eng
# Image_urls + = ", http://fedorapeople.org/groups/heat/prebuilt-jeos-images/F17-x86_64-cfntools.qcow2"

# Ceilometer-metering Service (metering + alarming)
# Enabled_services + =, ceilometer-acompute, ceilometer-acentral, ceilometer-collector, ceilometer-API
# Enabled_services + =, ceilometer-alarm-notify, ceilometer-alarm-eval

# Apache fronted for wsgi
Apache_enabled_services + = keystone
#, Swift
# Swift_hash = 123456


It may be slow due to source issues, but the deployment is normal. You can try it.


Script to: http://f.dataguru.cn/thread-355966-1-1.html


The following are the problems I encountered during deployment:

1. This is because the network configuration of the localrc file you are using is incorrect. Remember not to change the file if you have no experience or use ftp to upload the file directly. Create a localrc file in the devstack directory, paste the content and check whether there are any garbled characters. Solve the Problem and run it again. /stack. sh. /unstack. sh.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/84/wKiom1P79jvxyKZYAAR5kubhwus508.jpg "Title =" qq20140826103811.jpg "alt =" wkiom1p79jvxykzyaar5kubhwus508.jpg "/>

2. Here, the BASIC script is okay. This is a permission issue caused by running the script with the user you created. Remember that you cannot run the script with the root user, there is no problem for the default stack user. I used the openstack user I created to execute this problem. In this case, we manually execute Sudo-P/opt/stack/status, then grant chown-r openstack: openstack/opt/stack/status to clear the logs. /unstack. sh, and then run again. /stack. sh, is it successful.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/85/wKioL1P799LRQsgvAAQTRRuPJI4190.jpg "Title =" qq 40826104526.jpg "alt =" wkiol1p799lrqsgvaaqtrrupji4190.jpg "/>

3. Another problem is that I use the default 3.0 image to create a virtual machine and cannot access the system. It looks like a hard disk problem. Reading the log mailbox is a network problem. Someone said it was a bug of the 3.0 image, after the 3.2 image is created, there is no problem. The image address is posted here: wgethttp: // response.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/86/wKioL1P7-92TV09GAAOMKeEobjQ506.jpg "style =" float: none; "Title =" 1.jpg" alt = "wKioL1P7-92TV09GAAOMKeEobjQ506.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/85/wKiom1P7-sawduMrAAMnTt-B3zg712.jpg "style =" float: none; "Title =" 2.jpg" alt = "wKiom1P7-sawduMrAAMnTt-B3zg712.jpg"/>




These are the problems I encountered and are for reference only.



Devstack automatically deploys the localrc file of openstack and issues I encountered./home/openstack/devstack/lib/neutron: Line 523: neutron_pi not found, permission denied, Exit 1, checktime reached, running e2fsck recommended, wget: server returned error: HTTP/1.1 500 internal server error, cloud-setup: Failed 15/30: Up 885.58 request failed










This article from the "soul forever" blog, please be sure to keep this source http://tianhunyongheng.blog.51cto.com/1446947/1545037

Localrc file for automatic deployment of openstack on devstack and troubleshooting

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.