2025-08-08 00:39:07,091 - INFO - Domain Default found not creating 2025-08-08 00:39:07,255 - INFO - Project ctest-TestBasicPolicy-09203076 not found, creating it 2025-08-08 00:39:07,798 - INFO - Created Project:ctest-TestBasicPolicy-09203076, ID : acd45c65-a64a-4607-9191-7cdae9ebd408 2025-08-08 00:39:09,336 - INFO - ================================================================================ 2025-08-08 00:39:09,336 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-08 00:39:09,336 - 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-08-08 00:39:09,612 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-08 00:39:09,612 - INFO - Initial checks done. Running the testcase now 2025-08-08 00:39:09,613 - INFO - 2025-08-08 00:39:10,227 - DEBUG - Response for create_network : {'network': {'id': 'da5802ca-aeb7-48a8-96a8-5eff975c74a2', 'name': 'ctest-vn-74767752', 'tenant_id': 'acd45c65a64a460791917cdae9ebd408', 'project_id': 'acd45c65a64a460791917cdae9ebd408', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09203076', 'ctest-vn-74767752'], 'port_security_enabled': True, 'description': ''}} 2025-08-08 00:39:10,393 - DEBUG - Response for create_subnet : {'subnet': {'id': '36b2082d-8a07-4829-9446-499a434ed395', 'name': '', 'tenant_id': 'acd45c65a64a460791917cdae9ebd408', 'network_id': 'da5802ca-aeb7-48a8-96a8-5eff975c74a2', 'ip_version': 4, 'cidr': '24.171.250.128/26', 'allocation_pools': [{'start': '24.171.250.130', 'end': '24.171.250.190'}], 'gateway_ip': '24.171.250.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.171.250.130', 'tags': [], 'project_id': 'acd45c65a64a460791917cdae9ebd408'}} 2025-08-08 00:39:10,412 - INFO - Created VN ctest-vn-74767752 2025-08-08 00:39:10,468 - DEBUG - VN ctest-vn-74767752 UUID is da5802ca-aeb7-48a8-96a8-5eff975c74a2 2025-08-08 00:39:10,800 - DEBUG - Response for create_network : {'network': {'id': '7f47802c-551b-46f8-bb53-794ae8d70bc4', 'name': 'ctest-vn-76809090', 'tenant_id': 'acd45c65a64a460791917cdae9ebd408', 'project_id': 'acd45c65a64a460791917cdae9ebd408', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09203076', 'ctest-vn-76809090'], 'port_security_enabled': True, 'description': ''}} 2025-08-08 00:39:11,032 - DEBUG - Response for create_subnet : {'subnet': {'id': '12095da7-5050-40a9-8b81-7559dd58f84b', 'name': '', 'tenant_id': 'acd45c65a64a460791917cdae9ebd408', 'network_id': '7f47802c-551b-46f8-bb53-794ae8d70bc4', 'ip_version': 4, 'cidr': '124.143.82.128/26', 'allocation_pools': [{'start': '124.143.82.130', 'end': '124.143.82.190'}], 'gateway_ip': '124.143.82.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.143.82.130', 'tags': [], 'project_id': 'acd45c65a64a460791917cdae9ebd408'}} 2025-08-08 00:39:11,051 - INFO - Created VN ctest-vn-76809090 2025-08-08 00:39:11,104 - DEBUG - VN ctest-vn-76809090 UUID is 7f47802c-551b-46f8-bb53-794ae8d70bc4 2025-08-08 00:39:11,226 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-74767752, 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-09203076:ctest-vn-76809090, 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-08-08 00:39:11,540 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'da5802ca-aeb7-48a8-96a8-5eff975c74a2', 'name': 'ctest-vn-74767752', 'tenant_id': 'acd45c65a64a460791917cdae9ebd408', 'project_id': 'acd45c65a64a460791917cdae9ebd408', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['36b2082d-8a07-4829-9446-499a434ed395'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09203076', 'ctest-vn-74767752'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09203076', 'ctest-policy-allow-all-72628581']], 'subnet_ipam': [{'subnet_cidr': '24.171.250.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-08 00:39:11,784 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f47802c-551b-46f8-bb53-794ae8d70bc4', 'name': 'ctest-vn-76809090', 'tenant_id': 'acd45c65a64a460791917cdae9ebd408', 'project_id': 'acd45c65a64a460791917cdae9ebd408', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['12095da7-5050-40a9-8b81-7559dd58f84b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09203076', 'ctest-vn-76809090'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09203076', 'ctest-policy-allow-all-72628581']], 'subnet_ipam': [{'subnet_cidr': '124.143.82.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-08 00:39:11,956 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 00:39:12,256 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 00:39:12,287 - DEBUG - Requesting: http://10.0.0.38:8082/domain/11b3c3e2-ecab-4c49-86bf-fb4cb47311c3 2025-08-08 00:39:12,302 - DEBUG - Requesting: http://10.0.0.38:8082/project/acd45c65-a64a-4607-9191-7cdae9ebd408 2025-08-08 00:39:12,378 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da5802ca-aeb7-48a8-96a8-5eff975c74a2 2025-08-08 00:39:12,390 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da5802ca-aeb7-48a8-96a8-5eff975c74a2 2025-08-08 00:39:12,403 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8dd3ad40-ac80-4546-b594-a38328637957 2025-08-08 00:39:12,411 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8dd3ad40-ac80-4546-b594-a38328637957 2025-08-08 00:39:12,418 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ecdca698-4425-46c5-b153-2db51ce44743 2025-08-08 00:39:12,426 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 00:39:12,426 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da5802ca-aeb7-48a8-96a8-5eff975c74a2 2025-08-08 00:39:12,435 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8dd3ad40-ac80-4546-b594-a38328637957 2025-08-08 00:39:12,451 - INFO - Verified VN network id 11 for VN da5802ca-aeb7-48a8-96a8-5eff975c74a2 2025-08-08 00:39:12,451 - INFO - Verifications in API Server for VN ctest-vn-74767752 passed 2025-08-08 00:39:12,451 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da5802ca-aeb7-48a8-96a8-5eff975c74a2 2025-08-08 00:39:12,463 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8dd3ad40-ac80-4546-b594-a38328637957 2025-08-08 00:39:12,472 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8dd3ad40-ac80-4546-b594-a38328637957 2025-08-08 00:39:12,481 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ecdca698-4425-46c5-b153-2db51ce44743 2025-08-08 00:39:12,496 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-74767752', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09203076', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15733328367756724392', 'uuid-lslong': '10856031353625670818'}, 'enable': 'true', 'created': '2025-08-08T00:39:10', 'last-modified': '2025-08-08T00:39:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983520'} 2025-08-08 00:39:12,505 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 00:39:12,505 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74767752 passed 2025-08-08 00:39:12,506 - DEBUG - ====Verifying policy data for ctest-vn-74767752 in API_Server ====== 2025-08-08 00:39:12,506 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 00:39:12,512 - DEBUG - Requesting: http://10.0.0.38:8082/domain/11b3c3e2-ecab-4c49-86bf-fb4cb47311c3 2025-08-08 00:39:12,526 - DEBUG - Requesting: http://10.0.0.38:8082/project/acd45c65-a64a-4607-9191-7cdae9ebd408 2025-08-08 00:39:12,605 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da5802ca-aeb7-48a8-96a8-5eff975c74a2 2025-08-08 00:39:12,617 - DEBUG - ==>Verifying data for policy with id: 91ad5cf4-1758-47bd-99d3-ec66af2bd61f, fqn: ['default-domain', 'ctest-TestBasicPolicy-09203076', 'ctest-policy-allow-all-72628581'] 2025-08-08 00:39:12,618 - INFO - VN ctest-vn-74767752 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-08 00:39:12,618 - DEBUG - Verifying the vn in opserver 2025-08-08 00:39:12,618 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-74767752 virtual network link through opserver 10.0.0.38 2025-08-08 00:39:12,618 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-08 00:39:12,919 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-08 00:39:12,993 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-74767752', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-74767752?flat'} 2025-08-08 00:39:12,993 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-74767752 is found in opserver 2025-08-08 00:39:13,006 - DEBUG - Do not have enough data to verify VN in agent 2025-08-08 00:39:13,012 - DEBUG - VRF ids for VN ctest-vn-74767752: {} 2025-08-08 00:39:13,012 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 00:39:13,021 - DEBUG - Requesting: http://10.0.0.38:8082/domain/11b3c3e2-ecab-4c49-86bf-fb4cb47311c3 2025-08-08 00:39:13,033 - DEBUG - Requesting: http://10.0.0.38:8082/project/acd45c65-a64a-4607-9191-7cdae9ebd408 2025-08-08 00:39:13,114 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f47802c-551b-46f8-bb53-794ae8d70bc4 2025-08-08 00:39:13,132 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f47802c-551b-46f8-bb53-794ae8d70bc4 2025-08-08 00:39:13,145 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a335dfb9-5a0a-4fba-a981-2b83fa3277e4 2025-08-08 00:39:13,158 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a335dfb9-5a0a-4fba-a981-2b83fa3277e4 2025-08-08 00:39:13,168 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/99f76f05-7d53-4722-9eb0-93475783e2d7 2025-08-08 00:39:13,176 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-08 00:39:13,176 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f47802c-551b-46f8-bb53-794ae8d70bc4 2025-08-08 00:39:13,190 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a335dfb9-5a0a-4fba-a981-2b83fa3277e4 2025-08-08 00:39:13,212 - INFO - Verified VN network id 12 for VN 7f47802c-551b-46f8-bb53-794ae8d70bc4 2025-08-08 00:39:13,212 - INFO - Verifications in API Server for VN ctest-vn-76809090 passed 2025-08-08 00:39:13,213 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f47802c-551b-46f8-bb53-794ae8d70bc4 2025-08-08 00:39:13,230 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a335dfb9-5a0a-4fba-a981-2b83fa3277e4 2025-08-08 00:39:13,242 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a335dfb9-5a0a-4fba-a981-2b83fa3277e4 2025-08-08 00:39:13,253 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/99f76f05-7d53-4722-9eb0-93475783e2d7 2025-08-08 00:39:13,268 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-76809090', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09203076', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9171440094058071800', 'uuid-lslong': '13498265870800456644'}, 'enable': 'true', 'created': '2025-08-08T00:39:10', 'last-modified': '2025-08-08T00:39:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.509886'} 2025-08-08 00:39:13,279 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-08 00:39:13,279 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76809090 passed 2025-08-08 00:39:13,280 - DEBUG - ====Verifying policy data for ctest-vn-76809090 in API_Server ====== 2025-08-08 00:39:13,280 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 00:39:13,294 - DEBUG - Requesting: http://10.0.0.38:8082/domain/11b3c3e2-ecab-4c49-86bf-fb4cb47311c3 2025-08-08 00:39:13,313 - DEBUG - Requesting: http://10.0.0.38:8082/project/acd45c65-a64a-4607-9191-7cdae9ebd408 2025-08-08 00:39:13,405 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f47802c-551b-46f8-bb53-794ae8d70bc4 2025-08-08 00:39:13,419 - DEBUG - ==>Verifying data for policy with id: 91ad5cf4-1758-47bd-99d3-ec66af2bd61f, fqn: ['default-domain', 'ctest-TestBasicPolicy-09203076', 'ctest-policy-allow-all-72628581'] 2025-08-08 00:39:13,419 - INFO - VN ctest-vn-76809090 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-08 00:39:13,419 - DEBUG - Verifying the vn in opserver 2025-08-08 00:39:13,419 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-76809090 virtual network link through opserver 10.0.0.38 2025-08-08 00:39:13,419 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-08 00:39:13,432 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-76809090', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-76809090?flat'} 2025-08-08 00:39:13,432 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-76809090 is found in opserver 2025-08-08 00:39:13,446 - DEBUG - Do not have enough data to verify VN in agent 2025-08-08 00:39:13,451 - DEBUG - VRF ids for VN ctest-vn-76809090: {} 2025-08-08 00:39:13,511 - DEBUG - Services list from nova: [, , ] 2025-08-08 00:39:14,588 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3778-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3778-1) 2025-08-08 00:39:15,833 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3778-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3778-1) 2025-08-08 00:39:15,833 - INFO - Waiting for VM ctest-TestBasicPolicy-09203076-78881162 to be up.. 2025-08-08 00:39:15,927 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-08 00:39:21,010 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-08 00:39:26,098 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-08 00:39:31,175 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-08 00:39:36,260 - DEBUG - VM is in ACTIVE state now 2025-08-08 00:39:36,260 - INFO - VM name : ctest-TestBasicPolicy-09203076-78881162 2025-08-08 00:39:36,345 - DEBUG - VM ctest-TestBasicPolicy-09203076-78881162 ID is 2095954c-d20a-4ee8-8c8f-64fce78278a4 2025-08-08 00:39:36,371 - DEBUG - VM ctest-TestBasicPolicy-09203076-78881162 launched on Node cn-jenkins-deploy-platform-ansible-os-3778-1 2025-08-08 00:39:36,464 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/2095954c-d20a-4ee8-8c8f-64fce78278a4 2025-08-08 00:39:36,475 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/6bffcac5-b12a-4aed-9711-ff97347ba037 2025-08-08 00:39:39,745 - 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-08-08 00:39:39,745 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09203076-78881162 failed! 2025-08-08 00:39:39,804 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09203076:ctest-vn-74767752 is 24.171.250.129 and allocation pool is NOT set 2025-08-08 00:39:41,870 - 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=14.0 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.08 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 = 2.078/8.048/14.019/5.970 ms') 2025-08-08 00:39:41,870 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09203076-78881162 passed 2025-08-08 00:39:42,024 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 00:39:42,024 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09203076-78881162, IP 24.171.250.131, Port 22 2025-08-08 00:39:42,090 - 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-08-08 00:39:42,171 - DEBUG - VM ctest-TestBasicPolicy-09203076-78881162 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-08 00:39:47,172 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 00:39:47,172 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09203076-78881162, IP 24.171.250.131, Port 22 2025-08-08 00:39:47,338 - DEBUG - VM ctest-TestBasicPolicy-09203076-78881162 is ready for SSH connections 2025-08-08 00:39:47,339 - INFO - Waiting for VM ctest-TestBasicPolicy-09203076-93195416 to be up.. 2025-08-08 00:39:47,422 - DEBUG - VM is in ACTIVE state now 2025-08-08 00:39:47,423 - INFO - VM name : ctest-TestBasicPolicy-09203076-93195416 2025-08-08 00:39:47,504 - DEBUG - VM ctest-TestBasicPolicy-09203076-93195416 ID is 6905d607-4251-44dc-8663-edebba94d1e8 2025-08-08 00:39:47,504 - DEBUG - VM ctest-TestBasicPolicy-09203076-93195416 launched on Node cn-jenkins-deploy-platform-ansible-os-3778-1 2025-08-08 00:39:47,580 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/6905d607-4251-44dc-8663-edebba94d1e8 2025-08-08 00:39:47,590 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/5860ce79-6e71-4453-bff3-3a124cff40fa 2025-08-08 00:39:48,848 - 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.14 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.453 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.453/1.798/3.144/1.345 ms') 2025-08-08 00:39:48,848 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-09203076-93195416 passed 2025-08-08 00:39:49,004 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 00:39:49,004 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09203076-93195416, IP 124.143.82.131, Port 22 2025-08-08 00:39:49,163 - DEBUG - VM ctest-TestBasicPolicy-09203076-93195416 is ready for SSH connections 2025-08-08 00:39:49,164 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 00:39:49,164 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.143.82.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-08-08 00:39:49,165 - DEBUG - ping -s 56 -c 3 -W 1 124.143.82.131 2025-08-08 00:39:53,160 - DEBUG - PING 124.143.82.131 (124.143.82.131): 56 data bytes 64 bytes from 124.143.82.131: seq=0 ttl=63 time=4.389 ms 64 bytes from 124.143.82.131: seq=1 ttl=63 time=1.143 ms 64 bytes from 124.143.82.131: seq=2 ttl=63 time=1.055 ms --- 124.143.82.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.055/2.195/4.389 ms 2025-08-08 00:39:53,160 - INFO - Ping to IP 124.143.82.131 from VM ctest-TestBasicPolicy-09203076-78881162 passed 2025-08-08 00:39:53,352 - DEBUG - Policy Update Response {"network-policy": {"uuid": "91ad5cf4-1758-47bd-99d3-ec66af2bd61f", "href": "http://10.0.0.38:8082/network-policy/91ad5cf4-1758-47bd-99d3-ec66af2bd61f"}} 2025-08-08 00:39:53,352 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-08 00:39:53,352 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.143.82.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-08-08 00:39:53,352 - DEBUG - ping -s 56 -c 3 -W 1 124.143.82.131 2025-08-08 00:39:56,565 - DEBUG - PING 124.143.82.131 (124.143.82.131): 56 data bytes --- 124.143.82.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-08-08 00:39:56,565 - WARNING - Ping to IP 124.143.82.131 from VM ctest-TestBasicPolicy-09203076-78881162 failed 2025-08-08 00:39:56,565 - INFO - Deleting VM ctest-TestBasicPolicy-09203076-93195416 2025-08-08 00:39:56,649 - INFO - Deleting VM ctest-TestBasicPolicy-09203076-78881162 2025-08-08 00:39:57,045 - INFO - Deleted policy ctest-policy-allow-all-72628581 2025-08-08 00:39:57,046 - INFO - Deleting VN ctest-vn-76809090 2025-08-08 00:39:57,097 - DEBUG - VN 7f47802c-551b-46f8-bb53-794ae8d70bc4 still in use: Unable to complete operation on network 7f47802c-551b-46f8-bb53-794ae8d70bc4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-10007f74-9eec-40c0-93a5-5e9c257c250f'] 2025-08-08 00:39:57,098 - WARNING - Deleting VN ctest-vn-76809090 failed..Will retry 2025-08-08 00:39:59,270 - DEBUG - Response for deleting network () 2025-08-08 00:39:59,270 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a335dfb9-5a0a-4fba-a981-2b83fa3277e4 2025-08-08 00:39:59,284 - DEBUG - Response Code: 404 2025-08-08 00:39:59,284 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 00:39:59,292 - DEBUG - Requesting: http://10.0.0.38:8082/domain/11b3c3e2-ecab-4c49-86bf-fb4cb47311c3 2025-08-08 00:39:59,355 - DEBUG - Requesting: http://10.0.0.38:8082/project/acd45c65-a64a-4607-9191-7cdae9ebd408 2025-08-08 00:39:59,440 - INFO - Validated that VN ctest-vn-76809090 is not found in API Server 2025-08-08 00:39:59,459 - DEBUG - VN ctest-vn-76809090 is not present in Agent 10.0.0.38 2025-08-08 00:39:59,459 - INFO - Validated that VN ctest-vn-76809090 is not in any agent 2025-08-08 00:39:59,479 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-76809090 info 2025-08-08 00:39:59,479 - INFO - Deleting VN ctest-vn-74767752 2025-08-08 00:39:59,625 - DEBUG - Response for deleting network () 2025-08-08 00:39:59,625 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8dd3ad40-ac80-4546-b594-a38328637957 2025-08-08 00:39:59,634 - DEBUG - Response Code: 404 2025-08-08 00:39:59,634 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 00:39:59,643 - DEBUG - Requesting: http://10.0.0.38:8082/domain/11b3c3e2-ecab-4c49-86bf-fb4cb47311c3 2025-08-08 00:39:59,706 - DEBUG - Requesting: http://10.0.0.38:8082/project/acd45c65-a64a-4607-9191-7cdae9ebd408 2025-08-08 00:39:59,790 - INFO - Validated that VN ctest-vn-74767752 is not found in API Server 2025-08-08 00:39:59,808 - DEBUG - VN ctest-vn-74767752 is not present in Agent 10.0.0.38 2025-08-08 00:39:59,808 - INFO - Validated that VN ctest-vn-74767752 is not in any agent 2025-08-08 00:39:59,837 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-74767752 info 2025-08-08 00:40:00,102 - DEBUG - No XMPP flaps were noticed during the test 2025-08-08 00:40:00,103 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:51] 2025-08-08 00:40:00,103 - INFO - -------------------------------------------------------------------------------- 2025-08-08 00:40:00,859 - INFO - Deleted project: ctest-TestBasicPolicy-09203076, ID : acd45c65-a64a-4607-9191-7cdae9ebd408