2022-10-28
#13 [학습서] OpenStack 설치 학습서 - 7. Neutron (2/2)
2022-10-28
Tasks

OpenStack 설치 학습서#


7. Neutron#

Compute-1과 Compute-2의 설치 방법은 동일하며, 아래 명령을 각각 노드에 별도로 설치합니다.
이때, 해당하는 Compute node의 IP는 COMPUTE_IP_1COMPUTE_IP_2로 변경하여 실행합니다.


  • Compute node
    • 사전설정

      CONTROLLER_IP=192.168.0.150
      COMPUTE_IP_1=192.168.0.151
      COMPUTE_IP_2=192.168.0.152
      OPENSTACK_PASSWORD=passwds
      
    • 패키지 설치 및 설정

      apt install neutron-linuxbridge-agent -y
      
      • 7-5.png
    • 데이터베이스 설정

      crudini --set /etc/neutron/neutron.conf DEFAULT transport_url rabbit://openstack:${OPENSTACK_PASSWORD}@${CONTROLLER_IP}
      crudini --set /etc/neutron/neutron.conf DEFAULT auth_strategy keystone
      crudini --set /etc/neutron/neutron.conf keystone_authtoken www_authenticate_uri http://${CONTROLLER_IP}:5000
      crudini --set /etc/neutron/neutron.conf keystone_authtoken auth_url http://${CONTROLLER_IP}:5000
      crudini --set /etc/neutron/neutron.conf keystone_authtoken memcached_servers ${CONTROLLER_IP}:11211
      crudini --set /etc/neutron/neutron.conf keystone_authtoken auth_type password
      crudini --set /etc/neutron/neutron.conf keystone_authtoken project_domain_name default
      crudini --set /etc/neutron/neutron.conf keystone_authtoken user_domain_name default
      crudini --set /etc/neutron/neutron.conf keystone_authtoken project_name service
      crudini --set /etc/neutron/neutron.conf keystone_authtoken username neutron
      crudini --set /etc/neutron/neutron.conf keystone_authtoken password ${OPENSTACK_PASSWORD}
      crudini --set /etc/neutron/neutron.conf oslo_concurrency lock_path /var/lib/neutron/tmp
      
      # Networking Option 2: Self-service networks
      crudini --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini linux_bridge physical_interface_mappings provider:${COMPUTE_INTERFACE}
      crudini --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan enable_vxlan true
      crudini --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan local_ip ${COMPUTE_IP_1}
      crudini --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini vxlan l2_population true
      crudini --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini securitygroup enable_security_group true
      crudini --set /etc/neutron/plugins/ml2/linuxbridge_agent.ini securitygroup firewall_driver neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
      sysctl net.bridge.bridge-nf-call-iptables
      sysctl net.bridge.bridge-nf-call-ip6tables
      
      # Configure the Compute service to use the Networking service
      crudini --set /etc/nova/nova.conf neutron auth_url http://${CONTROLLER_IP}:5000
      crudini --set /etc/nova/nova.conf neutron auth_type password
      crudini --set /etc/nova/nova.conf neutron project_domain_name default
      crudini --set /etc/nova/nova.conf neutron user_domain_name default
      crudini --set /etc/nova/nova.conf neutron region_name RegionOne
      crudini --set /etc/nova/nova.conf neutron project_name service
      crudini --set /etc/nova/nova.conf neutron username neutron
      crudini --set /etc/nova/nova.conf neutron password ${OPENSTACK_PASSWORD}
      
    • 서비스 재시작

      service nova-compute restart
      service neutron-linuxbridge-agent restart
      
      • 7-6.png
Comment 0

Add a comment