2024-08-27 04:43:24,851 - INFO - Domain Default found not creating 2024-08-27 04:43:25,043 - INFO - Project ctest-TestBasicPolicy-22634844 not found, creating it 2024-08-27 04:43:25,556 - INFO - Created Project:ctest-TestBasicPolicy-22634844, ID : d3d17b94-4ed3-4373-82a7-ae9dd8c69df3 2024-08-27 04:43:27,119 - INFO - ================================================================================ 2024-08-27 04:43:27,120 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-27 04:43:27,120 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2024-08-27 04:43:27,379 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.23': '0'}} with 2024-08-27 04:43:27,379 - INFO - Initial checks done. Running the testcase now 2024-08-27 04:43:27,379 - INFO - 2024-08-27 04:43:27,957 - DEBUG - Response for create_network : {'network': {'id': '77b61fae-ea8b-428c-99a5-cb57623963de', 'name': 'ctest-vn-80332750', 'tenant_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'project_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22634844', 'ctest-vn-80332750'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:43:28,176 - DEBUG - Response for create_subnet : {'subnet': {'id': '49e5795a-6c46-4cc9-8ea1-5b22f8d4ab68', 'name': '', 'tenant_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'network_id': '77b61fae-ea8b-428c-99a5-cb57623963de', 'ip_version': 4, 'cidr': '65.6.247.0/26', 'allocation_pools': [{'start': '65.6.247.2', 'end': '65.6.247.62'}], 'gateway_ip': '65.6.247.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.6.247.2', 'tags': [], 'project_id': 'd3d17b944ed3437382a7ae9dd8c69df3'}} 2024-08-27 04:43:28,197 - INFO - Created VN ctest-vn-80332750 2024-08-27 04:43:28,248 - DEBUG - VN ctest-vn-80332750 UUID is 77b61fae-ea8b-428c-99a5-cb57623963de 2024-08-27 04:43:28,645 - DEBUG - Response for create_network : {'network': {'id': '6298d673-12fc-4135-9201-bcbbbc2834e4', 'name': 'ctest-vn-74387237', 'tenant_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'project_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22634844', 'ctest-vn-74387237'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:43:28,818 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c000c239-f346-43c4-9e84-1915b887e37e', 'name': '', 'tenant_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'network_id': '6298d673-12fc-4135-9201-bcbbbc2834e4', 'ip_version': 4, 'cidr': '218.27.161.0/26', 'allocation_pools': [{'start': '218.27.161.2', 'end': '218.27.161.62'}], 'gateway_ip': '218.27.161.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.27.161.2', 'tags': [], 'project_id': 'd3d17b944ed3437382a7ae9dd8c69df3'}} 2024-08-27 04:43:28,838 - INFO - Created VN ctest-vn-74387237 2024-08-27 04:43:28,892 - DEBUG - VN ctest-vn-74387237 UUID is 6298d673-12fc-4135-9201-bcbbbc2834e4 2024-08-27 04:43:29,014 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-80332750, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-74387237, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2024-08-27 04:43:29,336 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '77b61fae-ea8b-428c-99a5-cb57623963de', 'name': 'ctest-vn-80332750', 'tenant_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'project_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49e5795a-6c46-4cc9-8ea1-5b22f8d4ab68'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22634844', 'ctest-vn-80332750'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22634844', 'ctest-policy-allow-all-90736801']], 'subnet_ipam': [{'subnet_cidr': '65.6.247.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:43:29,588 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6298d673-12fc-4135-9201-bcbbbc2834e4', 'name': 'ctest-vn-74387237', 'tenant_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'project_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c000c239-f346-43c4-9e84-1915b887e37e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22634844', 'ctest-vn-74387237'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22634844', 'ctest-policy-allow-all-90736801']], 'subnet_ipam': [{'subnet_cidr': '218.27.161.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 04:43:29,776 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-08-27 04:43:30,076 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-08-27 04:43:30,113 - DEBUG - Requesting: http://10.0.0.45:8082/domain/3500bfaf-ad27-4522-bbe9-9655cb84d15f 2024-08-27 04:43:30,130 - DEBUG - Requesting: http://10.0.0.45:8082/project/d3d17b94-4ed3-4373-82a7-ae9dd8c69df3 2024-08-27 04:43:30,206 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/77b61fae-ea8b-428c-99a5-cb57623963de 2024-08-27 04:43:30,216 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/77b61fae-ea8b-428c-99a5-cb57623963de 2024-08-27 04:43:30,226 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1d126eb1-df76-4c90-ad4a-8659b11c88f2 2024-08-27 04:43:30,235 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1d126eb1-df76-4c90-ad4a-8659b11c88f2 2024-08-27 04:43:30,242 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/5db82a20-9f2d-49f0-8206-a2a59cc1f65f 2024-08-27 04:43:30,249 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 04:43:30,249 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/77b61fae-ea8b-428c-99a5-cb57623963de 2024-08-27 04:43:30,258 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1d126eb1-df76-4c90-ad4a-8659b11c88f2 2024-08-27 04:43:30,272 - INFO - Verified VN network id 8 for VN 77b61fae-ea8b-428c-99a5-cb57623963de 2024-08-27 04:43:30,273 - INFO - Verifications in API Server for VN ctest-vn-80332750 passed 2024-08-27 04:43:30,273 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/77b61fae-ea8b-428c-99a5-cb57623963de 2024-08-27 04:43:30,282 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1d126eb1-df76-4c90-ad4a-8659b11c88f2 2024-08-27 04:43:30,291 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1d126eb1-df76-4c90-ad4a-8659b11c88f2 2024-08-27 04:43:30,304 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/5db82a20-9f2d-49f0-8206-a2a59cc1f65f 2024-08-27 04:43:30,324 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-80332750', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22634844', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8626116972394529420', 'uuid-lslong': '11071478835130754014'}, 'enable': 'true', 'created': '2024-08-27T04:43:27', 'last-modified': '2024-08-27T04:43:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.020863'} 2024-08-27 04:43:30,334 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 04:43:30,334 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80332750 passed 2024-08-27 04:43:30,334 - DEBUG - ====Verifying policy data for ctest-vn-80332750 in API_Server ====== 2024-08-27 04:43:30,334 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-08-27 04:43:30,342 - DEBUG - Requesting: http://10.0.0.45:8082/domain/3500bfaf-ad27-4522-bbe9-9655cb84d15f 2024-08-27 04:43:30,357 - DEBUG - Requesting: http://10.0.0.45:8082/project/d3d17b94-4ed3-4373-82a7-ae9dd8c69df3 2024-08-27 04:43:30,435 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/77b61fae-ea8b-428c-99a5-cb57623963de 2024-08-27 04:43:30,444 - DEBUG - ==>Verifying data for policy with id: 96a9e43e-51a4-41fa-8a41-7d235514b042, fqn: ['default-domain', 'ctest-TestBasicPolicy-22634844', 'ctest-policy-allow-all-90736801'] 2024-08-27 04:43:30,444 - INFO - VN ctest-vn-80332750 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 04:43:30,445 - DEBUG - Verifying the vn in opserver 2024-08-27 04:43:30,445 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-80332750 virtual network link through opserver 10.0.0.45 2024-08-27 04:43:30,445 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2024-08-27 04:43:30,742 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2024-08-27 04:43:30,814 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-80332750', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-80332750?flat'} 2024-08-27 04:43:30,814 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-80332750 is found in opserver 2024-08-27 04:43:30,828 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 04:43:30,834 - DEBUG - VRF ids for VN ctest-vn-80332750: {} 2024-08-27 04:43:30,834 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-08-27 04:43:30,841 - DEBUG - Requesting: http://10.0.0.45:8082/domain/3500bfaf-ad27-4522-bbe9-9655cb84d15f 2024-08-27 04:43:30,854 - DEBUG - Requesting: http://10.0.0.45:8082/project/d3d17b94-4ed3-4373-82a7-ae9dd8c69df3 2024-08-27 04:43:30,927 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6298d673-12fc-4135-9201-bcbbbc2834e4 2024-08-27 04:43:30,954 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6298d673-12fc-4135-9201-bcbbbc2834e4 2024-08-27 04:43:30,966 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/d5e21470-4ce6-4171-86c2-d9c4797eda0b 2024-08-27 04:43:30,977 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/d5e21470-4ce6-4171-86c2-d9c4797eda0b 2024-08-27 04:43:30,985 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/2245054b-3839-4147-affb-bb09b161a2bf 2024-08-27 04:43:30,992 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 04:43:30,992 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6298d673-12fc-4135-9201-bcbbbc2834e4 2024-08-27 04:43:31,001 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/d5e21470-4ce6-4171-86c2-d9c4797eda0b 2024-08-27 04:43:31,016 - INFO - Verified VN network id 9 for VN 6298d673-12fc-4135-9201-bcbbbc2834e4 2024-08-27 04:43:31,016 - INFO - Verifications in API Server for VN ctest-vn-74387237 passed 2024-08-27 04:43:31,016 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6298d673-12fc-4135-9201-bcbbbc2834e4 2024-08-27 04:43:31,026 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/d5e21470-4ce6-4171-86c2-d9c4797eda0b 2024-08-27 04:43:31,036 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/d5e21470-4ce6-4171-86c2-d9c4797eda0b 2024-08-27 04:43:31,044 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/2245054b-3839-4147-affb-bb09b161a2bf 2024-08-27 04:43:31,059 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-74387237', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22634844', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7104664201905062197', 'uuid-lslong': '10520897719015847140'}, 'enable': 'true', 'created': '2024-08-27T04:43:28', 'last-modified': '2024-08-27T04:43:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.492261'} 2024-08-27 04:43:31,066 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 04:43:31,066 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74387237 passed 2024-08-27 04:43:31,066 - DEBUG - ====Verifying policy data for ctest-vn-74387237 in API_Server ====== 2024-08-27 04:43:31,066 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-08-27 04:43:31,073 - DEBUG - Requesting: http://10.0.0.45:8082/domain/3500bfaf-ad27-4522-bbe9-9655cb84d15f 2024-08-27 04:43:31,086 - DEBUG - Requesting: http://10.0.0.45:8082/project/d3d17b94-4ed3-4373-82a7-ae9dd8c69df3 2024-08-27 04:43:31,159 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6298d673-12fc-4135-9201-bcbbbc2834e4 2024-08-27 04:43:31,172 - DEBUG - ==>Verifying data for policy with id: 96a9e43e-51a4-41fa-8a41-7d235514b042, fqn: ['default-domain', 'ctest-TestBasicPolicy-22634844', 'ctest-policy-allow-all-90736801'] 2024-08-27 04:43:31,172 - INFO - VN ctest-vn-74387237 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 04:43:31,172 - DEBUG - Verifying the vn in opserver 2024-08-27 04:43:31,172 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-74387237 virtual network link through opserver 10.0.0.45 2024-08-27 04:43:31,172 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2024-08-27 04:43:31,187 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-74387237', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-74387237?flat'} 2024-08-27 04:43:31,187 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-74387237 is found in opserver 2024-08-27 04:43:31,199 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 04:43:31,205 - DEBUG - VRF ids for VN ctest-vn-74387237: {} 2024-08-27 04:43:31,271 - DEBUG - Services list from nova: [, , ] 2024-08-27 04:43:32,357 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1792-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1792-1) 2024-08-27 04:43:33,709 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1792-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1792-1) 2024-08-27 04:43:33,709 - INFO - Waiting for VM ctest-TestBasicPolicy-22634844-37716099 to be up.. 2024-08-27 04:43:33,806 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-27 04:43:38,909 - DEBUG - VM is in ACTIVE state now 2024-08-27 04:43:38,909 - INFO - VM name : ctest-TestBasicPolicy-22634844-37716099 2024-08-27 04:43:39,013 - DEBUG - VM ctest-TestBasicPolicy-22634844-37716099 ID is 0e949dd4-cc0e-4a41-b2d0-b2c441b54c44 2024-08-27 04:43:39,041 - DEBUG - VM ctest-TestBasicPolicy-22634844-37716099 launched on Node cn-jenkins-deploy-platform-ansible-os-1792-1 2024-08-27 04:43:39,143 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/0e949dd4-cc0e-4a41-b2d0-b2c441b54c44 2024-08-27 04:43:39,159 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/b41ffbee-b387-44f7-8418-e038a88596dd 2024-08-27 04:43:42,452 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1026ms') 2024-08-27 04:43:42,452 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-22634844-37716099 failed! 2024-08-27 04:43:42,508 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-80332750 is 65.6.247.1 and allocation pool is NOT set 2024-08-27 04:43:44,576 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=9.52 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.42 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 2.416/5.966/9.517/3.550 ms') 2024-08-27 04:43:44,576 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-22634844-37716099 passed 2024-08-27 04:43:44,736 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:43:44,736 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-22634844-37716099, IP 65.6.247.3, Port 22 2024-08-27 04:43:44,909 - DEBUG - VM ctest-TestBasicPolicy-22634844-37716099 is ready for SSH connections 2024-08-27 04:43:44,909 - INFO - Waiting for VM ctest-TestBasicPolicy-22634844-71823943 to be up.. 2024-08-27 04:43:45,036 - DEBUG - VM is in ACTIVE state now 2024-08-27 04:43:45,036 - INFO - VM name : ctest-TestBasicPolicy-22634844-71823943 2024-08-27 04:43:45,142 - DEBUG - VM ctest-TestBasicPolicy-22634844-71823943 ID is 613f6907-fc1a-45f3-9929-51cf668d7ba5 2024-08-27 04:43:45,142 - DEBUG - VM ctest-TestBasicPolicy-22634844-71823943 launched on Node cn-jenkins-deploy-platform-ansible-os-1792-1 2024-08-27 04:43:45,252 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/613f6907-fc1a-45f3-9929-51cf668d7ba5 2024-08-27 04:43:45,263 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/75d368e0-97a1-4f9d-a526-c382eb353157 2024-08-27 04:43:46,511 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.68 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.01 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.013/2.348/3.683/1.335 ms') 2024-08-27 04:43:46,512 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-22634844-71823943 passed 2024-08-27 04:43:46,664 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:43:46,664 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-22634844-71823943, IP 218.27.161.3, Port 22 2024-08-27 04:43:46,720 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-08-27 04:43:46,818 - DEBUG - VM ctest-TestBasicPolicy-22634844-71823943 is NOT ready for SSH connections, VM status: ACTIVE 2024-08-27 04:43:51,818 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:43:51,819 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-22634844-71823943, IP 218.27.161.3, Port 22 2024-08-27 04:43:51,975 - DEBUG - VM ctest-TestBasicPolicy-22634844-71823943 is ready for SSH connections 2024-08-27 04:43:51,975 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:43:51,975 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 218.27.161.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2024-08-27 04:43:51,975 - DEBUG - ping -s 56 -c 3 -W 1 218.27.161.3 2024-08-27 04:43:55,984 - DEBUG - PING 218.27.161.3 (218.27.161.3): 56 data bytes 64 bytes from 218.27.161.3: seq=0 ttl=63 time=4.197 ms 64 bytes from 218.27.161.3: seq=1 ttl=63 time=1.200 ms 64 bytes from 218.27.161.3: seq=2 ttl=63 time=0.881 ms --- 218.27.161.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.881/2.092/4.197 ms 2024-08-27 04:43:55,984 - INFO - Ping to IP 218.27.161.3 from VM ctest-TestBasicPolicy-22634844-37716099 passed 2024-08-27 04:43:56,159 - DEBUG - Policy Update Response {"network-policy": {"uuid": "96a9e43e-51a4-41fa-8a41-7d235514b042", "href": "http://10.0.0.45:8082/network-policy/96a9e43e-51a4-41fa-8a41-7d235514b042"}} 2024-08-27 04:43:56,159 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 04:43:56,160 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 218.27.161.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2024-08-27 04:43:56,160 - DEBUG - ping -s 56 -c 3 -W 1 218.27.161.3 2024-08-27 04:43:59,386 - DEBUG - PING 218.27.161.3 (218.27.161.3): 56 data bytes 64 bytes from 218.27.161.3: seq=0 ttl=63 time=3.653 ms --- 218.27.161.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 3.653/3.653/3.653 ms 2024-08-27 04:43:59,386 - WARNING - Ping to IP 218.27.161.3 from VM ctest-TestBasicPolicy-22634844-37716099 failed 2024-08-27 04:43:59,386 - INFO - Deleting VM ctest-TestBasicPolicy-22634844-71823943 2024-08-27 04:43:59,459 - INFO - Deleting VM ctest-TestBasicPolicy-22634844-37716099 2024-08-27 04:43:59,872 - INFO - Deleted policy ctest-policy-allow-all-90736801 2024-08-27 04:43:59,872 - INFO - Deleting VN ctest-vn-74387237 2024-08-27 04:43:59,911 - DEBUG - VN 6298d673-12fc-4135-9201-bcbbbc2834e4 still in use: Unable to complete operation on network 6298d673-12fc-4135-9201-bcbbbc2834e4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5291a06f-2703-4446-bc55-bbc8ae10a3bb'] 2024-08-27 04:43:59,912 - WARNING - Deleting VN ctest-vn-74387237 failed..Will retry 2024-08-27 04:44:02,036 - DEBUG - Response for deleting network () 2024-08-27 04:44:02,036 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/d5e21470-4ce6-4171-86c2-d9c4797eda0b 2024-08-27 04:44:02,046 - DEBUG - Response Code: 404 2024-08-27 04:44:02,046 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-08-27 04:44:02,054 - DEBUG - Requesting: http://10.0.0.45:8082/domain/3500bfaf-ad27-4522-bbe9-9655cb84d15f 2024-08-27 04:44:02,111 - DEBUG - Requesting: http://10.0.0.45:8082/project/d3d17b94-4ed3-4373-82a7-ae9dd8c69df3 2024-08-27 04:44:02,186 - INFO - Validated that VN ctest-vn-74387237 is not found in API Server 2024-08-27 04:44:02,197 - DEBUG - VN ctest-vn-74387237 is not present in Agent 10.0.0.45 2024-08-27 04:44:02,198 - INFO - Validated that VN ctest-vn-74387237 is not in any agent 2024-08-27 04:44:02,217 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-74387237 info 2024-08-27 04:44:02,217 - INFO - Deleting VN ctest-vn-80332750 2024-08-27 04:44:02,342 - DEBUG - Response for deleting network () 2024-08-27 04:44:02,342 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1d126eb1-df76-4c90-ad4a-8659b11c88f2 2024-08-27 04:44:02,349 - DEBUG - Response Code: 404 2024-08-27 04:44:02,349 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-08-27 04:44:02,360 - DEBUG - Requesting: http://10.0.0.45:8082/domain/3500bfaf-ad27-4522-bbe9-9655cb84d15f 2024-08-27 04:44:02,418 - DEBUG - Requesting: http://10.0.0.45:8082/project/d3d17b94-4ed3-4373-82a7-ae9dd8c69df3 2024-08-27 04:44:02,497 - INFO - Validated that VN ctest-vn-80332750 is not found in API Server 2024-08-27 04:44:02,510 - DEBUG - VN ctest-vn-80332750 is not present in Agent 10.0.0.45 2024-08-27 04:44:02,510 - INFO - Validated that VN ctest-vn-80332750 is not in any agent 2024-08-27 04:44:02,531 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-80332750 info 2024-08-27 04:44:02,795 - DEBUG - No XMPP flaps were noticed during the test
2024-08-27 04:44:02,795 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35]
2024-08-27 04:44:02,795 - INFO - -------------------------------------------------------------------------------- 2024-08-27 04:44:03,513 - INFO - Deleted project: ctest-TestBasicPolicy-22634844, ID : d3d17b94-4ed3-4373-82a7-ae9dd8c69df3