openstack平臺搭建步驟 openstack搭建教程( 四 )


# su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade juno" neutron8、從新啟用compute效勞
# systemctl restart openstack-nova-api.service openstack-nova-scheduler.service openstack-nova-conductor.service9、開機自啟用效勞
# systemctl enable neutron-server.service# systemctl start neutron-server.service10、察看neutron-server過程
# neutron ext-list11、察看關系消息
# tail -f /var/log/neutron/server.log12、擺設內核搜集參數
# cp /etc/sysctl.conf /etc/sysctl.conf.bak# vim /etc/sysctl.conf net.ipv4.ip_forward=1net.ipv4.conf.all.rp_filter=0net.ipv4.conf.default.rp_filter=0# sysctl -p13、安置搜集組件包
# yum -y install openstack-neutron openstack-neutron-ml2 openstack-neutron-openvswitch14、擺設常用的搜集組件
# vim /etc/neutron/plugins/ml2/ml2_conf.ini[ml2_type_flat] flat_networks = external [ovs] local_ip = INSTANCE_TUNNELS_INTERFACE_IP_ADDRESSenable_tunneling = Truebridge_mappings = external:br-ex[agent]tunnel_types = gre# cp /etc/neutron/l3_agent.ini /etc/neutron/l3_agent.ini.bak# vim /etc/neutron/l3_agent.ini[DEFAULT] interface_driver = neutron.agent.linux.interface.OVSInterfaceDriveruse_namespaces = Trueexternal_network_bridge = br-ex verbose = True# cp /etc/neutron/dhcp_agent.ini /etc/neutron/dhcp_agent.ini.bak# vim /etc/neutron/dhcp_agent.ini [DEFAULT]interface_driver = neutron.agent.linux.interface.OVSInterfaceDriverdhcp_driver = neutron.agent.linux.dhcp.Dn *** asquse_namespaces = True verbose = Truedn *** asq_config_file = /etc/neutron/dn *** asq-neutron.conf# cp /etc/neutron/metadata_agent.ini /etc/neutron/metadata_agent.ini.bak# vim /etc/neutron/metadata_agent.ini[DEFAULT] auth_url = http://controller:5000/v2.0auth_region = regionOneadmin_tenant_name = serviceadmin_user = neutronadmin_password = neutronnova_metadata_ip = controller metadata_proxy_shared_secret = METADATA_SECRET verbose = True# vim /etc/nova/nova.conf [neutron] service_metadata_proxy = Truemetadata_proxy_shared_secret = METADATA_SECRET15、在遏制節點上從新啟用API效勞
# systemctl restart openstack-nova-api.service七、安置擺設dashboard
1、安置dashboard和所需的和依附包
# yum install openstack-dashboard httpd mod_wsgi memcached python-memcached2、竄改dashboard擺設文獻
# cp /etc/openstack-dashboard/local_settings /etc/openstack-dashboard/local_settings.bak# vim /etc/openstack-dashboard/local_settingsOPENSTACK_HOST = "controller"ALLOWED_HOSTS = ['*']CACHES = {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache','LOCATION': '127.0.0.1:11211',}}TIME_ZONE = "TIME_ZONE"3、運轉web效勞貫穿OpenStack效勞
# setsebool -P httpd_can_network_connect on4、因為包裝缺點,風度板不許精確加載CSS 。運轉以次吩咐來處置這個題目:
# chown -R apache:apache /usr/share/openstack-dashboard/static5、啟用Web效勞器和對話保存效勞和擺設啟用體例啟用時:
# systemctl enable httpd.service memcached.service# systemctl start httpd.service memcached.service八、考察嘗試
1、鑒于HTTP舉行考察嘗試:
【openstack平臺搭建步驟openstack搭建教程】好了,即日就先到這邊吧!

推薦閱讀