實(shí)戰(zhàn)OpenStack之控制節(jié)點(diǎn)(三)

3.7 Nova compute計(jì)算節(jié)點(diǎn)的部署

?圖解Nova cpmpute

?

?

src="http://cdn.oldboyedu.com/wp-content/uploads/2016/02/wpid-631325ba70ea05d245906c576f3ef421_openstack-architecture-49-638.jpg"

alt="" title="">
nova-compute一般運(yùn)行在計(jì)算節(jié)點(diǎn)上,通過Message Queue接收并管理VM的生命周期

?nova-compute通過Libvirt管理KVN痘拆,通過XenAPI管理Xen等

?配置時(shí)間同步

?修改其配置文件

1[root@linux-node1 ~]# vim/etc/chrony.conf

2server 192.168.56.11 iburst(只保留這一個(gè)server稠肘,也就是控制節(jié)點(diǎn)的時(shí)間)

chrony開機(jī)自啟動,并且啟動

1[root@linux-node1 ~]#systemctl enablechronyd.service

2[root@linux-node1 ~]#systemctlstartchronyd.service

設(shè)置Centos7的時(shí)區(qū)

1[root@linux-node1 ~]# timedatectlset-timezone

2``` Asia/Shanghai

3查看時(shí)區(qū)和時(shí)間

4```bash

5[root@linux-node ~]# timedatectlstatus

6Local time: Fri 2015-12-18 00:12:26 CST

7Universal time: Thu 2015-12-17 16:12:26 UTC

8RTC time: Sun 2015-12-13 15:32:36

9Timezone: Asia/Shanghai (CST, +0800)

10NTP enabled: yes

11NTP synchronized: no

12RTC in local TZ: no

13DST active: n/a

14[root@linux-node1 ~]# date

15Fri Dec 18 00:12:43 CST 2015

?開始部署計(jì)算節(jié)點(diǎn)

?更改計(jì)算節(jié)點(diǎn)上的配置文件淌友,直接使用控制節(jié)點(diǎn)的配置文件

1[root@linux-node1 ~]# scp

/etc/nova/nova.conf 192.168.56.12:/etc/nova/ (在控制節(jié)點(diǎn)上操作的scp)

更改配置文件后的過濾結(jié)果

1[root@linux-node ~]# grep -n '^[a-Z]'/etc/nova/nova.conf

261:rpc_backend=rabbit

3124:my_ip=192.168.56.12改成本機(jī)ip

4268:enabled_apis=osapi_compute,metadata

5425:auth_strategy=keystone

61053:network_api_class=nova.network.neutronv2.api.API

71171:linuxnet_interface_driver=nova.network.linux_net.NeutronLinuxBridgeInterfaceDriver

81331:security_group_api=neutron

91370:debug=true

101374:verbose=True

111760:firewall_driver =nova.virt.firewall.NoopFirewallDriver

121820:novncproxy_base_url=http://192.168.56.11:6080/vnc_auto.html指定novncproxy的IP地址和端口

131828:vncserver_listen=0.0.0.0 vnc監(jiān)聽0.0.0.0

141832:vncserver_proxyclient_address=$my_ip

151835:vnc_enabled=true啟用vnc

161838:vnc_keymap=en-us英語鍵盤

172213:connection=mysql://nova:nova@192.168.56.11/nova

182334:host=192.168.56.11

192546:auth_uri =http://192.168.56.11:5000

202547:auth_url =http://192.168.56.11:35357

212548:auth_plugin = password

222549:project_domain_id = default

232550:user_domain_id = default

242551:project_name = service

252552:username = nova

262553:password = nova

272727:virt_type=kvm使用kvm虛擬機(jī)麦牺,需要cpu支持,可通過grep

"vmx" /proc/cpuinfo查看

283807:lock_path=/var/lib/nova/tmp

293970:rabbit_host=192.168.56.11

303974:rabbit_port=5672

313986:rabbit_userid=openstack

323990:rabbit_password=openstack

啟動計(jì)算節(jié)點(diǎn)的libvirt和nova-compute

1[root@linux-node ~]# systemctl enablelibvirtd openstack-nova-compute

