2025-10-27 11:39:11,114 - INFO - Domain Default found not creating
2025-10-27 11:39:11,284 - INFO - Project ctest-TestBasicPolicy-93159185 not found, creating it
2025-10-27 11:39:11,758 - INFO - Created Project:ctest-TestBasicPolicy-93159185, ID : c0caec70-a71b-443a-b985-aa9681c8fc93
2025-10-27 11:39:13,379 - INFO - ================================================================================
2025-10-27 11:39:13,379 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 11:39:13,379 - 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-10-27 11:39:13,642 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-10-27 11:39:13,642 - INFO - Initial checks done. Running the testcase now
2025-10-27 11:39:13,642 - INFO -
2025-10-27 11:39:14,235 - DEBUG - Response for create_network : {'network': {'id': '917e8622-381c-442a-87e9-e01fd3ed592c', 'name': 'ctest-vn-60122711', 'tenant_id': 'c0caec70a71b443ab985aa9681c8fc93', 'project_id': 'c0caec70a71b443ab985aa9681c8fc93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93159185', 'ctest-vn-60122711'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 11:39:14,478 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cfc7eb29-aac5-41b9-9842-2a9edcb98af0', 'name': '', 'tenant_id': 'c0caec70a71b443ab985aa9681c8fc93', 'network_id': '917e8622-381c-442a-87e9-e01fd3ed592c', 'ip_version': 4, 'cidr': '221.188.47.0/26', 'allocation_pools': [{'start': '221.188.47.2', 'end': '221.188.47.62'}], 'gateway_ip': '221.188.47.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.188.47.2', 'tags': [], 'project_id': 'c0caec70a71b443ab985aa9681c8fc93'}}
2025-10-27 11:39:14,499 - INFO - Created VN ctest-vn-60122711
2025-10-27 11:39:14,552 - DEBUG - VN ctest-vn-60122711 UUID is 917e8622-381c-442a-87e9-e01fd3ed592c
2025-10-27 11:39:14,886 - DEBUG - Response for create_network : {'network': {'id': '5c3a470d-b32c-4b01-bba2-5d8c549e7f1b', 'name': 'ctest-vn-05625019', 'tenant_id': 'c0caec70a71b443ab985aa9681c8fc93', 'project_id': 'c0caec70a71b443ab985aa9681c8fc93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93159185', 'ctest-vn-05625019'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 11:39:15,037 - DEBUG - Response for create_subnet : {'subnet': {'id': '276d3b80-3151-4fc4-aec0-8e87c6d225d8', 'name': '', 'tenant_id': 'c0caec70a71b443ab985aa9681c8fc93', 'network_id': '5c3a470d-b32c-4b01-bba2-5d8c549e7f1b', 'ip_version': 4, 'cidr': '108.155.0.64/26', 'allocation_pools': [{'start': '108.155.0.66', 'end': '108.155.0.126'}], 'gateway_ip': '108.155.0.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.155.0.66', 'tags': [], 'project_id': 'c0caec70a71b443ab985aa9681c8fc93'}}
2025-10-27 11:39:15,056 - INFO - Created VN ctest-vn-05625019
2025-10-27 11:39:15,112 - DEBUG - VN ctest-vn-05625019 UUID is 5c3a470d-b32c-4b01-bba2-5d8c549e7f1b
2025-10-27 11:39:15,229 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93159185:ctest-vn-60122711, 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-93159185:ctest-vn-05625019, 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-10-27 11:39:15,519 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '917e8622-381c-442a-87e9-e01fd3ed592c', 'name': 'ctest-vn-60122711', 'tenant_id': 'c0caec70a71b443ab985aa9681c8fc93', 'project_id': 'c0caec70a71b443ab985aa9681c8fc93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cfc7eb29-aac5-41b9-9842-2a9edcb98af0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93159185', 'ctest-vn-60122711'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93159185', 'ctest-policy-allow-all-02537654']], 'subnet_ipam': [{'subnet_cidr': '221.188.47.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 11:39:15,798 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c3a470d-b32c-4b01-bba2-5d8c549e7f1b', 'name': 'ctest-vn-05625019', 'tenant_id': 'c0caec70a71b443ab985aa9681c8fc93', 'project_id': 'c0caec70a71b443ab985aa9681c8fc93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['276d3b80-3151-4fc4-aec0-8e87c6d225d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93159185', 'ctest-vn-05625019'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93159185', 'ctest-policy-allow-all-02537654']], 'subnet_ipam': [{'subnet_cidr': '108.155.0.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 11:39:15,944 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-27 11:39:16,285 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-27 11:39:16,315 - DEBUG - Requesting: http://10.0.0.22:8082/domain/647e18db-9db6-4840-9223-99d43691529f
2025-10-27 11:39:16,329 - DEBUG - Requesting: http://10.0.0.22:8082/project/c0caec70-a71b-443a-b985-aa9681c8fc93
2025-10-27 11:39:16,401 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/917e8622-381c-442a-87e9-e01fd3ed592c
2025-10-27 11:39:16,414 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/917e8622-381c-442a-87e9-e01fd3ed592c
2025-10-27 11:39:16,425 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a268588-cabc-4b9d-aa6f-a1c71b44f384
2025-10-27 11:39:16,434 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a268588-cabc-4b9d-aa6f-a1c71b44f384
2025-10-27 11:39:16,441 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/8713bbca-4f7c-45e8-a532-4d42d627d7d8
2025-10-27 11:39:16,448 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 11:39:16,448 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/917e8622-381c-442a-87e9-e01fd3ed592c
2025-10-27 11:39:16,457 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a268588-cabc-4b9d-aa6f-a1c71b44f384
2025-10-27 11:39:16,472 - INFO - Verified VN network id 11 for VN 917e8622-381c-442a-87e9-e01fd3ed592c
2025-10-27 11:39:16,472 - INFO - Verifications in API Server for VN ctest-vn-60122711 passed
2025-10-27 11:39:16,472 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/917e8622-381c-442a-87e9-e01fd3ed592c
2025-10-27 11:39:16,481 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a268588-cabc-4b9d-aa6f-a1c71b44f384
2025-10-27 11:39:16,489 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a268588-cabc-4b9d-aa6f-a1c71b44f384
2025-10-27 11:39:16,498 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/8713bbca-4f7c-45e8-a532-4d42d627d7d8
2025-10-27 11:39:16,511 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93159185:ctest-vn-60122711', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93159185', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10483964464093479978', 'uuid-lslong': '9793605291998009644'}, 'enable': 'true', 'created': '2025-10-27T11:39:14', 'last-modified': '2025-10-27T11:39:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014951'}
2025-10-27 11:39:16,517 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 11:39:16,518 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60122711 passed
2025-10-27 11:39:16,518 - DEBUG - ====Verifying policy data for ctest-vn-60122711 in API_Server ======
2025-10-27 11:39:16,518 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-27 11:39:16,524 - DEBUG - Requesting: http://10.0.0.22:8082/domain/647e18db-9db6-4840-9223-99d43691529f
2025-10-27 11:39:16,536 - DEBUG - Requesting: http://10.0.0.22:8082/project/c0caec70-a71b-443a-b985-aa9681c8fc93
2025-10-27 11:39:16,607 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/917e8622-381c-442a-87e9-e01fd3ed592c
2025-10-27 11:39:16,619 - DEBUG - ==>Verifying data for policy with id: 63b6a8ef-00f6-4209-ae5f-b026ce266473, fqn: ['default-domain', 'ctest-TestBasicPolicy-93159185', 'ctest-policy-allow-all-02537654']
2025-10-27 11:39:16,619 - INFO - VN ctest-vn-60122711 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 11:39:16,619 - DEBUG - Verifying the vn in opserver
2025-10-27 11:39:16,619 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93159185:ctest-vn-60122711 virtual network link through opserver 10.0.0.22
2025-10-27 11:39:16,619 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-27 11:39:16,962 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-27 11:39:17,022 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93159185:ctest-vn-60122711', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93159185:ctest-vn-60122711?flat'}
2025-10-27 11:39:17,022 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93159185:ctest-vn-60122711 is found in opserver
2025-10-27 11:39:17,033 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 11:39:17,038 - DEBUG - VRF ids for VN ctest-vn-60122711: {}
2025-10-27 11:39:17,038 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-27 11:39:17,043 - DEBUG - Requesting: http://10.0.0.22:8082/domain/647e18db-9db6-4840-9223-99d43691529f
2025-10-27 11:39:17,055 - DEBUG - Requesting: http://10.0.0.22:8082/project/c0caec70-a71b-443a-b985-aa9681c8fc93
2025-10-27 11:39:17,126 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5c3a470d-b32c-4b01-bba2-5d8c549e7f1b
2025-10-27 11:39:17,137 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5c3a470d-b32c-4b01-bba2-5d8c549e7f1b
2025-10-27 11:39:17,146 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/208e0a36-1f89-4c84-8e9b-dcfc4e78f967
2025-10-27 11:39:17,155 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/208e0a36-1f89-4c84-8e9b-dcfc4e78f967
2025-10-27 11:39:17,162 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fcc9359a-f4bd-4b68-aa07-f308eb731b5d
2025-10-27 11:39:17,170 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 11:39:17,170 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5c3a470d-b32c-4b01-bba2-5d8c549e7f1b
2025-10-27 11:39:17,180 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/208e0a36-1f89-4c84-8e9b-dcfc4e78f967
2025-10-27 11:39:17,195 - INFO - Verified VN network id 12 for VN 5c3a470d-b32c-4b01-bba2-5d8c549e7f1b
2025-10-27 11:39:17,195 - INFO - Verifications in API Server for VN ctest-vn-05625019 passed
2025-10-27 11:39:17,195 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5c3a470d-b32c-4b01-bba2-5d8c549e7f1b
2025-10-27 11:39:17,204 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/208e0a36-1f89-4c84-8e9b-dcfc4e78f967
2025-10-27 11:39:17,211 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/208e0a36-1f89-4c84-8e9b-dcfc4e78f967
2025-10-27 11:39:17,218 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fcc9359a-f4bd-4b68-aa07-f308eb731b5d
2025-10-27 11:39:17,230 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93159185:ctest-vn-05625019', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93159185', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6645702324304759553', 'uuid-lslong': '13520471888616128283'}, 'enable': 'true', 'created': '2025-10-27T11:39:14', 'last-modified': '2025-10-27T11:39:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.505144'}
2025-10-27 11:39:17,236 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 11:39:17,236 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05625019 passed
2025-10-27 11:39:17,236 - DEBUG - ====Verifying policy data for ctest-vn-05625019 in API_Server ======
2025-10-27 11:39:17,237 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-27 11:39:17,242 - DEBUG - Requesting: http://10.0.0.22:8082/domain/647e18db-9db6-4840-9223-99d43691529f
2025-10-27 11:39:17,252 - DEBUG - Requesting: http://10.0.0.22:8082/project/c0caec70-a71b-443a-b985-aa9681c8fc93
2025-10-27 11:39:17,323 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5c3a470d-b32c-4b01-bba2-5d8c549e7f1b
2025-10-27 11:39:17,333 - DEBUG - ==>Verifying data for policy with id: 63b6a8ef-00f6-4209-ae5f-b026ce266473, fqn: ['default-domain', 'ctest-TestBasicPolicy-93159185', 'ctest-policy-allow-all-02537654']
2025-10-27 11:39:17,333 - INFO - VN ctest-vn-05625019 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 11:39:17,333 - DEBUG - Verifying the vn in opserver
2025-10-27 11:39:17,333 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93159185:ctest-vn-05625019 virtual network link through opserver 10.0.0.22
2025-10-27 11:39:17,333 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-27 11:39:17,344 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93159185:ctest-vn-05625019', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93159185:ctest-vn-05625019?flat'}
2025-10-27 11:39:17,344 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93159185:ctest-vn-05625019 is found in opserver
2025-10-27 11:39:17,354 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 11:39:17,359 - DEBUG - VRF ids for VN ctest-vn-05625019: {}
2025-10-27 11:39:17,417 - DEBUG - Services list from nova: [