2026-04-22 13:37:17,379 - INFO - Domain Default found not creating
2026-04-22 13:37:17,555 - INFO - Project ctest-TestBasicPolicy-58888182 not found, creating it
2026-04-22 13:37:17,997 - INFO - Created Project:ctest-TestBasicPolicy-58888182, ID : 40058c7b-b81b-4c98-823a-d72b1f027e69
2026-04-22 13:37:19,831 - INFO - ================================================================================
2026-04-22 13:37:19,831 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-22 13:37:19,831 - 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-04-22 13:37:20,090 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with
2026-04-22 13:37:20,090 - INFO - Initial checks done. Running the testcase now
2026-04-22 13:37:20,090 - INFO -
2026-04-22 13:37:20,647 - DEBUG - Response for create_network : {'network': {'id': 'd78aae06-ba82-4a0b-979e-d7b6f8050475', 'name': 'ctest-vn-20345434', 'tenant_id': '40058c7bb81b4c98823ad72b1f027e69', 'project_id': '40058c7bb81b4c98823ad72b1f027e69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58888182', 'ctest-vn-20345434'], 'port_security_enabled': True, 'description': ''}}
2026-04-22 13:37:20,848 - DEBUG - Response for create_subnet : {'subnet': {'id': '3569a403-00d9-4c60-855a-422f051ff0cc', 'name': '', 'tenant_id': '40058c7bb81b4c98823ad72b1f027e69', 'network_id': 'd78aae06-ba82-4a0b-979e-d7b6f8050475', 'ip_version': 4, 'cidr': '180.196.12.64/26', 'allocation_pools': [{'start': '180.196.12.66', 'end': '180.196.12.126'}], 'gateway_ip': '180.196.12.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.196.12.66', 'tags': [], 'project_id': '40058c7bb81b4c98823ad72b1f027e69'}}
2026-04-22 13:37:20,865 - INFO - Created VN ctest-vn-20345434
2026-04-22 13:37:20,916 - DEBUG - VN ctest-vn-20345434 UUID is d78aae06-ba82-4a0b-979e-d7b6f8050475
2026-04-22 13:37:21,234 - DEBUG - Response for create_network : {'network': {'id': '5f7fd906-ab12-437a-ab77-0b154ec57d4a', 'name': 'ctest-vn-82882690', 'tenant_id': '40058c7bb81b4c98823ad72b1f027e69', 'project_id': '40058c7bb81b4c98823ad72b1f027e69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58888182', 'ctest-vn-82882690'], 'port_security_enabled': True, 'description': ''}}
2026-04-22 13:37:21,445 - DEBUG - Response for create_subnet : {'subnet': {'id': '135cc3e0-5a59-407a-b327-941aa270e7bf', 'name': '', 'tenant_id': '40058c7bb81b4c98823ad72b1f027e69', 'network_id': '5f7fd906-ab12-437a-ab77-0b154ec57d4a', 'ip_version': 4, 'cidr': '99.162.244.0/26', 'allocation_pools': [{'start': '99.162.244.2', 'end': '99.162.244.62'}], 'gateway_ip': '99.162.244.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.162.244.2', 'tags': [], 'project_id': '40058c7bb81b4c98823ad72b1f027e69'}}
2026-04-22 13:37:21,462 - INFO - Created VN ctest-vn-82882690
2026-04-22 13:37:21,512 - DEBUG - VN ctest-vn-82882690 UUID is 5f7fd906-ab12-437a-ab77-0b154ec57d4a
2026-04-22 13:37:21,664 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58888182:ctest-vn-20345434, 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-58888182:ctest-vn-82882690, 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-04-22 13:37:21,955 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd78aae06-ba82-4a0b-979e-d7b6f8050475', 'name': 'ctest-vn-20345434', 'tenant_id': '40058c7bb81b4c98823ad72b1f027e69', 'project_id': '40058c7bb81b4c98823ad72b1f027e69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3569a403-00d9-4c60-855a-422f051ff0cc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58888182', 'ctest-vn-20345434'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58888182', 'ctest-policy-allow-all-36262461']], 'subnet_ipam': [{'subnet_cidr': '180.196.12.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-22 13:37:22,205 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f7fd906-ab12-437a-ab77-0b154ec57d4a', 'name': 'ctest-vn-82882690', 'tenant_id': '40058c7bb81b4c98823ad72b1f027e69', 'project_id': '40058c7bb81b4c98823ad72b1f027e69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['135cc3e0-5a59-407a-b327-941aa270e7bf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58888182', 'ctest-vn-82882690'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58888182', 'ctest-policy-allow-all-36262461']], 'subnet_ipam': [{'subnet_cidr': '99.162.244.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-22 13:37:22,364 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-04-22 13:37:22,655 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-04-22 13:37:22,686 - DEBUG - Requesting: http://10.0.0.27:8082/domain/3d4477e5-6f25-4379-ad0e-f85d3877549d
2026-04-22 13:37:22,698 - DEBUG - Requesting: http://10.0.0.27:8082/project/40058c7b-b81b-4c98-823a-d72b1f027e69
2026-04-22 13:37:22,765 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d78aae06-ba82-4a0b-979e-d7b6f8050475
2026-04-22 13:37:22,775 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d78aae06-ba82-4a0b-979e-d7b6f8050475
2026-04-22 13:37:22,783 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0b82de2b-701a-4716-8021-ac70a1e88c56
2026-04-22 13:37:22,789 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0b82de2b-701a-4716-8021-ac70a1e88c56
2026-04-22 13:37:22,795 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/969aab71-b119-4bf8-a192-30a4c94c44bf
2026-04-22 13:37:22,801 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-22 13:37:22,801 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d78aae06-ba82-4a0b-979e-d7b6f8050475
2026-04-22 13:37:22,809 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0b82de2b-701a-4716-8021-ac70a1e88c56
2026-04-22 13:37:22,822 - INFO - Verified VN network id 11 for VN d78aae06-ba82-4a0b-979e-d7b6f8050475
2026-04-22 13:37:22,822 - INFO - Verifications in API Server for VN ctest-vn-20345434 passed
2026-04-22 13:37:22,822 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d78aae06-ba82-4a0b-979e-d7b6f8050475
2026-04-22 13:37:22,830 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0b82de2b-701a-4716-8021-ac70a1e88c56
2026-04-22 13:37:22,836 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0b82de2b-701a-4716-8021-ac70a1e88c56
2026-04-22 13:37:22,841 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/969aab71-b119-4bf8-a192-30a4c94c44bf
2026-04-22 13:37:22,851 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58888182:ctest-vn-20345434', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58888182', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15531417608862714379', 'uuid-lslong': '10925406926892500085'}, 'enable': 'true', 'created': '2026-04-22T13:37:20', 'last-modified': '2026-04-22T13:37:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.918028'}
2026-04-22 13:37:22,856 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-22 13:37:22,856 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20345434 passed
2026-04-22 13:37:22,856 - DEBUG - ====Verifying policy data for ctest-vn-20345434 in API_Server ======
2026-04-22 13:37:22,856 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-04-22 13:37:22,861 - DEBUG - Requesting: http://10.0.0.27:8082/domain/3d4477e5-6f25-4379-ad0e-f85d3877549d
2026-04-22 13:37:22,874 - DEBUG - Requesting: http://10.0.0.27:8082/project/40058c7b-b81b-4c98-823a-d72b1f027e69
2026-04-22 13:37:22,949 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d78aae06-ba82-4a0b-979e-d7b6f8050475
2026-04-22 13:37:22,958 - DEBUG - ==>Verifying data for policy with id: 9f4b2bb0-fe05-471d-910f-dba4ca059e2e, fqn: ['default-domain', 'ctest-TestBasicPolicy-58888182', 'ctest-policy-allow-all-36262461']
2026-04-22 13:37:22,958 - INFO - VN ctest-vn-20345434 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-22 13:37:22,958 - DEBUG - Verifying the vn in opserver
2026-04-22 13:37:22,958 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58888182:ctest-vn-20345434 virtual network link through opserver 10.0.0.27
2026-04-22 13:37:22,958 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2026-04-22 13:37:23,253 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2026-04-22 13:37:23,310 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58888182:ctest-vn-20345434', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58888182:ctest-vn-20345434?flat'}
2026-04-22 13:37:23,310 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58888182:ctest-vn-20345434 is found in opserver
2026-04-22 13:37:23,319 - DEBUG - Do not have enough data to verify VN in agent
2026-04-22 13:37:23,323 - DEBUG - VRF ids for VN ctest-vn-20345434: {}
2026-04-22 13:37:23,323 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-04-22 13:37:23,328 - DEBUG - Requesting: http://10.0.0.27:8082/domain/3d4477e5-6f25-4379-ad0e-f85d3877549d
2026-04-22 13:37:23,340 - DEBUG - Requesting: http://10.0.0.27:8082/project/40058c7b-b81b-4c98-823a-d72b1f027e69
2026-04-22 13:37:23,409 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5f7fd906-ab12-437a-ab77-0b154ec57d4a
2026-04-22 13:37:23,421 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5f7fd906-ab12-437a-ab77-0b154ec57d4a
2026-04-22 13:37:23,431 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/81aab410-6d12-46bd-9be2-fb16e6e92aba
2026-04-22 13:37:23,439 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/81aab410-6d12-46bd-9be2-fb16e6e92aba
2026-04-22 13:37:23,445 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0c7549d5-58b4-42cf-b6a1-666e8d6ebd19
2026-04-22 13:37:23,450 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-22 13:37:23,450 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5f7fd906-ab12-437a-ab77-0b154ec57d4a
2026-04-22 13:37:23,458 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/81aab410-6d12-46bd-9be2-fb16e6e92aba
2026-04-22 13:37:23,471 - INFO - Verified VN network id 12 for VN 5f7fd906-ab12-437a-ab77-0b154ec57d4a
2026-04-22 13:37:23,471 - INFO - Verifications in API Server for VN ctest-vn-82882690 passed
2026-04-22 13:37:23,471 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5f7fd906-ab12-437a-ab77-0b154ec57d4a
2026-04-22 13:37:23,479 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/81aab410-6d12-46bd-9be2-fb16e6e92aba
2026-04-22 13:37:23,485 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/81aab410-6d12-46bd-9be2-fb16e6e92aba
2026-04-22 13:37:23,490 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0c7549d5-58b4-42cf-b6a1-666e8d6ebd19
2026-04-22 13:37:23,500 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58888182:ctest-vn-82882690', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58888182', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6881457378308539258', 'uuid-lslong': '12355356288858029386'}, 'enable': 'true', 'created': '2026-04-22T13:37:21', 'last-modified': '2026-04-22T13:37:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.330139'}
2026-04-22 13:37:23,505 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-22 13:37:23,507 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82882690 passed
2026-04-22 13:37:23,507 - DEBUG - ====Verifying policy data for ctest-vn-82882690 in API_Server ======
2026-04-22 13:37:23,507 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2026-04-22 13:37:23,512 - DEBUG - Requesting: http://10.0.0.27:8082/domain/3d4477e5-6f25-4379-ad0e-f85d3877549d
2026-04-22 13:37:23,521 - DEBUG - Requesting: http://10.0.0.27:8082/project/40058c7b-b81b-4c98-823a-d72b1f027e69
2026-04-22 13:37:23,589 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5f7fd906-ab12-437a-ab77-0b154ec57d4a
2026-04-22 13:37:23,597 - DEBUG - ==>Verifying data for policy with id: 9f4b2bb0-fe05-471d-910f-dba4ca059e2e, fqn: ['default-domain', 'ctest-TestBasicPolicy-58888182', 'ctest-policy-allow-all-36262461']
2026-04-22 13:37:23,597 - INFO - VN ctest-vn-82882690 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-22 13:37:23,598 - DEBUG - Verifying the vn in opserver
2026-04-22 13:37:23,598 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58888182:ctest-vn-82882690 virtual network link through opserver 10.0.0.27
2026-04-22 13:37:23,598 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2026-04-22 13:37:23,606 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58888182:ctest-vn-82882690', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58888182:ctest-vn-82882690?flat'}
2026-04-22 13:37:23,606 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58888182:ctest-vn-82882690 is found in opserver
2026-04-22 13:37:23,625 - DEBUG - Do not have enough data to verify VN in agent
2026-04-22 13:37:23,629 - DEBUG - VRF ids for VN ctest-vn-82882690: {}
2026-04-22 13:37:23,685 - DEBUG - Services list from nova: [