<div dir="ltr">Hi, Michael,<div><br></div><div>Thanks a lot. Look forward  to your further test. I try deploying a new environment, too. Hope it can work well this time.</div><div><br></div><div>Best regards,</div><div>Yipei</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 27, 2017 at 10:27 AM, Yipei Niu <span dir="ltr"><<a href="mailto:newypei@gmail.com" target="_blank">newypei@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, Michael,<div><br></div><div>The instructions are listed as follows.</div><div><br></div><div>First, create a net1.</div><div>$ neutron net-create net1</div><div>$ neutron subnet-create net1 <a href="http://10.0.1.0/24" target="_blank">10.0.1.0/24</a> --name subnet1<br></div><div><br></div><div>Second, boot two vms in net1</div><div>$ nova boot --flavor 1 --image $image_id --nic net-id=$net1_id vm1</div><div>$ nova boot --flavor 1 --image $image_id --nic net-id=$net1_id vm2</div><div><br></div><div>Third, logon to the two vms, respectively. Here take vm1 as an example.</div><div>$ MYIP=$(ifconfig eth0|grep 'inet addr'|awk -F: '{print $2}'| awk '{print $1}')</div><div>$ while true; do echo -e "HTTP/1.0 200 OK\r\n\r\nWelcome to $MYIP" | sudo nc -l -p 80 ; done&</div><div><br></div><div>Fourth, exit vms and update the default security group shared by the vms by adding a rule of allowing traffic to port 80.</div><div>$ neutron security-group-rule-create --direction ingress --protocol tcp --port-range-min 80 --port-range-max 80 --remote-ip-refix <a href="http://0.0.0.0/0" target="_blank">0.0.0.0/0</a> $default_security_group</div><div>Note: make sure "sudo ip netns exec $qdhcp-net1_id curl -v $vm_ip" works. In other words, make sure the vms can accept HTTP requests and return its IP, respectively.</div><div><br></div><div>Fifth, create a lb, a listener, and a pool. Then add the two vms to the pool as members.</div><div>$ neutron lbaas-loadbalancer-create --name lb1 subnet1</div><div>$ neutron lbaas-listener-create --loadbalancer lb1 --protocol HTTP --protocol-port 80 --name listener1</div><div>$ neutron lbaas-pool-create --lb-algorithm ROUND_ROBIN --listener listener1 --protocol HTTP --name pool1</div><div>$ neutron baas-member-create --subnet subnet1 --address $vm1_ip --protocol-port 80 pool1</div><div>$ neutron baas-member-create --subnet subnet1 --address $vm2_ip --protocol-port 80 pool1</div><div><br></div><div>Finally, try "sudo ip netns qdhcp-net1_id curl -v $VIP" to see whether lbaas works.</div><div><br></div><div>Best regards,</div><div>Yipei</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 27, 2017 at 1:30 AM, Yipei Niu <span dir="ltr"><<a href="mailto:newypei@gmail.com" target="_blank">newypei@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, Michael,<div><br></div><div>I think the octavia is the latest, since I pull the up-to-date repo of octavia manually to my server before installation.</div><div><br></div><div>Anyway, I run "sudo <span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">ip netns exec </span><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">amphora-haproxy ip route show table 1</span>" in the amphora, and find that the route table exists. The info is listed as follows.</div><div><br></div><div><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">default via 10.0.1.1 dev eth1 onlink</span><br></div><div><br></div><div>I think it may not be the source.</div><div><br></div><div>Best regards,</div><div>Yipei</div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>