2ln -s'/usr/lib/systemd/system/openstack-nova-compute.service''/etc/systemd/system/multi-user.target.wants/openstack-nova-compute.service'

3[root@linux-node ~]# systemctl startlibvirtd openstack-nova-compute

?在控制節(jié)點(diǎn)中查看注冊的host,最后一個(gè)compute即是注冊的host

1[root@linux-node1 ~]# openstack hostlist

2+---------------------------+-------------+----------+

3| Host Name| Service| Zone|

4+---------------------------+-------------+----------+

5| linux-node1.oldboyedu.com |conductor| internal |

6| linux-node1.oldboyedu.com |consoleauth | internal |

7| linux-node1.oldboyedu.com |cert| internal |

8| linux-node1.oldboyedu.com |scheduler| internal |

9| linux-node.oldboyedu.com| compute| nova|

10+---------------------------+-------------+----------+

在控制節(jié)點(diǎn)中測試nova和glance連接正常,nova鏈接keystone是否正常

1[root@linux-node1 ~]# nova image-list

2+--------------------------------------+--------+--------+--------+

3| ID| Name| Status | Server |

4+--------------------------------------+--------+--------+--------+

5| 4b36361f-1946-4026-b0cb-0f7073d48ade| cirros | ACTIVE ||

6+--------------------------------------+--------+--------+--------+

7[root@linux-node1 ~]# nova endpoints

8WARNING: keystone has no endpoint in !Available endpoints for this service:

9+-----------+----------------------------------+

10| keystone| Value|

11+-----------+----------------------------------+

12| id| 1143dcd58b6848a1890c3f2b9bf101d5 |

13| interface | public|

14| region| RegionOne|

15| region_id | RegionOne|

16| url| http://192.168.56.11:5000/v2.0|

17+-----------+----------------------------------+

18+-----------+----------------------------------+

19| keystone| Value|

20+-----------+----------------------------------+

21| id| 28283cbf90b5434ba7a8780fac9308df |

22| interface | admin|

23| region| RegionOne|

24| region_id | RegionOne|

25| url| http://192.168.56.11:35357/v2.0|

26+-----------+----------------------------------+

27+-----------+----------------------------------+

28| keystone| Value|

29+-----------+----------------------------------+

30| id| 496f648007a04e5fbe99b62ed8a76acd |

31| interface | internal|

32| region| RegionOne|

33| region_id | RegionOne|

34| url| http://192.168.56.11:5000/v2.0|

35+-----------+----------------------------------+

36WARNING: nova has no endpoint in !Available endpoints for this service:

37+-----------+---------------------------------------------------------------+

38| nova| Value|

39+-----------+---------------------------------------------------------------+

40| id| 1d67f3630a0f413e9d6ff53bcc657fb6|

41| interface | internal|

42| region| RegionOne|

43| region_id | RegionOne|

44| url|http://192.168.56.11:8774/v2/45ec9f72892c404897d0f7d6668d7a53 |

45+-----------+---------------------------------------------------------------+

46+-----------+---------------------------------------------------------------+

47| nova| Value|

48+-----------+---------------------------------------------------------------+

49| id| 23e9132aeb3a4dcb8689aa1933ad7301|

50| interface | public|

51| region| RegionOne|

52| region_id | RegionOne|

53| url|http://192.168.56.11:8774/v2/45ec9f72892c404897d0f7d6668d7a53 |

54+-----------+---------------------------------------------------------------+

55+-----------+---------------------------------------------------------------+

56| nova| Value|

57+-----------+---------------------------------------------------------------+

58| id| b7f7c210becc4e54b76bb454966582e4|

59| interface | admin|

60| region| RegionOne|

61| region_id | RegionOne|

62| url|http://192.168.56.11:8774/v2/45ec9f72892c404897d0f7d6668d7a53 |

63+-----------+---------------------------------------------------------------+

64WARNING: glance has no endpoint in !Available endpoints for this service:

65+-----------+----------------------------------+

66| glance| Value|

67+-----------+----------------------------------+

68| id| 2b55d6db62eb47e9b8993d23e36111e0 |

69| interface | admin|

70| region| RegionOne|

71| region_id | RegionOne|

72| url| http://192.168.56.11:9292|

