2025-04-03 02:23:31,187 - INFO - Domain Default found not creating 2025-04-03 02:23:31,360 - INFO - Project ctest-TestBasicPolicy-77861256 not found, creating it 2025-04-03 02:23:31,875 - INFO - Created Project:ctest-TestBasicPolicy-77861256, ID : ee399afe-bc6b-49fb-b09d-341e0416f521 2025-04-03 02:23:33,419 - INFO - ================================================================================ 2025-04-03 02:23:33,420 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-03 02:23:33,420 - 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-04-03 02:23:33,681 - DEBUG - Nothing to compare xmpp stats {'10.0.0.54': {'10.20.0.8': '0'}} with 2025-04-03 02:23:33,681 - INFO - Initial checks done. Running the testcase now 2025-04-03 02:23:33,682 - INFO - 2025-04-03 02:23:34,292 - DEBUG - Response for create_network : {'network': {'id': '6fc0b249-897d-4ebf-b9dc-c7405f1db509', 'name': 'ctest-vn-61359073', 'tenant_id': 'ee399afebc6b49fbb09d341e0416f521', 'project_id': 'ee399afebc6b49fbb09d341e0416f521', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77861256', 'ctest-vn-61359073'], 'port_security_enabled': True, 'description': ''}} 2025-04-03 02:23:34,476 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ca2f88b-fa22-4aeb-b23f-5c820acfd681', 'name': '', 'tenant_id': 'ee399afebc6b49fbb09d341e0416f521', 'network_id': '6fc0b249-897d-4ebf-b9dc-c7405f1db509', 'ip_version': 4, 'cidr': '84.218.218.128/26', 'allocation_pools': [{'start': '84.218.218.130', 'end': '84.218.218.190'}], 'gateway_ip': '84.218.218.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.218.218.130', 'tags': [], 'project_id': 'ee399afebc6b49fbb09d341e0416f521'}} 2025-04-03 02:23:34,500 - INFO - Created VN ctest-vn-61359073 2025-04-03 02:23:34,558 - DEBUG - VN ctest-vn-61359073 UUID is 6fc0b249-897d-4ebf-b9dc-c7405f1db509 2025-04-03 02:23:34,890 - DEBUG - Response for create_network : {'network': {'id': '14c2a0d5-d251-464c-8017-2c8ec8957a08', 'name': 'ctest-vn-65123235', 'tenant_id': 'ee399afebc6b49fbb09d341e0416f521', 'project_id': 'ee399afebc6b49fbb09d341e0416f521', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77861256', 'ctest-vn-65123235'], 'port_security_enabled': True, 'description': ''}} 2025-04-03 02:23:35,071 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a6c412e-c586-4a2c-ac87-13e1025f531e', 'name': '', 'tenant_id': 'ee399afebc6b49fbb09d341e0416f521', 'network_id': '14c2a0d5-d251-464c-8017-2c8ec8957a08', 'ip_version': 4, 'cidr': '42.51.92.192/26', 'allocation_pools': [{'start': '42.51.92.194', 'end': '42.51.92.254'}], 'gateway_ip': '42.51.92.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.51.92.194', 'tags': [], 'project_id': 'ee399afebc6b49fbb09d341e0416f521'}} 2025-04-03 02:23:35,096 - INFO - Created VN ctest-vn-65123235 2025-04-03 02:23:35,154 - DEBUG - VN ctest-vn-65123235 UUID is 14c2a0d5-d251-464c-8017-2c8ec8957a08 2025-04-03 02:23:35,287 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-61359073, 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-77861256:ctest-vn-65123235, 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-04-03 02:23:35,637 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6fc0b249-897d-4ebf-b9dc-c7405f1db509', 'name': 'ctest-vn-61359073', 'tenant_id': 'ee399afebc6b49fbb09d341e0416f521', 'project_id': 'ee399afebc6b49fbb09d341e0416f521', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ca2f88b-fa22-4aeb-b23f-5c820acfd681'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77861256', 'ctest-vn-61359073'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77861256', 'ctest-policy-allow-all-82716522']], 'subnet_ipam': [{'subnet_cidr': '84.218.218.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-03 02:23:35,903 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '14c2a0d5-d251-464c-8017-2c8ec8957a08', 'name': 'ctest-vn-65123235', 'tenant_id': 'ee399afebc6b49fbb09d341e0416f521', 'project_id': 'ee399afebc6b49fbb09d341e0416f521', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a6c412e-c586-4a2c-ac87-13e1025f531e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77861256', 'ctest-vn-65123235'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77861256', 'ctest-policy-allow-all-82716522']], 'subnet_ipam': [{'subnet_cidr': '42.51.92.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-03 02:23:36,082 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-04-03 02:23:36,380 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-04-03 02:23:36,418 - DEBUG - Requesting: http://10.0.0.54:8082/domain/5d8d45a8-7063-4dfd-9c89-e037a409e17c 2025-04-03 02:23:36,434 - DEBUG - Requesting: http://10.0.0.54:8082/project/ee399afe-bc6b-49fb-b09d-341e0416f521 2025-04-03 02:23:36,526 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/6fc0b249-897d-4ebf-b9dc-c7405f1db509 2025-04-03 02:23:36,541 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/6fc0b249-897d-4ebf-b9dc-c7405f1db509 2025-04-03 02:23:36,553 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/16f97212-1310-4d53-844c-2ba4998f4c93 2025-04-03 02:23:36,564 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/16f97212-1310-4d53-844c-2ba4998f4c93 2025-04-03 02:23:36,574 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/088600c8-6e9b-4390-b69d-e3020e6df093 2025-04-03 02:23:36,582 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-03 02:23:36,582 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/6fc0b249-897d-4ebf-b9dc-c7405f1db509 2025-04-03 02:23:36,593 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/16f97212-1310-4d53-844c-2ba4998f4c93 2025-04-03 02:23:36,609 - INFO - Verified VN network id 8 for VN 6fc0b249-897d-4ebf-b9dc-c7405f1db509 2025-04-03 02:23:36,610 - INFO - Verifications in API Server for VN ctest-vn-61359073 passed 2025-04-03 02:23:36,610 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/6fc0b249-897d-4ebf-b9dc-c7405f1db509 2025-04-03 02:23:36,623 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/16f97212-1310-4d53-844c-2ba4998f4c93 2025-04-03 02:23:36,632 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/16f97212-1310-4d53-844c-2ba4998f4c93 2025-04-03 02:23:36,641 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/088600c8-6e9b-4390-b69d-e3020e6df093 2025-04-03 02:23:36,660 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-61359073', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77861256', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8052632162647494335', 'uuid-lslong': '13392798471180629257'}, 'enable': 'true', 'created': '2025-04-03T02:23:34', 'last-modified': '2025-04-03T02:23:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.061023'} 2025-04-03 02:23:36,668 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-03 02:23:36,669 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61359073 passed 2025-04-03 02:23:36,669 - DEBUG - ====Verifying policy data for ctest-vn-61359073 in API_Server ====== 2025-04-03 02:23:36,669 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-04-03 02:23:36,677 - DEBUG - Requesting: http://10.0.0.54:8082/domain/5d8d45a8-7063-4dfd-9c89-e037a409e17c 2025-04-03 02:23:36,700 - DEBUG - Requesting: http://10.0.0.54:8082/project/ee399afe-bc6b-49fb-b09d-341e0416f521 2025-04-03 02:23:36,787 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/6fc0b249-897d-4ebf-b9dc-c7405f1db509 2025-04-03 02:23:36,800 - DEBUG - ==>Verifying data for policy with id: 8df51b7f-f113-4af8-b96d-aec45a3b4fa1, fqn: ['default-domain', 'ctest-TestBasicPolicy-77861256', 'ctest-policy-allow-all-82716522'] 2025-04-03 02:23:36,800 - INFO - VN ctest-vn-61359073 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-03 02:23:36,800 - DEBUG - Verifying the vn in opserver 2025-04-03 02:23:36,800 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-61359073 virtual network link through opserver 10.0.0.54 2025-04-03 02:23:36,800 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks 2025-04-03 02:23:37,119 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks 2025-04-03 02:23:37,190 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-61359073', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-61359073?flat'} 2025-04-03 02:23:37,190 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-61359073 is found in opserver 2025-04-03 02:23:37,202 - DEBUG - Do not have enough data to verify VN in agent 2025-04-03 02:23:37,208 - DEBUG - VRF ids for VN ctest-vn-61359073: {} 2025-04-03 02:23:37,209 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-04-03 02:23:37,216 - DEBUG - Requesting: http://10.0.0.54:8082/domain/5d8d45a8-7063-4dfd-9c89-e037a409e17c 2025-04-03 02:23:37,230 - DEBUG - Requesting: http://10.0.0.54:8082/project/ee399afe-bc6b-49fb-b09d-341e0416f521 2025-04-03 02:23:37,309 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/14c2a0d5-d251-464c-8017-2c8ec8957a08 2025-04-03 02:23:37,324 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/14c2a0d5-d251-464c-8017-2c8ec8957a08 2025-04-03 02:23:37,335 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/ecb1a079-28d6-42d7-9897-04ab804b9f8f 2025-04-03 02:23:37,344 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/ecb1a079-28d6-42d7-9897-04ab804b9f8f 2025-04-03 02:23:37,353 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/2d1ba398-c9ae-43b4-b3b2-135cf651014e 2025-04-03 02:23:37,361 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-03 02:23:37,361 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/14c2a0d5-d251-464c-8017-2c8ec8957a08 2025-04-03 02:23:37,372 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/ecb1a079-28d6-42d7-9897-04ab804b9f8f 2025-04-03 02:23:37,390 - INFO - Verified VN network id 9 for VN 14c2a0d5-d251-464c-8017-2c8ec8957a08 2025-04-03 02:23:37,390 - INFO - Verifications in API Server for VN ctest-vn-65123235 passed 2025-04-03 02:23:37,390 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/14c2a0d5-d251-464c-8017-2c8ec8957a08 2025-04-03 02:23:37,401 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/ecb1a079-28d6-42d7-9897-04ab804b9f8f 2025-04-03 02:23:37,410 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/ecb1a079-28d6-42d7-9897-04ab804b9f8f 2025-04-03 02:23:37,419 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/2d1ba398-c9ae-43b4-b3b2-135cf651014e 2025-04-03 02:23:37,434 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-65123235', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77861256', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1495934866457445964', 'uuid-lslong': '9229894953081338376'}, 'enable': 'true', 'created': '2025-04-03T02:23:34', 'last-modified': '2025-04-03T02:23:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.566462'} 2025-04-03 02:23:37,441 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-03 02:23:37,441 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65123235 passed 2025-04-03 02:23:37,441 - DEBUG - ====Verifying policy data for ctest-vn-65123235 in API_Server ====== 2025-04-03 02:23:37,441 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-04-03 02:23:37,449 - DEBUG - Requesting: http://10.0.0.54:8082/domain/5d8d45a8-7063-4dfd-9c89-e037a409e17c 2025-04-03 02:23:37,463 - DEBUG - Requesting: http://10.0.0.54:8082/project/ee399afe-bc6b-49fb-b09d-341e0416f521 2025-04-03 02:23:37,543 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/14c2a0d5-d251-464c-8017-2c8ec8957a08 2025-04-03 02:23:37,556 - DEBUG - ==>Verifying data for policy with id: 8df51b7f-f113-4af8-b96d-aec45a3b4fa1, fqn: ['default-domain', 'ctest-TestBasicPolicy-77861256', 'ctest-policy-allow-all-82716522'] 2025-04-03 02:23:37,556 - INFO - VN ctest-vn-65123235 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-03 02:23:37,556 - DEBUG - Verifying the vn in opserver 2025-04-03 02:23:37,556 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-65123235 virtual network link through opserver 10.0.0.54 2025-04-03 02:23:37,557 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks 2025-04-03 02:23:37,570 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-65123235', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-65123235?flat'} 2025-04-03 02:23:37,570 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-65123235 is found in opserver 2025-04-03 02:23:37,583 - DEBUG - Do not have enough data to verify VN in agent 2025-04-03 02:23:37,589 - DEBUG - VRF ids for VN ctest-vn-65123235: {} 2025-04-03 02:23:37,659 - DEBUG - Services list from nova: [, , ] 2025-04-03 02:23:38,883 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3025-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3025-1) 2025-04-03 02:23:40,088 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3025-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3025-1) 2025-04-03 02:23:40,088 - INFO - Waiting for VM ctest-TestBasicPolicy-77861256-11981981 to be up.. 2025-04-03 02:23:40,173 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-03 02:23:45,276 - DEBUG - VM is in ACTIVE state now 2025-04-03 02:23:45,276 - INFO - VM name : ctest-TestBasicPolicy-77861256-11981981 2025-04-03 02:23:45,381 - DEBUG - VM ctest-TestBasicPolicy-77861256-11981981 ID is 9a2dd129-39dd-4539-a896-0f4278a0adfd 2025-04-03 02:23:45,405 - DEBUG - VM ctest-TestBasicPolicy-77861256-11981981 launched on Node cn-jenkins-deploy-platform-ansible-os-3025-1 2025-04-03 02:23:45,494 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine/9a2dd129-39dd-4539-a896-0f4278a0adfd 2025-04-03 02:23:45,507 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine-interface/67bd9b66-cd63-41cb-b663-3d5c5b06146d 2025-04-03 02:23:48,773 - 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 1007ms') 2025-04-03 02:23:48,773 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-77861256-11981981 failed! 2025-04-03 02:23:48,832 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-77861256:ctest-vn-61359073 is 84.218.218.129 and allocation pool is NOT set 2025-04-03 02:23:50,903 - 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=11.2 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.762 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.762/5.996/11.231/5.234 ms') 2025-04-03 02:23:50,903 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-77861256-11981981 passed 2025-04-03 02:23:51,062 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 02:23:51,062 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77861256-11981981, IP 84.218.218.131, Port 22 2025-04-03 02:23:51,233 - DEBUG - VM ctest-TestBasicPolicy-77861256-11981981 is ready for SSH connections 2025-04-03 02:23:51,233 - INFO - Waiting for VM ctest-TestBasicPolicy-77861256-16209462 to be up.. 2025-04-03 02:23:51,329 - DEBUG - VM is in ACTIVE state now 2025-04-03 02:23:51,329 - INFO - VM name : ctest-TestBasicPolicy-77861256-16209462 2025-04-03 02:23:51,517 - DEBUG - VM ctest-TestBasicPolicy-77861256-16209462 ID is 279a45e7-2986-4d1d-8813-3c43f7bfe7be 2025-04-03 02:23:51,517 - DEBUG - VM ctest-TestBasicPolicy-77861256-16209462 launched on Node cn-jenkins-deploy-platform-ansible-os-3025-1 2025-04-03 02:23:51,634 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine/279a45e7-2986-4d1d-8813-3c43f7bfe7be 2025-04-03 02:23:51,649 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine-interface/a2b49351-fb98-461e-8a21-917d076a972b 2025-04-03 02:23:52,934 - 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.00 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.666 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 = 0.666/1.834/3.003/1.168 ms') 2025-04-03 02:23:52,934 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-77861256-16209462 passed 2025-04-03 02:23:53,090 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 02:23:53,090 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77861256-16209462, IP 42.51.92.195, Port 22 2025-04-03 02:23:53,257 - DEBUG - VM ctest-TestBasicPolicy-77861256-16209462 is ready for SSH connections 2025-04-03 02:23:53,258 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 02:23:53,258 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 42.51.92.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.54, gateway password: c0ntrail123 2025-04-03 02:23:53,258 - DEBUG - ping -s 56 -c 3 -W 1 42.51.92.195 2025-04-03 02:23:56,986 - DEBUG - PING 42.51.92.195 (42.51.92.195): 56 data bytes 64 bytes from 42.51.92.195: seq=0 ttl=63 time=3.919 ms 64 bytes from 42.51.92.195: seq=1 ttl=63 time=1.051 ms 64 bytes from 42.51.92.195: seq=2 ttl=63 time=1.078 ms --- 42.51.92.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.051/2.016/3.919 ms 2025-04-03 02:23:56,987 - INFO - Ping to IP 42.51.92.195 from VM ctest-TestBasicPolicy-77861256-11981981 passed 2025-04-03 02:23:57,182 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8df51b7f-f113-4af8-b96d-aec45a3b4fa1", "href": "http://10.0.0.54:8082/network-policy/8df51b7f-f113-4af8-b96d-aec45a3b4fa1"}} 2025-04-03 02:23:57,182 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-03 02:23:57,183 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 42.51.92.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.54, gateway password: c0ntrail123 2025-04-03 02:23:57,183 - DEBUG - ping -s 56 -c 3 -W 1 42.51.92.195 2025-04-03 02:24:00,390 - DEBUG - PING 42.51.92.195 (42.51.92.195): 56 data bytes 64 bytes from 42.51.92.195: seq=0 ttl=63 time=2.528 ms --- 42.51.92.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.528/2.528/2.528 ms 2025-04-03 02:24:00,390 - WARNING - Ping to IP 42.51.92.195 from VM ctest-TestBasicPolicy-77861256-11981981 failed 2025-04-03 02:24:00,390 - INFO - Deleting VM ctest-TestBasicPolicy-77861256-16209462 2025-04-03 02:24:00,470 - INFO - Deleting VM ctest-TestBasicPolicy-77861256-11981981 2025-04-03 02:24:00,955 - INFO - Deleted policy ctest-policy-allow-all-82716522 2025-04-03 02:24:00,955 - INFO - Deleting VN ctest-vn-65123235 2025-04-03 02:24:01,001 - DEBUG - VN 14c2a0d5-d251-464c-8017-2c8ec8957a08 still in use: Unable to complete operation on network 14c2a0d5-d251-464c-8017-2c8ec8957a08. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c27f5da4-36d7-4b98-97da-c201bad721cb'] 2025-04-03 02:24:01,001 - WARNING - Deleting VN ctest-vn-65123235 failed..Will retry 2025-04-03 02:24:03,137 - DEBUG - Response for deleting network () 2025-04-03 02:24:03,137 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/ecb1a079-28d6-42d7-9897-04ab804b9f8f 2025-04-03 02:24:03,144 - DEBUG - Response Code: 404 2025-04-03 02:24:03,145 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-04-03 02:24:03,154 - DEBUG - Requesting: http://10.0.0.54:8082/domain/5d8d45a8-7063-4dfd-9c89-e037a409e17c 2025-04-03 02:24:03,218 - DEBUG - Requesting: http://10.0.0.54:8082/project/ee399afe-bc6b-49fb-b09d-341e0416f521 2025-04-03 02:24:03,298 - INFO - Validated that VN ctest-vn-65123235 is not found in API Server 2025-04-03 02:24:03,313 - DEBUG - VN ctest-vn-65123235 is not present in Agent 10.0.0.54 2025-04-03 02:24:03,313 - INFO - Validated that VN ctest-vn-65123235 is not in any agent 2025-04-03 02:24:03,331 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-65123235 info 2025-04-03 02:24:03,332 - INFO - Deleting VN ctest-vn-61359073 2025-04-03 02:24:03,459 - DEBUG - Response for deleting network () 2025-04-03 02:24:03,459 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/16f97212-1310-4d53-844c-2ba4998f4c93 2025-04-03 02:24:03,469 - DEBUG - Response Code: 404 2025-04-03 02:24:03,470 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2025-04-03 02:24:03,478 - DEBUG - Requesting: http://10.0.0.54:8082/domain/5d8d45a8-7063-4dfd-9c89-e037a409e17c 2025-04-03 02:24:03,532 - DEBUG - Requesting: http://10.0.0.54:8082/project/ee399afe-bc6b-49fb-b09d-341e0416f521 2025-04-03 02:24:03,616 - INFO - Validated that VN ctest-vn-61359073 is not found in API Server 2025-04-03 02:24:03,630 - DEBUG - VN ctest-vn-61359073 is not present in Agent 10.0.0.54 2025-04-03 02:24:03,630 - INFO - Validated that VN ctest-vn-61359073 is not in any agent 2025-04-03 02:24:03,651 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-61359073 info 2025-04-03 02:24:03,910 - DEBUG - No XMPP flaps were noticed during the test 2025-04-03 02:24:03,910 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2025-04-03 02:24:03,910 - INFO - -------------------------------------------------------------------------------- 2025-04-03 02:24:04,643 - INFO - Deleted project: ctest-TestBasicPolicy-77861256, ID : ee399afe-bc6b-49fb-b09d-341e0416f521