2025-12-15 19:33:19,158 - INFO - Domain Default found not creating
2025-12-15 19:33:19,322 - INFO - Project ctest-TestBasicPolicy-80230143 not found, creating it
2025-12-15 19:33:19,770 - INFO - Created Project:ctest-TestBasicPolicy-80230143, ID : 9aa62771-8af9-4a69-b8ec-9ce69d5f3001
2025-12-15 19:33:21,241 - INFO - ================================================================================
2025-12-15 19:33:21,241 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-15 19:33:21,241 - 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-12-15 19:33:21,498 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-12-15 19:33:21,498 - INFO - Initial checks done. Running the testcase now
2025-12-15 19:33:21,498 - INFO -
2025-12-15 19:33:22,054 - DEBUG - Response for create_network : {'network': {'id': '5192ec9f-b71d-4140-b771-c86bfd322a0e', 'name': 'ctest-vn-20858311', 'tenant_id': '9aa627718af94a69b8ec9ce69d5f3001', 'project_id': '9aa627718af94a69b8ec9ce69d5f3001', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80230143', 'ctest-vn-20858311'], 'port_security_enabled': True, 'description': ''}}
2025-12-15 19:33:22,201 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec576bf8-7284-4663-86f1-fbfc96a91506', 'name': '', 'tenant_id': '9aa627718af94a69b8ec9ce69d5f3001', 'network_id': '5192ec9f-b71d-4140-b771-c86bfd322a0e', 'ip_version': 4, 'cidr': '2.18.171.0/26', 'allocation_pools': [{'start': '2.18.171.2', 'end': '2.18.171.62'}], 'gateway_ip': '2.18.171.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.18.171.2', 'tags': [], 'project_id': '9aa627718af94a69b8ec9ce69d5f3001'}}
2025-12-15 19:33:22,219 - INFO - Created VN ctest-vn-20858311
2025-12-15 19:33:22,272 - DEBUG - VN ctest-vn-20858311 UUID is 5192ec9f-b71d-4140-b771-c86bfd322a0e
2025-12-15 19:33:22,598 - DEBUG - Response for create_network : {'network': {'id': '261b54d9-fa35-47ae-9c2d-8b31f06cda84', 'name': 'ctest-vn-89081437', 'tenant_id': '9aa627718af94a69b8ec9ce69d5f3001', 'project_id': '9aa627718af94a69b8ec9ce69d5f3001', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80230143', 'ctest-vn-89081437'], 'port_security_enabled': True, 'description': ''}}
2025-12-15 19:33:22,800 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aacc24c7-45e1-4ce1-be05-a75d3d024d71', 'name': '', 'tenant_id': '9aa627718af94a69b8ec9ce69d5f3001', 'network_id': '261b54d9-fa35-47ae-9c2d-8b31f06cda84', 'ip_version': 4, 'cidr': '3.4.132.128/26', 'allocation_pools': [{'start': '3.4.132.130', 'end': '3.4.132.190'}], 'gateway_ip': '3.4.132.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.4.132.130', 'tags': [], 'project_id': '9aa627718af94a69b8ec9ce69d5f3001'}}
2025-12-15 19:33:22,816 - INFO - Created VN ctest-vn-89081437
2025-12-15 19:33:22,868 - DEBUG - VN ctest-vn-89081437 UUID is 261b54d9-fa35-47ae-9c2d-8b31f06cda84
2025-12-15 19:33:22,985 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80230143:ctest-vn-20858311, 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-80230143:ctest-vn-89081437, 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-12-15 19:33:23,275 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5192ec9f-b71d-4140-b771-c86bfd322a0e', 'name': 'ctest-vn-20858311', 'tenant_id': '9aa627718af94a69b8ec9ce69d5f3001', 'project_id': '9aa627718af94a69b8ec9ce69d5f3001', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ec576bf8-7284-4663-86f1-fbfc96a91506'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80230143', 'ctest-vn-20858311'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80230143', 'ctest-policy-allow-all-18799361']], 'subnet_ipam': [{'subnet_cidr': '2.18.171.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-15 19:33:23,539 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '261b54d9-fa35-47ae-9c2d-8b31f06cda84', 'name': 'ctest-vn-89081437', 'tenant_id': '9aa627718af94a69b8ec9ce69d5f3001', 'project_id': '9aa627718af94a69b8ec9ce69d5f3001', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aacc24c7-45e1-4ce1-be05-a75d3d024d71'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80230143', 'ctest-vn-89081437'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80230143', 'ctest-policy-allow-all-18799361']], 'subnet_ipam': [{'subnet_cidr': '3.4.132.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-15 19:33:23,684 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-15 19:33:23,986 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-15 19:33:24,023 - DEBUG - Requesting: http://10.0.0.50:8082/domain/471d9740-a187-401a-bf59-2a10d0c16302
2025-12-15 19:33:24,034 - DEBUG - Requesting: http://10.0.0.50:8082/project/9aa62771-8af9-4a69-b8ec-9ce69d5f3001
2025-12-15 19:33:24,105 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5192ec9f-b71d-4140-b771-c86bfd322a0e
2025-12-15 19:33:24,115 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5192ec9f-b71d-4140-b771-c86bfd322a0e
2025-12-15 19:33:24,123 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4d685275-4ed5-4cde-ae2c-913599e6497f
2025-12-15 19:33:24,129 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4d685275-4ed5-4cde-ae2c-913599e6497f
2025-12-15 19:33:24,135 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e3451f36-b8de-4fb7-80be-cee8704d4d64
2025-12-15 19:33:24,141 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-15 19:33:24,141 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5192ec9f-b71d-4140-b771-c86bfd322a0e
2025-12-15 19:33:24,149 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4d685275-4ed5-4cde-ae2c-913599e6497f
2025-12-15 19:33:24,163 - INFO - Verified VN network id 12 for VN 5192ec9f-b71d-4140-b771-c86bfd322a0e
2025-12-15 19:33:24,163 - INFO - Verifications in API Server for VN ctest-vn-20858311 passed
2025-12-15 19:33:24,163 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5192ec9f-b71d-4140-b771-c86bfd322a0e
2025-12-15 19:33:24,171 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4d685275-4ed5-4cde-ae2c-913599e6497f
2025-12-15 19:33:24,178 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4d685275-4ed5-4cde-ae2c-913599e6497f
2025-12-15 19:33:24,184 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e3451f36-b8de-4fb7-80be-cee8704d4d64
2025-12-15 19:33:24,196 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80230143:ctest-vn-20858311', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80230143', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5878020634388021568', 'uuid-lslong': '13218566747444095502'}, 'enable': 'true', 'created': '2025-12-15T19:33:22', 'last-modified': '2025-12-15T19:33:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943632'}
2025-12-15 19:33:24,201 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-15 19:33:24,201 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20858311 passed
2025-12-15 19:33:24,202 - DEBUG - ====Verifying policy data for ctest-vn-20858311 in API_Server ======
2025-12-15 19:33:24,202 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-15 19:33:24,207 - DEBUG - Requesting: http://10.0.0.50:8082/domain/471d9740-a187-401a-bf59-2a10d0c16302
2025-12-15 19:33:24,217 - DEBUG - Requesting: http://10.0.0.50:8082/project/9aa62771-8af9-4a69-b8ec-9ce69d5f3001
2025-12-15 19:33:24,286 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5192ec9f-b71d-4140-b771-c86bfd322a0e
2025-12-15 19:33:24,295 - DEBUG - ==>Verifying data for policy with id: 7b04cef2-b33d-4252-a671-32a403db0fdd, fqn: ['default-domain', 'ctest-TestBasicPolicy-80230143', 'ctest-policy-allow-all-18799361']
2025-12-15 19:33:24,295 - INFO - VN ctest-vn-20858311 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-15 19:33:24,295 - DEBUG - Verifying the vn in opserver
2025-12-15 19:33:24,295 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80230143:ctest-vn-20858311 virtual network link through opserver 10.0.0.50
2025-12-15 19:33:24,295 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-12-15 19:33:24,586 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-12-15 19:33:24,645 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80230143:ctest-vn-20858311', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80230143:ctest-vn-20858311?flat'}
2025-12-15 19:33:24,645 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80230143:ctest-vn-20858311 is found in opserver
2025-12-15 19:33:24,654 - DEBUG - Do not have enough data to verify VN in agent
2025-12-15 19:33:24,658 - DEBUG - VRF ids for VN ctest-vn-20858311: {}
2025-12-15 19:33:24,658 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-15 19:33:24,663 - DEBUG - Requesting: http://10.0.0.50:8082/domain/471d9740-a187-401a-bf59-2a10d0c16302
2025-12-15 19:33:24,674 - DEBUG - Requesting: http://10.0.0.50:8082/project/9aa62771-8af9-4a69-b8ec-9ce69d5f3001
2025-12-15 19:33:24,741 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/261b54d9-fa35-47ae-9c2d-8b31f06cda84
2025-12-15 19:33:24,752 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/261b54d9-fa35-47ae-9c2d-8b31f06cda84
2025-12-15 19:33:24,761 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0d455f10-f08b-4141-8e42-61076080e381
2025-12-15 19:33:24,767 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0d455f10-f08b-4141-8e42-61076080e381
2025-12-15 19:33:24,773 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f3254062-7e67-4f51-a37a-e9a60e1084d9
2025-12-15 19:33:24,779 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-15 19:33:24,779 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/261b54d9-fa35-47ae-9c2d-8b31f06cda84
2025-12-15 19:33:24,787 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0d455f10-f08b-4141-8e42-61076080e381
2025-12-15 19:33:24,801 - INFO - Verified VN network id 13 for VN 261b54d9-fa35-47ae-9c2d-8b31f06cda84
2025-12-15 19:33:24,801 - INFO - Verifications in API Server for VN ctest-vn-89081437 passed
2025-12-15 19:33:24,801 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/261b54d9-fa35-47ae-9c2d-8b31f06cda84
2025-12-15 19:33:24,810 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0d455f10-f08b-4141-8e42-61076080e381
2025-12-15 19:33:24,816 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0d455f10-f08b-4141-8e42-61076080e381
2025-12-15 19:33:24,822 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f3254062-7e67-4f51-a37a-e9a60e1084d9
2025-12-15 19:33:24,833 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80230143:ctest-vn-89081437', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80230143', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2745881692994881454', 'uuid-lslong': '11253804090472061572'}, 'enable': 'true', 'created': '2025-12-15T19:33:22', 'last-modified': '2025-12-15T19:33:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.359594'}
2025-12-15 19:33:24,838 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-15 19:33:24,838 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89081437 passed
2025-12-15 19:33:24,838 - DEBUG - ====Verifying policy data for ctest-vn-89081437 in API_Server ======
2025-12-15 19:33:24,838 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-12-15 19:33:24,843 - DEBUG - Requesting: http://10.0.0.50:8082/domain/471d9740-a187-401a-bf59-2a10d0c16302
2025-12-15 19:33:24,853 - DEBUG - Requesting: http://10.0.0.50:8082/project/9aa62771-8af9-4a69-b8ec-9ce69d5f3001
2025-12-15 19:33:24,920 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/261b54d9-fa35-47ae-9c2d-8b31f06cda84
2025-12-15 19:33:24,929 - DEBUG - ==>Verifying data for policy with id: 7b04cef2-b33d-4252-a671-32a403db0fdd, fqn: ['default-domain', 'ctest-TestBasicPolicy-80230143', 'ctest-policy-allow-all-18799361']
2025-12-15 19:33:24,930 - INFO - VN ctest-vn-89081437 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-15 19:33:24,930 - DEBUG - Verifying the vn in opserver
2025-12-15 19:33:24,930 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80230143:ctest-vn-89081437 virtual network link through opserver 10.0.0.50
2025-12-15 19:33:24,930 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-12-15 19:33:24,940 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80230143:ctest-vn-89081437', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80230143:ctest-vn-89081437?flat'}
2025-12-15 19:33:24,940 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80230143:ctest-vn-89081437 is found in opserver
2025-12-15 19:33:24,951 - DEBUG - Do not have enough data to verify VN in agent
2025-12-15 19:33:24,956 - DEBUG - VRF ids for VN ctest-vn-89081437: {}
2025-12-15 19:33:25,015 - DEBUG - Services list from nova: [