73+-----------+----------------------------------+

74+-----------+----------------------------------+

75| glance| Value|

76+-----------+----------------------------------+

77| id| 56cf6132fef14bfaa01c380338f485a6 |

78| interface | public|

79| region| RegionOne|

80| region_id | RegionOne|

81| url| http://192.168.56.11:9292|

82+-----------+----------------------------------+

83+-----------+----------------------------------+

84| glance| Value|

85+-----------+----------------------------------+

86| id| 8005e8fcd85f4ea281eb9591c294e760 |

87| interface | internal|

88| region| RegionOne|

89| region_id | RegionOne|

90| url| http://192.168.56.11:9292|

91+-----------+----------------------------------+

3.8 Neturn服務(wù)部署

注冊neutron服務(wù)

1[root@linux-node1 ~]# sourceadmin-openrc.sh

2[root@linux-node1 ~]# openstack servicecreate --name neutron --description "OpenStack Networking" network

3+-------------+----------------------------------+

4| Field| Value|

5+-------------+----------------------------------+

6| description | OpenStack Networking|

7| enabled| True|

8| id| e698fc8506634b05b250e9fdd8205565 |

9| name| neutron|

10| type| network|

11+-------------+----------------------------------+

12[root@linux-node1 ~]# openstackendpoint create --region RegionOne network public http://192.168.56.11:9696

13+--------------+----------------------------------+

14| Field| Value|

15+--------------+----------------------------------+

16| enabled| True|

17| id| 3cf4a13ec1b94e66a47e27bfccd95318 |

18| interface| public|

19| region| RegionOne|

20| region_id| RegionOne|

21| service_id| e698fc8506634b05b250e9fdd8205565 |

22| service_name | neutron|

23| service_type | network|

24| url| http://192.168.56.11:9696|

25+--------------+----------------------------------+

26[root@linux-node1 ~]# openstackendpoint create --region RegionOne network internal http://192.168.56.11:9696

27+--------------+----------------------------------+

28| Field| Value|

29+--------------+----------------------------------+

30| enabled| True|

31| id| 5cd1e54d14f046dda2f7bf45b418f54c |

32| interface| internal|

33| region| RegionOne|

34| region_id| RegionOne|

35| service_id| e698fc8506634b05b250e9fdd8205565 |

36| service_name | neutron|

37| service_type | network|

38| url| http://192.168.56.11:9696|

39+--------------+----------------------------------+

40[root@linux-node1 ~]# openstackendpoint create --region RegionOne network admin http://192.168.56.11:9696

41+--------------+----------------------------------+

42| Field| Value|

43+--------------+----------------------------------+

44| enabled| True|

45| id| 2c68cb45730d470691e6a3f0656eff03 |

46| interface| admin|

47| region|RegionOne|

48| region_id| RegionOne|

49| service_id| e698fc8506634b05b250e9fdd8205565 |

50| service_name | neutron|

51| service_type | network|

52| url| http://192.168.56.11:9696|

53+--------------+----------------------------------+

54創(chuàng)建neutron用戶胁塞,并添加大service項(xiàng)目,給予admin權(quán)限

55[root@linux-node1 config]# openstackuser create --domain default --password=neutron neutron

56+-----------+----------------------------------+

57| Field| Value|

58+-----------+----------------------------------+

59| domain_id | default|

60| enabled| True|

61| id| 5143854f317541d68efb8bba8b2539fc |

62| name| neutron|

63+-----------+----------------------------------+

64[root@linux-node1 config]# openstackrole add --project service --user neutron admin

修改neturn配置文件

1[root@linux-node1 ~]# grep -n"^[a-Z]" /etc/neutron/neutron.conf

220:state_path = /var/lib/neutron

360:core_plugin = ml2核心插件為ml2

477:service_plugins = router服務(wù)插件為router

592:auth_strategy = keystone

6360:notify_nova_on_port_status_changes= True

7端口改變需通知nova

8364:notify_nova_on_port_data_changes =True

9367:nova_url =http://192.168.56.11:8774/v2

10573:rpc_backend=rabbit

11717:auth_uri =http://192.168.56.11:5000

12718:auth_url =http://192.168.56.11:35357

13719:auth_plugin = password

