2025-11-22 09:46:14,410 - INFO - Domain Default found not creating
2025-11-22 09:46:14,582 - INFO - Project ctest-TestBasicPolicy-97151543 not found, creating it
2025-11-22 09:46:15,050 - INFO - Created Project:ctest-TestBasicPolicy-97151543, ID : 5fe19bc9-f477-4028-b4f4-f4679247d212
2025-11-22 09:46:16,560 - INFO - ================================================================================
2025-11-22 09:46:16,560 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-22 09:46:16,560 - 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-22 09:46:16,822 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2025-11-22 09:46:16,822 - INFO - Initial checks done. Running the testcase now
2025-11-22 09:46:16,822 - INFO -
2025-11-22 09:46:17,374 - DEBUG - Response for create_network : {'network': {'id': '8fa8192e-5e3f-4847-b421-43cdd60e17f6', 'name': 'ctest-vn-12523213', 'tenant_id': '5fe19bc9f4774028b4f4f4679247d212', 'project_id': '5fe19bc9f4774028b4f4f4679247d212', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97151543', 'ctest-vn-12523213'], 'port_security_enabled': True, 'description': ''}}
2025-11-22 09:46:17,568 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6610fa2-da15-402b-999c-852d901e6b98', 'name': '', 'tenant_id': '5fe19bc9f4774028b4f4f4679247d212', 'network_id': '8fa8192e-5e3f-4847-b421-43cdd60e17f6', 'ip_version': 4, 'cidr': '201.141.82.0/26', 'allocation_pools': [{'start': '201.141.82.2', 'end': '201.141.82.62'}], 'gateway_ip': '201.141.82.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.141.82.2', 'tags': [], 'project_id': '5fe19bc9f4774028b4f4f4679247d212'}}
2025-11-22 09:46:17,587 - INFO - Created VN ctest-vn-12523213
2025-11-22 09:46:17,640 - DEBUG - VN ctest-vn-12523213 UUID is 8fa8192e-5e3f-4847-b421-43cdd60e17f6
2025-11-22 09:46:17,937 - DEBUG - Response for create_network : {'network': {'id': 'b521e971-94cb-463c-9064-300f31a57b39', 'name': 'ctest-vn-39736088', 'tenant_id': '5fe19bc9f4774028b4f4f4679247d212', 'project_id': '5fe19bc9f4774028b4f4f4679247d212', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97151543', 'ctest-vn-39736088'], 'port_security_enabled': True, 'description': ''}}
2025-11-22 09:46:18,093 - DEBUG - Response for create_subnet : {'subnet': {'id': '810ad6dc-b0b9-4253-9719-d459b341688b', 'name': '', 'tenant_id': '5fe19bc9f4774028b4f4f4679247d212', 'network_id': 'b521e971-94cb-463c-9064-300f31a57b39', 'ip_version': 4, 'cidr': '200.244.70.192/26', 'allocation_pools': [{'start': '200.244.70.194', 'end': '200.244.70.254'}], 'gateway_ip': '200.244.70.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.244.70.194', 'tags': [], 'project_id': '5fe19bc9f4774028b4f4f4679247d212'}}
2025-11-22 09:46:18,112 - INFO - Created VN ctest-vn-39736088
2025-11-22 09:46:18,163 - DEBUG - VN ctest-vn-39736088 UUID is b521e971-94cb-463c-9064-300f31a57b39
2025-11-22 09:46:18,278 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97151543:ctest-vn-12523213, 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-97151543:ctest-vn-39736088, 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-22 09:46:18,566 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8fa8192e-5e3f-4847-b421-43cdd60e17f6', 'name': 'ctest-vn-12523213', 'tenant_id': '5fe19bc9f4774028b4f4f4679247d212', 'project_id': '5fe19bc9f4774028b4f4f4679247d212', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c6610fa2-da15-402b-999c-852d901e6b98'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97151543', 'ctest-vn-12523213'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97151543', 'ctest-policy-allow-all-40279267']], 'subnet_ipam': [{'subnet_cidr': '201.141.82.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-22 09:46:18,790 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b521e971-94cb-463c-9064-300f31a57b39', 'name': 'ctest-vn-39736088', 'tenant_id': '5fe19bc9f4774028b4f4f4679247d212', 'project_id': '5fe19bc9f4774028b4f4f4679247d212', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['810ad6dc-b0b9-4253-9719-d459b341688b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97151543', 'ctest-vn-39736088'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97151543', 'ctest-policy-allow-all-40279267']], 'subnet_ipam': [{'subnet_cidr': '200.244.70.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-22 09:46:18,959 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-22 09:46:19,263 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-22 09:46:19,295 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c7ece9bf-6624-4e3a-b318-c7aae69af5ff
2025-11-22 09:46:19,307 - DEBUG - Requesting: http://10.0.0.249:8082/project/5fe19bc9-f477-4028-b4f4-f4679247d212
2025-11-22 09:46:19,379 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8fa8192e-5e3f-4847-b421-43cdd60e17f6
2025-11-22 09:46:19,390 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8fa8192e-5e3f-4847-b421-43cdd60e17f6
2025-11-22 09:46:19,400 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0e656f63-58be-4d38-ae24-4bce1dc7bdf3
2025-11-22 09:46:19,407 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0e656f63-58be-4d38-ae24-4bce1dc7bdf3
2025-11-22 09:46:19,414 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/8174bd6e-7efc-4d50-8efd-8606debcec8e
2025-11-22 09:46:19,420 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-22 09:46:19,420 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8fa8192e-5e3f-4847-b421-43cdd60e17f6
2025-11-22 09:46:19,429 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0e656f63-58be-4d38-ae24-4bce1dc7bdf3
2025-11-22 09:46:19,443 - INFO - Verified VN network id 11 for VN 8fa8192e-5e3f-4847-b421-43cdd60e17f6
2025-11-22 09:46:19,443 - INFO - Verifications in API Server for VN ctest-vn-12523213 passed
2025-11-22 09:46:19,443 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8fa8192e-5e3f-4847-b421-43cdd60e17f6
2025-11-22 09:46:19,452 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0e656f63-58be-4d38-ae24-4bce1dc7bdf3
2025-11-22 09:46:19,458 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/0e656f63-58be-4d38-ae24-4bce1dc7bdf3
2025-11-22 09:46:19,465 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/8174bd6e-7efc-4d50-8efd-8606debcec8e
2025-11-22 09:46:19,477 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97151543:ctest-vn-12523213', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97151543', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10351551430451480647', 'uuid-lslong': '12979730152397084662'}, 'enable': 'true', 'created': '2025-11-22T09:46:17', 'last-modified': '2025-11-22T09:46:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.935849'}
2025-11-22 09:46:19,482 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-22 09:46:19,483 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12523213 passed
2025-11-22 09:46:19,483 - DEBUG - ====Verifying policy data for ctest-vn-12523213 in API_Server ======
2025-11-22 09:46:19,483 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-22 09:46:19,488 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c7ece9bf-6624-4e3a-b318-c7aae69af5ff
2025-11-22 09:46:19,498 - DEBUG - Requesting: http://10.0.0.249:8082/project/5fe19bc9-f477-4028-b4f4-f4679247d212
2025-11-22 09:46:19,569 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/8fa8192e-5e3f-4847-b421-43cdd60e17f6
2025-11-22 09:46:19,580 - DEBUG - ==>Verifying data for policy with id: 7f45d420-9095-4eca-ae6a-d297cf286770, fqn: ['default-domain', 'ctest-TestBasicPolicy-97151543', 'ctest-policy-allow-all-40279267']
2025-11-22 09:46:19,581 - INFO - VN ctest-vn-12523213 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-22 09:46:19,581 - DEBUG - Verifying the vn in opserver
2025-11-22 09:46:19,581 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97151543:ctest-vn-12523213 virtual network link through opserver 10.0.0.249
2025-11-22 09:46:19,581 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-11-22 09:46:19,881 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-11-22 09:46:19,953 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97151543:ctest-vn-12523213', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97151543:ctest-vn-12523213?flat'}
2025-11-22 09:46:19,953 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97151543:ctest-vn-12523213 is found in opserver
2025-11-22 09:46:19,964 - DEBUG - Do not have enough data to verify VN in agent
2025-11-22 09:46:19,969 - DEBUG - VRF ids for VN ctest-vn-12523213: {}
2025-11-22 09:46:19,969 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-22 09:46:19,975 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c7ece9bf-6624-4e3a-b318-c7aae69af5ff
2025-11-22 09:46:19,987 - DEBUG - Requesting: http://10.0.0.249:8082/project/5fe19bc9-f477-4028-b4f4-f4679247d212
2025-11-22 09:46:20,060 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b521e971-94cb-463c-9064-300f31a57b39
2025-11-22 09:46:20,073 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b521e971-94cb-463c-9064-300f31a57b39
2025-11-22 09:46:20,090 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2b2cfa17-203b-49b0-a0af-0176d397a687
2025-11-22 09:46:20,097 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2b2cfa17-203b-49b0-a0af-0176d397a687
2025-11-22 09:46:20,103 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/18304495-d2b3-4f72-957f-ad8d519403cf
2025-11-22 09:46:20,110 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-22 09:46:20,110 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b521e971-94cb-463c-9064-300f31a57b39
2025-11-22 09:46:20,119 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2b2cfa17-203b-49b0-a0af-0176d397a687
2025-11-22 09:46:20,132 - INFO - Verified VN network id 12 for VN b521e971-94cb-463c-9064-300f31a57b39
2025-11-22 09:46:20,132 - INFO - Verifications in API Server for VN ctest-vn-39736088 passed
2025-11-22 09:46:20,132 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b521e971-94cb-463c-9064-300f31a57b39
2025-11-22 09:46:20,141 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2b2cfa17-203b-49b0-a0af-0176d397a687
2025-11-22 09:46:20,148 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/2b2cfa17-203b-49b0-a0af-0176d397a687
2025-11-22 09:46:20,154 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/18304495-d2b3-4f72-957f-ad8d519403cf
2025-11-22 09:46:20,168 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97151543:ctest-vn-39736088', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97151543', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13051969869133334076', 'uuid-lslong': '10404493880948259641'}, 'enable': 'true', 'created': '2025-11-22T09:46:17', 'last-modified': '2025-11-22T09:46:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.398913'}
2025-11-22 09:46:20,175 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-22 09:46:20,175 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39736088 passed
2025-11-22 09:46:20,175 - DEBUG - ====Verifying policy data for ctest-vn-39736088 in API_Server ======
2025-11-22 09:46:20,175 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-11-22 09:46:20,181 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c7ece9bf-6624-4e3a-b318-c7aae69af5ff
2025-11-22 09:46:20,193 - DEBUG - Requesting: http://10.0.0.249:8082/project/5fe19bc9-f477-4028-b4f4-f4679247d212
2025-11-22 09:46:20,265 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b521e971-94cb-463c-9064-300f31a57b39
2025-11-22 09:46:20,274 - DEBUG - ==>Verifying data for policy with id: 7f45d420-9095-4eca-ae6a-d297cf286770, fqn: ['default-domain', 'ctest-TestBasicPolicy-97151543', 'ctest-policy-allow-all-40279267']
2025-11-22 09:46:20,274 - INFO - VN ctest-vn-39736088 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-22 09:46:20,274 - DEBUG - Verifying the vn in opserver
2025-11-22 09:46:20,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97151543:ctest-vn-39736088 virtual network link through opserver 10.0.0.249
2025-11-22 09:46:20,274 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-11-22 09:46:20,284 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97151543:ctest-vn-39736088', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97151543:ctest-vn-39736088?flat'}
2025-11-22 09:46:20,284 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97151543:ctest-vn-39736088 is found in opserver
2025-11-22 09:46:20,293 - DEBUG - Do not have enough data to verify VN in agent
2025-11-22 09:46:20,298 - DEBUG - VRF ids for VN ctest-vn-39736088: {}
2025-11-22 09:46:20,356 - DEBUG - Services list from nova: [