2024-09-12 02:25:56,047 - INFO - Domain Default found not creating 2024-09-12 02:25:56,225 - INFO - Project ctest-TestBasicPolicy-04839660 not found, creating it 2024-09-12 02:25:56,751 - INFO - Created Project:ctest-TestBasicPolicy-04839660, ID : 2f5b9dbf-6b77-40f5-a64d-a7e661366842 2024-09-12 02:25:58,444 - INFO - ================================================================================ 2024-09-12 02:25:58,445 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-12 02:25:58,445 - 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-09-12 02:25:58,705 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.8': '0'}} with 2024-09-12 02:25:58,705 - INFO - Initial checks done. Running the testcase now 2024-09-12 02:25:58,705 - INFO - 2024-09-12 02:25:59,381 - DEBUG - Response for create_network : {'network': {'id': 'e44f7db5-a264-42d4-acfb-94eedba528ad', 'name': 'ctest-vn-19790199', 'tenant_id': '2f5b9dbf6b7740f5a64da7e661366842', 'project_id': '2f5b9dbf6b7740f5a64da7e661366842', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04839660', 'ctest-vn-19790199'], 'port_security_enabled': True, 'description': ''}} 2024-09-12 02:25:59,602 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c79e4e6b-2b91-4a47-be0f-2e7ced4231a6', 'name': '', 'tenant_id': '2f5b9dbf6b7740f5a64da7e661366842', 'network_id': 'e44f7db5-a264-42d4-acfb-94eedba528ad', 'ip_version': 4, 'cidr': '28.26.91.64/26', 'allocation_pools': [{'start': '28.26.91.66', 'end': '28.26.91.126'}], 'gateway_ip': '28.26.91.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.26.91.66', 'tags': [], 'project_id': '2f5b9dbf6b7740f5a64da7e661366842'}} 2024-09-12 02:25:59,625 - INFO - Created VN ctest-vn-19790199 2024-09-12 02:25:59,685 - DEBUG - VN ctest-vn-19790199 UUID is e44f7db5-a264-42d4-acfb-94eedba528ad 2024-09-12 02:26:00,068 - DEBUG - Response for create_network : {'network': {'id': 'f40931bf-c11a-4ea6-b35a-d9823addf428', 'name': 'ctest-vn-82290055', 'tenant_id': '2f5b9dbf6b7740f5a64da7e661366842', 'project_id': '2f5b9dbf6b7740f5a64da7e661366842', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04839660', 'ctest-vn-82290055'], 'port_security_enabled': True, 'description': ''}} 2024-09-12 02:26:00,258 - DEBUG - Response for create_subnet : {'subnet': {'id': '2eaf65b1-9903-40b4-8f3c-548be4195905', 'name': '', 'tenant_id': '2f5b9dbf6b7740f5a64da7e661366842', 'network_id': 'f40931bf-c11a-4ea6-b35a-d9823addf428', 'ip_version': 4, 'cidr': '139.36.37.64/26', 'allocation_pools': [{'start': '139.36.37.66', 'end': '139.36.37.126'}], 'gateway_ip': '139.36.37.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.36.37.66', 'tags': [], 'project_id': '2f5b9dbf6b7740f5a64da7e661366842'}} 2024-09-12 02:26:00,280 - INFO - Created VN ctest-vn-82290055 2024-09-12 02:26:00,341 - DEBUG - VN ctest-vn-82290055 UUID is f40931bf-c11a-4ea6-b35a-d9823addf428 2024-09-12 02:26:00,479 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-19790199, 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-04839660:ctest-vn-82290055, 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-09-12 02:26:01,192 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e44f7db5-a264-42d4-acfb-94eedba528ad', 'name': 'ctest-vn-19790199', 'tenant_id': '2f5b9dbf6b7740f5a64da7e661366842', 'project_id': '2f5b9dbf6b7740f5a64da7e661366842', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c79e4e6b-2b91-4a47-be0f-2e7ced4231a6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04839660', 'ctest-vn-19790199'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04839660', 'ctest-policy-allow-all-76723074']], 'subnet_ipam': [{'subnet_cidr': '28.26.91.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-12 02:26:01,530 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f40931bf-c11a-4ea6-b35a-d9823addf428', 'name': 'ctest-vn-82290055', 'tenant_id': '2f5b9dbf6b7740f5a64da7e661366842', 'project_id': '2f5b9dbf6b7740f5a64da7e661366842', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2eaf65b1-9903-40b4-8f3c-548be4195905'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04839660', 'ctest-vn-82290055'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04839660', 'ctest-policy-allow-all-76723074']], 'subnet_ipam': [{'subnet_cidr': '139.36.37.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-12 02:26:01,665 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-12 02:26:02,026 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-12 02:26:02,064 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3586bc11-ddd2-4a7c-b75e-fcf7f670b1a0 2024-09-12 02:26:02,096 - DEBUG - Requesting: http://10.0.0.32:8082/project/2f5b9dbf-6b77-40f5-a64d-a7e661366842 2024-09-12 02:26:02,184 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e44f7db5-a264-42d4-acfb-94eedba528ad 2024-09-12 02:26:02,202 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e44f7db5-a264-42d4-acfb-94eedba528ad 2024-09-12 02:26:02,222 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/70a6e61b-e8b2-49d2-8186-11d3b07df394 2024-09-12 02:26:02,234 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/70a6e61b-e8b2-49d2-8186-11d3b07df394 2024-09-12 02:26:02,244 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/e97a3f5b-6bdf-4395-a426-344389a22fce 2024-09-12 02:26:02,253 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-12 02:26:02,253 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e44f7db5-a264-42d4-acfb-94eedba528ad 2024-09-12 02:26:02,268 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/70a6e61b-e8b2-49d2-8186-11d3b07df394 2024-09-12 02:26:02,293 - INFO - Verified VN network id 9 for VN e44f7db5-a264-42d4-acfb-94eedba528ad 2024-09-12 02:26:02,293 - INFO - Verifications in API Server for VN ctest-vn-19790199 passed 2024-09-12 02:26:02,293 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e44f7db5-a264-42d4-acfb-94eedba528ad 2024-09-12 02:26:02,310 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/70a6e61b-e8b2-49d2-8186-11d3b07df394 2024-09-12 02:26:02,320 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/70a6e61b-e8b2-49d2-8186-11d3b07df394 2024-09-12 02:26:02,330 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/e97a3f5b-6bdf-4395-a426-344389a22fce 2024-09-12 02:26:02,345 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-19790199', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04839660', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16451506182874743508', 'uuid-lslong': '12464720147286141101'}, 'enable': 'true', 'created': '2024-09-12T02:25:59', 'last-modified': '2024-09-12T02:26:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.217715'} 2024-09-12 02:26:02,352 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-12 02:26:02,352 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19790199 passed 2024-09-12 02:26:02,352 - DEBUG - ====Verifying policy data for ctest-vn-19790199 in API_Server ====== 2024-09-12 02:26:02,352 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-12 02:26:02,359 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3586bc11-ddd2-4a7c-b75e-fcf7f670b1a0 2024-09-12 02:26:02,375 - DEBUG - Requesting: http://10.0.0.32:8082/project/2f5b9dbf-6b77-40f5-a64d-a7e661366842 2024-09-12 02:26:02,462 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e44f7db5-a264-42d4-acfb-94eedba528ad 2024-09-12 02:26:02,480 - DEBUG - ==>Verifying data for policy with id: d67914d7-3a1f-4f8e-8b35-4af9c339a80b, fqn: ['default-domain', 'ctest-TestBasicPolicy-04839660', 'ctest-policy-allow-all-76723074'] 2024-09-12 02:26:02,480 - INFO - VN ctest-vn-19790199 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-12 02:26:02,480 - DEBUG - Verifying the vn in opserver 2024-09-12 02:26:02,480 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-19790199 virtual network link through opserver 10.0.0.32 2024-09-12 02:26:02,480 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-09-12 02:26:02,821 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-09-12 02:26:02,895 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-19790199', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-19790199?flat'} 2024-09-12 02:26:02,895 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-19790199 is found in opserver 2024-09-12 02:26:02,910 - DEBUG - Do not have enough data to verify VN in agent 2024-09-12 02:26:02,916 - DEBUG - VRF ids for VN ctest-vn-19790199: {} 2024-09-12 02:26:02,916 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-12 02:26:02,924 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3586bc11-ddd2-4a7c-b75e-fcf7f670b1a0 2024-09-12 02:26:02,939 - DEBUG - Requesting: http://10.0.0.32:8082/project/2f5b9dbf-6b77-40f5-a64d-a7e661366842 2024-09-12 02:26:03,022 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f40931bf-c11a-4ea6-b35a-d9823addf428 2024-09-12 02:26:03,042 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f40931bf-c11a-4ea6-b35a-d9823addf428 2024-09-12 02:26:03,058 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c45bf454-8540-4d3b-8be6-5d6ef0ed228b 2024-09-12 02:26:03,069 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c45bf454-8540-4d3b-8be6-5d6ef0ed228b 2024-09-12 02:26:03,083 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/f7c66955-5b44-405a-bb99-13eb249982a6 2024-09-12 02:26:03,094 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-12 02:26:03,095 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f40931bf-c11a-4ea6-b35a-d9823addf428 2024-09-12 02:26:03,113 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c45bf454-8540-4d3b-8be6-5d6ef0ed228b 2024-09-12 02:26:03,138 - INFO - Verified VN network id 10 for VN f40931bf-c11a-4ea6-b35a-d9823addf428 2024-09-12 02:26:03,138 - INFO - Verifications in API Server for VN ctest-vn-82290055 passed 2024-09-12 02:26:03,138 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f40931bf-c11a-4ea6-b35a-d9823addf428 2024-09-12 02:26:03,155 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c45bf454-8540-4d3b-8be6-5d6ef0ed228b 2024-09-12 02:26:03,165 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c45bf454-8540-4d3b-8be6-5d6ef0ed228b 2024-09-12 02:26:03,176 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/f7c66955-5b44-405a-bb99-13eb249982a6 2024-09-12 02:26:03,194 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-82290055', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04839660', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17584640919693053606', 'uuid-lslong': '12923881234049659944'}, 'enable': 'true', 'created': '2024-09-12T02:26:00', 'last-modified': '2024-09-12T02:26:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.684208'} 2024-09-12 02:26:03,203 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-12 02:26:03,203 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82290055 passed 2024-09-12 02:26:03,203 - DEBUG - ====Verifying policy data for ctest-vn-82290055 in API_Server ====== 2024-09-12 02:26:03,203 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-12 02:26:03,228 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3586bc11-ddd2-4a7c-b75e-fcf7f670b1a0 2024-09-12 02:26:03,244 - DEBUG - Requesting: http://10.0.0.32:8082/project/2f5b9dbf-6b77-40f5-a64d-a7e661366842 2024-09-12 02:26:03,331 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/f40931bf-c11a-4ea6-b35a-d9823addf428 2024-09-12 02:26:03,348 - DEBUG - ==>Verifying data for policy with id: d67914d7-3a1f-4f8e-8b35-4af9c339a80b, fqn: ['default-domain', 'ctest-TestBasicPolicy-04839660', 'ctest-policy-allow-all-76723074'] 2024-09-12 02:26:03,348 - INFO - VN ctest-vn-82290055 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-12 02:26:03,348 - DEBUG - Verifying the vn in opserver 2024-09-12 02:26:03,348 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-82290055 virtual network link through opserver 10.0.0.32 2024-09-12 02:26:03,348 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks 2024-09-12 02:26:03,362 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-82290055', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-82290055?flat'} 2024-09-12 02:26:03,362 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-82290055 is found in opserver 2024-09-12 02:26:03,375 - DEBUG - Do not have enough data to verify VN in agent 2024-09-12 02:26:03,382 - DEBUG - VRF ids for VN ctest-vn-82290055: {} 2024-09-12 02:26:03,448 - DEBUG - Services list from nova: [, , ] 2024-09-12 02:26:04,677 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1904-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1904-1) 2024-09-12 02:26:06,198 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1904-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1904-1) 2024-09-12 02:26:06,198 - INFO - Waiting for VM ctest-TestBasicPolicy-04839660-31756722 to be up.. 2024-09-12 02:26:06,298 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-12 02:26:11,409 - DEBUG - VM is in ACTIVE state now 2024-09-12 02:26:11,409 - INFO - VM name : ctest-TestBasicPolicy-04839660-31756722 2024-09-12 02:26:11,514 - DEBUG - VM ctest-TestBasicPolicy-04839660-31756722 ID is cc016689-c69c-4b40-8cfb-d502aaa9ff48 2024-09-12 02:26:11,534 - DEBUG - VM ctest-TestBasicPolicy-04839660-31756722 launched on Node cn-jenkins-deploy-platform-ansible-os-1904-1 2024-09-12 02:26:11,625 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/cc016689-c69c-4b40-8cfb-d502aaa9ff48 2024-09-12 02:26:11,636 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/6d668951-a9f9-4608-b045-4b6c72a532e6 2024-09-12 02:26:14,927 - 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 1035ms') 2024-09-12 02:26:14,928 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04839660-31756722 failed! 2024-09-12 02:26:14,989 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-04839660:ctest-vn-19790199 is 28.26.91.65 and allocation pool is NOT set 2024-09-12 02:26:17,047 - 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=5.25 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.532 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.532/2.890/5.249/2.358 ms') 2024-09-12 02:26:17,047 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-04839660-31756722 passed 2024-09-12 02:26:17,213 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 02:26:17,214 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04839660-31756722, IP 28.26.91.67, Port 22 2024-09-12 02:26:17,369 - DEBUG - VM ctest-TestBasicPolicy-04839660-31756722 is ready for SSH connections 2024-09-12 02:26:17,370 - INFO - Waiting for VM ctest-TestBasicPolicy-04839660-33499837 to be up.. 2024-09-12 02:26:17,459 - DEBUG - VM is in ACTIVE state now 2024-09-12 02:26:17,459 - INFO - VM name : ctest-TestBasicPolicy-04839660-33499837 2024-09-12 02:26:17,547 - DEBUG - VM ctest-TestBasicPolicy-04839660-33499837 ID is b4af725e-0d8c-4eba-a521-eeddd4c78e07 2024-09-12 02:26:17,547 - DEBUG - VM ctest-TestBasicPolicy-04839660-33499837 launched on Node cn-jenkins-deploy-platform-ansible-os-1904-1 2024-09-12 02:26:17,637 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine/b4af725e-0d8c-4eba-a521-eeddd4c78e07 2024-09-12 02:26:17,650 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-machine-interface/4ce5336e-2939-48dc-97b2-835129f59fb9 2024-09-12 02:26:18,922 - 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=4.68 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.57 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.571/3.126/4.682/1.555 ms') 2024-09-12 02:26:18,922 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-04839660-33499837 passed 2024-09-12 02:26:19,081 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 02:26:19,082 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04839660-33499837, IP 139.36.37.67, Port 22 2024-09-12 02:26:19,141 - 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-09-12 02:26:19,227 - DEBUG - VM ctest-TestBasicPolicy-04839660-33499837 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-12 02:26:24,227 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 02:26:24,228 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-04839660-33499837, IP 139.36.37.67, Port 22 2024-09-12 02:26:24,396 - DEBUG - VM ctest-TestBasicPolicy-04839660-33499837 is ready for SSH connections 2024-09-12 02:26:24,396 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 02:26:24,396 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 139.36.37.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-09-12 02:26:24,396 - DEBUG - ping -s 56 -c 3 -W 1 139.36.37.67 2024-09-12 02:26:28,490 - DEBUG - PING 139.36.37.67 (139.36.37.67): 56 data bytes 64 bytes from 139.36.37.67: seq=0 ttl=63 time=4.884 ms 64 bytes from 139.36.37.67: seq=1 ttl=63 time=0.952 ms 64 bytes from 139.36.37.67: seq=2 ttl=63 time=0.854 ms --- 139.36.37.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.854/2.230/4.884 ms 2024-09-12 02:26:28,491 - INFO - Ping to IP 139.36.37.67 from VM ctest-TestBasicPolicy-04839660-31756722 passed 2024-09-12 02:26:28,701 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d67914d7-3a1f-4f8e-8b35-4af9c339a80b", "href": "http://10.0.0.32:8082/network-policy/d67914d7-3a1f-4f8e-8b35-4af9c339a80b"}} 2024-09-12 02:26:28,701 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-12 02:26:28,701 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 139.36.37.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.32, gateway password: c0ntrail123 2024-09-12 02:26:28,702 - DEBUG - ping -s 56 -c 3 -W 1 139.36.37.67 2024-09-12 02:26:31,926 - DEBUG - PING 139.36.37.67 (139.36.37.67): 56 data bytes 64 bytes from 139.36.37.67: seq=0 ttl=63 time=1.540 ms --- 139.36.37.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.540/1.540/1.540 ms 2024-09-12 02:26:31,927 - WARNING - Ping to IP 139.36.37.67 from VM ctest-TestBasicPolicy-04839660-31756722 failed 2024-09-12 02:26:31,927 - INFO - Deleting VM ctest-TestBasicPolicy-04839660-33499837 2024-09-12 02:26:32,009 - INFO - Deleting VM ctest-TestBasicPolicy-04839660-31756722 2024-09-12 02:26:32,486 - INFO - Deleted policy ctest-policy-allow-all-76723074 2024-09-12 02:26:32,487 - INFO - Deleting VN ctest-vn-82290055 2024-09-12 02:26:32,536 - DEBUG - VN f40931bf-c11a-4ea6-b35a-d9823addf428 still in use: Unable to complete operation on network f40931bf-c11a-4ea6-b35a-d9823addf428. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f78cb5c1-da90-493f-87d5-a463f9b5a2d7'] 2024-09-12 02:26:32,536 - WARNING - Deleting VN ctest-vn-82290055 failed..Will retry 2024-09-12 02:26:34,676 - DEBUG - Response for deleting network () 2024-09-12 02:26:34,676 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/c45bf454-8540-4d3b-8be6-5d6ef0ed228b 2024-09-12 02:26:34,689 - DEBUG - Response Code: 404 2024-09-12 02:26:34,689 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-12 02:26:34,696 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3586bc11-ddd2-4a7c-b75e-fcf7f670b1a0 2024-09-12 02:26:34,756 - DEBUG - Requesting: http://10.0.0.32:8082/project/2f5b9dbf-6b77-40f5-a64d-a7e661366842 2024-09-12 02:26:34,837 - INFO - Validated that VN ctest-vn-82290055 is not found in API Server 2024-09-12 02:26:34,850 - DEBUG - VN ctest-vn-82290055 is not present in Agent 10.0.0.32 2024-09-12 02:26:34,850 - INFO - Validated that VN ctest-vn-82290055 is not in any agent 2024-09-12 02:26:34,868 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-82290055 info 2024-09-12 02:26:34,868 - INFO - Deleting VN ctest-vn-19790199 2024-09-12 02:26:35,020 - DEBUG - Response for deleting network () 2024-09-12 02:26:35,021 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/70a6e61b-e8b2-49d2-8186-11d3b07df394 2024-09-12 02:26:35,029 - DEBUG - Response Code: 404 2024-09-12 02:26:35,029 - DEBUG - Requesting: http://10.0.0.32:8082/domains 2024-09-12 02:26:35,036 - DEBUG - Requesting: http://10.0.0.32:8082/domain/3586bc11-ddd2-4a7c-b75e-fcf7f670b1a0 2024-09-12 02:26:35,092 - DEBUG - Requesting: http://10.0.0.32:8082/project/2f5b9dbf-6b77-40f5-a64d-a7e661366842 2024-09-12 02:26:35,173 - INFO - Validated that VN ctest-vn-19790199 is not found in API Server 2024-09-12 02:26:35,185 - DEBUG - VN ctest-vn-19790199 is not present in Agent 10.0.0.32 2024-09-12 02:26:35,185 - INFO - Validated that VN ctest-vn-19790199 is not in any agent 2024-09-12 02:26:35,203 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-19790199 info 2024-09-12 02:26:35,460 - DEBUG - No XMPP flaps were noticed during the test
2024-09-12 02:26:35,460 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2024-09-12 02:26:35,460 - INFO - -------------------------------------------------------------------------------- 2024-09-12 02:26:36,224 - INFO - Deleted project: ctest-TestBasicPolicy-04839660, ID : 2f5b9dbf-6b77-40f5-a64d-a7e661366842