2026-08-20 22:29:52,980 - INFO - Domain Default found not creating
2026-08-20 22:29:53,144 - INFO - Project ctest-TestBasicPolicy-86132148 not found, creating it
2026-08-20 22:29:53,621 - INFO - Created Project:ctest-TestBasicPolicy-86132148, ID : 0a6b1d7e-96da-49bf-974a-d0f37ad38b2a
2026-08-20 22:29:55,209 - INFO - ================================================================================
2026-08-20 22:29:55,209 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-20 22:29:55,209 - 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
2026-08-20 22:29:55,480 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.17': '0'}} with
2026-08-20 22:29:55,480 - INFO - Initial checks done. Running the testcase now
2026-08-20 22:29:55,480 - INFO -
2026-08-20 22:29:56,103 - DEBUG - Response for create_network : {'network': {'id': '5121848b-510b-4f81-aa5e-fd3d457d266e', 'name': 'ctest-vn-95056109', 'tenant_id': '0a6b1d7e96da49bf974ad0f37ad38b2a', 'project_id': '0a6b1d7e96da49bf974ad0f37ad38b2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86132148', 'ctest-vn-95056109'], 'port_security_enabled': True, 'description': ''}}
2026-08-20 22:29:56,300 - DEBUG - Response for create_subnet : {'subnet': {'id': '28213bb4-c2ca-4952-8b8a-7c1473fc77cf', 'name': '', 'tenant_id': '0a6b1d7e96da49bf974ad0f37ad38b2a', 'network_id': '5121848b-510b-4f81-aa5e-fd3d457d266e', 'ip_version': 4, 'cidr': '93.248.106.0/26', 'allocation_pools': [{'start': '93.248.106.2', 'end': '93.248.106.62'}], 'gateway_ip': '93.248.106.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.248.106.2', 'tags': [], 'project_id': '0a6b1d7e96da49bf974ad0f37ad38b2a'}}
2026-08-20 22:29:56,319 - INFO - Created VN ctest-vn-95056109
2026-08-20 22:29:56,375 - DEBUG - VN ctest-vn-95056109 UUID is 5121848b-510b-4f81-aa5e-fd3d457d266e
2026-08-20 22:29:56,923 - DEBUG - Response for create_network : {'network': {'id': 'b54cb439-fb82-4472-95fc-3515492e7d7c', 'name': 'ctest-vn-39816754', 'tenant_id': '0a6b1d7e96da49bf974ad0f37ad38b2a', 'project_id': '0a6b1d7e96da49bf974ad0f37ad38b2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86132148', 'ctest-vn-39816754'], 'port_security_enabled': True, 'description': ''}}
2026-08-20 22:29:57,117 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c0d548a-4a08-4c54-b6e6-0dcb55c9c4f8', 'name': '', 'tenant_id': '0a6b1d7e96da49bf974ad0f37ad38b2a', 'network_id': 'b54cb439-fb82-4472-95fc-3515492e7d7c', 'ip_version': 4, 'cidr': '210.219.66.0/26', 'allocation_pools': [{'start': '210.219.66.2', 'end': '210.219.66.62'}], 'gateway_ip': '210.219.66.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.219.66.2', 'tags': [], 'project_id': '0a6b1d7e96da49bf974ad0f37ad38b2a'}}
2026-08-20 22:29:57,145 - INFO - Created VN ctest-vn-39816754
2026-08-20 22:29:57,203 - DEBUG - VN ctest-vn-39816754 UUID is b54cb439-fb82-4472-95fc-3515492e7d7c
2026-08-20 22:29:57,319 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86132148:ctest-vn-95056109, 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-86132148:ctest-vn-39816754, 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]
2026-08-20 22:29:57,649 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5121848b-510b-4f81-aa5e-fd3d457d266e', 'name': 'ctest-vn-95056109', 'tenant_id': '0a6b1d7e96da49bf974ad0f37ad38b2a', 'project_id': '0a6b1d7e96da49bf974ad0f37ad38b2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['28213bb4-c2ca-4952-8b8a-7c1473fc77cf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86132148', 'ctest-vn-95056109'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86132148', 'ctest-policy-allow-all-95160145']], 'subnet_ipam': [{'subnet_cidr': '93.248.106.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-20 22:29:57,904 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b54cb439-fb82-4472-95fc-3515492e7d7c', 'name': 'ctest-vn-39816754', 'tenant_id': '0a6b1d7e96da49bf974ad0f37ad38b2a', 'project_id': '0a6b1d7e96da49bf974ad0f37ad38b2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4c0d548a-4a08-4c54-b6e6-0dcb55c9c4f8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86132148', 'ctest-vn-39816754'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86132148', 'ctest-policy-allow-all-95160145']], 'subnet_ipam': [{'subnet_cidr': '210.219.66.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-20 22:29:58,079 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-08-20 22:29:58,427 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-08-20 22:29:58,454 - DEBUG - Requesting: http://10.0.0.163:8082/domain/1c62434c-28df-40ec-b6ae-d8351bc23717
2026-08-20 22:29:58,468 - DEBUG - Requesting: http://10.0.0.163:8082/project/0a6b1d7e-96da-49bf-974a-d0f37ad38b2a
2026-08-20 22:29:58,552 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/5121848b-510b-4f81-aa5e-fd3d457d266e
2026-08-20 22:29:58,586 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/5121848b-510b-4f81-aa5e-fd3d457d266e
2026-08-20 22:29:58,598 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/40871594-01f9-4c13-bf87-5f7d186bdc14
2026-08-20 22:29:58,609 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/40871594-01f9-4c13-bf87-5f7d186bdc14
2026-08-20 22:29:58,617 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/e7d89529-6605-4fbc-91de-798c7938f4d4
2026-08-20 22:29:58,627 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-20 22:29:58,627 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/5121848b-510b-4f81-aa5e-fd3d457d266e
2026-08-20 22:29:58,637 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/40871594-01f9-4c13-bf87-5f7d186bdc14
2026-08-20 22:29:58,657 - INFO - Verified VN network id 11 for VN 5121848b-510b-4f81-aa5e-fd3d457d266e
2026-08-20 22:29:58,658 - INFO - Verifications in API Server for VN ctest-vn-95056109 passed
2026-08-20 22:29:58,658 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/5121848b-510b-4f81-aa5e-fd3d457d266e
2026-08-20 22:29:58,670 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/40871594-01f9-4c13-bf87-5f7d186bdc14
2026-08-20 22:29:58,679 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/40871594-01f9-4c13-bf87-5f7d186bdc14
2026-08-20 22:29:58,688 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/e7d89529-6605-4fbc-91de-798c7938f4d4
2026-08-20 22:29:58,706 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86132148:ctest-vn-95056109', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86132148', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5846099525198630785', 'uuid-lslong': '12276528073859212910'}, 'enable': 'true', 'created': '2026-08-20T22:29:56', 'last-modified': '2026-08-20T22:29:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.094258'}
2026-08-20 22:29:58,715 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-20 22:29:58,715 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95056109 passed
2026-08-20 22:29:58,716 - DEBUG - ====Verifying policy data for ctest-vn-95056109 in API_Server ======
2026-08-20 22:29:58,716 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-08-20 22:29:58,723 - DEBUG - Requesting: http://10.0.0.163:8082/domain/1c62434c-28df-40ec-b6ae-d8351bc23717
2026-08-20 22:29:58,740 - DEBUG - Requesting: http://10.0.0.163:8082/project/0a6b1d7e-96da-49bf-974a-d0f37ad38b2a
2026-08-20 22:29:58,845 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/5121848b-510b-4f81-aa5e-fd3d457d266e
2026-08-20 22:29:58,865 - DEBUG - ==>Verifying data for policy with id: ea31e648-dc67-479d-9b96-03b3f7f754d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-86132148', 'ctest-policy-allow-all-95160145']
2026-08-20 22:29:58,865 - INFO - VN ctest-vn-95056109 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-20 22:29:58,866 - DEBUG - Verifying the vn in opserver
2026-08-20 22:29:58,866 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86132148:ctest-vn-95056109 virtual network link through opserver 10.0.0.163
2026-08-20 22:29:58,866 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-08-20 22:29:59,208 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-08-20 22:29:59,268 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86132148:ctest-vn-95056109', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86132148:ctest-vn-95056109?flat'}
2026-08-20 22:29:59,268 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86132148:ctest-vn-95056109 is found in opserver
2026-08-20 22:29:59,280 - DEBUG - Do not have enough data to verify VN in agent
2026-08-20 22:29:59,287 - DEBUG - VRF ids for VN ctest-vn-95056109: {}
2026-08-20 22:29:59,287 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-08-20 22:29:59,293 - DEBUG - Requesting: http://10.0.0.163:8082/domain/1c62434c-28df-40ec-b6ae-d8351bc23717
2026-08-20 22:29:59,304 - DEBUG - Requesting: http://10.0.0.163:8082/project/0a6b1d7e-96da-49bf-974a-d0f37ad38b2a
2026-08-20 22:29:59,384 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/b54cb439-fb82-4472-95fc-3515492e7d7c
2026-08-20 22:29:59,398 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/b54cb439-fb82-4472-95fc-3515492e7d7c
2026-08-20 22:29:59,408 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/85ecd710-381e-48a0-8d30-521422d892d8
2026-08-20 22:29:59,416 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/85ecd710-381e-48a0-8d30-521422d892d8
2026-08-20 22:29:59,424 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/c0e61c1a-deb5-4587-a2ec-34c276a1a99d
2026-08-20 22:29:59,430 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-20 22:29:59,430 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/b54cb439-fb82-4472-95fc-3515492e7d7c
2026-08-20 22:29:59,441 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/85ecd710-381e-48a0-8d30-521422d892d8
2026-08-20 22:29:59,460 - INFO - Verified VN network id 12 for VN b54cb439-fb82-4472-95fc-3515492e7d7c
2026-08-20 22:29:59,461 - INFO - Verifications in API Server for VN ctest-vn-39816754 passed
2026-08-20 22:29:59,461 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/b54cb439-fb82-4472-95fc-3515492e7d7c
2026-08-20 22:29:59,473 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/85ecd710-381e-48a0-8d30-521422d892d8
2026-08-20 22:29:59,481 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/85ecd710-381e-48a0-8d30-521422d892d8
2026-08-20 22:29:59,490 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/c0e61c1a-deb5-4587-a2ec-34c276a1a99d
2026-08-20 22:29:59,507 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86132148:ctest-vn-39816754', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86132148', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13064014780220720242', 'uuid-lslong': '10807571571320716668'}, 'enable': 'true', 'created': '2026-08-20T22:29:56', 'last-modified': '2026-08-20T22:29:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.634202'}
2026-08-20 22:29:59,514 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-20 22:29:59,514 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39816754 passed
2026-08-20 22:29:59,514 - DEBUG - ====Verifying policy data for ctest-vn-39816754 in API_Server ======
2026-08-20 22:29:59,514 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-08-20 22:29:59,521 - DEBUG - Requesting: http://10.0.0.163:8082/domain/1c62434c-28df-40ec-b6ae-d8351bc23717
2026-08-20 22:29:59,535 - DEBUG - Requesting: http://10.0.0.163:8082/project/0a6b1d7e-96da-49bf-974a-d0f37ad38b2a
2026-08-20 22:29:59,612 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/b54cb439-fb82-4472-95fc-3515492e7d7c
2026-08-20 22:29:59,629 - DEBUG - ==>Verifying data for policy with id: ea31e648-dc67-479d-9b96-03b3f7f754d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-86132148', 'ctest-policy-allow-all-95160145']
2026-08-20 22:29:59,629 - INFO - VN ctest-vn-39816754 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-20 22:29:59,629 - DEBUG - Verifying the vn in opserver
2026-08-20 22:29:59,629 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86132148:ctest-vn-39816754 virtual network link through opserver 10.0.0.163
2026-08-20 22:29:59,629 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-08-20 22:29:59,641 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86132148:ctest-vn-39816754', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86132148:ctest-vn-39816754?flat'}
2026-08-20 22:29:59,641 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86132148:ctest-vn-39816754 is found in opserver
2026-08-20 22:29:59,651 - DEBUG - Do not have enough data to verify VN in agent
2026-08-20 22:29:59,656 - DEBUG - VRF ids for VN ctest-vn-39816754: {}
2026-08-20 22:29:59,719 - DEBUG - Services list from nova: [