2025-06-18 02:45:02,825 - INFO - Domain Default found not creating 2025-06-18 02:45:02,986 - INFO - Project ctest-TestBasicPolicy-13314470 not found, creating it 2025-06-18 02:45:03,478 - INFO - Created Project:ctest-TestBasicPolicy-13314470, ID : e9938008-2528-4b23-8122-30e6ddf631d0 2025-06-18 02:45:05,059 - INFO - ================================================================================ 2025-06-18 02:45:05,060 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-18 02:45:05,060 - 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 2025-06-18 02:45:05,326 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with 2025-06-18 02:45:05,326 - INFO - Initial checks done. Running the testcase now 2025-06-18 02:45:05,327 - INFO - 2025-06-18 02:45:05,937 - DEBUG - Response for create_network : {'network': {'id': 'b2b5a615-0c2a-4713-be40-a337746d00ef', 'name': 'ctest-vn-39152720', 'tenant_id': 'e993800825284b23812230e6ddf631d0', 'project_id': 'e993800825284b23812230e6ddf631d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13314470', 'ctest-vn-39152720'], 'port_security_enabled': True, 'description': ''}} 2025-06-18 02:45:06,136 - DEBUG - Response for create_subnet : {'subnet': {'id': '4276853f-13bb-4f1e-8eca-9a4e937d4776', 'name': '', 'tenant_id': 'e993800825284b23812230e6ddf631d0', 'network_id': 'b2b5a615-0c2a-4713-be40-a337746d00ef', 'ip_version': 4, 'cidr': '18.189.87.64/26', 'allocation_pools': [{'start': '18.189.87.66', 'end': '18.189.87.126'}], 'gateway_ip': '18.189.87.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.189.87.66', 'tags': [], 'project_id': 'e993800825284b23812230e6ddf631d0'}} 2025-06-18 02:45:06,159 - INFO - Created VN ctest-vn-39152720 2025-06-18 02:45:06,216 - DEBUG - VN ctest-vn-39152720 UUID is b2b5a615-0c2a-4713-be40-a337746d00ef 2025-06-18 02:45:06,528 - DEBUG - Response for create_network : {'network': {'id': '012653a0-3b16-4a58-a675-69900d3d0084', 'name': 'ctest-vn-60551793', 'tenant_id': 'e993800825284b23812230e6ddf631d0', 'project_id': 'e993800825284b23812230e6ddf631d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13314470', 'ctest-vn-60551793'], 'port_security_enabled': True, 'description': ''}} 2025-06-18 02:45:06,740 - DEBUG - Response for create_subnet : {'subnet': {'id': '273a4849-c7cd-4598-a977-8bba5be39dcd', 'name': '', 'tenant_id': 'e993800825284b23812230e6ddf631d0', 'network_id': '012653a0-3b16-4a58-a675-69900d3d0084', 'ip_version': 4, 'cidr': '191.115.115.64/26', 'allocation_pools': [{'start': '191.115.115.66', 'end': '191.115.115.126'}], 'gateway_ip': '191.115.115.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.115.115.66', 'tags': [], 'project_id': 'e993800825284b23812230e6ddf631d0'}} 2025-06-18 02:45:06,761 - INFO - Created VN ctest-vn-60551793 2025-06-18 02:45:06,815 - DEBUG - VN ctest-vn-60551793 UUID is 012653a0-3b16-4a58-a675-69900d3d0084 2025-06-18 02:45:06,934 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-39152720, 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-13314470:ctest-vn-60551793, 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] 2025-06-18 02:45:07,248 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b2b5a615-0c2a-4713-be40-a337746d00ef', 'name': 'ctest-vn-39152720', 'tenant_id': 'e993800825284b23812230e6ddf631d0', 'project_id': 'e993800825284b23812230e6ddf631d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4276853f-13bb-4f1e-8eca-9a4e937d4776'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13314470', 'ctest-vn-39152720'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13314470', 'ctest-policy-allow-all-88795262']], 'subnet_ipam': [{'subnet_cidr': '18.189.87.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-18 02:45:07,494 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '012653a0-3b16-4a58-a675-69900d3d0084', 'name': 'ctest-vn-60551793', 'tenant_id': 'e993800825284b23812230e6ddf631d0', 'project_id': 'e993800825284b23812230e6ddf631d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['273a4849-c7cd-4598-a977-8bba5be39dcd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13314470', 'ctest-vn-60551793'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13314470', 'ctest-policy-allow-all-88795262']], 'subnet_ipam': [{'subnet_cidr': '191.115.115.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-18 02:45:07,676 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-18 02:45:08,010 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-18 02:45:08,042 - DEBUG - Requesting: http://10.0.0.57:8082/domain/68529b82-d7e1-4059-a1b0-8ff35c4c7abe 2025-06-18 02:45:08,057 - DEBUG - Requesting: http://10.0.0.57:8082/project/e9938008-2528-4b23-8122-30e6ddf631d0 2025-06-18 02:45:08,136 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b2b5a615-0c2a-4713-be40-a337746d00ef 2025-06-18 02:45:08,149 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b2b5a615-0c2a-4713-be40-a337746d00ef 2025-06-18 02:45:08,161 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/43975324-84c7-41bc-af47-e6146f840ad4 2025-06-18 02:45:08,170 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/43975324-84c7-41bc-af47-e6146f840ad4 2025-06-18 02:45:08,179 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/a8b6b928-264a-40b2-a6f5-a50df72ae9c8 2025-06-18 02:45:08,186 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-18 02:45:08,186 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b2b5a615-0c2a-4713-be40-a337746d00ef 2025-06-18 02:45:08,198 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/43975324-84c7-41bc-af47-e6146f840ad4 2025-06-18 02:45:08,216 - INFO - Verified VN network id 8 for VN b2b5a615-0c2a-4713-be40-a337746d00ef 2025-06-18 02:45:08,216 - INFO - Verifications in API Server for VN ctest-vn-39152720 passed 2025-06-18 02:45:08,216 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b2b5a615-0c2a-4713-be40-a337746d00ef 2025-06-18 02:45:08,228 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/43975324-84c7-41bc-af47-e6146f840ad4 2025-06-18 02:45:08,236 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/43975324-84c7-41bc-af47-e6146f840ad4 2025-06-18 02:45:08,244 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/a8b6b928-264a-40b2-a6f5-a50df72ae9c8 2025-06-18 02:45:08,258 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-39152720', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13314470', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12877381318864422675', 'uuid-lslong': '13709136724287619311'}, 'enable': 'true', 'created': '2025-06-18T02:45:05', 'last-modified': '2025-06-18T02:45:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035462'} 2025-06-18 02:45:08,265 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-18 02:45:08,265 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39152720 passed 2025-06-18 02:45:08,265 - DEBUG - ====Verifying policy data for ctest-vn-39152720 in API_Server ====== 2025-06-18 02:45:08,265 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-18 02:45:08,272 - DEBUG - Requesting: http://10.0.0.57:8082/domain/68529b82-d7e1-4059-a1b0-8ff35c4c7abe 2025-06-18 02:45:08,285 - DEBUG - Requesting: http://10.0.0.57:8082/project/e9938008-2528-4b23-8122-30e6ddf631d0 2025-06-18 02:45:08,358 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b2b5a615-0c2a-4713-be40-a337746d00ef 2025-06-18 02:45:08,369 - DEBUG - ==>Verifying data for policy with id: c8b13618-bb05-423b-b85e-c49e37a90e2f, fqn: ['default-domain', 'ctest-TestBasicPolicy-13314470', 'ctest-policy-allow-all-88795262'] 2025-06-18 02:45:08,369 - INFO - VN ctest-vn-39152720 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-18 02:45:08,369 - DEBUG - Verifying the vn in opserver 2025-06-18 02:45:08,369 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-39152720 virtual network link through opserver 10.0.0.57 2025-06-18 02:45:08,369 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-06-18 02:45:08,703 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-06-18 02:45:08,762 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-39152720', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-39152720?flat'} 2025-06-18 02:45:08,762 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-39152720 is found in opserver 2025-06-18 02:45:08,775 - DEBUG - Do not have enough data to verify VN in agent 2025-06-18 02:45:08,781 - DEBUG - VRF ids for VN ctest-vn-39152720: {} 2025-06-18 02:45:08,781 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-18 02:45:08,788 - DEBUG - Requesting: http://10.0.0.57:8082/domain/68529b82-d7e1-4059-a1b0-8ff35c4c7abe 2025-06-18 02:45:08,801 - DEBUG - Requesting: http://10.0.0.57:8082/project/e9938008-2528-4b23-8122-30e6ddf631d0 2025-06-18 02:45:08,880 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/012653a0-3b16-4a58-a675-69900d3d0084 2025-06-18 02:45:08,893 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/012653a0-3b16-4a58-a675-69900d3d0084 2025-06-18 02:45:08,904 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f2ca9dbf-43e9-4557-9086-f4c07a7601dc 2025-06-18 02:45:08,916 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f2ca9dbf-43e9-4557-9086-f4c07a7601dc 2025-06-18 02:45:08,925 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/10addb01-6717-4dae-97b1-358c9a4d1750 2025-06-18 02:45:08,933 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-18 02:45:08,933 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/012653a0-3b16-4a58-a675-69900d3d0084 2025-06-18 02:45:08,944 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f2ca9dbf-43e9-4557-9086-f4c07a7601dc 2025-06-18 02:45:08,960 - INFO - Verified VN network id 9 for VN 012653a0-3b16-4a58-a675-69900d3d0084 2025-06-18 02:45:08,961 - INFO - Verifications in API Server for VN ctest-vn-60551793 passed 2025-06-18 02:45:08,961 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/012653a0-3b16-4a58-a675-69900d3d0084 2025-06-18 02:45:08,972 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f2ca9dbf-43e9-4557-9086-f4c07a7601dc 2025-06-18 02:45:08,980 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f2ca9dbf-43e9-4557-9086-f4c07a7601dc 2025-06-18 02:45:08,988 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/10addb01-6717-4dae-97b1-358c9a4d1750 2025-06-18 02:45:09,003 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-60551793', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13314470', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '82845590804122200', 'uuid-lslong': '11994609249989492868'}, 'enable': 'true', 'created': '2025-06-18T02:45:06', 'last-modified': '2025-06-18T02:45:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.531129'} 2025-06-18 02:45:09,010 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-18 02:45:09,010 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60551793 passed 2025-06-18 02:45:09,010 - DEBUG - ====Verifying policy data for ctest-vn-60551793 in API_Server ====== 2025-06-18 02:45:09,010 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-18 02:45:09,019 - DEBUG - Requesting: http://10.0.0.57:8082/domain/68529b82-d7e1-4059-a1b0-8ff35c4c7abe 2025-06-18 02:45:09,037 - DEBUG - Requesting: http://10.0.0.57:8082/project/e9938008-2528-4b23-8122-30e6ddf631d0 2025-06-18 02:45:09,113 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/012653a0-3b16-4a58-a675-69900d3d0084 2025-06-18 02:45:09,125 - DEBUG - ==>Verifying data for policy with id: c8b13618-bb05-423b-b85e-c49e37a90e2f, fqn: ['default-domain', 'ctest-TestBasicPolicy-13314470', 'ctest-policy-allow-all-88795262'] 2025-06-18 02:45:09,125 - INFO - VN ctest-vn-60551793 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-18 02:45:09,125 - DEBUG - Verifying the vn in opserver 2025-06-18 02:45:09,125 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-60551793 virtual network link through opserver 10.0.0.57 2025-06-18 02:45:09,125 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-06-18 02:45:09,137 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-60551793', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-60551793?flat'} 2025-06-18 02:45:09,138 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-60551793 is found in opserver 2025-06-18 02:45:09,151 - DEBUG - Do not have enough data to verify VN in agent 2025-06-18 02:45:09,158 - DEBUG - VRF ids for VN ctest-vn-60551793: {} 2025-06-18 02:45:09,218 - DEBUG - Services list from nova: [, , ] 2025-06-18 02:45:10,333 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3466-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3466-1) 2025-06-18 02:45:11,812 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3466-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3466-1) 2025-06-18 02:45:11,812 - INFO - Waiting for VM ctest-TestBasicPolicy-13314470-61358611 to be up.. 2025-06-18 02:45:11,924 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-18 02:45:17,006 - DEBUG - VM is in ACTIVE state now 2025-06-18 02:45:17,006 - INFO - VM name : ctest-TestBasicPolicy-13314470-61358611 2025-06-18 02:45:17,083 - DEBUG - VM ctest-TestBasicPolicy-13314470-61358611 ID is 82a4bead-8dd2-4ee6-8950-1ca75363bf80 2025-06-18 02:45:17,102 - DEBUG - VM ctest-TestBasicPolicy-13314470-61358611 launched on Node cn-jenkins-deploy-platform-ansible-os-3466-1 2025-06-18 02:45:17,180 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/82a4bead-8dd2-4ee6-8950-1ca75363bf80 2025-06-18 02:45:17,189 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/2fddd65d-d1a7-4682-a35d-f51f689e5f03 2025-06-18 02:45:20,454 - 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 1018ms') 2025-06-18 02:45:20,454 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-13314470-61358611 failed! 2025-06-18 02:45:20,512 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-13314470:ctest-vn-39152720 is 18.189.87.65 and allocation pool is NOT set 2025-06-18 02:45:22,585 - 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=8.25 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.42 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 = 3.415/5.831/8.248/2.416 ms') 2025-06-18 02:45:22,585 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-13314470-61358611 passed 2025-06-18 02:45:22,739 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 02:45:22,740 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13314470-61358611, IP 18.189.87.67, Port 22 2025-06-18 02:45:22,895 - DEBUG - VM ctest-TestBasicPolicy-13314470-61358611 is ready for SSH connections 2025-06-18 02:45:22,895 - INFO - Waiting for VM ctest-TestBasicPolicy-13314470-64844009 to be up.. 2025-06-18 02:45:22,978 - DEBUG - VM is in ACTIVE state now 2025-06-18 02:45:22,978 - INFO - VM name : ctest-TestBasicPolicy-13314470-64844009 2025-06-18 02:45:23,063 - DEBUG - VM ctest-TestBasicPolicy-13314470-64844009 ID is f22b556b-618f-4b56-a503-67e7d25d8353 2025-06-18 02:45:23,063 - DEBUG - VM ctest-TestBasicPolicy-13314470-64844009 launched on Node cn-jenkins-deploy-platform-ansible-os-3466-1 2025-06-18 02:45:23,166 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/f22b556b-618f-4b56-a503-67e7d25d8353 2025-06-18 02:45:23,177 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/9ce12b41-28ff-49a7-ad7b-9f0794753df9 2025-06-18 02:45:24,440 - 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.29 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=3.48 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 = 3.286/3.381/3.477/0.095 ms') 2025-06-18 02:45:24,440 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-13314470-64844009 passed 2025-06-18 02:45:24,599 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 02:45:24,600 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13314470-64844009, IP 191.115.115.67, Port 22 2025-06-18 02:45:24,669 - 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': ''} 2025-06-18 02:45:24,764 - DEBUG - VM ctest-TestBasicPolicy-13314470-64844009 is NOT ready for SSH connections, VM status: ACTIVE 2025-06-18 02:45:29,765 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 02:45:29,765 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13314470-64844009, IP 191.115.115.67, Port 22 2025-06-18 02:45:29,931 - DEBUG - VM ctest-TestBasicPolicy-13314470-64844009 is ready for SSH connections 2025-06-18 02:45:29,931 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 02:45:29,931 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 191.115.115.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-06-18 02:45:29,931 - DEBUG - ping -s 56 -c 3 -W 1 191.115.115.67 2025-06-18 02:45:33,697 - DEBUG - PING 191.115.115.67 (191.115.115.67): 56 data bytes 64 bytes from 191.115.115.67: seq=0 ttl=63 time=3.790 ms 64 bytes from 191.115.115.67: seq=1 ttl=63 time=1.051 ms 64 bytes from 191.115.115.67: seq=2 ttl=63 time=0.978 ms --- 191.115.115.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.978/1.939/3.790 ms 2025-06-18 02:45:33,697 - INFO - Ping to IP 191.115.115.67 from VM ctest-TestBasicPolicy-13314470-61358611 passed 2025-06-18 02:45:33,883 - DEBUG - Policy Update Response {"network-policy": {"uuid": "c8b13618-bb05-423b-b85e-c49e37a90e2f", "href": "http://10.0.0.57:8082/network-policy/c8b13618-bb05-423b-b85e-c49e37a90e2f"}} 2025-06-18 02:45:33,883 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-18 02:45:33,884 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 191.115.115.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-06-18 02:45:33,884 - DEBUG - ping -s 56 -c 3 -W 1 191.115.115.67 2025-06-18 02:45:37,101 - DEBUG - PING 191.115.115.67 (191.115.115.67): 56 data bytes 64 bytes from 191.115.115.67: seq=0 ttl=63 time=1.562 ms --- 191.115.115.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.562/1.562/1.562 ms 2025-06-18 02:45:37,101 - WARNING - Ping to IP 191.115.115.67 from VM ctest-TestBasicPolicy-13314470-61358611 failed 2025-06-18 02:45:37,102 - INFO - Deleting VM ctest-TestBasicPolicy-13314470-64844009 2025-06-18 02:45:37,174 - INFO - Deleting VM ctest-TestBasicPolicy-13314470-61358611 2025-06-18 02:45:37,600 - INFO - Deleted policy ctest-policy-allow-all-88795262 2025-06-18 02:45:37,600 - INFO - Deleting VN ctest-vn-60551793 2025-06-18 02:45:37,647 - DEBUG - VN 012653a0-3b16-4a58-a675-69900d3d0084 still in use: Unable to complete operation on network 012653a0-3b16-4a58-a675-69900d3d0084. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-58cc382a-3f53-4f2e-89b8-4a846023ddc8'] 2025-06-18 02:45:37,648 - WARNING - Deleting VN ctest-vn-60551793 failed..Will retry 2025-06-18 02:45:39,760 - DEBUG - Response for deleting network () 2025-06-18 02:45:39,760 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f2ca9dbf-43e9-4557-9086-f4c07a7601dc 2025-06-18 02:45:39,766 - DEBUG - Response Code: 404 2025-06-18 02:45:39,766 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-18 02:45:39,774 - DEBUG - Requesting: http://10.0.0.57:8082/domain/68529b82-d7e1-4059-a1b0-8ff35c4c7abe 2025-06-18 02:45:39,831 - DEBUG - Requesting: http://10.0.0.57:8082/project/e9938008-2528-4b23-8122-30e6ddf631d0 2025-06-18 02:45:39,915 - INFO - Validated that VN ctest-vn-60551793 is not found in API Server 2025-06-18 02:45:39,927 - DEBUG - VN ctest-vn-60551793 is not present in Agent 10.0.0.57 2025-06-18 02:45:39,927 - INFO - Validated that VN ctest-vn-60551793 is not in any agent 2025-06-18 02:45:39,944 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60551793 info 2025-06-18 02:45:39,945 - INFO - Deleting VN ctest-vn-39152720 2025-06-18 02:45:40,065 - DEBUG - Response for deleting network () 2025-06-18 02:45:40,065 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/43975324-84c7-41bc-af47-e6146f840ad4 2025-06-18 02:45:40,074 - DEBUG - Response Code: 404 2025-06-18 02:45:40,074 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-06-18 02:45:40,086 - DEBUG - Requesting: http://10.0.0.57:8082/domain/68529b82-d7e1-4059-a1b0-8ff35c4c7abe 2025-06-18 02:45:40,142 - DEBUG - Requesting: http://10.0.0.57:8082/project/e9938008-2528-4b23-8122-30e6ddf631d0 2025-06-18 02:45:40,218 - INFO - Validated that VN ctest-vn-39152720 is not found in API Server 2025-06-18 02:45:40,231 - DEBUG - VN ctest-vn-39152720 is not present in Agent 10.0.0.57 2025-06-18 02:45:40,231 - INFO - Validated that VN ctest-vn-39152720 is not in any agent 2025-06-18 02:45:40,249 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-39152720 info 2025-06-18 02:45:40,502 - DEBUG - No XMPP flaps were noticed during the test 2025-06-18 02:45:40,502 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-06-18 02:45:40,502 - INFO - -------------------------------------------------------------------------------- 2025-06-18 02:45:41,240 - INFO - Deleted project: ctest-TestBasicPolicy-13314470, ID : e9938008-2528-4b23-8122-30e6ddf631d0