2025-09-22 14:39:24,570 - INFO - Domain Default found not creating 2025-09-22 14:39:24,731 - INFO - Project ctest-TestBasicPolicy-59124475 not found, creating it 2025-09-22 14:39:25,201 - INFO - Created Project:ctest-TestBasicPolicy-59124475, ID : 0220c220-381a-4446-8ae1-ecab8308dfda 2025-09-22 14:39:26,824 - INFO - ================================================================================ 2025-09-22 14:39:26,824 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-22 14:39:26,824 - 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-09-22 14:39:27,078 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-09-22 14:39:27,078 - INFO - Initial checks done. Running the testcase now 2025-09-22 14:39:27,079 - INFO - 2025-09-22 14:39:27,699 - DEBUG - Response for create_network : {'network': {'id': '4ffb5e15-8e09-449c-8341-cdb6f692a24f', 'name': 'ctest-vn-10517758', 'tenant_id': '0220c220381a44468ae1ecab8308dfda', 'project_id': '0220c220381a44468ae1ecab8308dfda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59124475', 'ctest-vn-10517758'], 'port_security_enabled': True, 'description': ''}} 2025-09-22 14:39:27,896 - DEBUG - Response for create_subnet : {'subnet': {'id': '1e66c3ae-8fd0-433f-8853-21cf88384bf3', 'name': '', 'tenant_id': '0220c220381a44468ae1ecab8308dfda', 'network_id': '4ffb5e15-8e09-449c-8341-cdb6f692a24f', 'ip_version': 4, 'cidr': '90.96.230.128/26', 'allocation_pools': [{'start': '90.96.230.130', 'end': '90.96.230.190'}], 'gateway_ip': '90.96.230.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.96.230.130', 'tags': [], 'project_id': '0220c220381a44468ae1ecab8308dfda'}} 2025-09-22 14:39:27,918 - INFO - Created VN ctest-vn-10517758 2025-09-22 14:39:27,972 - DEBUG - VN ctest-vn-10517758 UUID is 4ffb5e15-8e09-449c-8341-cdb6f692a24f 2025-09-22 14:39:28,284 - DEBUG - Response for create_network : {'network': {'id': '5a6f39fd-9e88-42a8-9f8c-2a4c90955bff', 'name': 'ctest-vn-21996412', 'tenant_id': '0220c220381a44468ae1ecab8308dfda', 'project_id': '0220c220381a44468ae1ecab8308dfda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59124475', 'ctest-vn-21996412'], 'port_security_enabled': True, 'description': ''}} 2025-09-22 14:39:28,484 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db121bda-3dca-4d91-b3c0-bce81687293f', 'name': '', 'tenant_id': '0220c220381a44468ae1ecab8308dfda', 'network_id': '5a6f39fd-9e88-42a8-9f8c-2a4c90955bff', 'ip_version': 4, 'cidr': '115.62.120.128/26', 'allocation_pools': [{'start': '115.62.120.130', 'end': '115.62.120.190'}], 'gateway_ip': '115.62.120.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.62.120.130', 'tags': [], 'project_id': '0220c220381a44468ae1ecab8308dfda'}} 2025-09-22 14:39:28,503 - INFO - Created VN ctest-vn-21996412 2025-09-22 14:39:28,556 - DEBUG - VN ctest-vn-21996412 UUID is 5a6f39fd-9e88-42a8-9f8c-2a4c90955bff 2025-09-22 14:39:28,669 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-10517758, 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-59124475:ctest-vn-21996412, 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-09-22 14:39:28,962 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4ffb5e15-8e09-449c-8341-cdb6f692a24f', 'name': 'ctest-vn-10517758', 'tenant_id': '0220c220381a44468ae1ecab8308dfda', 'project_id': '0220c220381a44468ae1ecab8308dfda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1e66c3ae-8fd0-433f-8853-21cf88384bf3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59124475', 'ctest-vn-10517758'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59124475', 'ctest-policy-allow-all-87353316']], 'subnet_ipam': [{'subnet_cidr': '90.96.230.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-22 14:39:29,203 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5a6f39fd-9e88-42a8-9f8c-2a4c90955bff', 'name': 'ctest-vn-21996412', 'tenant_id': '0220c220381a44468ae1ecab8308dfda', 'project_id': '0220c220381a44468ae1ecab8308dfda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db121bda-3dca-4d91-b3c0-bce81687293f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59124475', 'ctest-vn-21996412'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59124475', 'ctest-policy-allow-all-87353316']], 'subnet_ipam': [{'subnet_cidr': '115.62.120.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-22 14:39:29,357 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-22 14:39:29,690 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-22 14:39:29,720 - DEBUG - Requesting: http://10.0.0.33:8082/domain/db429cd0-5ff3-4c01-a60c-1af89ac21b55 2025-09-22 14:39:29,732 - DEBUG - Requesting: http://10.0.0.33:8082/project/0220c220-381a-4446-8ae1-ecab8308dfda 2025-09-22 14:39:29,807 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4ffb5e15-8e09-449c-8341-cdb6f692a24f 2025-09-22 14:39:29,818 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4ffb5e15-8e09-449c-8341-cdb6f692a24f 2025-09-22 14:39:29,829 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6f7e200c-12e6-474c-aa14-83819a8471e9 2025-09-22 14:39:29,836 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6f7e200c-12e6-474c-aa14-83819a8471e9 2025-09-22 14:39:29,843 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/aa1dfbac-f1c7-4195-91f8-e68a053833b8 2025-09-22 14:39:29,849 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-22 14:39:29,849 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4ffb5e15-8e09-449c-8341-cdb6f692a24f 2025-09-22 14:39:29,858 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6f7e200c-12e6-474c-aa14-83819a8471e9 2025-09-22 14:39:29,871 - INFO - Verified VN network id 11 for VN 4ffb5e15-8e09-449c-8341-cdb6f692a24f 2025-09-22 14:39:29,871 - INFO - Verifications in API Server for VN ctest-vn-10517758 passed 2025-09-22 14:39:29,871 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4ffb5e15-8e09-449c-8341-cdb6f692a24f 2025-09-22 14:39:29,880 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6f7e200c-12e6-474c-aa14-83819a8471e9 2025-09-22 14:39:29,886 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6f7e200c-12e6-474c-aa14-83819a8471e9 2025-09-22 14:39:29,893 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/aa1dfbac-f1c7-4195-91f8-e68a053833b8 2025-09-22 14:39:29,904 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-10517758', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59124475', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5763303594820977820', 'uuid-lslong': '9458066878159299151'}, 'enable': 'true', 'created': '2025-09-22T14:39:27', 'last-modified': '2025-09-22T14:39:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.963565'} 2025-09-22 14:39:29,910 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-22 14:39:29,911 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10517758 passed 2025-09-22 14:39:29,911 - DEBUG - ====Verifying policy data for ctest-vn-10517758 in API_Server ====== 2025-09-22 14:39:29,911 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-22 14:39:29,916 - DEBUG - Requesting: http://10.0.0.33:8082/domain/db429cd0-5ff3-4c01-a60c-1af89ac21b55 2025-09-22 14:39:29,928 - DEBUG - Requesting: http://10.0.0.33:8082/project/0220c220-381a-4446-8ae1-ecab8308dfda 2025-09-22 14:39:30,004 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4ffb5e15-8e09-449c-8341-cdb6f692a24f 2025-09-22 14:39:30,013 - DEBUG - ==>Verifying data for policy with id: f717221d-1091-44d3-9126-29101242d89e, fqn: ['default-domain', 'ctest-TestBasicPolicy-59124475', 'ctest-policy-allow-all-87353316'] 2025-09-22 14:39:30,013 - INFO - VN ctest-vn-10517758 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-22 14:39:30,013 - DEBUG - Verifying the vn in opserver 2025-09-22 14:39:30,013 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-10517758 virtual network link through opserver 10.0.0.33 2025-09-22 14:39:30,013 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-22 14:39:30,345 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-22 14:39:30,406 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-10517758', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-10517758?flat'} 2025-09-22 14:39:30,406 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-10517758 is found in opserver 2025-09-22 14:39:30,417 - DEBUG - Do not have enough data to verify VN in agent 2025-09-22 14:39:30,422 - DEBUG - VRF ids for VN ctest-vn-10517758: {} 2025-09-22 14:39:30,422 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-22 14:39:30,428 - DEBUG - Requesting: http://10.0.0.33:8082/domain/db429cd0-5ff3-4c01-a60c-1af89ac21b55 2025-09-22 14:39:30,440 - DEBUG - Requesting: http://10.0.0.33:8082/project/0220c220-381a-4446-8ae1-ecab8308dfda 2025-09-22 14:39:30,511 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5a6f39fd-9e88-42a8-9f8c-2a4c90955bff 2025-09-22 14:39:30,522 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5a6f39fd-9e88-42a8-9f8c-2a4c90955bff 2025-09-22 14:39:30,531 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/372d109a-3160-43c7-ba0c-8ea4837cbef2 2025-09-22 14:39:30,537 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/372d109a-3160-43c7-ba0c-8ea4837cbef2 2025-09-22 14:39:30,543 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7d75d471-7c36-452a-810b-fe0ef9f0f911 2025-09-22 14:39:30,549 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-22 14:39:30,549 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5a6f39fd-9e88-42a8-9f8c-2a4c90955bff 2025-09-22 14:39:30,557 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/372d109a-3160-43c7-ba0c-8ea4837cbef2 2025-09-22 14:39:30,569 - INFO - Verified VN network id 12 for VN 5a6f39fd-9e88-42a8-9f8c-2a4c90955bff 2025-09-22 14:39:30,569 - INFO - Verifications in API Server for VN ctest-vn-21996412 passed 2025-09-22 14:39:30,570 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5a6f39fd-9e88-42a8-9f8c-2a4c90955bff 2025-09-22 14:39:30,577 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/372d109a-3160-43c7-ba0c-8ea4837cbef2 2025-09-22 14:39:30,583 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/372d109a-3160-43c7-ba0c-8ea4837cbef2 2025-09-22 14:39:30,589 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7d75d471-7c36-452a-810b-fe0ef9f0f911 2025-09-22 14:39:30,601 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-21996412', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59124475', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6516490947277636264', 'uuid-lslong': '11496610457101622271'}, 'enable': 'true', 'created': '2025-09-22T14:39:28', 'last-modified': '2025-09-22T14:39:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.421021'} 2025-09-22 14:39:30,606 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-22 14:39:30,606 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21996412 passed 2025-09-22 14:39:30,606 - DEBUG - ====Verifying policy data for ctest-vn-21996412 in API_Server ====== 2025-09-22 14:39:30,606 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-22 14:39:30,611 - DEBUG - Requesting: http://10.0.0.33:8082/domain/db429cd0-5ff3-4c01-a60c-1af89ac21b55 2025-09-22 14:39:30,621 - DEBUG - Requesting: http://10.0.0.33:8082/project/0220c220-381a-4446-8ae1-ecab8308dfda 2025-09-22 14:39:30,694 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5a6f39fd-9e88-42a8-9f8c-2a4c90955bff 2025-09-22 14:39:30,705 - DEBUG - ==>Verifying data for policy with id: f717221d-1091-44d3-9126-29101242d89e, fqn: ['default-domain', 'ctest-TestBasicPolicy-59124475', 'ctest-policy-allow-all-87353316'] 2025-09-22 14:39:30,705 - INFO - VN ctest-vn-21996412 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-22 14:39:30,705 - DEBUG - Verifying the vn in opserver 2025-09-22 14:39:30,705 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-21996412 virtual network link through opserver 10.0.0.33 2025-09-22 14:39:30,705 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-22 14:39:30,716 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-21996412', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-21996412?flat'} 2025-09-22 14:39:30,716 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-21996412 is found in opserver 2025-09-22 14:39:30,727 - DEBUG - Do not have enough data to verify VN in agent 2025-09-22 14:39:30,732 - DEBUG - VRF ids for VN ctest-vn-21996412: {} 2025-09-22 14:39:30,795 - DEBUG - Services list from nova: [, , ] 2025-09-22 14:39:31,928 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4167-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4167-1) 2025-09-22 14:39:33,143 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4167-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4167-1) 2025-09-22 14:39:33,144 - INFO - Waiting for VM ctest-TestBasicPolicy-59124475-50097334 to be up.. 2025-09-22 14:39:33,229 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-22 14:39:38,310 - DEBUG - VM is in ACTIVE state now 2025-09-22 14:39:38,310 - INFO - VM name : ctest-TestBasicPolicy-59124475-50097334 2025-09-22 14:39:38,394 - DEBUG - VM ctest-TestBasicPolicy-59124475-50097334 ID is 0c7f5555-786d-4fff-b387-fa1df6699cf5 2025-09-22 14:39:38,416 - DEBUG - VM ctest-TestBasicPolicy-59124475-50097334 launched on Node cn-jenkins-deploy-platform-ansible-os-4167-1 2025-09-22 14:39:38,496 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/0c7f5555-786d-4fff-b387-fa1df6699cf5 2025-09-22 14:39:38,505 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/e6afba84-8673-43f2-9ff9-33a375fe404d 2025-09-22 14:39:41,770 - 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') 2025-09-22 14:39:41,770 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59124475-50097334 failed! 2025-09-22 14:39:41,824 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-10517758 is 90.96.230.129 and allocation pool is NOT set 2025-09-22 14:39:43,886 - 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=4.96 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.61 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.606/4.280/4.955/0.674 ms') 2025-09-22 14:39:43,887 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-59124475-50097334 passed 2025-09-22 14:39:44,041 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-22 14:39:44,041 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59124475-50097334, IP 90.96.230.131, Port 22 2025-09-22 14:39:44,196 - DEBUG - VM ctest-TestBasicPolicy-59124475-50097334 is ready for SSH connections 2025-09-22 14:39:44,196 - INFO - Waiting for VM ctest-TestBasicPolicy-59124475-48101810 to be up.. 2025-09-22 14:39:44,277 - DEBUG - VM is in ACTIVE state now 2025-09-22 14:39:44,277 - INFO - VM name : ctest-TestBasicPolicy-59124475-48101810 2025-09-22 14:39:44,368 - DEBUG - VM ctest-TestBasicPolicy-59124475-48101810 ID is a909ed1d-6a61-479a-8267-f8d09a97a1d9 2025-09-22 14:39:44,368 - DEBUG - VM ctest-TestBasicPolicy-59124475-48101810 launched on Node cn-jenkins-deploy-platform-ansible-os-4167-1 2025-09-22 14:39:44,441 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/a909ed1d-6a61-479a-8267-f8d09a97a1d9 2025-09-22 14:39:44,449 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/aa5bef26-e9fb-45e1-bc5b-4f6d2ff30d93 2025-09-22 14:39:45,689 - 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.25 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=4.10 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 = 4.098/4.172/4.247/0.074 ms') 2025-09-22 14:39:45,689 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-59124475-48101810 passed 2025-09-22 14:39:45,845 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-22 14:39:45,845 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59124475-48101810, IP 115.62.120.131, Port 22 2025-09-22 14:39:45,914 - 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-09-22 14:39:45,991 - DEBUG - VM ctest-TestBasicPolicy-59124475-48101810 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-22 14:39:50,991 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-22 14:39:50,991 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-59124475-48101810, IP 115.62.120.131, Port 22 2025-09-22 14:39:51,148 - DEBUG - VM ctest-TestBasicPolicy-59124475-48101810 is ready for SSH connections 2025-09-22 14:39:51,149 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-22 14:39:51,149 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 115.62.120.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-09-22 14:39:51,149 - DEBUG - ping -s 56 -c 3 -W 1 115.62.120.131 2025-09-22 14:39:55,241 - DEBUG - PING 115.62.120.131 (115.62.120.131): 56 data bytes 64 bytes from 115.62.120.131: seq=0 ttl=63 time=3.976 ms 64 bytes from 115.62.120.131: seq=1 ttl=63 time=0.983 ms 64 bytes from 115.62.120.131: seq=2 ttl=63 time=0.858 ms --- 115.62.120.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.858/1.939/3.976 ms 2025-09-22 14:39:55,241 - INFO - Ping to IP 115.62.120.131 from VM ctest-TestBasicPolicy-59124475-50097334 passed 2025-09-22 14:39:55,420 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f717221d-1091-44d3-9126-29101242d89e", "href": "http://10.0.0.33:8082/network-policy/f717221d-1091-44d3-9126-29101242d89e"}} 2025-09-22 14:39:55,420 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-22 14:39:55,421 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 115.62.120.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-09-22 14:39:55,421 - DEBUG - ping -s 56 -c 3 -W 1 115.62.120.131 2025-09-22 14:39:58,657 - DEBUG - PING 115.62.120.131 (115.62.120.131): 56 data bytes --- 115.62.120.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-09-22 14:39:58,657 - WARNING - Ping to IP 115.62.120.131 from VM ctest-TestBasicPolicy-59124475-50097334 failed 2025-09-22 14:39:58,657 - INFO - Deleting VM ctest-TestBasicPolicy-59124475-48101810 2025-09-22 14:39:58,737 - INFO - Deleting VM ctest-TestBasicPolicy-59124475-50097334 2025-09-22 14:39:59,150 - INFO - Deleted policy ctest-policy-allow-all-87353316 2025-09-22 14:39:59,150 - INFO - Deleting VN ctest-vn-21996412 2025-09-22 14:39:59,194 - DEBUG - VN 5a6f39fd-9e88-42a8-9f8c-2a4c90955bff still in use: Unable to complete operation on network 5a6f39fd-9e88-42a8-9f8c-2a4c90955bff. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5f5d0c53-1a4c-450c-83b0-e72dd072dc54'] 2025-09-22 14:39:59,194 - WARNING - Deleting VN ctest-vn-21996412 failed..Will retry 2025-09-22 14:40:01,303 - DEBUG - Response for deleting network () 2025-09-22 14:40:01,303 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/372d109a-3160-43c7-ba0c-8ea4837cbef2 2025-09-22 14:40:01,309 - DEBUG - Response Code: 404 2025-09-22 14:40:01,309 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-22 14:40:01,314 - DEBUG - Requesting: http://10.0.0.33:8082/domain/db429cd0-5ff3-4c01-a60c-1af89ac21b55 2025-09-22 14:40:01,368 - DEBUG - Requesting: http://10.0.0.33:8082/project/0220c220-381a-4446-8ae1-ecab8308dfda 2025-09-22 14:40:01,441 - INFO - Validated that VN ctest-vn-21996412 is not found in API Server 2025-09-22 14:40:01,451 - DEBUG - VN ctest-vn-21996412 is not present in Agent 10.0.0.33 2025-09-22 14:40:01,451 - INFO - Validated that VN ctest-vn-21996412 is not in any agent 2025-09-22 14:40:01,468 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-21996412 info 2025-09-22 14:40:01,468 - INFO - Deleting VN ctest-vn-10517758 2025-09-22 14:40:01,581 - DEBUG - Response for deleting network () 2025-09-22 14:40:01,581 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6f7e200c-12e6-474c-aa14-83819a8471e9 2025-09-22 14:40:01,587 - DEBUG - Response Code: 404 2025-09-22 14:40:01,587 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-22 14:40:01,593 - DEBUG - Requesting: http://10.0.0.33:8082/domain/db429cd0-5ff3-4c01-a60c-1af89ac21b55 2025-09-22 14:40:01,650 - DEBUG - Requesting: http://10.0.0.33:8082/project/0220c220-381a-4446-8ae1-ecab8308dfda 2025-09-22 14:40:01,727 - INFO - Validated that VN ctest-vn-10517758 is not found in API Server 2025-09-22 14:40:01,737 - DEBUG - VN ctest-vn-10517758 is not present in Agent 10.0.0.33 2025-09-22 14:40:01,737 - INFO - Validated that VN ctest-vn-10517758 is not in any agent 2025-09-22 14:40:01,751 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-10517758 info 2025-09-22 14:40:02,018 - DEBUG - No XMPP flaps were noticed during the test
2025-09-22 14:40:02,019 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-09-22 14:40:02,019 - INFO - -------------------------------------------------------------------------------- 2025-09-22 14:40:02,716 - INFO - Deleted project: ctest-TestBasicPolicy-59124475, ID : 0220c220-381a-4446-8ae1-ecab8308dfda