Advertisement
Guest User

pexpect failure

a guest
Jan 16th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.21 KB | None | 0 0
  1. VM_to_NTK_IP inside Traffic Class for == {'PVM1': ['11.11.11.7', 'e95cb89f-0b17-4388-9144-ac2bcc8f82f9'], 'PVM2': ['21.21.21.7', '578c0539-ade2-4c3e-96e2-2e06bf51d269']}
  2. VM Properties == {'PVM1': {'src_ip': '11.11.11.7', 'netns': 'qdhcp-e95cb89f-0b17-4388-9144-ac2bcc8f82f9', 'dest_ip': ['21.21.21.7']}, 'PVM2': {'src_ip': '21.21.21.7', 'netns': 'qdhcp-578c0539-ade2-4c3e-96e2-2e06bf51d269', 'dest_ip': ['11.11.11.7']}}
  3. Run Traffic for the Protocols: ['icmp', 'tcp', 'metadata'] and then analyze results
  4. Entered test_setup, dest_ep is ['21.21.21.7']
  5. test_setup: ip %s 21.21.21.7
  6. hostname
  7. f3-compute-1.noiro.lab
  8. [root@f3-compute-1 ~]
  9. ip netns exec qdhcp-e95cb89f-0b17-4388-9144-ac2bcc8f82f9 ping 21.21.21.7 -c 2
  10. ping 21.21.21.7 -c 2-e95cb89f-0b17-4388-9144-ac2bcc8f82f9
  11. PING 21.21.21.7 (21.21.21.7) 56(84) bytes of data.
  12. 64 bytes from 21.21.21.7: icmp_seq=1 ttl=63 time=0.716 ms
  13. 64 bytes from 21.21.21.7: icmp_seq=2 ttl=63 time=0.222 ms
  14.  
  15. --- 21.21.21.7 ping statistics ---
  16. 2 packets transmitted, 2 received, 0% packet loss, time 1000ms
  17. rtt min/avg/max/mdev = 0.222/0.469/0.716/0.247 ms
  18. [root@f3-compute-1 ~]
  19. Out ==NOIRO
  20. Trying to SSH into VM 21.21.21.7.....
  21. ip netns exec qdhcp-e95cb89f-0b17-4388-9144-ac2bcc8f82f9 ssh cirros@21.21.21.7
  22. Entering sudo priviledged command mode
  23. Stopping netcat session on port 80
  24. output from ps is ps -ef | grep [n]c | awk -F" " '{print $1
  25. output from ps is
  26. 12
  27.  
  28. Starting netcat session on port 80
  29. HTTP server command is: nohup nc -p 80 -n -lk -e 'echo -e Hi!'&
  30. hostname
  31. f3-compute-1.noiro.lab
  32. [root@f3-compute-1 ~]
  33. ip netns exec qdhcp-e95cb89f-0b17-4388-9144-ac2bcc8f82f9 ping 11.11.11.7 -c 2
  34. ping 11.11.11.7 -c 2-e95cb89f-0b17-4388-9144-ac2bcc8f82f9
  35. PING 11.11.11.7 (11.11.11.7) 56(84) bytes of data.
  36. 64 bytes from 11.11.11.7: icmp_seq=1 ttl=64 time=0.914 ms
  37. 64 bytes from 11.11.11.7: icmp_seq=2 ttl=64 time=0.241 ms
  38.  
  39. --- 11.11.11.7 ping statistics ---
  40. 2 packets transmitted, 2 received, 0% packet loss, time 1000ms
  41. rtt min/avg/max/mdev = 0.241/0.577/0.914/0.337 ms
  42. [root@f3-compute-1 ~]
  43. Out ==NOIRO
  44. Trying to SSH into VM 11.11.11.7.....
  45. ip netns exec qdhcp-e95cb89f-0b17-4388-9144-ac2bcc8f82f9 ssh cirros@11.11.11.7
  46. Entering sudo priviledged command mode
  47. Starting netcat session on port 80
  48. HTTP server command is: nohup nc -p 80 -n -lk -e 'echo -e Hi!'&
  49.  
  50. ip addr show eth0
  51. 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
  52. link/ether fa:16:3e:5a:b5:6f brd ff:ff:ff:ff:ff:ff
  53. inet 11.11.11.7/28 brd 11.11.11.15 scope global eth0
  54. inet6 fe80::f816:3eff:fe5a:b56f/64 scope link
  55. valid_lft forever preferred_lft forever
  56.  
  57. ping command: ping 21.21.21.7 -c 3 -s 1000
  58. Sent ICMP packets
  59. ICMP result: ping 21.21.21.7 -c 3 -s 1000
  60. PING 21.21.21.7 (21.21.21.7): 1000 data bytes
  61. 1008 bytes from 21.21.21.7: seq=0 ttl=62 time=0.845 ms
  62. 1008 bytes from 21.21.21.7: seq=1 ttl=62 time=0.360 ms
  63. 1008 bytes from 21.21.21.7: seq=2 ttl=62 time=0.275 ms
  64.  
  65. --- 21.21.21.7 ping statistics ---
  66. 3 packets transmitted, 3 packets received, 0% packet loss
  67. round-trip min/avg/max = 0.275/0.493/0.845 ms
  68.  
  69. Traceback (most recent call last):
  70. File "run_ml2_sanity.py", line 82, in <module>
  71. if test_traff.traff_from_ml2_tenants(tnt1) == 0:
  72. File "/home/noiro/noirotest/testcases/testcases_sanity/common_sanity_methods.py", line 958, in traff_from_ml2_tenants
  73. if not vm_traff.run_and_verify_traffic(proto,tcp_syn_only=1):
  74. File "/home/noiro/noirotest/libs/gbp_pexp_traff_libs.py", line 269, in run_and_verify_traffic
  75. results = self.test_run(protocols=proto,tcp_syn_only=tcp_syn_only,jumbo=jumbo,no_ipv6=no_ipv6)
  76. File "/home/noiro/noirotest/libs/gbp_pexp_traff_libs.py", line 252, in test_run
  77. self.vm_test_traffic(pexpect_session, protocols, results, tcp_syn_only=tcp_syn_only, port=port, no_ipv6=no_ipv6)
  78. File "/home/noiro/noirotest/libs/gbp_pexp_traff_libs.py", line 443, in vm_test_traffic
  79. pexpect_session.expect(self.vm_prompt)
  80. File "/usr/local/lib/python2.7/dist-packages/pexpect/spawnbase.py", line 321, in expect
  81. timeout, searchwindowsize, async)
  82. File "/usr/local/lib/python2.7/dist-packages/pexpect/spawnbase.py", line 345, in expect_list
  83. return exp.expect_loop(timeout)
  84. File "/usr/local/lib/python2.7/dist-packages/pexpect/expect.py", line 107, in expect_loop
  85. return self.timeout(e)
  86. File "/usr/local/lib/python2.7/dist-packages/pexpect/expect.py", line 70, in timeout
  87. raise TIMEOUT(msg)
  88. pexpect.exceptions.TIMEOUT: Timeout exceeded.
  89. <pexpect.pty_spawn.spawn object at 0x7fa9a8466c90>
  90. command: /usr/bin/ssh
  91. args: ['/usr/bin/ssh', 'root@172.28.184.46']
  92. buffer (last 100 chars): ' nc -w 1 -v 21.21.21.7 -z 22\r\n21.21.21.7 (21.21.21.7:22) open\r\nSSH-2.0-dropbear_2012.55\r\r\n'
  93. before (last 100 chars): ' nc -w 1 -v 21.21.21.7 -z 22\r\n21.21.21.7 (21.21.21.7:22) open\r\nSSH-2.0-dropbear_2012.55\r\r\n'
  94. after: <class 'pexpect.exceptions.TIMEOUT'>
  95. match: None
  96. match_index: None
  97. exitstatus: None
  98. flag_eof: False
  99. pid: 20777
  100. child_fd: 7
  101. closed: False
  102. timeout: 30
  103. delimiter: <class 'pexpect.exceptions.EOF'>
  104. logfile: None
  105. logfile_read: None
  106. logfile_send: None
  107. maxread: 2000
  108. ignorecase: False
  109. searchwindowsize: None
  110. delaybeforesend: 0.05
  111. delayafterclose: 0.1
  112. delayafterterminate: 0.1
  113. searcher: searcher_re:
  114. 0: re.compile("\$")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement