2026-01-26 02:39:42,954 - INFO - Domain Default found not creating 2026-01-26 02:39:43,161 - INFO - Project ctest-TestBasicPolicy-27825986 not found, creating it 2026-01-26 02:39:43,771 - INFO - Created Project:ctest-TestBasicPolicy-27825986, ID : 1522e82d-1616-4f6b-a0a1-c6c99ad95698 2026-01-26 02:39:45,218 - INFO - ================================================================================ 2026-01-26 02:39:45,218 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-01-26 02:39:45,218 - 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 2026-01-26 02:39:46,491 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.129': '0', '10.20.0.25': '0'}, '10.0.0.130': {'10.20.0.25': '0', '10.20.0.129': '0'}} with 2026-01-26 02:39:46,491 - INFO - Initial checks done. Running the testcase now 2026-01-26 02:39:46,492 - INFO - 2026-01-26 02:39:47,170 - DEBUG - Response for create_network : {'network': {'id': '8cf5726a-c3e5-4472-8046-5ae862e64094', 'name': 'ctest-vn-17637473', 'tenant_id': '1522e82d16164f6ba0a1c6c99ad95698', 'project_id': '1522e82d16164f6ba0a1c6c99ad95698', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27825986', 'ctest-vn-17637473'], 'port_security_enabled': True, 'description': ''}} 2026-01-26 02:39:47,464 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f43df3c-700e-46a7-a40f-1ffb1cab5abb', 'name': '', 'tenant_id': '1522e82d16164f6ba0a1c6c99ad95698', 'network_id': '8cf5726a-c3e5-4472-8046-5ae862e64094', 'ip_version': 4, 'cidr': '135.155.23.128/26', 'allocation_pools': [{'start': '135.155.23.130', 'end': '135.155.23.190'}], 'gateway_ip': '135.155.23.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.155.23.130', 'tags': [], 'project_id': '1522e82d16164f6ba0a1c6c99ad95698'}} 2026-01-26 02:39:47,490 - INFO - Created VN ctest-vn-17637473 2026-01-26 02:39:47,500 - DEBUG - VN ctest-vn-17637473 UUID is 8cf5726a-c3e5-4472-8046-5ae862e64094 2026-01-26 02:39:47,852 - DEBUG - Response for create_network : {'network': {'id': '86671c9f-f89b-48fc-a638-5f36cf91ef2f', 'name': 'ctest-vn-07213305', 'tenant_id': '1522e82d16164f6ba0a1c6c99ad95698', 'project_id': '1522e82d16164f6ba0a1c6c99ad95698', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27825986', 'ctest-vn-07213305'], 'port_security_enabled': True, 'description': ''}} 2026-01-26 02:39:48,059 - DEBUG - Response for create_subnet : {'subnet': {'id': '98b93f9a-2b54-46dc-8dcf-08936e60ea44', 'name': '', 'tenant_id': '1522e82d16164f6ba0a1c6c99ad95698', 'network_id': '86671c9f-f89b-48fc-a638-5f36cf91ef2f', 'ip_version': 4, 'cidr': '40.146.83.0/26', 'allocation_pools': [{'start': '40.146.83.2', 'end': '40.146.83.62'}], 'gateway_ip': '40.146.83.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.146.83.2', 'tags': [], 'project_id': '1522e82d16164f6ba0a1c6c99ad95698'}} 2026-01-26 02:39:48,077 - INFO - Created VN ctest-vn-07213305 2026-01-26 02:39:48,088 - DEBUG - VN ctest-vn-07213305 UUID is 86671c9f-f89b-48fc-a638-5f36cf91ef2f 2026-01-26 02:39:48,200 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473, 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-27825986:ctest-vn-07213305, 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] 2026-01-26 02:39:48,528 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8cf5726a-c3e5-4472-8046-5ae862e64094', 'name': 'ctest-vn-17637473', 'tenant_id': '1522e82d16164f6ba0a1c6c99ad95698', 'project_id': '1522e82d16164f6ba0a1c6c99ad95698', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7f43df3c-700e-46a7-a40f-1ffb1cab5abb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27825986', 'ctest-vn-17637473'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27825986', 'ctest-policy-allow-all-53847336']], 'subnet_ipam': [{'subnet_cidr': '135.155.23.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-26 02:39:48,727 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86671c9f-f89b-48fc-a638-5f36cf91ef2f', 'name': 'ctest-vn-07213305', 'tenant_id': '1522e82d16164f6ba0a1c6c99ad95698', 'project_id': '1522e82d16164f6ba0a1c6c99ad95698', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['98b93f9a-2b54-46dc-8dcf-08936e60ea44'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27825986', 'ctest-vn-07213305'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27825986', 'ctest-policy-allow-all-53847336']], 'subnet_ipam': [{'subnet_cidr': '40.146.83.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-26 02:39:48,824 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-26 02:39:49,135 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-26 02:39:49,177 - DEBUG - Requesting: http://10.0.0.141:8082/domain/08a144b7-f725-46be-ae4d-cb483f66bd80 2026-01-26 02:39:49,193 - DEBUG - Requesting: http://10.0.0.141:8082/project/1522e82d-1616-4f6b-a0a1-c6c99ad95698 2026-01-26 02:39:49,305 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/8cf5726a-c3e5-4472-8046-5ae862e64094 2026-01-26 02:39:49,326 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/8cf5726a-c3e5-4472-8046-5ae862e64094 2026-01-26 02:39:49,337 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dc42806e-94d1-4466-b849-aa52b839097d 2026-01-26 02:39:49,346 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dc42806e-94d1-4466-b849-aa52b839097d 2026-01-26 02:39:49,352 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/fbc8595f-188a-467c-962d-e781c86277d8 2026-01-26 02:39:49,359 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 02:39:49,359 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/8cf5726a-c3e5-4472-8046-5ae862e64094 2026-01-26 02:39:49,368 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dc42806e-94d1-4466-b849-aa52b839097d 2026-01-26 02:39:49,386 - INFO - Verified VN network id 15 for VN 8cf5726a-c3e5-4472-8046-5ae862e64094 2026-01-26 02:39:49,386 - INFO - Verifications in API Server for VN ctest-vn-17637473 passed 2026-01-26 02:39:49,387 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/8cf5726a-c3e5-4472-8046-5ae862e64094 2026-01-26 02:39:49,398 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dc42806e-94d1-4466-b849-aa52b839097d 2026-01-26 02:39:49,407 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dc42806e-94d1-4466-b849-aa52b839097d 2026-01-26 02:39:49,413 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/fbc8595f-188a-467c-962d-e781c86277d8 2026-01-26 02:39:49,426 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27825986', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10157150337482703986', 'uuid-lslong': '9243175239362691220'}, 'enable': 'true', 'created': '2026-01-26T02:39:47', 'last-modified': '2026-01-26T02:39:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.936875'} 2026-01-26 02:39:49,432 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 02:39:49,438 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27825986', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10157150337482703986', 'uuid-lslong': '9243175239362691220'}, 'enable': 'true', 'created': '2026-01-26T02:39:47', 'last-modified': '2026-01-26T02:39:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.946158'} 2026-01-26 02:39:49,444 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 02:39:49,450 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27825986', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10157150337482703986', 'uuid-lslong': '9243175239362691220'}, 'enable': 'true', 'created': '2026-01-26T02:39:47', 'last-modified': '2026-01-26T02:39:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.965555'} 2026-01-26 02:39:49,456 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 02:39:49,456 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17637473 passed 2026-01-26 02:39:49,456 - DEBUG - ====Verifying policy data for ctest-vn-17637473 in API_Server ====== 2026-01-26 02:39:49,456 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-26 02:39:49,463 - DEBUG - Requesting: http://10.0.0.141:8082/domain/08a144b7-f725-46be-ae4d-cb483f66bd80 2026-01-26 02:39:49,473 - DEBUG - Requesting: http://10.0.0.141:8082/project/1522e82d-1616-4f6b-a0a1-c6c99ad95698 2026-01-26 02:39:49,564 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/8cf5726a-c3e5-4472-8046-5ae862e64094 2026-01-26 02:39:49,575 - DEBUG - ==>Verifying data for policy with id: e8b94ec2-9cce-4e3d-ab85-27c7e5d5103a, fqn: ['default-domain', 'ctest-TestBasicPolicy-27825986', 'ctest-policy-allow-all-53847336'] 2026-01-26 02:39:49,575 - INFO - VN ctest-vn-17637473 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-26 02:39:49,575 - DEBUG - Verifying the vn in opserver 2026-01-26 02:39:49,575 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473 virtual network link through opserver 10.0.0.141 2026-01-26 02:39:49,575 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-26 02:39:49,868 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-26 02:39:49,938 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473?flat'} 2026-01-26 02:39:49,938 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473 virtual network link through opserver 10.0.0.38 2026-01-26 02:39:49,938 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-26 02:39:50,259 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-26 02:39:50,337 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473?flat'} 2026-01-26 02:39:50,337 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473 virtual network link through opserver 10.0.0.240 2026-01-26 02:39:50,337 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-01-26 02:39:50,645 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-01-26 02:39:50,708 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473?flat'} 2026-01-26 02:39:50,708 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473 is found in opserver 2026-01-26 02:39:50,729 - DEBUG - Do not have enough data to verify VN in agent 2026-01-26 02:39:50,740 - DEBUG - VRF ids for VN ctest-vn-17637473: {} 2026-01-26 02:39:50,740 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-26 02:39:50,746 - DEBUG - Requesting: http://10.0.0.141:8082/domain/08a144b7-f725-46be-ae4d-cb483f66bd80 2026-01-26 02:39:50,757 - DEBUG - Requesting: http://10.0.0.141:8082/project/1522e82d-1616-4f6b-a0a1-c6c99ad95698 2026-01-26 02:39:50,851 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/86671c9f-f89b-48fc-a638-5f36cf91ef2f 2026-01-26 02:39:50,863 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/86671c9f-f89b-48fc-a638-5f36cf91ef2f 2026-01-26 02:39:50,872 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c6897784-c392-43db-88d7-d69860d7ef50 2026-01-26 02:39:50,882 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c6897784-c392-43db-88d7-d69860d7ef50 2026-01-26 02:39:50,891 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/9bf7c8f5-c46a-47b1-9e3f-7ec32c3075e7 2026-01-26 02:39:50,900 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-26 02:39:50,900 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/86671c9f-f89b-48fc-a638-5f36cf91ef2f 2026-01-26 02:39:50,910 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c6897784-c392-43db-88d7-d69860d7ef50 2026-01-26 02:39:50,929 - INFO - Verified VN network id 16 for VN 86671c9f-f89b-48fc-a638-5f36cf91ef2f 2026-01-26 02:39:50,929 - INFO - Verifications in API Server for VN ctest-vn-07213305 passed 2026-01-26 02:39:50,929 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/86671c9f-f89b-48fc-a638-5f36cf91ef2f 2026-01-26 02:39:50,943 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c6897784-c392-43db-88d7-d69860d7ef50 2026-01-26 02:39:50,952 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c6897784-c392-43db-88d7-d69860d7ef50 2026-01-26 02:39:50,960 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/9bf7c8f5-c46a-47b1-9e3f-7ec32c3075e7 2026-01-26 02:39:50,975 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-07213305', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27825986', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9684740997079845116', 'uuid-lslong': '11977427898007154479'}, 'enable': 'true', 'created': '2026-01-26T02:39:47', 'last-modified': '2026-01-26T02:39:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.289327'} 2026-01-26 02:39:50,981 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-26 02:39:50,988 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-07213305', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27825986', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9684740997079845116', 'uuid-lslong': '11977427898007154479'}, 'enable': 'true', 'created': '2026-01-26T02:39:47', 'last-modified': '2026-01-26T02:39:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.295859'} 2026-01-26 02:39:50,995 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-26 02:39:51,000 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-07213305', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27825986', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9684740997079845116', 'uuid-lslong': '11977427898007154479'}, 'enable': 'true', 'created': '2026-01-26T02:39:47', 'last-modified': '2026-01-26T02:39:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.310186'} 2026-01-26 02:39:51,007 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-01-26 02:39:51,007 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07213305 passed 2026-01-26 02:39:51,007 - DEBUG - ====Verifying policy data for ctest-vn-07213305 in API_Server ====== 2026-01-26 02:39:51,007 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-26 02:39:51,014 - DEBUG - Requesting: http://10.0.0.141:8082/domain/08a144b7-f725-46be-ae4d-cb483f66bd80 2026-01-26 02:39:51,027 - DEBUG - Requesting: http://10.0.0.141:8082/project/1522e82d-1616-4f6b-a0a1-c6c99ad95698 2026-01-26 02:39:51,125 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/86671c9f-f89b-48fc-a638-5f36cf91ef2f 2026-01-26 02:39:51,140 - DEBUG - ==>Verifying data for policy with id: e8b94ec2-9cce-4e3d-ab85-27c7e5d5103a, fqn: ['default-domain', 'ctest-TestBasicPolicy-27825986', 'ctest-policy-allow-all-53847336'] 2026-01-26 02:39:51,140 - INFO - VN ctest-vn-07213305 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-26 02:39:51,140 - DEBUG - Verifying the vn in opserver 2026-01-26 02:39:51,140 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-07213305 virtual network link through opserver 10.0.0.141 2026-01-26 02:39:51,140 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-26 02:39:51,209 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-07213305', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-07213305?flat'} 2026-01-26 02:39:51,209 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-07213305 virtual network link through opserver 10.0.0.38 2026-01-26 02:39:51,209 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-26 02:39:51,280 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-07213305', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-07213305?flat'} 2026-01-26 02:39:51,280 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-07213305 virtual network link through opserver 10.0.0.240 2026-01-26 02:39:51,280 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-01-26 02:39:51,345 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-07213305', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-07213305?flat'} 2026-01-26 02:39:51,345 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-07213305 is found in opserver 2026-01-26 02:39:51,364 - DEBUG - Do not have enough data to verify VN in agent 2026-01-26 02:39:51,373 - DEBUG - VRF ids for VN ctest-vn-07213305: {} 2026-01-26 02:39:51,440 - DEBUG - Services list from nova: [, , , ] 2026-01-26 02:39:52,760 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5076-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5076-1) 2026-01-26 02:39:54,091 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5076-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5076-2) 2026-01-26 02:39:54,092 - INFO - Waiting for VM ctest-TestBasicPolicy-27825986-66845091 to be up.. 2026-01-26 02:39:54,191 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-01-26 02:39:59,289 - DEBUG - VM is in ACTIVE state now 2026-01-26 02:39:59,289 - INFO - VM name : ctest-TestBasicPolicy-27825986-66845091 2026-01-26 02:39:59,368 - DEBUG - VM ctest-TestBasicPolicy-27825986-66845091 ID is 5c996691-c22b-4a43-b542-f4b1aaa08247 2026-01-26 02:39:59,390 - DEBUG - VM ctest-TestBasicPolicy-27825986-66845091 launched on Node an-jenkins-deploy-platform-ansible-os-5076-1 2026-01-26 02:39:59,470 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-machine/5c996691-c22b-4a43-b542-f4b1aaa08247 2026-01-26 02:39:59,765 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-machine/5c996691-c22b-4a43-b542-f4b1aaa08247 2026-01-26 02:39:59,798 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-machine-interface/87d27a59-bdd8-4141-bdf6-2f4c98ba9bac 2026-01-26 02:40:03,000 - 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 1031ms') 2026-01-26 02:40:03,000 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27825986-66845091 failed! 2026-01-26 02:40:03,014 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473 is 135.155.23.129 and allocation pool is NOT set 2026-01-26 02:40:07,084 - 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 1009ms') 2026-01-26 02:40:07,084 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27825986-66845091 failed! 2026-01-26 02:40:07,100 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473 is 135.155.23.129 and allocation pool is NOT set 2026-01-26 02:40:11,184 - 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 1022ms') 2026-01-26 02:40:11,184 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27825986-66845091 failed! 2026-01-26 02:40:11,199 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473 is 135.155.23.129 and allocation pool is NOT set 2026-01-26 02:40:15,276 - 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 1019ms') 2026-01-26 02:40:15,276 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27825986-66845091 failed! 2026-01-26 02:40:15,293 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473 is 135.155.23.129 and allocation pool is NOT set 2026-01-26 02:40:19,372 - 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') 2026-01-26 02:40:19,372 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27825986-66845091 failed! 2026-01-26 02:40:19,387 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473 is 135.155.23.129 and allocation pool is NOT set 2026-01-26 02:40:23,470 - 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 1024ms') 2026-01-26 02:40:23,470 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27825986-66845091 failed! 2026-01-26 02:40:23,491 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473 is 135.155.23.129 and allocation pool is NOT set 2026-01-26 02:40:27,562 - 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 1015ms') 2026-01-26 02:40:27,562 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27825986-66845091 failed! 2026-01-26 02:40:27,577 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473 is 135.155.23.129 and allocation pool is NOT set 2026-01-26 02:40:31,658 - 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 1022ms') 2026-01-26 02:40:31,658 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27825986-66845091 failed! 2026-01-26 02:40:31,673 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-27825986:ctest-vn-17637473 is 135.155.23.129 and allocation pool is NOT set 2026-01-26 02:40:33,736 - 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=6.71 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.31 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 = 2.312/4.509/6.707/2.197 ms') 2026-01-26 02:40:33,736 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27825986-66845091 passed 2026-01-26 02:40:33,805 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-26 02:40:33,805 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27825986-66845091, IP 135.155.23.131, Port 22 2026-01-26 02:40:33,874 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-01-26 02:40:33,955 - DEBUG - VM ctest-TestBasicPolicy-27825986-66845091 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-26 02:40:38,955 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-26 02:40:38,955 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27825986-66845091, IP 135.155.23.131, Port 22 2026-01-26 02:40:39,021 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-01-26 02:40:39,100 - DEBUG - VM ctest-TestBasicPolicy-27825986-66845091 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-26 02:40:44,101 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-26 02:40:44,101 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27825986-66845091, IP 135.155.23.131, Port 22 2026-01-26 02:40:44,171 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-01-26 02:40:44,263 - DEBUG - VM ctest-TestBasicPolicy-27825986-66845091 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-26 02:40:49,263 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-26 02:40:49,264 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27825986-66845091, IP 135.155.23.131, Port 22 2026-01-26 02:40:49,319 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-01-26 02:40:49,399 - DEBUG - VM ctest-TestBasicPolicy-27825986-66845091 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-26 02:40:54,400 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-26 02:40:54,401 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27825986-66845091, IP 135.155.23.131, Port 22 2026-01-26 02:40:54,569 - DEBUG - VM ctest-TestBasicPolicy-27825986-66845091 is ready for SSH connections 2026-01-26 02:40:54,570 - INFO - Waiting for VM ctest-TestBasicPolicy-27825986-74746247 to be up.. 2026-01-26 02:40:54,676 - DEBUG - VM is in ACTIVE state now 2026-01-26 02:40:54,676 - INFO - VM name : ctest-TestBasicPolicy-27825986-74746247 2026-01-26 02:40:54,756 - DEBUG - VM ctest-TestBasicPolicy-27825986-74746247 ID is a2a59a46-5ace-4581-b0fd-fab3814b255e 2026-01-26 02:40:54,757 - DEBUG - VM ctest-TestBasicPolicy-27825986-74746247 launched on Node an-jenkins-deploy-platform-ansible-os-5076-2 2026-01-26 02:40:54,836 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-machine/a2a59a46-5ace-4581-b0fd-fab3814b255e 2026-01-26 02:40:54,847 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-machine-interface/1c026b56-1c8e-43e3-a882-0278fdfea263 2026-01-26 02:40:56,014 - 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=9.46 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.50 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 = 2.502/5.979/9.456/3.477 ms') 2026-01-26 02:40:56,014 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-27825986-74746247 passed 2026-01-26 02:40:56,081 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-26 02:40:56,081 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-27825986-74746247, IP 40.146.83.3, Port 22 2026-01-26 02:40:56,248 - DEBUG - VM ctest-TestBasicPolicy-27825986-74746247 is ready for SSH connections 2026-01-26 02:40:56,248 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-26 02:40:56,248 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.146.83.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2026-01-26 02:40:56,249 - DEBUG - ping -s 56 -c 3 -W 1 40.146.83.3 2026-01-26 02:41:17,739 - DEBUG - PING 40.146.83.3 (40.146.83.3) 56(84) bytes of data. 64 bytes from 40.146.83.3: icmp_req=1 ttl=63 time=7.53 ms 64 bytes from 40.146.83.3: icmp_req=2 ttl=63 time=1.48 ms 64 bytes from 40.146.83.3: icmp_req=3 ttl=63 time=1.25 ms --- 40.146.83.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.254/3.422/7.531/2.906 ms 2026-01-26 02:41:17,739 - INFO - Ping to IP 40.146.83.3 from VM ctest-TestBasicPolicy-27825986-66845091 passed 2026-01-26 02:41:17,952 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e8b94ec2-9cce-4e3d-ab85-27c7e5d5103a", "href": "http://10.0.0.240:8082/network-policy/e8b94ec2-9cce-4e3d-ab85-27c7e5d5103a"}} 2026-01-26 02:41:17,952 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-26 02:41:17,952 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.146.83.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2026-01-26 02:41:17,952 - DEBUG - ping -s 56 -c 3 -W 1 40.146.83.3 2026-01-26 02:41:21,804 - DEBUG - PING 40.146.83.3 (40.146.83.3) 56(84) bytes of data. --- 40.146.83.3 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2017ms 2026-01-26 02:41:21,804 - WARNING - Ping to IP 40.146.83.3 from VM ctest-TestBasicPolicy-27825986-66845091 failed 2026-01-26 02:41:21,804 - INFO - Deleting VM ctest-TestBasicPolicy-27825986-74746247 2026-01-26 02:41:21,882 - INFO - Deleting VM ctest-TestBasicPolicy-27825986-66845091 2026-01-26 02:41:22,369 - INFO - Deleted policy ctest-policy-allow-all-53847336 2026-01-26 02:41:22,370 - INFO - Deleting VN ctest-vn-07213305 2026-01-26 02:41:22,411 - DEBUG - VN 86671c9f-f89b-48fc-a638-5f36cf91ef2f still in use: Unable to complete operation on network 86671c9f-f89b-48fc-a638-5f36cf91ef2f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7ec772a8-bbc3-4a4e-afea-496047a79950'] 2026-01-26 02:41:22,411 - WARNING - Deleting VN ctest-vn-07213305 failed..Will retry 2026-01-26 02:41:24,552 - DEBUG - Response for deleting network () 2026-01-26 02:41:24,552 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c6897784-c392-43db-88d7-d69860d7ef50 2026-01-26 02:41:24,559 - DEBUG - Response Code: 404 2026-01-26 02:41:24,559 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-26 02:41:24,569 - DEBUG - Requesting: http://10.0.0.141:8082/domain/08a144b7-f725-46be-ae4d-cb483f66bd80 2026-01-26 02:41:24,589 - DEBUG - Requesting: http://10.0.0.141:8082/project/1522e82d-1616-4f6b-a0a1-c6c99ad95698 2026-01-26 02:41:24,689 - INFO - Validated that VN ctest-vn-07213305 is not found in API Server 2026-01-26 02:41:24,704 - DEBUG - VN ctest-vn-07213305 is not present in Agent 10.0.0.65 2026-01-26 02:41:24,720 - DEBUG - VN ctest-vn-07213305 is not present in Agent 10.0.0.130 2026-01-26 02:41:24,720 - INFO - Validated that VN ctest-vn-07213305 is not in any agent 2026-01-26 02:41:24,756 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-07213305 info 2026-01-26 02:41:24,756 - INFO - Deleting VN ctest-vn-17637473 2026-01-26 02:41:24,930 - DEBUG - Response for deleting network () 2026-01-26 02:41:24,930 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dc42806e-94d1-4466-b849-aa52b839097d 2026-01-26 02:41:24,936 - DEBUG - Response Code: 404 2026-01-26 02:41:24,936 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-26 02:41:24,942 - DEBUG - Requesting: http://10.0.0.141:8082/domain/08a144b7-f725-46be-ae4d-cb483f66bd80 2026-01-26 02:41:24,959 - DEBUG - Requesting: http://10.0.0.141:8082/project/1522e82d-1616-4f6b-a0a1-c6c99ad95698 2026-01-26 02:41:25,053 - INFO - Validated that VN ctest-vn-17637473 is not found in API Server 2026-01-26 02:41:25,063 - DEBUG - VN ctest-vn-17637473 is not present in Agent 10.0.0.65 2026-01-26 02:41:25,074 - DEBUG - VN ctest-vn-17637473 is not present in Agent 10.0.0.130 2026-01-26 02:41:25,074 - INFO - Validated that VN ctest-vn-17637473 is not in any agent 2026-01-26 02:41:25,109 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-17637473 info 2026-01-26 02:41:26,384 - DEBUG - No XMPP flaps were noticed during the test
2026-01-26 02:41:26,384 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:41]
2026-01-26 02:41:26,385 - INFO - -------------------------------------------------------------------------------- 2026-01-26 02:41:27,103 - INFO - Deleted project: ctest-TestBasicPolicy-27825986, ID : 1522e82d-1616-4f6b-a0a1-c6c99ad95698