how to test LBaaS on VM instance
Hi,
I am new to openstack and trying to create two server and one client instance for lbaas testing using juno installation guide on fedora 20 . Below is my server and client detail.
[root@controller ~]# nova list
+--------------------------------------+----------------+--------+------------+-------------+-----------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+----------------+--------+------------+-------------+-----------------------+
| e3835e48-29bb-487a-a0be-1057f8404b4d | demo-instance1 | ACTIVE | - | Running | demo-net=192.168.1.9 |
| 4a123ae1-dc48-422e-83df-f12da082d9ee | server1 | ACTIVE | - | Running | demo-net=192.168.1.10 |
| 53a051e5-614f-45bd-abaf-91d5a9228e90 | server2 | ACTIVE | - | Running | demo-net=192.168.1.11 |
+--------------------------------------+----------------+--------+------------+-------------+-----------------------+
After installing openstack using juno guide, I have referred the below link to run lbaas https://wiki.openstack.org/wiki/Neutr...
Accordingly I tried to start webserver on server1 and server2 on its VNC session using below command
On VNC server1 session:
while true; do echo -e 'HTTP/1.0 200 OK\r\n\r\nserver1' | sudo nc -l -p 80 ; done
On VNC server2 session:
while true; do echo -e 'HTTP/1.0 200 OK\r\n\r\nserver1' | sudo nc -l -p 80 ; done
Please let me know if above command is correct or not to start a webserver because I found that ever after starting webserver pool member health monitoring got failed .
[root@controller ~]# neutron lb-member-list
+--------------------------------------+--------------+---------------+--------+----------------+----------+
| id | address | protocol_port | weight | admin_state_up | status |
+--------------------------------------+--------------+---------------+--------+----------------+----------+
| 724c64d9-a829-4413-9102-a11d4d45b831 | 192.168.1.11 | 80 | 1 | True | INACTIVE |
| 94276426-d147-4898-a18a-1a885b852be2 | 192.168.1.10 | 80 | 1 | True | INACTIVE |
+--------------------------------------+--------------+---------------+--------+----------------+----------+
Question 2: Below is the health monitor detail
[root@controller ~]# neutron lb-healthmonitor-list
+--------------------------------------+------+----------------+
| id | type | admin_state_up |
+--------------------------------------+------+----------------+
| 91ec5d75-7424-4b55-b9cf-4ed058469f81 | HTTP | True |
+--------------------------------------+------+----------------+
[root@controller ~]# neutron lb-healthmonitor-show 91ec5d75-7424-4b55-b9cf-4ed058469f81
+----------------+-----------------------------------------------------------------------------------------------------+
| Field | Value |
+----------------+-----------------------------------------------------------------------------------------------------+
| admin_state_up | True |
| delay | 3 |
| expected_codes | 200 |
| http_method | GET |
| id | 91ec5d75-7424-4b55-b9cf-4ed058469f81 |
| max_retries | 3 |
| pools | {"status": "ACTIVE", "status_description": null, "pool_id": "8b47f06a-ec53-4c42-9575-dfd0541333b9"} |
| tenant_id | 3170cbf17a734c97a968aef04e32f463 |
| timeout | 3 |
| type | HTTP |
| url_path | / |
+----------------+-----------------------------------------------------------------------------------------------------+
server1 on both sever is just typo here but I have started with proper server name. Today I just restarted webserver on VM VNC server1 using the below command :
while true; do echo -e 'HTTP/1.0 200 OK\r\n\r\nserver1' | sudo nc -l -p 80 ;
After this I tried to verify the webserver1 by sending request from network node as mentioned below and it failed.
#wget -O - http://192.168.1.10 (server1 fixed IP)
--2015-02-23 20:48:59-- http://192.168.1.10/
Connecting to 192.168.1.10:80... failed: No route to host.
# wget -O - http://192.168.1.13 (VIP fixed IP)
--2015-02-23 21:09:05-- http://192.168.1.13/
Connecting to 192.168.1.13:80... failed: No route to host.
I have few more doubt on my validation step mentioned above :
- Do I need to send HTTP request to floation IP associated with server1 or fixed IP of server1 ? -I have tried with fixed IP
- Do I need to make any change in http config file running at network node ?
Later I tired to associate floating IP 10.130.98.240 to server1 then send HTTP request but still no luck
wget -O - http://10.130.98.240
--2015-02-23 21:18:29-- http://10.130.98.240/
Connecting to 10.130.98.240:80... failed: Connection timed out.
Retrying.
--2015-02-23 21:20:37-- (try ...