2026-08-25 15:49:51,549 - INFO - Domain Default found not creating
2026-08-25 15:49:51,762 - INFO - Project ctest-TestBasicPolicy-89053460 not found, creating it
2026-08-25 15:49:52,309 - INFO - Created Project:ctest-TestBasicPolicy-89053460, ID : d7c83200-c238-41fe-9bc1-cc94b78d06c3
2026-08-25 15:49:54,224 - INFO - ================================================================================
2026-08-25 15:49:54,224 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-25 15:49:54,224 - 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-25 15:49:54,503 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.25': '0'}} with
2026-08-25 15:49:54,504 - INFO - Initial checks done. Running the testcase now
2026-08-25 15:49:54,504 - INFO -
2026-08-25 15:49:55,257 - DEBUG - Response for create_network : {'network': {'id': 'b7db3d4e-5146-4ee0-8046-ae845f981025', 'name': 'ctest-vn-98417991', 'tenant_id': 'd7c83200c23841fe9bc1cc94b78d06c3', 'project_id': 'd7c83200c23841fe9bc1cc94b78d06c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89053460', 'ctest-vn-98417991'], 'port_security_enabled': True, 'description': ''}}
2026-08-25 15:49:55,519 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4a7c445-f8e2-423c-bbaf-417f130fdf93', 'name': '', 'tenant_id': 'd7c83200c23841fe9bc1cc94b78d06c3', 'network_id': 'b7db3d4e-5146-4ee0-8046-ae845f981025', 'ip_version': 4, 'cidr': '177.214.59.128/26', 'allocation_pools': [{'start': '177.214.59.130', 'end': '177.214.59.190'}], 'gateway_ip': '177.214.59.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.214.59.130', 'tags': [], 'project_id': 'd7c83200c23841fe9bc1cc94b78d06c3'}}
2026-08-25 15:49:55,541 - INFO - Created VN ctest-vn-98417991
2026-08-25 15:49:55,605 - DEBUG - VN ctest-vn-98417991 UUID is b7db3d4e-5146-4ee0-8046-ae845f981025
2026-08-25 15:49:55,954 - DEBUG - Response for create_network : {'network': {'id': 'dd2f1369-8906-40d9-b05f-ae1b7c1d1166', 'name': 'ctest-vn-37381097', 'tenant_id': 'd7c83200c23841fe9bc1cc94b78d06c3', 'project_id': 'd7c83200c23841fe9bc1cc94b78d06c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89053460', 'ctest-vn-37381097'], 'port_security_enabled': True, 'description': ''}}
2026-08-25 15:49:56,167 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ddd7d88-d43e-45c3-92e2-751d174c51cf', 'name': '', 'tenant_id': 'd7c83200c23841fe9bc1cc94b78d06c3', 'network_id': 'dd2f1369-8906-40d9-b05f-ae1b7c1d1166', 'ip_version': 4, 'cidr': '33.195.123.0/26', 'allocation_pools': [{'start': '33.195.123.2', 'end': '33.195.123.62'}], 'gateway_ip': '33.195.123.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.195.123.2', 'tags': [], 'project_id': 'd7c83200c23841fe9bc1cc94b78d06c3'}}
2026-08-25 15:49:56,190 - INFO - Created VN ctest-vn-37381097
2026-08-25 15:49:56,245 - DEBUG - VN ctest-vn-37381097 UUID is dd2f1369-8906-40d9-b05f-ae1b7c1d1166
2026-08-25 15:49:56,372 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89053460:ctest-vn-98417991, 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-89053460:ctest-vn-37381097, 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-25 15:49:56,718 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b7db3d4e-5146-4ee0-8046-ae845f981025', 'name': 'ctest-vn-98417991', 'tenant_id': 'd7c83200c23841fe9bc1cc94b78d06c3', 'project_id': 'd7c83200c23841fe9bc1cc94b78d06c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4a7c445-f8e2-423c-bbaf-417f130fdf93'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89053460', 'ctest-vn-98417991'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89053460', 'ctest-policy-allow-all-73065819']], 'subnet_ipam': [{'subnet_cidr': '177.214.59.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-25 15:49:56,987 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dd2f1369-8906-40d9-b05f-ae1b7c1d1166', 'name': 'ctest-vn-37381097', 'tenant_id': 'd7c83200c23841fe9bc1cc94b78d06c3', 'project_id': 'd7c83200c23841fe9bc1cc94b78d06c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2ddd7d88-d43e-45c3-92e2-751d174c51cf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89053460', 'ctest-vn-37381097'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89053460', 'ctest-policy-allow-all-73065819']], 'subnet_ipam': [{'subnet_cidr': '33.195.123.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-25 15:49:57,173 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-25 15:49:57,541 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-25 15:49:57,579 - DEBUG - Requesting: http://10.0.0.177:8082/domain/dd578497-7f24-4751-b723-806fa619a4fc
2026-08-25 15:49:57,597 - DEBUG - Requesting: http://10.0.0.177:8082/project/d7c83200-c238-41fe-9bc1-cc94b78d06c3
2026-08-25 15:49:57,685 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b7db3d4e-5146-4ee0-8046-ae845f981025
2026-08-25 15:49:57,700 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b7db3d4e-5146-4ee0-8046-ae845f981025
2026-08-25 15:49:57,710 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/8c87e369-a48e-43ac-9705-354bb3683305
2026-08-25 15:49:57,718 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/8c87e369-a48e-43ac-9705-354bb3683305
2026-08-25 15:49:57,727 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/c44653d3-9425-4310-8fdc-9f740f8983c2
2026-08-25 15:49:57,737 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-25 15:49:57,737 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b7db3d4e-5146-4ee0-8046-ae845f981025
2026-08-25 15:49:57,749 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/8c87e369-a48e-43ac-9705-354bb3683305
2026-08-25 15:49:57,768 - INFO - Verified VN network id 11 for VN b7db3d4e-5146-4ee0-8046-ae845f981025
2026-08-25 15:49:57,768 - INFO - Verifications in API Server for VN ctest-vn-98417991 passed
2026-08-25 15:49:57,769 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b7db3d4e-5146-4ee0-8046-ae845f981025
2026-08-25 15:49:57,782 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/8c87e369-a48e-43ac-9705-354bb3683305
2026-08-25 15:49:57,792 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/8c87e369-a48e-43ac-9705-354bb3683305
2026-08-25 15:49:57,802 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/c44653d3-9425-4310-8fdc-9f740f8983c2
2026-08-25 15:49:57,819 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89053460:ctest-vn-98417991', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89053460', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13248250135420751584', 'uuid-lslong': '9243267168787238949'}, 'enable': 'true', 'created': '2026-08-25T15:49:55', 'last-modified': '2026-08-25T15:49:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.124503'}
2026-08-25 15:49:57,829 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-25 15:49:57,829 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98417991 passed
2026-08-25 15:49:57,830 - DEBUG - ====Verifying policy data for ctest-vn-98417991 in API_Server ======
2026-08-25 15:49:57,830 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-25 15:49:57,839 - DEBUG - Requesting: http://10.0.0.177:8082/domain/dd578497-7f24-4751-b723-806fa619a4fc
2026-08-25 15:49:57,854 - DEBUG - Requesting: http://10.0.0.177:8082/project/d7c83200-c238-41fe-9bc1-cc94b78d06c3
2026-08-25 15:49:57,949 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b7db3d4e-5146-4ee0-8046-ae845f981025
2026-08-25 15:49:57,967 - DEBUG - ==>Verifying data for policy with id: 488a011e-00dd-4b31-9a4c-253adf472c05, fqn: ['default-domain', 'ctest-TestBasicPolicy-89053460', 'ctest-policy-allow-all-73065819']
2026-08-25 15:49:57,967 - INFO - VN ctest-vn-98417991 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-25 15:49:57,967 - DEBUG - Verifying the vn in opserver
2026-08-25 15:49:57,967 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89053460:ctest-vn-98417991 virtual network link through opserver 10.0.0.177
2026-08-25 15:49:57,967 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-08-25 15:49:58,337 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-08-25 15:49:58,416 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89053460:ctest-vn-98417991', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89053460:ctest-vn-98417991?flat'}
2026-08-25 15:49:58,416 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89053460:ctest-vn-98417991 is found in opserver
2026-08-25 15:49:58,430 - DEBUG - Do not have enough data to verify VN in agent
2026-08-25 15:49:58,437 - DEBUG - VRF ids for VN ctest-vn-98417991: {}
2026-08-25 15:49:58,438 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-25 15:49:58,445 - DEBUG - Requesting: http://10.0.0.177:8082/domain/dd578497-7f24-4751-b723-806fa619a4fc
2026-08-25 15:49:58,461 - DEBUG - Requesting: http://10.0.0.177:8082/project/d7c83200-c238-41fe-9bc1-cc94b78d06c3
2026-08-25 15:49:58,547 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/dd2f1369-8906-40d9-b05f-ae1b7c1d1166
2026-08-25 15:49:58,562 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/dd2f1369-8906-40d9-b05f-ae1b7c1d1166
2026-08-25 15:49:58,574 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/ac171682-51d5-4987-8857-6de2af9ef9f4
2026-08-25 15:49:58,583 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/ac171682-51d5-4987-8857-6de2af9ef9f4
2026-08-25 15:49:58,590 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/081ee4d2-f36c-41be-b225-00dba8168ad5
2026-08-25 15:49:58,598 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-25 15:49:58,598 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/dd2f1369-8906-40d9-b05f-ae1b7c1d1166
2026-08-25 15:49:58,609 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/ac171682-51d5-4987-8857-6de2af9ef9f4
2026-08-25 15:49:58,626 - INFO - Verified VN network id 12 for VN dd2f1369-8906-40d9-b05f-ae1b7c1d1166
2026-08-25 15:49:58,626 - INFO - Verifications in API Server for VN ctest-vn-37381097 passed
2026-08-25 15:49:58,626 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/dd2f1369-8906-40d9-b05f-ae1b7c1d1166
2026-08-25 15:49:58,637 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/ac171682-51d5-4987-8857-6de2af9ef9f4
2026-08-25 15:49:58,644 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/ac171682-51d5-4987-8857-6de2af9ef9f4
2026-08-25 15:49:58,653 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/081ee4d2-f36c-41be-b225-00dba8168ad5
2026-08-25 15:49:58,667 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89053460:ctest-vn-37381097', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89053460', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15937978950278856921', 'uuid-lslong': '12709068106532458854'}, 'enable': 'true', 'created': '2026-08-25T15:49:55', 'last-modified': '2026-08-25T15:49:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.717828'}
2026-08-25 15:49:58,675 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-25 15:49:58,675 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37381097 passed
2026-08-25 15:49:58,676 - DEBUG - ====Verifying policy data for ctest-vn-37381097 in API_Server ======
2026-08-25 15:49:58,676 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-25 15:49:58,682 - DEBUG - Requesting: http://10.0.0.177:8082/domain/dd578497-7f24-4751-b723-806fa619a4fc
2026-08-25 15:49:58,696 - DEBUG - Requesting: http://10.0.0.177:8082/project/d7c83200-c238-41fe-9bc1-cc94b78d06c3
2026-08-25 15:49:58,776 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/dd2f1369-8906-40d9-b05f-ae1b7c1d1166
2026-08-25 15:49:58,788 - DEBUG - ==>Verifying data for policy with id: 488a011e-00dd-4b31-9a4c-253adf472c05, fqn: ['default-domain', 'ctest-TestBasicPolicy-89053460', 'ctest-policy-allow-all-73065819']
2026-08-25 15:49:58,788 - INFO - VN ctest-vn-37381097 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-25 15:49:58,788 - DEBUG - Verifying the vn in opserver
2026-08-25 15:49:58,788 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89053460:ctest-vn-37381097 virtual network link through opserver 10.0.0.177
2026-08-25 15:49:58,788 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-08-25 15:49:58,799 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89053460:ctest-vn-37381097', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89053460:ctest-vn-37381097?flat'}
2026-08-25 15:49:58,799 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89053460:ctest-vn-37381097 is found in opserver
2026-08-25 15:49:58,813 - DEBUG - Do not have enough data to verify VN in agent
2026-08-25 15:49:58,820 - DEBUG - VRF ids for VN ctest-vn-37381097: {}
2026-08-25 15:49:58,902 - DEBUG - Services list from nova: [