2025-05-15 16:28:23,193 - INFO - Domain Default found not creating 2025-05-15 16:28:23,319 - INFO - Project ctest-TestBasicPolicy-30994486 not found, creating it 2025-05-15 16:28:23,750 - INFO - Created Project:ctest-TestBasicPolicy-30994486, ID : f572ed2c-240c-44d2-a48f-1be0487f8a2f 2025-05-15 16:28:25,100 - INFO - ================================================================================ 2025-05-15 16:28:25,101 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-15 16:28:25,101 - 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-05-15 16:28:25,359 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-05-15 16:28:25,359 - INFO - Initial checks done. Running the testcase now 2025-05-15 16:28:25,359 - INFO - 2025-05-15 16:28:25,874 - DEBUG - Response for create_network : {'network': {'id': '00773616-dabb-4023-8182-e2769f526305', 'name': 'ctest-vn-60581294', 'tenant_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'project_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30994486', 'ctest-vn-60581294'], 'port_security_enabled': True, 'description': ''}} 2025-05-15 16:28:26,059 - DEBUG - Response for create_subnet : {'subnet': {'id': '7acb750b-4ef1-4512-a5cd-68d16d86282f', 'name': '', 'tenant_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'network_id': '00773616-dabb-4023-8182-e2769f526305', 'ip_version': 4, 'cidr': '40.230.254.64/26', 'allocation_pools': [{'start': '40.230.254.66', 'end': '40.230.254.126'}], 'gateway_ip': '40.230.254.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.230.254.66', 'tags': [], 'project_id': 'f572ed2c240c44d2a48f1be0487f8a2f'}} 2025-05-15 16:28:26,075 - INFO - Created VN ctest-vn-60581294 2025-05-15 16:28:26,126 - DEBUG - VN ctest-vn-60581294 UUID is 00773616-dabb-4023-8182-e2769f526305 2025-05-15 16:28:26,439 - DEBUG - Response for create_network : {'network': {'id': '172c882f-3fd3-4628-8f8c-107c6220074d', 'name': 'ctest-vn-31866987', 'tenant_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'project_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30994486', 'ctest-vn-31866987'], 'port_security_enabled': True, 'description': ''}} 2025-05-15 16:28:26,597 - DEBUG - Response for create_subnet : {'subnet': {'id': '1824d891-3c61-4e60-9c4c-74d7a3bbd7bd', 'name': '', 'tenant_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'network_id': '172c882f-3fd3-4628-8f8c-107c6220074d', 'ip_version': 4, 'cidr': '25.77.203.192/26', 'allocation_pools': [{'start': '25.77.203.194', 'end': '25.77.203.254'}], 'gateway_ip': '25.77.203.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.77.203.194', 'tags': [], 'project_id': 'f572ed2c240c44d2a48f1be0487f8a2f'}} 2025-05-15 16:28:26,612 - INFO - Created VN ctest-vn-31866987 2025-05-15 16:28:26,662 - DEBUG - VN ctest-vn-31866987 UUID is 172c882f-3fd3-4628-8f8c-107c6220074d 2025-05-15 16:28:26,802 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-60581294, 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-30994486:ctest-vn-31866987, 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-05-15 16:28:27,096 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '00773616-dabb-4023-8182-e2769f526305', 'name': 'ctest-vn-60581294', 'tenant_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'project_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7acb750b-4ef1-4512-a5cd-68d16d86282f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30994486', 'ctest-vn-60581294'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30994486', 'ctest-policy-allow-all-68820449']], 'subnet_ipam': [{'subnet_cidr': '40.230.254.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-15 16:28:27,319 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '172c882f-3fd3-4628-8f8c-107c6220074d', 'name': 'ctest-vn-31866987', 'tenant_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'project_id': 'f572ed2c240c44d2a48f1be0487f8a2f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1824d891-3c61-4e60-9c4c-74d7a3bbd7bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30994486', 'ctest-vn-31866987'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30994486', 'ctest-policy-allow-all-68820449']], 'subnet_ipam': [{'subnet_cidr': '25.77.203.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-15 16:28:27,458 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-15 16:28:27,751 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-15 16:28:27,776 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ad10a90d-f8c0-4566-a29e-0c71ae911d7f 2025-05-15 16:28:27,788 - DEBUG - Requesting: http://10.0.0.254:8082/project/f572ed2c-240c-44d2-a48f-1be0487f8a2f 2025-05-15 16:28:27,871 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/00773616-dabb-4023-8182-e2769f526305 2025-05-15 16:28:27,882 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/00773616-dabb-4023-8182-e2769f526305 2025-05-15 16:28:27,890 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/739832e4-fa2b-49a3-8b80-d6a7536db292 2025-05-15 16:28:27,897 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/739832e4-fa2b-49a3-8b80-d6a7536db292 2025-05-15 16:28:27,902 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/19dee53d-3488-4461-8124-014a7dc6459a 2025-05-15 16:28:27,908 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-15 16:28:27,908 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/00773616-dabb-4023-8182-e2769f526305 2025-05-15 16:28:27,916 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/739832e4-fa2b-49a3-8b80-d6a7536db292 2025-05-15 16:28:27,928 - INFO - Verified VN network id 7 for VN 00773616-dabb-4023-8182-e2769f526305 2025-05-15 16:28:27,929 - INFO - Verifications in API Server for VN ctest-vn-60581294 passed 2025-05-15 16:28:27,929 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/00773616-dabb-4023-8182-e2769f526305 2025-05-15 16:28:27,937 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/739832e4-fa2b-49a3-8b80-d6a7536db292 2025-05-15 16:28:27,943 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/739832e4-fa2b-49a3-8b80-d6a7536db292 2025-05-15 16:28:27,949 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/19dee53d-3488-4461-8124-014a7dc6459a 2025-05-15 16:28:27,959 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-60581294', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30994486', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '33554994015453219', 'uuid-lslong': '9332270376972083973'}, 'enable': 'true', 'created': '2025-05-15T16:28:25', 'last-modified': '2025-05-15T16:28:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.889855'} 2025-05-15 16:28:27,965 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-15 16:28:27,965 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60581294 passed 2025-05-15 16:28:27,966 - DEBUG - ====Verifying policy data for ctest-vn-60581294 in API_Server ====== 2025-05-15 16:28:27,966 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-15 16:28:27,970 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ad10a90d-f8c0-4566-a29e-0c71ae911d7f 2025-05-15 16:28:27,980 - DEBUG - Requesting: http://10.0.0.254:8082/project/f572ed2c-240c-44d2-a48f-1be0487f8a2f 2025-05-15 16:28:28,049 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/00773616-dabb-4023-8182-e2769f526305 2025-05-15 16:28:28,058 - DEBUG - ==>Verifying data for policy with id: 8ad579e0-562f-4a0b-807d-df1a7a7f988d, fqn: ['default-domain', 'ctest-TestBasicPolicy-30994486', 'ctest-policy-allow-all-68820449'] 2025-05-15 16:28:28,058 - INFO - VN ctest-vn-60581294 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-15 16:28:28,059 - DEBUG - Verifying the vn in opserver 2025-05-15 16:28:28,059 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-60581294 virtual network link through opserver 10.0.0.254 2025-05-15 16:28:28,059 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-15 16:28:28,346 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-15 16:28:28,395 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-60581294', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-60581294?flat'} 2025-05-15 16:28:28,395 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-60581294 is found in opserver 2025-05-15 16:28:28,405 - DEBUG - Do not have enough data to verify VN in agent 2025-05-15 16:28:28,410 - DEBUG - VRF ids for VN ctest-vn-60581294: {} 2025-05-15 16:28:28,410 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-15 16:28:28,415 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ad10a90d-f8c0-4566-a29e-0c71ae911d7f 2025-05-15 16:28:28,428 - DEBUG - Requesting: http://10.0.0.254:8082/project/f572ed2c-240c-44d2-a48f-1be0487f8a2f 2025-05-15 16:28:28,493 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/172c882f-3fd3-4628-8f8c-107c6220074d 2025-05-15 16:28:28,505 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/172c882f-3fd3-4628-8f8c-107c6220074d 2025-05-15 16:28:28,514 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6fd1c34c-30cc-48cf-9bbf-ec9664e9804a 2025-05-15 16:28:28,520 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6fd1c34c-30cc-48cf-9bbf-ec9664e9804a 2025-05-15 16:28:28,526 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/924712a3-d414-450b-a4d7-097a34123cec 2025-05-15 16:28:28,531 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-15 16:28:28,532 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/172c882f-3fd3-4628-8f8c-107c6220074d 2025-05-15 16:28:28,539 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6fd1c34c-30cc-48cf-9bbf-ec9664e9804a 2025-05-15 16:28:28,551 - INFO - Verified VN network id 8 for VN 172c882f-3fd3-4628-8f8c-107c6220074d 2025-05-15 16:28:28,551 - INFO - Verifications in API Server for VN ctest-vn-31866987 passed 2025-05-15 16:28:28,551 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/172c882f-3fd3-4628-8f8c-107c6220074d 2025-05-15 16:28:28,559 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6fd1c34c-30cc-48cf-9bbf-ec9664e9804a 2025-05-15 16:28:28,565 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6fd1c34c-30cc-48cf-9bbf-ec9664e9804a 2025-05-15 16:28:28,571 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/924712a3-d414-450b-a4d7-097a34123cec 2025-05-15 16:28:28,582 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-31866987', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30994486', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1669859298363262504', 'uuid-lslong': '10343660570571441997'}, 'enable': 'true', 'created': '2025-05-15T16:28:26', 'last-modified': '2025-05-15T16:28:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.284592'} 2025-05-15 16:28:28,588 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-15 16:28:28,588 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31866987 passed 2025-05-15 16:28:28,588 - DEBUG - ====Verifying policy data for ctest-vn-31866987 in API_Server ====== 2025-05-15 16:28:28,588 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-15 16:28:28,593 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ad10a90d-f8c0-4566-a29e-0c71ae911d7f 2025-05-15 16:28:28,604 - DEBUG - Requesting: http://10.0.0.254:8082/project/f572ed2c-240c-44d2-a48f-1be0487f8a2f 2025-05-15 16:28:28,669 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/172c882f-3fd3-4628-8f8c-107c6220074d 2025-05-15 16:28:28,679 - DEBUG - ==>Verifying data for policy with id: 8ad579e0-562f-4a0b-807d-df1a7a7f988d, fqn: ['default-domain', 'ctest-TestBasicPolicy-30994486', 'ctest-policy-allow-all-68820449'] 2025-05-15 16:28:28,679 - INFO - VN ctest-vn-31866987 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-15 16:28:28,679 - DEBUG - Verifying the vn in opserver 2025-05-15 16:28:28,679 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-31866987 virtual network link through opserver 10.0.0.254 2025-05-15 16:28:28,679 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-15 16:28:28,689 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-31866987', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-31866987?flat'} 2025-05-15 16:28:28,689 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-31866987 is found in opserver 2025-05-15 16:28:28,699 - DEBUG - Do not have enough data to verify VN in agent 2025-05-15 16:28:28,704 - DEBUG - VRF ids for VN ctest-vn-31866987: {} 2025-05-15 16:28:28,754 - DEBUG - Services list from nova: [, , ] 2025-05-15 16:28:29,693 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3320-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3320-1) 2025-05-15 16:28:30,806 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3320-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3320-1) 2025-05-15 16:28:30,806 - INFO - Waiting for VM ctest-TestBasicPolicy-30994486-06301714 to be up.. 2025-05-15 16:28:30,888 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-15 16:28:35,955 - DEBUG - VM is in ACTIVE state now 2025-05-15 16:28:35,956 - INFO - VM name : ctest-TestBasicPolicy-30994486-06301714 2025-05-15 16:28:36,021 - DEBUG - VM ctest-TestBasicPolicy-30994486-06301714 ID is 4bf33d1d-b21d-454d-b68c-0c1d2ca78544 2025-05-15 16:28:36,037 - DEBUG - VM ctest-TestBasicPolicy-30994486-06301714 launched on Node cn-jenkins-deploy-platform-ansible-os-3320-1 2025-05-15 16:28:36,107 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/4bf33d1d-b21d-454d-b68c-0c1d2ca78544 2025-05-15 16:28:36,115 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/32cf19a3-472e-4440-84b9-d00e43274436 2025-05-15 16:28:39,367 - 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 1008ms') 2025-05-15 16:28:39,367 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-30994486-06301714 failed! 2025-05-15 16:28:39,422 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-30994486:ctest-vn-60581294 is 40.230.254.65 and allocation pool is NOT set 2025-05-15 16:28:41,489 - 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.63 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.78 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.784/3.206/4.629/1.422 ms') 2025-05-15 16:28:41,489 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-30994486-06301714 passed 2025-05-15 16:28:41,642 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 16:28:41,642 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-30994486-06301714, IP 40.230.254.67, Port 22 2025-05-15 16:28:41,697 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-05-15 16:28:41,782 - DEBUG - VM ctest-TestBasicPolicy-30994486-06301714 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-15 16:28:46,784 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 16:28:46,784 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-30994486-06301714, IP 40.230.254.67, Port 22 2025-05-15 16:28:46,933 - DEBUG - VM ctest-TestBasicPolicy-30994486-06301714 is ready for SSH connections 2025-05-15 16:28:46,933 - INFO - Waiting for VM ctest-TestBasicPolicy-30994486-93453034 to be up.. 2025-05-15 16:28:47,000 - DEBUG - VM is in ACTIVE state now 2025-05-15 16:28:47,000 - INFO - VM name : ctest-TestBasicPolicy-30994486-93453034 2025-05-15 16:28:47,070 - DEBUG - VM ctest-TestBasicPolicy-30994486-93453034 ID is 61e6557a-c70a-4c49-a2ed-eabe6c66540e 2025-05-15 16:28:47,070 - DEBUG - VM ctest-TestBasicPolicy-30994486-93453034 launched on Node cn-jenkins-deploy-platform-ansible-os-3320-1 2025-05-15 16:28:47,136 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/61e6557a-c70a-4c49-a2ed-eabe6c66540e 2025-05-15 16:28:47,144 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/44aa6412-57e2-4d22-b983-c4adc81cdb25 2025-05-15 16:28:48,378 - 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=2.63 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.322 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.322/1.476/2.631/1.154 ms') 2025-05-15 16:28:48,378 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-30994486-93453034 passed 2025-05-15 16:28:48,526 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 16:28:48,526 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-30994486-93453034, IP 25.77.203.195, Port 22 2025-05-15 16:28:48,681 - DEBUG - VM ctest-TestBasicPolicy-30994486-93453034 is ready for SSH connections 2025-05-15 16:28:48,682 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 16:28:48,682 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 25.77.203.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-05-15 16:28:48,682 - DEBUG - ping -s 56 -c 3 -W 1 25.77.203.195 2025-05-15 16:28:52,347 - DEBUG - PING 25.77.203.195 (25.77.203.195): 56 data bytes 64 bytes from 25.77.203.195: seq=0 ttl=63 time=3.275 ms 64 bytes from 25.77.203.195: seq=1 ttl=63 time=0.739 ms 64 bytes from 25.77.203.195: seq=2 ttl=63 time=0.731 ms --- 25.77.203.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.731/1.581/3.275 ms 2025-05-15 16:28:52,347 - INFO - Ping to IP 25.77.203.195 from VM ctest-TestBasicPolicy-30994486-06301714 passed 2025-05-15 16:28:52,538 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8ad579e0-562f-4a0b-807d-df1a7a7f988d", "href": "http://10.0.0.254:8082/network-policy/8ad579e0-562f-4a0b-807d-df1a7a7f988d"}} 2025-05-15 16:28:52,538 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-15 16:28:52,538 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 25.77.203.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-05-15 16:28:52,538 - DEBUG - ping -s 56 -c 3 -W 1 25.77.203.195 2025-05-15 16:28:55,736 - DEBUG - PING 25.77.203.195 (25.77.203.195): 56 data bytes 64 bytes from 25.77.203.195: seq=0 ttl=63 time=1.207 ms --- 25.77.203.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.207/1.207/1.207 ms 2025-05-15 16:28:55,736 - WARNING - Ping to IP 25.77.203.195 from VM ctest-TestBasicPolicy-30994486-06301714 failed 2025-05-15 16:28:55,736 - INFO - Deleting VM ctest-TestBasicPolicy-30994486-93453034 2025-05-15 16:28:55,797 - INFO - Deleting VM ctest-TestBasicPolicy-30994486-06301714 2025-05-15 16:28:56,162 - INFO - Deleted policy ctest-policy-allow-all-68820449 2025-05-15 16:28:56,163 - INFO - Deleting VN ctest-vn-31866987 2025-05-15 16:28:56,197 - DEBUG - VN 172c882f-3fd3-4628-8f8c-107c6220074d still in use: Unable to complete operation on network 172c882f-3fd3-4628-8f8c-107c6220074d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-86ca1038-234d-4e48-9dfa-be79e90f7efa'] 2025-05-15 16:28:56,197 - WARNING - Deleting VN ctest-vn-31866987 failed..Will retry 2025-05-15 16:28:58,311 - DEBUG - Response for deleting network () 2025-05-15 16:28:58,311 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6fd1c34c-30cc-48cf-9bbf-ec9664e9804a 2025-05-15 16:28:58,319 - DEBUG - Response Code: 404 2025-05-15 16:28:58,319 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-15 16:28:58,324 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ad10a90d-f8c0-4566-a29e-0c71ae911d7f 2025-05-15 16:28:58,381 - DEBUG - Requesting: http://10.0.0.254:8082/project/f572ed2c-240c-44d2-a48f-1be0487f8a2f 2025-05-15 16:28:58,456 - INFO - Validated that VN ctest-vn-31866987 is not found in API Server 2025-05-15 16:28:58,468 - DEBUG - VN ctest-vn-31866987 is not present in Agent 10.0.0.254 2025-05-15 16:28:58,468 - INFO - Validated that VN ctest-vn-31866987 is not in any agent 2025-05-15 16:28:58,484 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-31866987 info 2025-05-15 16:28:58,484 - INFO - Deleting VN ctest-vn-60581294 2025-05-15 16:28:58,595 - DEBUG - Response for deleting network () 2025-05-15 16:28:58,595 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/739832e4-fa2b-49a3-8b80-d6a7536db292 2025-05-15 16:28:58,601 - DEBUG - Response Code: 404 2025-05-15 16:28:58,601 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-15 16:28:58,608 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ad10a90d-f8c0-4566-a29e-0c71ae911d7f 2025-05-15 16:28:58,663 - DEBUG - Requesting: http://10.0.0.254:8082/project/f572ed2c-240c-44d2-a48f-1be0487f8a2f 2025-05-15 16:28:58,739 - INFO - Validated that VN ctest-vn-60581294 is not found in API Server 2025-05-15 16:28:58,750 - DEBUG - VN ctest-vn-60581294 is not present in Agent 10.0.0.254 2025-05-15 16:28:58,750 - INFO - Validated that VN ctest-vn-60581294 is not in any agent 2025-05-15 16:28:58,765 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60581294 info 2025-05-15 16:28:59,020 - DEBUG - No XMPP flaps were noticed during the test
2025-05-15 16:28:59,020 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34]
2025-05-15 16:28:59,020 - INFO - -------------------------------------------------------------------------------- 2025-05-15 16:28:59,672 - INFO - Deleted project: ctest-TestBasicPolicy-30994486, ID : f572ed2c-240c-44d2-a48f-1be0487f8a2f