2025-11-24 17:29:27,036 - INFO - Domain Default found not creating
2025-11-24 17:29:27,380 - INFO - Project ctest-TestBasicPolicy-01470507 not found, creating it
2025-11-24 17:29:27,970 - INFO - Created Project:ctest-TestBasicPolicy-01470507, ID : fce2b726-be3b-44f7-8146-be3619ee1c12
2025-11-24 17:29:30,236 - INFO - ================================================================================
2025-11-24 17:29:30,236 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-24 17:29:30,236 - 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-11-24 17:29:30,549 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.252': '0'}} with
2025-11-24 17:29:30,549 - INFO - Initial checks done. Running the testcase now
2025-11-24 17:29:30,549 - INFO -
2025-11-24 17:29:31,403 - DEBUG - Response for create_network : {'network': {'id': '3c2936f2-455e-476c-a18e-8a800ad720a5', 'name': 'ctest-vn-14830737', 'tenant_id': 'fce2b726be3b44f78146be3619ee1c12', 'project_id': 'fce2b726be3b44f78146be3619ee1c12', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01470507', 'ctest-vn-14830737'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 17:29:31,653 - DEBUG - Response for create_subnet : {'subnet': {'id': '9056aa0b-db3e-421b-aacc-dc160d98dc5f', 'name': '', 'tenant_id': 'fce2b726be3b44f78146be3619ee1c12', 'network_id': '3c2936f2-455e-476c-a18e-8a800ad720a5', 'ip_version': 4, 'cidr': '212.94.70.192/26', 'allocation_pools': [{'start': '212.94.70.194', 'end': '212.94.70.254'}], 'gateway_ip': '212.94.70.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.94.70.194', 'tags': [], 'project_id': 'fce2b726be3b44f78146be3619ee1c12'}}
2025-11-24 17:29:31,675 - INFO - Created VN ctest-vn-14830737
2025-11-24 17:29:31,731 - DEBUG - VN ctest-vn-14830737 UUID is 3c2936f2-455e-476c-a18e-8a800ad720a5
2025-11-24 17:29:32,154 - DEBUG - Response for create_network : {'network': {'id': 'be7eaf57-25d8-4274-a8ac-3ab15ebdbe07', 'name': 'ctest-vn-24535252', 'tenant_id': 'fce2b726be3b44f78146be3619ee1c12', 'project_id': 'fce2b726be3b44f78146be3619ee1c12', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01470507', 'ctest-vn-24535252'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 17:29:32,406 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd00c972c-d560-45e9-960c-99956dd2f03e', 'name': '', 'tenant_id': 'fce2b726be3b44f78146be3619ee1c12', 'network_id': 'be7eaf57-25d8-4274-a8ac-3ab15ebdbe07', 'ip_version': 4, 'cidr': '32.199.145.128/26', 'allocation_pools': [{'start': '32.199.145.130', 'end': '32.199.145.190'}], 'gateway_ip': '32.199.145.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.199.145.130', 'tags': [], 'project_id': 'fce2b726be3b44f78146be3619ee1c12'}}
2025-11-24 17:29:32,429 - INFO - Created VN ctest-vn-24535252
2025-11-24 17:29:32,484 - DEBUG - VN ctest-vn-24535252 UUID is be7eaf57-25d8-4274-a8ac-3ab15ebdbe07
2025-11-24 17:29:32,644 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01470507:ctest-vn-14830737, 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-01470507:ctest-vn-24535252, 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-11-24 17:29:33,011 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c2936f2-455e-476c-a18e-8a800ad720a5', 'name': 'ctest-vn-14830737', 'tenant_id': 'fce2b726be3b44f78146be3619ee1c12', 'project_id': 'fce2b726be3b44f78146be3619ee1c12', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9056aa0b-db3e-421b-aacc-dc160d98dc5f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01470507', 'ctest-vn-14830737'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01470507', 'ctest-policy-allow-all-22566578']], 'subnet_ipam': [{'subnet_cidr': '212.94.70.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 17:29:33,285 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be7eaf57-25d8-4274-a8ac-3ab15ebdbe07', 'name': 'ctest-vn-24535252', 'tenant_id': 'fce2b726be3b44f78146be3619ee1c12', 'project_id': 'fce2b726be3b44f78146be3619ee1c12', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d00c972c-d560-45e9-960c-99956dd2f03e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01470507', 'ctest-vn-24535252'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01470507', 'ctest-policy-allow-all-22566578']], 'subnet_ipam': [{'subnet_cidr': '32.199.145.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 17:29:33,440 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-24 17:29:33,770 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-24 17:29:33,840 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1eb80f03-1c7f-4a4e-9ca1-46517aa49f22
2025-11-24 17:29:33,871 - DEBUG - Requesting: http://10.0.0.33:8082/project/fce2b726-be3b-44f7-8146-be3619ee1c12
2025-11-24 17:29:33,979 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3c2936f2-455e-476c-a18e-8a800ad720a5
2025-11-24 17:29:33,992 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3c2936f2-455e-476c-a18e-8a800ad720a5
2025-11-24 17:29:34,004 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4d3e2ccb-8926-4881-a7bd-bec8728adf70
2025-11-24 17:29:34,013 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4d3e2ccb-8926-4881-a7bd-bec8728adf70
2025-11-24 17:29:34,023 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d1494b27-24ea-4a46-a2ed-180ab642beb8
2025-11-24 17:29:34,031 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 17:29:34,031 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3c2936f2-455e-476c-a18e-8a800ad720a5
2025-11-24 17:29:34,046 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4d3e2ccb-8926-4881-a7bd-bec8728adf70
2025-11-24 17:29:34,069 - INFO - Verified VN network id 11 for VN 3c2936f2-455e-476c-a18e-8a800ad720a5
2025-11-24 17:29:34,070 - INFO - Verifications in API Server for VN ctest-vn-14830737 passed
2025-11-24 17:29:34,070 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3c2936f2-455e-476c-a18e-8a800ad720a5
2025-11-24 17:29:34,079 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4d3e2ccb-8926-4881-a7bd-bec8728adf70
2025-11-24 17:29:34,086 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4d3e2ccb-8926-4881-a7bd-bec8728adf70
2025-11-24 17:29:34,093 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d1494b27-24ea-4a46-a2ed-180ab642beb8
2025-11-24 17:29:34,106 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01470507:ctest-vn-14830737', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01470507', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4335056530494605164', 'uuid-lslong': '11641394369341628581'}, 'enable': 'true', 'created': '2025-11-24T17:29:31', 'last-modified': '2025-11-24T17:29:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.128575'}
2025-11-24 17:29:34,119 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 17:29:34,119 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14830737 passed
2025-11-24 17:29:34,120 - DEBUG - ====Verifying policy data for ctest-vn-14830737 in API_Server ======
2025-11-24 17:29:34,120 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-24 17:29:34,132 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1eb80f03-1c7f-4a4e-9ca1-46517aa49f22
2025-11-24 17:29:34,152 - DEBUG - Requesting: http://10.0.0.33:8082/project/fce2b726-be3b-44f7-8146-be3619ee1c12
2025-11-24 17:29:34,236 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3c2936f2-455e-476c-a18e-8a800ad720a5
2025-11-24 17:29:34,259 - DEBUG - ==>Verifying data for policy with id: 040c3ee3-a3a9-46e5-8995-4fdba310f712, fqn: ['default-domain', 'ctest-TestBasicPolicy-01470507', 'ctest-policy-allow-all-22566578']
2025-11-24 17:29:34,259 - INFO - VN ctest-vn-14830737 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 17:29:34,259 - DEBUG - Verifying the vn in opserver
2025-11-24 17:29:34,260 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01470507:ctest-vn-14830737 virtual network link through opserver 10.0.0.33
2025-11-24 17:29:34,260 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-24 17:29:34,585 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-24 17:29:34,688 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01470507:ctest-vn-14830737', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01470507:ctest-vn-14830737?flat'}
2025-11-24 17:29:34,688 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01470507:ctest-vn-14830737 is found in opserver
2025-11-24 17:29:34,710 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 17:29:34,721 - DEBUG - VRF ids for VN ctest-vn-14830737: {}
2025-11-24 17:29:34,721 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-24 17:29:34,734 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1eb80f03-1c7f-4a4e-9ca1-46517aa49f22
2025-11-24 17:29:34,758 - DEBUG - Requesting: http://10.0.0.33:8082/project/fce2b726-be3b-44f7-8146-be3619ee1c12
2025-11-24 17:29:34,879 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/be7eaf57-25d8-4274-a8ac-3ab15ebdbe07
2025-11-24 17:29:34,908 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/be7eaf57-25d8-4274-a8ac-3ab15ebdbe07
2025-11-24 17:29:34,929 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/82a3ff0a-1145-4a36-83a3-e1ee3787f8ea
2025-11-24 17:29:34,940 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/82a3ff0a-1145-4a36-83a3-e1ee3787f8ea
2025-11-24 17:29:34,951 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8aeffa35-32f6-4005-8ec4-6d72f6544b38
2025-11-24 17:29:34,968 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 17:29:34,968 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/be7eaf57-25d8-4274-a8ac-3ab15ebdbe07
2025-11-24 17:29:34,990 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/82a3ff0a-1145-4a36-83a3-e1ee3787f8ea
2025-11-24 17:29:35,024 - INFO - Verified VN network id 12 for VN be7eaf57-25d8-4274-a8ac-3ab15ebdbe07
2025-11-24 17:29:35,024 - INFO - Verifications in API Server for VN ctest-vn-24535252 passed
2025-11-24 17:29:35,024 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/be7eaf57-25d8-4274-a8ac-3ab15ebdbe07
2025-11-24 17:29:35,046 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/82a3ff0a-1145-4a36-83a3-e1ee3787f8ea
2025-11-24 17:29:35,061 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/82a3ff0a-1145-4a36-83a3-e1ee3787f8ea
2025-11-24 17:29:35,078 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/8aeffa35-32f6-4005-8ec4-6d72f6544b38
2025-11-24 17:29:35,106 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01470507:ctest-vn-24535252', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01470507', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13726601503103795828', 'uuid-lslong': '12154154027839241735'}, 'enable': 'true', 'created': '2025-11-24T17:29:32', 'last-modified': '2025-11-24T17:29:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.858090'}
2025-11-24 17:29:35,123 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 17:29:35,123 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24535252 passed
2025-11-24 17:29:35,123 - DEBUG - ====Verifying policy data for ctest-vn-24535252 in API_Server ======
2025-11-24 17:29:35,123 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-24 17:29:35,138 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1eb80f03-1c7f-4a4e-9ca1-46517aa49f22
2025-11-24 17:29:35,171 - DEBUG - Requesting: http://10.0.0.33:8082/project/fce2b726-be3b-44f7-8146-be3619ee1c12
2025-11-24 17:29:35,292 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/be7eaf57-25d8-4274-a8ac-3ab15ebdbe07
2025-11-24 17:29:35,315 - DEBUG - ==>Verifying data for policy with id: 040c3ee3-a3a9-46e5-8995-4fdba310f712, fqn: ['default-domain', 'ctest-TestBasicPolicy-01470507', 'ctest-policy-allow-all-22566578']
2025-11-24 17:29:35,315 - INFO - VN ctest-vn-24535252 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 17:29:35,316 - DEBUG - Verifying the vn in opserver
2025-11-24 17:29:35,316 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01470507:ctest-vn-24535252 virtual network link through opserver 10.0.0.33
2025-11-24 17:29:35,316 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-24 17:29:35,340 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01470507:ctest-vn-24535252', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01470507:ctest-vn-24535252?flat'}
2025-11-24 17:29:35,340 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01470507:ctest-vn-24535252 is found in opserver
2025-11-24 17:29:35,355 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 17:29:35,364 - DEBUG - VRF ids for VN ctest-vn-24535252: {}
2025-11-24 17:29:35,468 - DEBUG - Services list from nova: [