정말 안되는겨?
root@controller:~# apt-get install neutron-lbaasv2-agent
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
haproxy liblua5.3-0 neutron-lbaas-common python-neutron-lbaas
python-pyasn1-modules
Suggested packages:
vim-haproxy haproxy-doc
The following NEW packages will be installed:
haproxy liblua5.3-0 neutron-lbaas-common neutron-lbaasv2-agent
python-neutron-lbaas python-pyasn1-modules
0 upgraded, 6 newly installed, 0 to remove and 1 not upgraded.
Need to get 1,118 kB of archives.
After this operation, 4,719 kB of additional disk space will be used.
Do you want to continue? [Y/n]
빨리해야 되는데...어떻게 적용하지? 우선 Version 1으로 시도.
참조 : https://kairen.gitbooks.io/openstack-ubuntu/content/deployments/ubuntu/neutron/lbaas.html
LBaaSv1 Controller 節點安裝
首先在Controller節點安裝相關套件與 OpenStack 服務套件,可以透過以下指令進行安裝:
$ sudo apt-get install python-neutron-lbaas -y
完成後編輯/etc/neutron/neutron.conf設定檔,在[DEFAULT]部分加入以下內容:
[DEFAULT]
...
service_plugins = router,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPlugin
接著編輯/etc/neutron/neutron_lbaas.conf設定檔,在[service_providers]中加入以下內容:
[service_providers]
service_provider = LOADBALANCER:Haproxy:neutron_lbaas.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
完成後在 Controller節點更新 Neutron 資料庫:
$ sudo neutron-db-manage --service lbaas upgrade head
之後重新啟動neutron-server服務:
$ sudo service neutron-server restart
LBaaSv1 Network 節點安裝
在Network節點安裝neutron-lbaas-agent:
$ sudo apt-get install neutron-lbaas-agent
安裝完成後,編輯/etc/neutron/lbaas_agent.ini,在[DEFAULT]部分加入以下內容:
[DEFAULT]
device_driver = neutron_lbaas.services.loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
在[haproxy]部分加入以下內容:
[haproxy]
user_group = haproxy
完成後重新啟動neutron-lbaas-agent服務:
$ sudo service neutron-lbaas-agent restart