14720:project_domain_id = default

15721:user_domain_id = default

16722:project_name = service

17723:username = neutron

18724:password = neutron

19737:connection =mysql://neutron:neutron@192.168.56.11:3306/neutron

20780:auth_url =http://192.168.56.11:35357

21781:auth_plugin = password

22782:project_domain_id = default

23783:user_domain_id = default

24784:region_name = RegionOne

25785:project_name = service

26786:username = nova

27787:password = nova

28818:lock_path = $state_path/lock

29998:rabbit_host = 192.168.56.11

301002:rabbit_port = 5672

311014:rabbit_userid = openstack

321018:rabbit_password = openstack

修改ml2的配置文件,ml2后續(xù)會有詳細(xì)說明

1[root@linux-node1 ~]# grep"^[a-Z]" /etc/neutron/plugins/ml2/ml2_conf.ini

2type_drivers =

flat,vlan,gre,vxlan,geneve各種驅(qū)動

3tenant_network_types =

vlan,gre,vxlan,geneve網(wǎng)絡(luò)類型

4mechanism_drivers = openvswitch,linuxbridge支持的底層驅(qū)動

5extension_drivers = port_security端口安全

6flat_networks = physnet1使用單一扁平網(wǎng)絡(luò)(和host一個(gè)網(wǎng)絡(luò))

7enable_ipset = True

修改的linuxbridge配置文件压语、

1[root@linux-node1 ~]# grep -n"^[a-Z]" /etc/neutron/plugins/ml2/linuxbridge_agent.ini

29:physical_interface_mappings =

physnet1:eth0網(wǎng)卡映射eth

316:enable_vxlan = false關(guān)閉vxlan

451:prevent_arp_spoofing = True

557:firewall_driver =neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

661:enable_security_group = True

修改dhcp的配置文件

1[root@linux-node1 ~]# grep -n"^[a-Z]" /etc/neutron/dhcp_agent.ini

227:interface_driver =neutron.agent.linux.interface.BridgeInterfaceDriver

331:dhcp_driver =

neutron.agent.linux.dhcp.Dnsmasq使用Dnsmasq作為dhcp服務(wù)

452:enable_isolated_metadata = true

修改metadata_agent.ini配置文件

1[root@linux-node1 config]# grep -n"^[a-Z]" /etc/neutron/metadata_agent.ini

24:auth_uri = http://192.168.56.11:5000

35:auth_url =http://192.168.56.11:35357

46:auth_region = RegionOne

57:auth_plugin = password

68:project_domain_id = default

79:user_domain_id = default

810:project_name = service

911:username = neutron

1012:password = neutron

1129:nova_metadata_ip = 192.168.56.11

1252:metadata_proxy_shared_secret =neutron

在控制節(jié)點(diǎn)的nova中添加關(guān)于neutron的配置啸罢,`添加如下內(nèi)容到neutron模塊即可

13033:url = http://192.168.56.11:9696

23034:auth_url =http://192.168.56.11:35357

33035:auth_plugin = password

43036:project_domain_id = default

53037:user_domain_id = default

63038:region_name = RegionOne

73039:project_name = service

83040:username = neutron

93041:password = neutron

103043:service_metadata_proxy = True

113044:metadata_proxy_shared_secret =neutron

12````

13創(chuàng)建ml2的軟連接

14```bash

15[root@linux-node1 config]# ln -s/etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini

同步neutron數(shù)據(jù)庫,并檢查結(jié)果

1[root@linux-node1 config]# su -s/bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf--config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head" neutron

2MariaDB [(none)]> use neutron;

3Database changed

4MariaDB [neutron]> show tables;

5+-----------------------------------------+

6| Tables_in_neutron|

7+-----------------------------------------+

8| address_scopes|

9| agents|

10| alembic_version|

11| allowedaddresspairs|

12| arista_provisioned_nets|

13| arista_provisioned_tenants|

14| arista_provisioned_vms|

15| brocadenetworks|

16| brocadeports|

17| cisco_csr_identifier_map|

18| cisco_hosting_devices|

19| cisco_ml2_apic_contracts|

20| cisco_ml2_apic_host_links|

21| cisco_ml2_apic_names|

