next up previous contents
Next: 驗證 Up: Neutron Previous: 設定 metadata agent   Contents

服務啟動

  1. 設定 /etc/neutron/plugin.ini 連結到 /etc/neutron/plugins/ml2/ml2_conf.ini
    [root@ip112 ~]# ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
    
  2. 以編輯好的設定檔,更新資料庫。
    [root@ip112 ~]# 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
    .......
      OK
    
  3. 重新啟動 compute API 服務。
    [root@ip112 ~]# systemctl restart openstack-nova-api.service
    
  4. 啟動 neutron 相關服務,並設定開機啟動。
    [root@ip112 ~]# systemctl enable neutron-server.service \
    neutron-linuxbridge-agent.service neutron-dhcp-agent.service \
    neutron-metadata-agent.service
    [root@ip112 ~]# systemctl start neutron-server.service \
    neutron-linuxbridge-agent.service neutron-dhcp-agent.service \
    neutron-metadata-agent.service
    [root@ip112 ~]# systemctl enable neutron-l3-agent.service
    [root@ip112 ~]# systemctl start neutron-l3-agent.service
    
  5. 如果同時有 provider 及 self-service networks,重新啟動以下 neutron 相關服務,並設定開機啟動。
    [root@controller ~]# systemctl restart neutron-server.service \
    neutron-linuxbridge-agent.service \
    neutron-dhcp-agent.service \
    neutron-metadata-agent.service \
    neutron-l3-agent.service
    [root@controller ~]# systemctl enable neutron-server.service \
    neutron-linuxbridge-agent.service \
    neutron-dhcp-agent.service \
    neutron-metadata-agent.service \
    neutron-l3-agent.service
    



2018-09-19