2025-09-22 14:39:24,570 - INFO - Domain Default found not creating
2025-09-22 14:39:24,731 - INFO - Project ctest-TestBasicPolicy-59124475 not found, creating it
2025-09-22 14:39:25,201 - INFO - Created Project:ctest-TestBasicPolicy-59124475, ID : 0220c220-381a-4446-8ae1-ecab8308dfda
2025-09-22 14:39:26,824 - INFO - ================================================================================
2025-09-22 14:39:26,824 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-22 14:39:26,824 - 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-22 14:39:27,078 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2025-09-22 14:39:27,078 - INFO - Initial checks done. Running the testcase now
2025-09-22 14:39:27,079 - INFO -
2025-09-22 14:39:27,699 - DEBUG - Response for create_network : {'network': {'id': '4ffb5e15-8e09-449c-8341-cdb6f692a24f', 'name': 'ctest-vn-10517758', 'tenant_id': '0220c220381a44468ae1ecab8308dfda', 'project_id': '0220c220381a44468ae1ecab8308dfda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59124475', 'ctest-vn-10517758'], 'port_security_enabled': True, 'description': ''}}
2025-09-22 14:39:27,896 - DEBUG - Response for create_subnet : {'subnet': {'id': '1e66c3ae-8fd0-433f-8853-21cf88384bf3', 'name': '', 'tenant_id': '0220c220381a44468ae1ecab8308dfda', 'network_id': '4ffb5e15-8e09-449c-8341-cdb6f692a24f', 'ip_version': 4, 'cidr': '90.96.230.128/26', 'allocation_pools': [{'start': '90.96.230.130', 'end': '90.96.230.190'}], 'gateway_ip': '90.96.230.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.96.230.130', 'tags': [], 'project_id': '0220c220381a44468ae1ecab8308dfda'}}
2025-09-22 14:39:27,918 - INFO - Created VN ctest-vn-10517758
2025-09-22 14:39:27,972 - DEBUG - VN ctest-vn-10517758 UUID is 4ffb5e15-8e09-449c-8341-cdb6f692a24f
2025-09-22 14:39:28,284 - DEBUG - Response for create_network : {'network': {'id': '5a6f39fd-9e88-42a8-9f8c-2a4c90955bff', 'name': 'ctest-vn-21996412', 'tenant_id': '0220c220381a44468ae1ecab8308dfda', 'project_id': '0220c220381a44468ae1ecab8308dfda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59124475', 'ctest-vn-21996412'], 'port_security_enabled': True, 'description': ''}}
2025-09-22 14:39:28,484 - DEBUG - Response for create_subnet : {'subnet': {'id': 'db121bda-3dca-4d91-b3c0-bce81687293f', 'name': '', 'tenant_id': '0220c220381a44468ae1ecab8308dfda', 'network_id': '5a6f39fd-9e88-42a8-9f8c-2a4c90955bff', 'ip_version': 4, 'cidr': '115.62.120.128/26', 'allocation_pools': [{'start': '115.62.120.130', 'end': '115.62.120.190'}], 'gateway_ip': '115.62.120.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.62.120.130', 'tags': [], 'project_id': '0220c220381a44468ae1ecab8308dfda'}}
2025-09-22 14:39:28,503 - INFO - Created VN ctest-vn-21996412
2025-09-22 14:39:28,556 - DEBUG - VN ctest-vn-21996412 UUID is 5a6f39fd-9e88-42a8-9f8c-2a4c90955bff
2025-09-22 14:39:28,669 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-10517758, 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-59124475:ctest-vn-21996412, 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-22 14:39:28,962 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4ffb5e15-8e09-449c-8341-cdb6f692a24f', 'name': 'ctest-vn-10517758', 'tenant_id': '0220c220381a44468ae1ecab8308dfda', 'project_id': '0220c220381a44468ae1ecab8308dfda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1e66c3ae-8fd0-433f-8853-21cf88384bf3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59124475', 'ctest-vn-10517758'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59124475', 'ctest-policy-allow-all-87353316']], 'subnet_ipam': [{'subnet_cidr': '90.96.230.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-22 14:39:29,203 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5a6f39fd-9e88-42a8-9f8c-2a4c90955bff', 'name': 'ctest-vn-21996412', 'tenant_id': '0220c220381a44468ae1ecab8308dfda', 'project_id': '0220c220381a44468ae1ecab8308dfda', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['db121bda-3dca-4d91-b3c0-bce81687293f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59124475', 'ctest-vn-21996412'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59124475', 'ctest-policy-allow-all-87353316']], 'subnet_ipam': [{'subnet_cidr': '115.62.120.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-22 14:39:29,357 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-22 14:39:29,690 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-22 14:39:29,720 - DEBUG - Requesting: http://10.0.0.33:8082/domain/db429cd0-5ff3-4c01-a60c-1af89ac21b55
2025-09-22 14:39:29,732 - DEBUG - Requesting: http://10.0.0.33:8082/project/0220c220-381a-4446-8ae1-ecab8308dfda
2025-09-22 14:39:29,807 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4ffb5e15-8e09-449c-8341-cdb6f692a24f
2025-09-22 14:39:29,818 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4ffb5e15-8e09-449c-8341-cdb6f692a24f
2025-09-22 14:39:29,829 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6f7e200c-12e6-474c-aa14-83819a8471e9
2025-09-22 14:39:29,836 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6f7e200c-12e6-474c-aa14-83819a8471e9
2025-09-22 14:39:29,843 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/aa1dfbac-f1c7-4195-91f8-e68a053833b8
2025-09-22 14:39:29,849 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-22 14:39:29,849 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4ffb5e15-8e09-449c-8341-cdb6f692a24f
2025-09-22 14:39:29,858 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6f7e200c-12e6-474c-aa14-83819a8471e9
2025-09-22 14:39:29,871 - INFO - Verified VN network id 11 for VN 4ffb5e15-8e09-449c-8341-cdb6f692a24f
2025-09-22 14:39:29,871 - INFO - Verifications in API Server for VN ctest-vn-10517758 passed
2025-09-22 14:39:29,871 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4ffb5e15-8e09-449c-8341-cdb6f692a24f
2025-09-22 14:39:29,880 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6f7e200c-12e6-474c-aa14-83819a8471e9
2025-09-22 14:39:29,886 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6f7e200c-12e6-474c-aa14-83819a8471e9
2025-09-22 14:39:29,893 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/aa1dfbac-f1c7-4195-91f8-e68a053833b8
2025-09-22 14:39:29,904 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-10517758', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59124475', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5763303594820977820', 'uuid-lslong': '9458066878159299151'}, 'enable': 'true', 'created': '2025-09-22T14:39:27', 'last-modified': '2025-09-22T14:39:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.963565'}
2025-09-22 14:39:29,910 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-22 14:39:29,911 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10517758 passed
2025-09-22 14:39:29,911 - DEBUG - ====Verifying policy data for ctest-vn-10517758 in API_Server ======
2025-09-22 14:39:29,911 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-22 14:39:29,916 - DEBUG - Requesting: http://10.0.0.33:8082/domain/db429cd0-5ff3-4c01-a60c-1af89ac21b55
2025-09-22 14:39:29,928 - DEBUG - Requesting: http://10.0.0.33:8082/project/0220c220-381a-4446-8ae1-ecab8308dfda
2025-09-22 14:39:30,004 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4ffb5e15-8e09-449c-8341-cdb6f692a24f
2025-09-22 14:39:30,013 - DEBUG - ==>Verifying data for policy with id: f717221d-1091-44d3-9126-29101242d89e, fqn: ['default-domain', 'ctest-TestBasicPolicy-59124475', 'ctest-policy-allow-all-87353316']
2025-09-22 14:39:30,013 - INFO - VN ctest-vn-10517758 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-22 14:39:30,013 - DEBUG - Verifying the vn in opserver
2025-09-22 14:39:30,013 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-10517758 virtual network link through opserver 10.0.0.33
2025-09-22 14:39:30,013 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-09-22 14:39:30,345 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-09-22 14:39:30,406 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-10517758', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-10517758?flat'}
2025-09-22 14:39:30,406 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-10517758 is found in opserver
2025-09-22 14:39:30,417 - DEBUG - Do not have enough data to verify VN in agent
2025-09-22 14:39:30,422 - DEBUG - VRF ids for VN ctest-vn-10517758: {}
2025-09-22 14:39:30,422 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-22 14:39:30,428 - DEBUG - Requesting: http://10.0.0.33:8082/domain/db429cd0-5ff3-4c01-a60c-1af89ac21b55
2025-09-22 14:39:30,440 - DEBUG - Requesting: http://10.0.0.33:8082/project/0220c220-381a-4446-8ae1-ecab8308dfda
2025-09-22 14:39:30,511 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5a6f39fd-9e88-42a8-9f8c-2a4c90955bff
2025-09-22 14:39:30,522 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5a6f39fd-9e88-42a8-9f8c-2a4c90955bff
2025-09-22 14:39:30,531 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/372d109a-3160-43c7-ba0c-8ea4837cbef2
2025-09-22 14:39:30,537 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/372d109a-3160-43c7-ba0c-8ea4837cbef2
2025-09-22 14:39:30,543 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7d75d471-7c36-452a-810b-fe0ef9f0f911
2025-09-22 14:39:30,549 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-22 14:39:30,549 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5a6f39fd-9e88-42a8-9f8c-2a4c90955bff
2025-09-22 14:39:30,557 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/372d109a-3160-43c7-ba0c-8ea4837cbef2
2025-09-22 14:39:30,569 - INFO - Verified VN network id 12 for VN 5a6f39fd-9e88-42a8-9f8c-2a4c90955bff
2025-09-22 14:39:30,569 - INFO - Verifications in API Server for VN ctest-vn-21996412 passed
2025-09-22 14:39:30,570 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5a6f39fd-9e88-42a8-9f8c-2a4c90955bff
2025-09-22 14:39:30,577 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/372d109a-3160-43c7-ba0c-8ea4837cbef2
2025-09-22 14:39:30,583 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/372d109a-3160-43c7-ba0c-8ea4837cbef2
2025-09-22 14:39:30,589 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7d75d471-7c36-452a-810b-fe0ef9f0f911
2025-09-22 14:39:30,601 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-21996412', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59124475', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6516490947277636264', 'uuid-lslong': '11496610457101622271'}, 'enable': 'true', 'created': '2025-09-22T14:39:28', 'last-modified': '2025-09-22T14:39:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.421021'}
2025-09-22 14:39:30,606 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-22 14:39:30,606 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21996412 passed
2025-09-22 14:39:30,606 - DEBUG - ====Verifying policy data for ctest-vn-21996412 in API_Server ======
2025-09-22 14:39:30,606 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-22 14:39:30,611 - DEBUG - Requesting: http://10.0.0.33:8082/domain/db429cd0-5ff3-4c01-a60c-1af89ac21b55
2025-09-22 14:39:30,621 - DEBUG - Requesting: http://10.0.0.33:8082/project/0220c220-381a-4446-8ae1-ecab8308dfda
2025-09-22 14:39:30,694 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5a6f39fd-9e88-42a8-9f8c-2a4c90955bff
2025-09-22 14:39:30,705 - DEBUG - ==>Verifying data for policy with id: f717221d-1091-44d3-9126-29101242d89e, fqn: ['default-domain', 'ctest-TestBasicPolicy-59124475', 'ctest-policy-allow-all-87353316']
2025-09-22 14:39:30,705 - INFO - VN ctest-vn-21996412 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-22 14:39:30,705 - DEBUG - Verifying the vn in opserver
2025-09-22 14:39:30,705 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-21996412 virtual network link through opserver 10.0.0.33
2025-09-22 14:39:30,705 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-09-22 14:39:30,716 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-21996412', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-21996412?flat'}
2025-09-22 14:39:30,716 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59124475:ctest-vn-21996412 is found in opserver
2025-09-22 14:39:30,727 - DEBUG - Do not have enough data to verify VN in agent
2025-09-22 14:39:30,732 - DEBUG - VRF ids for VN ctest-vn-21996412: {}
2025-09-22 14:39:30,795 - DEBUG - Services list from nova: [