650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/46/93/wKioL1PzCASyrDCBAAQzKCS21_k115.jpg "Title =" qq20140819153747.png "alt =" wkiol1pzcasyrdcbaaqzkcs21_k115.jpg "/>
[[Email protected] # cd/usr/local/src/neutron-2014.1
[[Email protected] neutron-2014.1] # Python setup. py install
[[Email protected] etc] # pwd
/Usr/local/src/neutron-2014.1/etc
[[Email protected] etc] # mkdir/etc/neutron
[[Email protected] etc] # mkdir/var/log/neutron
[[Email protected] etc] # mkdir/var/run/neutron
[[Email protected] etc] # mkdir/var/lib/neutron
[[Email protected] etc] # cp-R */etc/neutron/
[[Email protected] etc] # cd/etc/neutron/
[[Email protected] neutron] # ll
Total usage 76
-RW-r -- 1 Root 1017 August 19 08:14 api-paste.ini
-RW-r -- 1 Root 3497 August 19 08:14 dhcp_agent.ini
-RW-r -- 1 Root 109 August 19 08:14 fwaas_driver.ini
Drwxr-XR-x 2 root Root 4096 August 19 08:14 init. d
-RW-r -- 1 Root 3109 August 19 08:14 l3_agent.ini
-RW-r -- 1 Root 1400 August 19 08:14 lbaas_agent.ini
-RW-r -- 1 Root 1335 August 19 08:14 metadata_agent.ini
-RW-r -- 1 Root 407 August 19 08:14 metering_agent.ini
Drwxr-XR-x 4 Root 4096 August 19 08:14 neutron
-RW-r -- 1 Root 17471 August 19 08:14 neutron. conf
-RW-r -- 1 Root 6148 August 19 08:14 policy. JSON
-RW-r -- 1 Root 1216 August 19 08:14 rootwrap. conf
-RW-r -- 1 Root 1128 August 19 08:14 services. conf
-RW-r -- 1 Root 526 August 19 08:14 vpn_agent.ini
[[Email protected] neutron] # cd neutron
[[Email protected] neutron] # pwd
/Etc/neutron
[[Email protected] neutron] # mv *../
[[Email protected] neutron] # CD ..
[[Email protected] neutron] # ll
Total usage 84
-RW-r -- 1 Root 1017 August 19 08:14 api-paste.ini
-RW-r -- 1 Root 3497 August 19 08:14 dhcp_agent.ini
-RW-r -- 1 Root 109 August 19 08:14 fwaas_driver.ini
Drwxr-XR-x 2 root Root 4096 August 19 08:14 init. d
-RW-r -- 1 Root 3109 August 19 08:14 l3_agent.ini
-RW-r -- 1 Root 1400 August 19 08:14 lbaas_agent.ini
-RW-r -- 1 Root 1335 August 19 08:14 metadata_agent.ini
-RW-r -- 1 Root 407 August 19 08:14 metering_agent.ini
Drwxr-XR-x 2 root Root 4096 August 19 08:15 neutron
-RW-r -- 1 Root 17471 August 19 08:14 neutron. conf
Drwxr-XR-x 21 Root 4096 August 19 08:14 plugins
-RW-r -- 1 Root 6148 August 19 08:14 policy. JSON
-RW-r -- 1 Root 1216 August 19 08:14 rootwrap. conf
Drwxr-XR-x 2 root Root 4096 August 19 08:14 rootwrap. d
-RW-r -- 1 Root 1128 August 19 08:14 services. conf
-RW-r -- 1 Root 526 August 19 08:14 vpn_agent.ini
[[Email protected] neutron] # rm-fr neutron
[[Email protected] neutron] # ll
Total usage 80
-RW-r -- 1 Root 1017 August 19 08:14 api-paste.ini
-RW-r -- 1 Root 3497 August 19 08:14 dhcp_agent.ini
-RW-r -- 1 Root 109 August 19 08:14 fwaas_driver.ini
Drwxr-XR-x 2 root Root 4096 August 19 08:14 init. d
-RW-r -- 1 Root 3109 August 19 08:14 l3_agent.ini
-RW-r -- 1 Root 1400 August 19 08:14 lbaas_agent.ini
-RW-r -- 1 Root 1335 August 19 08:14 metadata_agent.ini
-RW-r -- 1 Root 407 August 19 08:14 metering_agent.ini
-RW-r -- 1 Root 17471 August 19 08:14 neutron. conf
Drwxr-XR-x 21 Root 4096 August 19 08:14 plugins
-RW-r -- 1 Root 6148 August 19 08:14 policy. JSON
-RW-r -- 1 Root 1216 August 19 08:14 rootwrap. conf
Drwxr-XR-x 2 root Root 4096 August 19 08:14 rootwrap. d
-RW-r -- 1 Root 1128 August 19 08:14 services. conf
-RW-r -- 1 Root 526 August 19 08:14 vpn_agent.ini
[[Email protected] neutron] # Vim/etc/neutron/Neutron. conf
406gg
Connection = MYSQL: // neutron: [email protected]: 3306/neutron
70gg
Auth_strategy = keystone
395gg
[Keystone_authtoken]
Auth_host = 192.168.33.11
Auth_port = 35357
Auth_protocol = http
Admin_tenant_name = Admin
Admin_user = Admin
Admin_password = Admin
Signing_dir = $ state_path/keystone-signing
134gg
Rabbit_host = 192.168.33.11
# Password of the rabbitmq Server
Rabbit_password = guest
# Port where rabbitmq server is running/listening
Rabbit_port = 5672
# Rabbitmq single or HA cluster (HOST: Port Pairs I. e: host1: 5672, host2: 5672)
# Rabbit_hosts is defaulted to '$ rabbit_host: $ rabbit_port'
# Rabbit_hosts = localhost: 5672
# User ID used for rabbitmq connections
Rabbit_userid = guest
# Location of a virtual rabbitmq installation.
Rabbit_virtual_host =/
3gg
# Print more verbose output (set logging level to Info instead of default warning level ).
Verbose = true
# Print debugging output (set logging level to debug instead of default warning level ).
DEBUG = true
29gg
LOG_FILE = Neutron. Log
Log_dir =/var/log/neutron
306gg
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/46/96/wKioL1PzGHSADtF8AAEBtHkyofc913.jpg "Title =" qq20140819153747.png "alt =" wkiol1pzghsadtf8aaebthkyofc913.jpg "/>
Nova_admin_tenant_id = cdbb9a7dcd044328a7969bc8069624ae
Use the following ID
[[Email protected] neutron] # keystone tenant-list
+ ---------------------------------- + ------- + --------- +
| ID | Name | enabled |
+ ---------------------------------- + ------- + --------- +
| Cdbb9a7dcd044328a7969bc8069624ae | admin | true |
| Ed844c55ff2a45da880c818e356f8a71 | demo | true |
+ ---------------------------------- + ------- + --------- +
299gg
Notify_nova_on_port_status_changes = true
# Send notifications to Nova when port data (fixed_ips/floatingips) Change
# So Nova can update it's cache.
Notify_nova_on_port_data_changes = true
# URL for connection to Nova (only supports one nova region currently ).
Nova_url = http: // 192.168.33.11: 8774/v2
# Name of Nova region to use. Useful if keystone manages more than one region
# Nova_region_name =
# Username for connection to Nova in admin context
Nova_admin_username = Admin
# The UUID of the Admin Nova tenant
Nova_admin_tenant_id = cdbb9a7dcd044328a7969bc8069624ae
# Password for connection to Nova in admin context.
Nova_admin_password = Admin
# Authorization URL for connection to Nova in admin context.
Nova_admin_auth_url =
Http: // 192.168.33.11: 35357/V2.0
Core_plugin = ml2
# Example: core_plugin = ml2
# (Listopt) List of service plugin entrypoints to be loaded from
# Neutron. service_plugins namespace. See setup. cfg for the entrypoint names
# The plugins encoded in the neutron source distribution. For compatibility
# With previous versions, the class name of a plugin can be specified instead
# Of Its entrypoint name.
#
Service_plugins = Router
[[Email protected] ~] # Vim/etc/NOVA. conf
[[Email protected] ~] # Keystone tenant-list
+ ---------------------------------- + ------- + --------- +
| ID | Name | enabled |
+ ---------------------------------- + ------- + --------- +
| Cdbb9a7dcd044328a7969bc8069624ae | admin | true |
| Ed844c55ff2a45da880c818e356f8a71 | demo | true |
+ ---------------------------------- + ------- + --------- +
Neutron_url = http: // 192.168.33.11: 9696
Neutron_admin_username = Admin
Neutron_admin_password = Admin
Neutron_admin_tenant_id = cdbb9a7dcd044328a7969bc8069624ae
Neutron_admin_tenant_name = Admin
Neutron_admin_auth_url =
Http: // 192.168.33.11: 5000/V2.0
1966gg
Vif_plugging_is_fatal = false
You cannot create a NIC when creating a VM.
Vif_plugging_timeout = 10
[[Email protected] ~] # History | grep
220 glance image-create -- name "cirros-0.3.2-x86_64" -- Disk-format qcow2 -- container-format bare -- is-Public true -- file cirros-0.3.2-x86_64-disk.img
275 For I in {API, cert, conductor, schedctor, consoleauth, novncproxy}; do/etc/init. d/openstack-Nova-$ I start; done
355 history | grep
[[Email protected] ~] # For I in {API, cert, conductor, schedctor, consoleauth, novncproxy}; do/etc/init. d/openstack-Nova-$ I restart; done
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/46/97/wKiom1PzIMPi75YkAAPXTEOErQk177.jpg "Title =" qq20140819153747.png "alt =" wkiom1pzimpi75ykaapxteoerqk177.jpg "/>
[[Email protected] ~] # Keystone service-create -- name Neutron -- type network -- Description "openstack networking"
+ ------------- + ---------------------------------- +
| Property | value |
+ ------------- + ---------------------------------- +
| Description | openstack networking |
| Enabled | true |
| ID | b753f69cb75d49e9bb72e653cf8c41e9 |
| Name | neutron |
| Type | Network |
+ ------------- + ---------------------------------- +
[[Email protected] ~] # Keystone endpoint-create \
Usage: keystone endpoint-Create [-- region <endpoint-region>] -- service
<Service> -- publicurl <public-URL>
[-- Adminurl <admin-URL>]
[-- Internalurl <internal-URL>]
Keystone endpoint-create: Error: argument -- service/-- service-ID/-- service_id is required
[[Email protected] ~] # Keystone endpoint-create \
> -- Service-id = b753f69cb75d49e9bb72e653cf8c41e9 \
& Gt; -- publicurl = http: // 192.168.33.11: 9696 \
> -- Internalurl = http: // 192.168.33.11: 9696 \
> -- Adminurl = http: // 192.168.33.11: 9696
+ ------------- + ---------------------------------- +
| Property | value |
+ ------------- + ---------------------------------- +
| Adminurl | http: // 192.168.33.11: 9696 |
| ID | 02fe6cedbb784d4188b266be32868ce2 |
| Internalurl | http: // 192.168.33.11: 9696. |
| Publicurl | http: // 192.168.33.11: 9696. |
| Region | regionone |
| Service_id | b753f69cb75d49e9bb72e653cf8c41e9 |
+ ------------- + ---------------------------------- +
[[Email protected] ~] # Keystone endpoint-create -- service-id = encrypt -- publicurl = http: // 192.168.33.11: 9696 -- internalurl = http: // 192.168.33.11: 9696 -- adminurl = http: // 192.168.33.11: 9696
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/46/99/wKioL1PzL-zAJyqBAAWp6T2wGbM140.jpg "Title =" qq20140819153747.png "alt =" wKioL1PzL-zAJyqBAAWp6T2wGbM140.jpg "/>
This article is from the "8055082" blog and will not be reproduced!