22| cisco_ml2_n1kv_network_bindings|

23| cisco_ml2_n1kv_network_profiles|

24| cisco_ml2_n1kv_policy_profiles|

25| cisco_ml2_n1kv_port_bindings|

26| cisco_ml2_n1kv_profile_bindings|

27| cisco_ml2_n1kv_vlan_allocations|

28|cisco_ml2_n1kv_vxlan_allocations|

29| cisco_ml2_nexus_nve|

30| cisco_ml2_nexusport_bindings|

31| cisco_port_mappings|

32| cisco_router_mappings|

33| consistencyhashes|

34| csnat_l3_agent_bindings|

35| default_security_group|

36| dnsnameservers|

37| dvr_host_macs|

38| embrane_pool_port|

39| externalnetworks|

40| extradhcpopts|

41| firewall_policies|

42| firewall_rules|

43| firewalls|

44| flavors|

45| flavorserviceprofilebindings|

46| floatingips|

47| ha_router_agent_port_bindings|

48| ha_router_networks|

49| ha_router_vrid_allocations|

50| healthmonitors|

51| ikepolicies|

52| ipallocationpools|

53| ipallocations|

54| ipamallocationpools|

55| ipamallocations|

56| ipamavailabilityranges|

57| ipamsubnets|

58| ipavailabilityranges|

59| ipsec_site_connections|

60| ipsecpeercidrs|

61| ipsecpolicies|

62| lsn|

63| lsn_port|

64| maclearningstates|

65| members|

66| meteringlabelrules|

67| meteringlabels|

68| ml2_brocadenetworks|

69| ml2_brocadeports|

70| ml2_dvr_port_bindings|

71| ml2_flat_allocations|

72| ml2_geneve_allocations|

73| ml2_geneve_endpoints|

74| ml2_gre_allocations|

75| ml2_gre_endpoints|

76| ml2_network_segments|

77| ml2_nexus_vxlan_allocations|

78| ml2_nexus_vxlan_mcast_groups|

79| ml2_port_binding_levels|

80| ml2_port_bindings|

81| ml2_ucsm_port_profiles|

82| ml2_vlan_allocations|

83| ml2_vxlan_allocations|

84| ml2_vxlan_endpoints|

85| multi_provider_networks|

86| networkconnections|

87| networkdhcpagentbindings|

88| networkgatewaydevicereferences|

89| networkgatewaydevices|

90| networkgateways|

91| networkqueuemappings|

92| networkrbacs|

93| networks|

94| networksecuritybindings|

95| neutron_nsx_network_mappings|

96| neutron_nsx_port_mappings|

97| neutron_nsx_router_mappings|

98|neutron_nsx_security_group_mappings|

99| nexthops|

100| nsxv_edge_dhcp_static_bindings|

101| nsxv_edge_vnic_bindings|

102| nsxv_firewall_rule_bindings|

103| nsxv_internal_edges|

104| nsxv_internal_networks|

105| nsxv_port_index_mappings|

106| nsxv_port_vnic_mappings|

107| nsxv_router_bindings|

108| nsxv_router_ext_attributes|

109| nsxv_rule_mappings|

110|nsxv_security_group_section_mappings|

111|nsxv_spoofguard_policy_network_mappings |

112| nsxv_tz_network_bindings|

113| nsxv_vdr_dhcp_bindings|

114|nuage_net_partition_router_mapping|

115| nuage_net_partitions|

116| nuage_provider_net_bindings|

117| nuage_subnet_l2dom_mapping|

118| ofcfiltermappings|

119| ofcnetworkmappings|

120| ofcportmappings|

121| ofcroutermappings|

122| ofctenantmappings|

123| packetfilters|

124| poolloadbalanceragentbindings|

125| poolmonitorassociations|

126| pools|

127| poolstatisticss|

128| portbindingports|

129| portinfos|

130| portqueuemappings|

131| ports|

132| portsecuritybindings|

133| providerresourceassociations|

134| qos_bandwidth_limit_rules|

135| qos_network_policy_bindings|

136| qos_policies|

137| qos_port_policy_bindings|

138| qosqueues|

139| quotas|

140| quotausages|

141| reservations|

