2025-09-04 15:19:56,774 - INFO - Domain Default found not creating 2025-09-04 15:19:56,908 - INFO - Project ctest-TestBasicPolicy-60511530 not found, creating it 2025-09-04 15:19:57,349 - INFO - Created Project:ctest-TestBasicPolicy-60511530, ID : 0d6c1b77-a9c1-43ae-b56e-63fb05021219 2025-09-04 15:19:58,870 - INFO - ================================================================================ 2025-09-04 15:19:58,870 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-04 15:19:58,870 - 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-04 15:19:59,126 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-04 15:19:59,126 - INFO - Initial checks done. Running the testcase now 2025-09-04 15:19:59,126 - INFO - 2025-09-04 15:19:59,705 - DEBUG - Response for create_network : {'network': {'id': '27e70808-6726-4132-96ee-51726892f2b4', 'name': 'ctest-vn-01939498', 'tenant_id': '0d6c1b77a9c143aeb56e63fb05021219', 'project_id': '0d6c1b77a9c143aeb56e63fb05021219', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60511530', 'ctest-vn-01939498'], 'port_security_enabled': True, 'description': ''}} 2025-09-04 15:19:59,895 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fafdce28-fa3f-488d-8140-ac6aed635795', 'name': '', 'tenant_id': '0d6c1b77a9c143aeb56e63fb05021219', 'network_id': '27e70808-6726-4132-96ee-51726892f2b4', 'ip_version': 4, 'cidr': '171.50.219.0/26', 'allocation_pools': [{'start': '171.50.219.2', 'end': '171.50.219.62'}], 'gateway_ip': '171.50.219.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.50.219.2', 'tags': [], 'project_id': '0d6c1b77a9c143aeb56e63fb05021219'}} 2025-09-04 15:19:59,915 - INFO - Created VN ctest-vn-01939498 2025-09-04 15:19:59,969 - DEBUG - VN ctest-vn-01939498 UUID is 27e70808-6726-4132-96ee-51726892f2b4 2025-09-04 15:20:00,260 - DEBUG - Response for create_network : {'network': {'id': 'cab55c50-43ba-40ba-89ca-a1663d6d0bb2', 'name': 'ctest-vn-44219109', 'tenant_id': '0d6c1b77a9c143aeb56e63fb05021219', 'project_id': '0d6c1b77a9c143aeb56e63fb05021219', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60511530', 'ctest-vn-44219109'], 'port_security_enabled': True, 'description': ''}} 2025-09-04 15:20:00,442 - DEBUG - Response for create_subnet : {'subnet': {'id': '19234572-283c-4dd8-ba10-349eca95cfc3', 'name': '', 'tenant_id': '0d6c1b77a9c143aeb56e63fb05021219', 'network_id': 'cab55c50-43ba-40ba-89ca-a1663d6d0bb2', 'ip_version': 4, 'cidr': '27.29.183.64/26', 'allocation_pools': [{'start': '27.29.183.66', 'end': '27.29.183.126'}], 'gateway_ip': '27.29.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.29.183.66', 'tags': [], 'project_id': '0d6c1b77a9c143aeb56e63fb05021219'}} 2025-09-04 15:20:00,460 - INFO - Created VN ctest-vn-44219109 2025-09-04 15:20:00,513 - DEBUG - VN ctest-vn-44219109 UUID is cab55c50-43ba-40ba-89ca-a1663d6d0bb2 2025-09-04 15:20:00,629 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-01939498, 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-60511530:ctest-vn-44219109, 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-04 15:20:00,928 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '27e70808-6726-4132-96ee-51726892f2b4', 'name': 'ctest-vn-01939498', 'tenant_id': '0d6c1b77a9c143aeb56e63fb05021219', 'project_id': '0d6c1b77a9c143aeb56e63fb05021219', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fafdce28-fa3f-488d-8140-ac6aed635795'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60511530', 'ctest-vn-01939498'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60511530', 'ctest-policy-allow-all-58956687']], 'subnet_ipam': [{'subnet_cidr': '171.50.219.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-04 15:20:01,167 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cab55c50-43ba-40ba-89ca-a1663d6d0bb2', 'name': 'ctest-vn-44219109', 'tenant_id': '0d6c1b77a9c143aeb56e63fb05021219', 'project_id': '0d6c1b77a9c143aeb56e63fb05021219', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['19234572-283c-4dd8-ba10-349eca95cfc3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60511530', 'ctest-vn-44219109'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60511530', 'ctest-policy-allow-all-58956687']], 'subnet_ipam': [{'subnet_cidr': '27.29.183.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-04 15:20:01,333 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-04 15:20:01,670 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-04 15:20:01,701 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9fff6ffd-9a96-4ff4-a10a-772bb83e8044 2025-09-04 15:20:01,714 - DEBUG - Requesting: http://10.0.0.22:8082/project/0d6c1b77-a9c1-43ae-b56e-63fb05021219 2025-09-04 15:20:01,791 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/27e70808-6726-4132-96ee-51726892f2b4 2025-09-04 15:20:01,804 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/27e70808-6726-4132-96ee-51726892f2b4 2025-09-04 15:20:01,813 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6be2987-8025-4bd8-b100-b19363413f7e 2025-09-04 15:20:01,820 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6be2987-8025-4bd8-b100-b19363413f7e 2025-09-04 15:20:01,826 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c75718aa-12c5-43a1-a2a4-d44908ac03ee 2025-09-04 15:20:01,833 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-04 15:20:01,833 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/27e70808-6726-4132-96ee-51726892f2b4 2025-09-04 15:20:01,842 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6be2987-8025-4bd8-b100-b19363413f7e 2025-09-04 15:20:01,858 - INFO - Verified VN network id 11 for VN 27e70808-6726-4132-96ee-51726892f2b4 2025-09-04 15:20:01,858 - INFO - Verifications in API Server for VN ctest-vn-01939498 passed 2025-09-04 15:20:01,858 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/27e70808-6726-4132-96ee-51726892f2b4 2025-09-04 15:20:01,868 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6be2987-8025-4bd8-b100-b19363413f7e 2025-09-04 15:20:01,875 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6be2987-8025-4bd8-b100-b19363413f7e 2025-09-04 15:20:01,882 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c75718aa-12c5-43a1-a2a4-d44908ac03ee 2025-09-04 15:20:01,895 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-01939498', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60511530', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2875275719282671922', 'uuid-lslong': '10875719701968908980'}, 'enable': 'true', 'created': '2025-09-04T15:19:59', 'last-modified': '2025-09-04T15:20:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982925'} 2025-09-04 15:20:01,901 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-04 15:20:01,901 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01939498 passed 2025-09-04 15:20:01,901 - DEBUG - ====Verifying policy data for ctest-vn-01939498 in API_Server ====== 2025-09-04 15:20:01,901 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-04 15:20:01,906 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9fff6ffd-9a96-4ff4-a10a-772bb83e8044 2025-09-04 15:20:01,917 - DEBUG - Requesting: http://10.0.0.22:8082/project/0d6c1b77-a9c1-43ae-b56e-63fb05021219 2025-09-04 15:20:01,990 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/27e70808-6726-4132-96ee-51726892f2b4 2025-09-04 15:20:01,999 - DEBUG - ==>Verifying data for policy with id: a28c464b-eb98-442f-a5ca-c1a079fa0b32, fqn: ['default-domain', 'ctest-TestBasicPolicy-60511530', 'ctest-policy-allow-all-58956687'] 2025-09-04 15:20:01,999 - INFO - VN ctest-vn-01939498 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-04 15:20:01,999 - DEBUG - Verifying the vn in opserver 2025-09-04 15:20:01,999 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-01939498 virtual network link through opserver 10.0.0.22 2025-09-04 15:20:01,999 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-04 15:20:02,332 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-04 15:20:02,390 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-01939498', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-01939498?flat'} 2025-09-04 15:20:02,390 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-01939498 is found in opserver 2025-09-04 15:20:02,401 - DEBUG - Do not have enough data to verify VN in agent 2025-09-04 15:20:02,406 - DEBUG - VRF ids for VN ctest-vn-01939498: {} 2025-09-04 15:20:02,406 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-04 15:20:02,412 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9fff6ffd-9a96-4ff4-a10a-772bb83e8044 2025-09-04 15:20:02,424 - DEBUG - Requesting: http://10.0.0.22:8082/project/0d6c1b77-a9c1-43ae-b56e-63fb05021219 2025-09-04 15:20:02,500 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab55c50-43ba-40ba-89ca-a1663d6d0bb2 2025-09-04 15:20:02,512 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab55c50-43ba-40ba-89ca-a1663d6d0bb2 2025-09-04 15:20:02,521 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/678ed1a2-bc26-4cb0-8317-b66e78696f94 2025-09-04 15:20:02,527 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/678ed1a2-bc26-4cb0-8317-b66e78696f94 2025-09-04 15:20:02,533 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e8c03aba-890c-4c9d-a627-2612fa4a54db 2025-09-04 15:20:02,539 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-04 15:20:02,539 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab55c50-43ba-40ba-89ca-a1663d6d0bb2 2025-09-04 15:20:02,548 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/678ed1a2-bc26-4cb0-8317-b66e78696f94 2025-09-04 15:20:02,560 - INFO - Verified VN network id 12 for VN cab55c50-43ba-40ba-89ca-a1663d6d0bb2 2025-09-04 15:20:02,560 - INFO - Verifications in API Server for VN ctest-vn-44219109 passed 2025-09-04 15:20:02,560 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab55c50-43ba-40ba-89ca-a1663d6d0bb2 2025-09-04 15:20:02,568 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/678ed1a2-bc26-4cb0-8317-b66e78696f94 2025-09-04 15:20:02,574 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/678ed1a2-bc26-4cb0-8317-b66e78696f94 2025-09-04 15:20:02,579 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e8c03aba-890c-4c9d-a627-2612fa4a54db 2025-09-04 15:20:02,589 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-44219109', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60511530', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14606682466249490618', 'uuid-lslong': '9928925788980972466'}, 'enable': 'true', 'created': '2025-09-04T15:20:00', 'last-modified': '2025-09-04T15:20:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.442389'} 2025-09-04 15:20:02,595 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-04 15:20:02,595 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44219109 passed 2025-09-04 15:20:02,597 - DEBUG - ====Verifying policy data for ctest-vn-44219109 in API_Server ====== 2025-09-04 15:20:02,597 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-04 15:20:02,602 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9fff6ffd-9a96-4ff4-a10a-772bb83e8044 2025-09-04 15:20:02,611 - DEBUG - Requesting: http://10.0.0.22:8082/project/0d6c1b77-a9c1-43ae-b56e-63fb05021219 2025-09-04 15:20:02,687 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab55c50-43ba-40ba-89ca-a1663d6d0bb2 2025-09-04 15:20:02,698 - DEBUG - ==>Verifying data for policy with id: a28c464b-eb98-442f-a5ca-c1a079fa0b32, fqn: ['default-domain', 'ctest-TestBasicPolicy-60511530', 'ctest-policy-allow-all-58956687'] 2025-09-04 15:20:02,698 - INFO - VN ctest-vn-44219109 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-04 15:20:02,698 - DEBUG - Verifying the vn in opserver 2025-09-04 15:20:02,698 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-44219109 virtual network link through opserver 10.0.0.22 2025-09-04 15:20:02,698 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-04 15:20:02,709 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-44219109', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-44219109?flat'} 2025-09-04 15:20:02,709 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-44219109 is found in opserver 2025-09-04 15:20:02,718 - DEBUG - Do not have enough data to verify VN in agent 2025-09-04 15:20:02,723 - DEBUG - VRF ids for VN ctest-vn-44219109: {} 2025-09-04 15:20:02,782 - DEBUG - Services list from nova: [, , ] 2025-09-04 15:20:03,893 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4016-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4016-1) 2025-09-04 15:20:05,154 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4016-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4016-1) 2025-09-04 15:20:05,154 - INFO - Waiting for VM ctest-TestBasicPolicy-60511530-81290470 to be up.. 2025-09-04 15:20:05,241 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-04 15:20:10,323 - DEBUG - VM is in ACTIVE state now 2025-09-04 15:20:10,323 - INFO - VM name : ctest-TestBasicPolicy-60511530-81290470 2025-09-04 15:20:10,406 - DEBUG - VM ctest-TestBasicPolicy-60511530-81290470 ID is ad3f5f9b-977b-4ae5-b0a2-e698e050d7bb 2025-09-04 15:20:10,428 - DEBUG - VM ctest-TestBasicPolicy-60511530-81290470 launched on Node cn-jenkins-deploy-platform-ansible-os-4016-1 2025-09-04 15:20:10,518 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/ad3f5f9b-977b-4ae5-b0a2-e698e050d7bb 2025-09-04 15:20:10,528 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/18898b00-8ef4-41ee-8a67-083f64fd7f47 2025-09-04 15:20:13,787 - 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 1006ms') 2025-09-04 15:20:13,787 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60511530-81290470 failed! 2025-09-04 15:20:13,845 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-60511530:ctest-vn-01939498 is 171.50.219.1 and allocation pool is NOT set 2025-09-04 15:20:15,909 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=8.77 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.19 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.186/4.976/8.767/3.790 ms') 2025-09-04 15:20:15,909 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-60511530-81290470 passed 2025-09-04 15:20:16,057 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 15:20:16,057 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60511530-81290470, IP 171.50.219.3, Port 22 2025-09-04 15:20:16,123 - 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-09-04 15:20:16,201 - DEBUG - VM ctest-TestBasicPolicy-60511530-81290470 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-04 15:20:21,202 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 15:20:21,203 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60511530-81290470, IP 171.50.219.3, Port 22 2025-09-04 15:20:21,375 - DEBUG - VM ctest-TestBasicPolicy-60511530-81290470 is ready for SSH connections 2025-09-04 15:20:21,375 - INFO - Waiting for VM ctest-TestBasicPolicy-60511530-33573378 to be up.. 2025-09-04 15:20:21,461 - DEBUG - VM is in ACTIVE state now 2025-09-04 15:20:21,461 - INFO - VM name : ctest-TestBasicPolicy-60511530-33573378 2025-09-04 15:20:21,536 - DEBUG - VM ctest-TestBasicPolicy-60511530-33573378 ID is f536024a-1a65-45ac-b9d1-6690242fa5f1 2025-09-04 15:20:21,536 - DEBUG - VM ctest-TestBasicPolicy-60511530-33573378 launched on Node cn-jenkins-deploy-platform-ansible-os-4016-1 2025-09-04 15:20:21,615 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine/f536024a-1a65-45ac-b9d1-6690242fa5f1 2025-09-04 15:20:21,625 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-machine-interface/95a630a0-f26d-422e-a1fc-315b8f74e550 2025-09-04 15:20:22,869 - 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.09 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.478 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.478/2.284/4.091/1.806 ms') 2025-09-04 15:20:22,869 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-60511530-33573378 passed 2025-09-04 15:20:23,033 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 15:20:23,033 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-60511530-33573378, IP 27.29.183.67, Port 22 2025-09-04 15:20:23,199 - DEBUG - VM ctest-TestBasicPolicy-60511530-33573378 is ready for SSH connections 2025-09-04 15:20:23,199 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 15:20:23,199 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 27.29.183.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-09-04 15:20:23,199 - DEBUG - ping -s 56 -c 3 -W 1 27.29.183.67 2025-09-04 15:20:27,311 - DEBUG - PING 27.29.183.67 (27.29.183.67): 56 data bytes 64 bytes from 27.29.183.67: seq=0 ttl=63 time=6.548 ms 64 bytes from 27.29.183.67: seq=1 ttl=63 time=2.323 ms 64 bytes from 27.29.183.67: seq=2 ttl=63 time=0.958 ms --- 27.29.183.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.958/3.276/6.548 ms 2025-09-04 15:20:27,311 - INFO - Ping to IP 27.29.183.67 from VM ctest-TestBasicPolicy-60511530-81290470 passed 2025-09-04 15:20:27,500 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a28c464b-eb98-442f-a5ca-c1a079fa0b32", "href": "http://10.0.0.22:8082/network-policy/a28c464b-eb98-442f-a5ca-c1a079fa0b32"}} 2025-09-04 15:20:27,501 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-04 15:20:27,501 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 27.29.183.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-09-04 15:20:27,501 - DEBUG - ping -s 56 -c 3 -W 1 27.29.183.67 2025-09-04 15:20:30,733 - DEBUG - PING 27.29.183.67 (27.29.183.67): 56 data bytes --- 27.29.183.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-09-04 15:20:30,734 - WARNING - Ping to IP 27.29.183.67 from VM ctest-TestBasicPolicy-60511530-81290470 failed 2025-09-04 15:20:30,734 - INFO - Deleting VM ctest-TestBasicPolicy-60511530-33573378 2025-09-04 15:20:30,811 - INFO - Deleting VM ctest-TestBasicPolicy-60511530-81290470 2025-09-04 15:20:31,225 - INFO - Deleted policy ctest-policy-allow-all-58956687 2025-09-04 15:20:31,225 - INFO - Deleting VN ctest-vn-44219109 2025-09-04 15:20:31,267 - DEBUG - VN cab55c50-43ba-40ba-89ca-a1663d6d0bb2 still in use: Unable to complete operation on network cab55c50-43ba-40ba-89ca-a1663d6d0bb2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0e3f8647-6d3b-45b7-b3cf-503f1a91ff14'] 2025-09-04 15:20:31,267 - WARNING - Deleting VN ctest-vn-44219109 failed..Will retry 2025-09-04 15:20:33,388 - DEBUG - Response for deleting network () 2025-09-04 15:20:33,388 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/678ed1a2-bc26-4cb0-8317-b66e78696f94 2025-09-04 15:20:33,395 - DEBUG - Response Code: 404 2025-09-04 15:20:33,395 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-04 15:20:33,400 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9fff6ffd-9a96-4ff4-a10a-772bb83e8044 2025-09-04 15:20:33,455 - DEBUG - Requesting: http://10.0.0.22:8082/project/0d6c1b77-a9c1-43ae-b56e-63fb05021219 2025-09-04 15:20:33,528 - INFO - Validated that VN ctest-vn-44219109 is not found in API Server 2025-09-04 15:20:33,538 - DEBUG - VN ctest-vn-44219109 is not present in Agent 10.0.0.22 2025-09-04 15:20:33,538 - INFO - Validated that VN ctest-vn-44219109 is not in any agent 2025-09-04 15:20:33,553 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-44219109 info 2025-09-04 15:20:33,553 - INFO - Deleting VN ctest-vn-01939498 2025-09-04 15:20:33,659 - DEBUG - Response for deleting network () 2025-09-04 15:20:33,660 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6be2987-8025-4bd8-b100-b19363413f7e 2025-09-04 15:20:33,665 - DEBUG - Response Code: 404 2025-09-04 15:20:33,665 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-04 15:20:33,671 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9fff6ffd-9a96-4ff4-a10a-772bb83e8044 2025-09-04 15:20:33,722 - DEBUG - Requesting: http://10.0.0.22:8082/project/0d6c1b77-a9c1-43ae-b56e-63fb05021219 2025-09-04 15:20:33,791 - INFO - Validated that VN ctest-vn-01939498 is not found in API Server 2025-09-04 15:20:33,801 - DEBUG - VN ctest-vn-01939498 is not present in Agent 10.0.0.22 2025-09-04 15:20:33,801 - INFO - Validated that VN ctest-vn-01939498 is not in any agent 2025-09-04 15:20:33,815 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-01939498 info 2025-09-04 15:20:34,074 - DEBUG - No XMPP flaps were noticed during the test 2025-09-04 15:20:34,074 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-09-04 15:20:34,074 - INFO - -------------------------------------------------------------------------------- 2025-09-04 15:20:35,311 - INFO - Deleted project: ctest-TestBasicPolicy-60511530, ID : 0d6c1b77-a9c1-43ae-b56e-63fb05021219