openstack I版的搭建四--

[[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

总用量 76

-rw-r--r-- 1 root root  1017 8月  19 08:14 api-paste.ini

-rw-r--r-- 1 root root  3497 8月  19 08:14 dhcp_agent.ini

-rw-r--r-- 1 root root   109 8月  19 08:14 fwaas_driver.ini

drwxr-xr-x 2 root root  4096 8月  19 08:14 init.d

-rw-r--r-- 1 root root  3109 8月  19 08:14 l3_agent.ini

-rw-r--r-- 1 root root  1400 8月  19 08:14 lbaas_agent.ini

-rw-r--r-- 1 root root  1335 8月  19 08:14 metadata_agent.ini

-rw-r--r-- 1 root root   407 8月  19 08:14 metering_agent.ini

drwxr-xr-x 4 root root  4096 8月  19 08:14 neutron

-rw-r--r-- 1 root root 17471 8月  19 08:14 neutron.conf

-rw-r--r-- 1 root root  6148 8月  19 08:14 policy.json

-rw-r--r-- 1 root root  1216 8月  19 08:14 rootwrap.conf

-rw-r--r-- 1 root root  1128 8月  19 08:14 services.conf

-rw-r--r-- 1 root root   526 8月  19 08:14 vpn_agent.ini

[[email protected] neutron]# cd neutron

[[email protected] neutron]# pwd

/etc/neutron/neutron

[[email protected] neutron]# mv * ../

[[email protected] neutron]# cd ..

[[email protected] neutron]# ll

总用量 84

-rw-r--r--  1 root root  1017 8月  19 08:14 api-paste.ini

-rw-r--r--  1 root root  3497 8月  19 08:14 dhcp_agent.ini

-rw-r--r--  1 root root   109 8月  19 08:14 fwaas_driver.ini

drwxr-xr-x  2 root root  4096 8月  19 08:14 init.d

-rw-r--r--  1 root root  3109 8月  19 08:14 l3_agent.ini

-rw-r--r--  1 root root  1400 8月  19 08:14 lbaas_agent.ini

-rw-r--r--  1 root root  1335 8月  19 08:14 metadata_agent.ini

-rw-r--r--  1 root root   407 8月  19 08:14 metering_agent.ini

drwxr-xr-x  2 root root  4096 8月  19 08:15 neutron

-rw-r--r--  1 root root 17471 8月  19 08:14 neutron.conf

drwxr-xr-x 21 root root  4096 8月  19 08:14 plugins

-rw-r--r--  1 root root  6148 8月  19 08:14 policy.json

-rw-r--r--  1 root root  1216 8月  19 08:14 rootwrap.conf

drwxr-xr-x  2 root root  4096 8月  19 08:14 rootwrap.d

-rw-r--r--  1 root root  1128 8月  19 08:14 services.conf

-rw-r--r--  1 root root   526 8月  19 08:14 vpn_agent.ini

[[email protected] neutron]# rm -fr neutron

[[email protected] neutron]# ll

总用量 80

-rw-r--r--  1 root root  1017 8月  19 08:14 api-paste.ini

-rw-r--r--  1 root root  3497 8月  19 08:14 dhcp_agent.ini

-rw-r--r--  1 root root   109 8月  19 08:14 fwaas_driver.ini

drwxr-xr-x  2 root root  4096 8月  19 08:14 init.d

-rw-r--r--  1 root root  3109 8月  19 08:14 l3_agent.ini

-rw-r--r--  1 root root  1400 8月  19 08:14 lbaas_agent.ini

-rw-r--r--  1 root root  1335 8月  19 08:14 metadata_agent.ini

-rw-r--r--  1 root root   407 8月  19 08:14 metering_agent.ini

-rw-r--r--  1 root root 17471 8月  19 08:14 neutron.conf

drwxr-xr-x 21 root root  4096 8月  19 08:14 plugins

-rw-r--r--  1 root root  6148 8月  19 08:14 policy.json

-rw-r--r--  1 root root  1216 8月  19 08:14 rootwrap.conf

drwxr-xr-x  2 root root  4096 8月  19 08:14 rootwrap.d

-rw-r--r--  1 root root  1128 8月  19 08:14 services.conf

-rw-r--r--  1 root root   526 8月  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

nova_admin_tenant_id = cdbb9a7dcd044328a7969bc8069624ae

要用下面的这个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 the

# neutron.service_plugins namespace. See setup.cfg for the entrypoint names of

# the plugins included 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/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

创建虚拟机的时候创建不了网卡,所以把上面的这个参数改掉。

vif_plugging_timeout=10

[[email protected] ~]# history |grep for

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,scheduler,consoleauth,novncproxy};do /etc/init.d/openstack-nova-$i start;done

355  history |grep for

[[email protected] ~]# for i in {api,cert,conductor,scheduler,consoleauth,novncproxy};do /etc/init.d/openstack-nova-$i restart;done

[[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 \

> --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=b753f69cb75d49e9bb72e653cf8c41e9 --publicurl=http://192.168.33.11:9696 --internalurl=http://192.168.33.11:9696 --adminurl=http://192.168.33.11:9696

openstack I版的搭建四--

时间: 2024-10-11 23:01:51

openstack I版的搭建四--的相关文章

openstack I版的搭建二

[[email protected] ~]# cd /usr/local/src/ [[email protected] src]# cd keystone-2014.1 [[email protected] keystone-2014.1]# python setup.py install [[email protected] keystone-2014.1]# cd etc/ [[email protected] etc]# ll 总用量 72 -rw-rw-r-- 1 1004 1004

openstack I版的搭建六--

[[email protected] init.d]# chkconfig openstack-neutron-linuxbridge-agent on [[email protected] init.d]# chkconfig openstack-nova-compute on [[email protected] ~]# nova host-list +---------------------------+-------------+----------+ | host_name    

openstack I版的搭建五--

登陆 用户demo登陆 如果你在启动某个服务的时候,没启动起来,没日子 那么我们就手动启动一下. [[email protected] ~]# neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini --config-file /etc/neutron/plugins/linuxbridge/linuxbridge_conf.ini 这样的

openstack I版的搭建三--Nova

安装Nova [[email protected] src]# cd ~ [[email protected] ~]# cd /usr/local/src/nova-2014.1 [[email protected] nova-2014.1]# python setup.py install [[email protected] nova]# pwd /usr/local/src/nova-2014.1/etc/nova [ro[email protected] nova]# ll 总用量 48

openstack I版的搭建一十--基于glusterfs的云硬盘

计算节点和控制节点上都安装一下 cd /etc/yum.repos.d/ wget http://download.gluster.org/pub/gluster/glusterfs/3.4/3.4.3/CentOS/glusterfs-epel.repo yum install glusterfs-server 验证一下两个节点是否安装成功 [[email protected] ~]# glusterfs -V glusterfs 3.4.5 built on Jul 24 2014 19:1

openstack I版的搭建八--

[[email protected] ~]# ifconfig brq39513fa0-54 Link encap:Ethernet  HWaddr 00:0C:29:3B:15:9F inet addr:192.168.33.11  Bcast:192.168.33.255  Mask:255.255.255.0 inet6 addr: fe80::48c3:d8ff:fe32:61b4/64 Scope:Link UP BROADCAST RUNNING MULTICAST  MTU:150

openstack-r版(rocky)搭建基于centos7.4 的openstack swift对象存储服务 三

openstack-r版(rocky)搭建基于centos7.4 的openstack swift对象存储服务 一 openstack-r版(rocky)搭建基于centos7.4 的openstack swift对象存储服务 二 openstack-r版(rocky)搭建基于centos7.4 的openstack swift对象存储服务 三 openstack-r版(rocky)搭建基于centos7.4 的openstack swift对象存储服务 四 以下操作在控制节点执行control

WINDOWS SERVER 2016 TP4(技术预览第四版)搭建MDT 2013 UPDATE 1成功

c=gengchenencheenWINDOWS SERVER 2016 TP4(技术预览第四版)搭建MDT 2013 UPDATE 1成功 WINDOWS SERVER 2016 TP4(技术预览第四版) MDT 2013 UPDATE 1

【openstack N版】——认证服务keystone

一. 基础环境 1.1环境介绍 linux-node1(控制节点) 1 #系统版本 2 [[email protected] ~]# cat /etc/redhat-release 3 CentOS Linux release 7.2.1511 (Core) 4 #内核版本 5 [[email protected] ~]# uname -r 6 3.10.0-327.36.3.el7.x86_64 7 #主机名 8 [[email protected] ~]# hostname 9 linux-