azure-linux-automation/Documentation/Azure Network automation/NETWORK-LB-CUSTOMPROBE-SAME...

56 строки
2.8 KiB
Plaintext
Исходник Обычный вид История

2014-06-25 03:35:28 +04:00
Login on your Hyper-V server.
Start PowerShell with the Run As Administrator option.
Deploy VM's in Azure.
1. Create deployment of type : Load Balanced - Probe Port on same port.
You will get Two VMs deployed in a hosted service.
VM alias : HS1VM1, HS1VM2
Hosted Service Alias : HS1
[please go through DEPLOYMENT-CONFIGURATIONS.txt for more information about deploy types.]
Execute Test :
1. Start Iperf server on HS1VM1
Execute "iperf -s -p <TCP load balanced port>"
2. Start Iperf server on HS1VM2
Execute "iperf -s -p <TCP load balanced port>"
3. Wait until you see probe messages on both iperf servers.
4. Start Iperf client on dtap machine (A machine outside Azure, which have a static IP address).
Execute "iperf -c <VIP of HS1> -p <TCP load balanced port> -P 2"
5. Verify HS1VM1 and HS1VM2 connected to One connection each. And data transfer is evenly distributed.
6. Stop iperf server on HS1VM1 and HS1VM2.
Execute "killall iperf" on HS1VM1 & HS1VM2 and wait 20 seconds.
7. Start Iperf client on dtap machine.
Execute "iperf -c <VIP of HS1> -p <TCP load balanced port> -P 2"
8. Verify that iperf client is failing to connect.
9. Start Iperf server on HS1VM1 and HS1VM2 again.
Execute "iperf -s -p <TCP load balanced port>"
10. Wait until you see probe messages on both iperf servers.
11. Start Iperf client on dtap machine (A machine outside Azure, which have a static IP address).
Execute "iperf -c <VIP of HS1> -p <TCP load balanced port> -P 2"
12. Verify HS1VM1 and HS1VM2 connected to One connection each. And data transfer is evenly distributed.
13. Repeat 1 - 12 using DNS name of VM roles.
Hint : Execute "iperf -c <DNS name of HS1> -p <TCP load balanced port> -P 2" on Dtap machine.
Cleanup the test VMs.
1. If test is PASS, delete all VMs under test.
2. If test is FAIL, collect the logs and preserve deployed VMs.
Add following test definition under "<testsDefinition>..</testsDefinition>" in XML file to drive the test:
<test>
<testName>NETWORK-LB-CUSTOMPROBE-SAME-PORT-TWO-NODES-DOWN-TCP</testName>
<testScript></testScript>
<testScriptps1>NETWORK-LB-CUSTOMPROBE-SAME-PORT-TWO-NODES-DOWN-TCP.ps1</testScriptps1>
<files>remote-scripts\start-server.py, remote-scripts\start-client.py, remote-scripts\check-server.py,remote-scripts\stop-server.py, remote-scripts\azuremodules.py, remote-scripts\start-server-without-stopping.py</files>
<setupType>CustomProbeSamePort</setupType>
<TestType></TestType>
<TestFeature></TestFeature>
<TestID>AzureNetwork_CPSP_006</TestID>
<TestMode>VIP,URL</TestMode>
<Priority>P0</Priority>
</test>
Run the tests defined in the .xml file.
From the PowerShell command line, issue the following command:
Run all NETWORK tests:
.\AzureAutomationManager.ps1 -xmlConfigFile azure_ica_all.xml -runtests -Distro CentOS -cycleName NETWORK