142| resourcedeltas|

143| router_extra_attributes|

144| routerl3agentbindings|

145| routerports|

146| routerproviders|

147| routerroutes|

148| routerrules|

149| routers|

150| securitygroupportbindings|

151| securitygrouprules|

152| securitygroups|

153| serviceprofiles|

154| sessionpersistences|

155| subnetpoolprefixes|

156| subnetpools|

157| subnetroutes|

158| subnets|

159| tz_network_bindings|

160| vcns_router_bindings|

161| vips|

162| vpnservices|

163+-----------------------------------------+

164155 rows in set (0.00 sec)

重啟nova-api,并啟動neutron服務(wù)

1[root@linux-node1 config]# systemctlrestart openstack-nova-api

2[root@linux-node1 config]# systemctlenable neutron-server.serviceneutron-linuxbridge-agent.service neutron-dhcp-agent.serviceneutron-metadata-agent.service

3[root@linux-node1 config]# systemctlstart neutron-server.serviceneutron-linuxbridge-agent.service neutron-dhcp-agent.serviceneutron-metadata-agent.service

檢查neutron-agent結(jié)果

1[root@linux-node1 config]# neutronagent-list

2+--------------------------------------+--------------------+---------------------------+-------+----------------+---------------------------+

3| id|agent_type| host| alive | admin_state_up | binary|

4+--------------------------------------+--------------------+---------------------------+-------+----------------+---------------------------+

5| 5a9a522f-e2dc-42dc-ab37-b26da0bfe416| Metadata agent|linux-node1.oldboyedu.com || True| neutron-metadata-agent|

6| 8ba06bd7-896c-47aa-a733-8a9a9822361c| DHCP agent|linux-node1.oldboyedu.com || True| neutron-dhcp-agent|

7| f16eef03-4592-4352-8d5e-c08fb91dc983| Linux bridge agent | linux-node1.oldboyedu.com || True| neutron-linuxbridge-agent |

8+--------------------------------------+--------------------+---------------------------+-------+----------------+---------------------------+

src="http://cdn.oldboyedu.com/wp-content/themes/Play-LM/images/smilies/icon_smile.gif"

alt=":-)" class="wp-smiley" style="height: 1em;

max-height: 1em;" />

|

class="pln"> True

class="pln">

class="pun">|

neutron-

class="pln">metadata

class="pun">-agent

class="pun">|

class="L5">

class="pun">|

8ba06bd7

class="pun">-

class="lit">896c

class="pun">-

class="lit">47aa-

class="pln">a733

class="pun">-

class="lit">8a9a9822361c

class="pln"> |

class="pln"> DHCP agent

class="pun">|

linux-

class="pln">node1

class="pun">.

class="pln">oldboyedu

class="pun">.com

|

class="pln">

class="pun">

alt=":-)" class="wp-smiley" style="height: 1em;

max-height: 1em;" />

|

class="pln">

class="typ">True

|

class="pln"> neutron

class="pun">-

class="pln">dhcp-

class="pln">agent

class="pun">|

class="L6">

class="pun">|

f16eef03-

class="lit">4592-

class="lit">4352

class="pun">-

class="lit">8d5e-

class="pln">c08fb91dc983

class="pun">|

Linux

class="pln"> bridge agent

class="pun">|

linux-

class="pln">node1

class="pun">.

class="pln">oldboyedu

class="pun">.com

|

class="pln">

class="pun">

alt=":-)" class="wp-smiley" style="height: 1em;

max-height: 1em;" />

|

class="pln">

class="typ">True

|

class="pln"> neutron

class="pun">-

class="pln">linuxbridge

class="pun">-agent

class="pun">|

class="L7">

class="pun">+--------------------------------------+--------------------+---------------------------+-------+----------------+---------------------------+

開始部署neutron的計(jì)算節(jié)點(diǎn)胎食,在這里直接scp過去扰才,不需要做任何更改

1[root@linux-node1 config]#scp /etc/neutron/neutron.conf192.168.56.12:/etc/neutron/

2[root@linux-node1 config]# scp/etc/neutron/plugins/ml2/linuxbridge_agent.ini192.168.56.12:/etc/neutron/plugins/ml2/

