next up previous contents
Next: 服務啟動 Up: Neutron Previous: Self-service network   Contents

設定 metadata agent

  1. 編輯 /etc/neutron/metadata_agent.ini,設定 [DEFAULT] 章節如下:
    [root@controller ~]# vim /etc/neutron/metadata_agent.ini 
    [root@controller ~]# egrep '^(\[DEF|[a-z])' /etc/neutron/metadata_agent.ini 
    [DEFAULT]
    nova_metadata_host = controller
    metadata_proxy_shared_secret = METADATA_SECRET
    
  2. 編輯 /etc/nova/nova.conf,確認 [neutron] 章節有如下設定:
    [root@controller ~]# vim /etc/nova/nova.conf
    [root@controller ~]# egrep '^(\[neutron)' -A20 /etc/nova/nova.conf | grep -v ^#
    
    [neutron]
    url = http://controller:9696
    auth_url = http://controller:35357
    auth_type = password
    project_domain_name = default
    user_domain_name = default
    region_name = RegionOne
    project_name = service
    username = neutron
    password = 123qwe
    service_metadata_proxy = true
    metadata_proxy_shared_secret = METADATA_SECRET
    



De-Yu Wang 2018-12-12