lbaas members inactive, http service unavailable
Hi, I am working on openstack Icehouse. I taken 3 nodes setup
Controller node: Keystone, Cinder packages, Glance packages, Rabbitmq and Nova packages are nova-api, nova-cert, nova-conductor, nova-consoleauth, nova-novncproxy, nova-scheduler & python-novaclient
Compute node: Nova compute package and Neutron packages are neutron-common, neutron-plugin-ml2, neutron-plugin-openvswitch-agent & openvswitch-datapath-dkms
Neutron Network node: Neutron packages are installed in this node. External and internal networks configured. Instance getting ip address everything working fine. Now i configured LBAAS. So installed neutron-lbaas-agent.
/etc/neutron/neutron.conf
service_plugins = router,firewall,lbaas
service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
/etc/neutron/lbaas_agent.ini
[DEFAULT]
debug = True
verbose = True
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
ovs_use_veth = True
device_driver = neutron.services.loadbalancer.drivers.haproxy.namespace_driver.HaproxyNSDriver
[haproxy]
And I created lb pool (subnet-id c7666b81-18ea-4b86-9b76-61f5ef35bfee -- internal subnet = 20.20.20.0/24):
# neutron lb-pool-create --lb-method ROUND_ROBIN --name lbaaspool01 --protocol HTTP --subnet-id c7666b81-18ea-4b86-9b76-61f5ef35bfee
Neutron LB member:
# neutron lb-member-create --address 20.20.20.8 --protocol-port 80 lbaaspool01
# neutron lb-member-create --address 20.20.20.6 --protocol-port 80 lbaaspool01
Neutron LB Health monitor:
# neutron lb-healthmonitor-create --delay 3 --type HTTP --max-retries 3 --timeout 3
# neutron lb-healthmonitor-associate 0743aa0a-e28a-4bb7-831a-07682027c244 lbaaspool01
Neutron LB VIP :
# neutron lb-vip-create --name myvip --protocol-port 80 --protocol HTTP --subnet-id c7666b81-18ea-4b86-9b76-61f5ef35bfee lbaaspool01
Then I created the floating ip address and add this floating ip address to the neutron vip port id.
# neutron floatingip-associate 7a372206-8008-46d2-ad07-556aeb100474 3d93ab3b-7ce4-48e3-8bc5-831123e5919f
While executing this command
# neutron lb-member-list
+--------------------------------------+------------+---------------+----------------+----------+
| id | address | protocol_port | admin_state_up | status |
+--------------------------------------+------------+---------------+----------------+----------+
| 10abaac3-3ee5-4619-a091-b61889fd281e | 20.20.20.8 | 80 | True | INACTIVE |
| d6abb2da-2e42-4174-91b2-6618a5e690cc | 20.20.20.6 | 80 | True | INACTIVE |
+--------------------------------------+------------+---------------+----------------+----------+
Member list is INACTIVE only.
And I tried the curl command using vip floating ip address
# curl -w "\n" 10.192.1.134
<html><body><h1>503 Service Unavailable</h1>
No server is available to handle this request.
</body></html>
# curl http://10.192.1.134
<html><body><h1>503 Service Unavailable</h1>
No server is available to handle this request.
</body></html>
# ip netns exec qrouter-3d3af3dd-92c4-4080-a18e-ceb252cb3550 curl http://20.20.20.8
curl: (7) couldn't connect to host
How to work in LBAAS. I am getting the loadbalancer member status as INACTIVE. If it is right means what's the next step to do ?
anybody is there
i know we cant use http and https in the same pool for rule now. But there is a way or hack to do this in icehouse ? any ideas ?