Ask Your Question
1

lbaas members inactive, http service unavailable

asked 2014-12-29 06:45:14 -0600

rajcoumar gravatar image

updated 2014-12-31 12:23:25 -0600

smaffulli gravatar image

Hi, I am working on openstack Icehouse. I taken 3 nodes setup

  1. 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

  2. Compute node: Nova compute package and Neutron packages are neutron-common, neutron-plugin-ml2, neutron-plugin-openvswitch-agent & openvswitch-datapath-dkms

  3. 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 ?

edit retag flag offensive close merge delete

Comments

anybody is there

rajcoumar gravatar imagerajcoumar ( 2014-12-30 23:36:51 -0600 )edit

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 ?

XicoLoco gravatar imageXicoLoco ( 2015-02-26 11:50:04 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-12-31 03:04:53 -0600

foexle gravatar image

Hi Rajcoumar,

your configs looks well, please check if you have the correct security rules ( port 80 must be open)!

Secondly, your configured monit doesn't work i think because you don't have configured the HTTP check. You configured only the check method but it's missing which http URI should be checked:

  --http-method HTTP_METHOD
                        The HTTP method used for requests by the monitor of
                        type HTTP.
  --url-path URL_PATH   The HTTP path used in the HTTP request used by the
                        monitor to test a member health. This must be a string
                        beginning with a / (forward slash)

Try this and tell me if it works.

Cheers Heiko

edit flag offensive delete link more

Comments

like this way i have to do,

neutron lb-healthmonitor-create --http-method HTTP --url-path http://20.20.20.8 --delay 3 --type HTTP --max-retries 3 --timeout 3

rajcoumar gravatar imagerajcoumar ( 2015-01-01 01:06:00 -0600 )edit

@ foexle like this way i have to do,

neutron lb-healthmonitor-create --http-method HTTP --url-path http://20.20.20.8 --delay 3 --type HTTP --max-retries 3 --timeout 3

rajcoumar gravatar imagerajcoumar ( 2015-01-01 02:03:29 -0600 )edit

could you try ip netns exec qrouter-3d3af3dd-92c4-4080-a18e-ceb252cb3550 nmap 20.20.20.8 -p 80

foexle gravatar imagefoexle ( 2015-01-02 01:21:14 -0600 )edit

Nmap is failed. ip netns exec qrouter-3d3af3dd-92c4-4080-a18e-ceb252cb3550 nmap 20.20.20.8 -p 80

exec of nmap failed: No such file or directory

rajcoumar gravatar imagerajcoumar ( 2015-01-02 01:45:56 -0600 )edit

now lb member status as active unable to get the curl command output. ip netns exec qrouter-3d3af3dd-92c4-4080-a18e-ceb252cb3550 curl http://20.20.20.2

curl: (7) couldn't connect to host

rajcoumar gravatar imagerajcoumar ( 2015-01-06 00:48:33 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-12-29 06:45:14 -0600

Seen: 2,366 times

Last updated: Dec 31 '14