修改計(jì)算節(jié)點(diǎn)的nova配置,添加如下內(nèi)容到neutron模塊即可

13033:url = http://192.168.56.11:9696

23034:auth_url =http://192.168.56.11:35357

33035:auth_plugin = password

43036:project_domain_id = default

53037:user_domain_id = default

63038:region_name = RegionOne

73039:project_name = service

83040:username = neutron

93041:password = neutron

103043:service_metadata_proxy = True

113044:metadata_proxy_shared_secret =neutron

12````

13復(fù)制linuxbridge_agent

14文件厕怜,無需更改衩匣,并創(chuàng)建ml2軟連接

15```bash

16[root@linux-node1 ~]# scp/etc/neutron/plugins/ml2/linuxbridge_agent.ini192.168.56.12:/etc/neutron/plugins/ml2/

17[root@linux-node ~]# ln -s/etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini

重啟計(jì)算節(jié)點(diǎn)的nova-computer

1[root@linux-node ml2]# systemctlrestart openstack-nova-compute.service

計(jì)算機(jī)點(diǎn)上啟動linuxbridge_agent服務(wù)

1[root@linux-node ml2]# systemctlrestart openstack-nova-compute.service

2[root@linux-node ml2]# systemctlenable neutron-linuxbridge-agent.service

3ln -s'/usr/lib/systemd/system/neutron-linuxbridge-agent.service''/etc/systemd/system/multi-user.target.wants/neutron-linuxbridge-agent.service'

4[root@linux-node ml2]# systemctl startneutron-linuxbridge-agent.service

檢查neutron的結(jié)果,有四個(gè)(控制節(jié)點(diǎn)一個(gè)粥航,計(jì)算節(jié)點(diǎn)兩個(gè))結(jié)果代表正確

1[root@linux-node1 config]# neutronagent-list

2+--------------------------------------+--------------------+---------------------------+-------+----------------+---------------------------+

3| id|agent_type| host| alive | admin_state_up| binary|

4+--------------------------------------+--------------------+---------------------------+-------+----------------+---------------------------+

5| 5a9a522f-e2dc-42dc-ab37-b26da0bfe416| Metadata agent|linux-node1.oldboyedu.com || True| neutron-metadata-agent|

6| 7d81019e-ca3b-4b32-ae32-c3de9452ef9d| Linux bridge agent | linux-node.oldboyedu.com|| True| neutron-linuxbridge-agent |

7| 8ba06bd7-896c-47aa-a733-8a9a9822361c| DHCP agent|linux-node1.oldboyedu.com || True| neutron-dhcp-agent|

8| f16eef03-4592-4352-8d5e-c08fb91dc983| Linux bridge agent | linux-node1.oldboyedu.com || True| neutron-linuxbridge-agent |

9+--------------------------------------+--------------------+---------------------------+-------+----------------+---------------------------+

src="http://cdn.oldboyedu.com/wp-content/themes/Play-LM/images/smilies/icon_smile.gif"

alt=":-)" class="wp-smiley" style="height: 1em;

max-height: 1em;" />

class="pun">|

class="typ">True

|

class="pln"> neutron

class="pun">-

class="pln">metadata

class="pun">-agent

|

class="L5">

class="pun">|

7d81019e

class="pun">-

class="pln">ca3b

class="pun">-

class="lit">4b32

class="pun">-

class="pln">ae32

class="pun">-

class="pln">c3de9452ef9d

class="pun">|

Linux

class="pln"> bridge agent |

class="pln"> linux

class="pun">-

class="pln">node

class="pun">.oldboyedu

class="pun">.com

|

class="pln">

class="pun">

src="http://cdn.oldboyedu.com/wp-content/themes/Play-LM/images/smilies/icon_smile.gif"

alt=":-)" class="wp-smiley" style="height: 1em;

max-height: 1em;" />

|

True

class="pln">

class="pun">|

neutron-

class="pln">linuxbridge

class="pun">-agent

|

class="L6">

class="pun">|

8ba06bd7

class="pun">-

class="lit">896c

class="pun">-47aa

class="pun">-

class="pln">a733

class="pun">-

class="lit">8a9a9822361c

class="pln">

class="pun">| DHCP

agent |

class="pln"> linux

class="pun">-

class="pln">node1

class="pun">.

class="pln">oldboyedu.

class="pln">com

class="pun">|

src="http://cdn.oldboyedu.com/wp-content/themes/Play-LM/images/smilies/icon_smile.gif"

alt=":-)" class="wp-smiley" style="height: 1em;

max-height: 1em;" />

|

class="pln"> True

class="pln">

class="pun">|

neutron-

class="pln">dhcp

class="pun">-agent

class="pun">|

class="L7">

class="pun">|

f16eef03-

class="lit">4592

class="pun">-

class="lit">4352

class="pun">-8d5e

class="pun">-

class="pln">c08fb91dc983

class="pun">|

Linux

class="pln"> bridge agent

class="pun">|

linux-

class="pln">node1

class="pun">.

class="pln">oldboyedu

class="pun">.com

|

class="pln">

class="pun">

alt=":-)" class="wp-smiley" style="height: 1em;

max-height: 1em;" />

|

class="pln">

class="typ">True

|

class="pln"> neutron

class="pun">-

class="pln">linuxbridge

class="pun">-agent

class="pun">|

class="L8">

class="pun">+--------------------------------------+--------------------+---------------------------+-------+----------------+---------------------------+

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末琅捏,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子递雀,更是在濱河造成了極大的恐慌柄延,老刑警劉巖,帶你破解...
    沈念sama閱讀 216,470評論 6 501
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件缀程,死亡現(xiàn)場離奇詭異搜吧,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī)杨凑,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,393評論 3 392
  • 文/潘曉璐 我一進(jìn)店門滤奈,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人撩满,你說我怎么就攤上這事蜒程。” “怎么了鹦牛?”我有些...
    開封第一講書人閱讀 162,577評論 0 353
  • 文/不壞的土叔 我叫張陵搞糕,是天一觀的道長。 經(jīng)常有香客問我曼追,道長窍仰,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,176評論 1 292
  • 正文 為了忘掉前任礼殊,我火速辦了婚禮驹吮,結(jié)果婚禮上针史,老公的妹妹穿的比我還像新娘。我一直安慰自己碟狞,他們只是感情好啄枕,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,189評論 6 388
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著族沃,像睡著了一般频祝。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上脆淹,一...
    開封第一講書人閱讀 51,155評論 1 299
  • 那天常空,我揣著相機(jī)與錄音,去河邊找鬼盖溺。 笑死漓糙,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的烘嘱。 我是一名探鬼主播昆禽,決...
    沈念sama閱讀 40,041評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼蝇庭!你這毒婦竟也來了醉鳖?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 38,903評論 0 274
  • 序言:老撾萬榮一對情侶失蹤遗契,失蹤者是張志新(化名)和其女友劉穎辐棒,沒想到半個(gè)月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體牍蜂,經(jīng)...
    沈念sama閱讀 45,319評論 1 310
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡漾根,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,539評論 2 332
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了鲫竞。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片辐怕。...
    茶點(diǎn)故事閱讀 39,703評論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖从绘,靈堂內(nèi)的尸體忽然破棺而出寄疏,到底是詐尸還是另有隱情,我是刑警寧澤僵井,帶...
    沈念sama閱讀 35,417評論 5 343
  • 正文 年R本政府宣布陕截,位于F島的核電站,受9級特大地震影響批什,放射性物質(zhì)發(fā)生泄漏途凫。R本人自食惡果不足惜厘线,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,013評論 3 325
  • 文/蒙蒙 一砸泛、第九天 我趴在偏房一處隱蔽的房頂上張望节腐。 院中可真熱鬧倡怎,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,664評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至冻辩,卻和暖如春猖腕,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背微猖。 一陣腳步聲響...
    開封第一講書人閱讀 32,818評論 1 269
  • 我被黑心中介騙來泰國打工谈息, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人凛剥。 一個(gè)月前我還...
    沈念sama閱讀 47,711評論 2 368
  • 正文 我出身青樓,卻偏偏與公主長得像轻姿,于是被迫代替她去往敵國和親犁珠。 傳聞我的和親對象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,601評論 2 353

推薦閱讀更多精彩內(nèi)容