2026-08-22 14:27:03,520 - INFO - Domain Default found not creating
2026-08-22 14:27:03,676 - INFO - Project ctest-TestBasicPolicy-75096682 not found, creating it
2026-08-22 14:27:04,179 - INFO - Created Project:ctest-TestBasicPolicy-75096682, ID : 501449be-8d87-4a36-87a4-fb970ce63b29
2026-08-22 14:27:05,860 - INFO - ================================================================================
2026-08-22 14:27:05,860 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-22 14:27:05,860 - 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-22 14:27:06,122 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-08-22 14:27:06,122 - INFO - Initial checks done. Running the testcase now
2026-08-22 14:27:06,122 - INFO -
2026-08-22 14:27:06,747 - DEBUG - Response for create_network : {'network': {'id': '48b43959-08e3-426e-96f5-3dfecb6d67f9', 'name': 'ctest-vn-00492171', 'tenant_id': '501449be8d874a3687a4fb970ce63b29', 'project_id': '501449be8d874a3687a4fb970ce63b29', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75096682', 'ctest-vn-00492171'], 'port_security_enabled': True, 'description': ''}}
2026-08-22 14:27:06,902 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f4bc3ba-17e3-404b-8bea-e98ee9b1279f', 'name': '', 'tenant_id': '501449be8d874a3687a4fb970ce63b29', 'network_id': '48b43959-08e3-426e-96f5-3dfecb6d67f9', 'ip_version': 4, 'cidr': '179.7.44.192/26', 'allocation_pools': [{'start': '179.7.44.194', 'end': '179.7.44.254'}], 'gateway_ip': '179.7.44.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.7.44.194', 'tags': [], 'project_id': '501449be8d874a3687a4fb970ce63b29'}}
2026-08-22 14:27:06,923 - INFO - Created VN ctest-vn-00492171
2026-08-22 14:27:06,977 - DEBUG - VN ctest-vn-00492171 UUID is 48b43959-08e3-426e-96f5-3dfecb6d67f9
2026-08-22 14:27:07,294 - DEBUG - Response for create_network : {'network': {'id': 'a7fc3c3b-1271-4922-9687-8e1d30847121', 'name': 'ctest-vn-21677719', 'tenant_id': '501449be8d874a3687a4fb970ce63b29', 'project_id': '501449be8d874a3687a4fb970ce63b29', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75096682', 'ctest-vn-21677719'], 'port_security_enabled': True, 'description': ''}}
2026-08-22 14:27:07,509 - DEBUG - Response for create_subnet : {'subnet': {'id': '81d6421c-37ae-4fab-8bac-f1c5cc90985d', 'name': '', 'tenant_id': '501449be8d874a3687a4fb970ce63b29', 'network_id': 'a7fc3c3b-1271-4922-9687-8e1d30847121', 'ip_version': 4, 'cidr': '147.187.156.64/26', 'allocation_pools': [{'start': '147.187.156.66', 'end': '147.187.156.126'}], 'gateway_ip': '147.187.156.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.187.156.66', 'tags': [], 'project_id': '501449be8d874a3687a4fb970ce63b29'}}
2026-08-22 14:27:07,529 - INFO - Created VN ctest-vn-21677719
2026-08-22 14:27:07,581 - DEBUG - VN ctest-vn-21677719 UUID is a7fc3c3b-1271-4922-9687-8e1d30847121
2026-08-22 14:27:07,698 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75096682:ctest-vn-00492171, 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-75096682:ctest-vn-21677719, 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-22 14:27:08,035 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '48b43959-08e3-426e-96f5-3dfecb6d67f9', 'name': 'ctest-vn-00492171', 'tenant_id': '501449be8d874a3687a4fb970ce63b29', 'project_id': '501449be8d874a3687a4fb970ce63b29', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f4bc3ba-17e3-404b-8bea-e98ee9b1279f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75096682', 'ctest-vn-00492171'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75096682', 'ctest-policy-allow-all-03103812']], 'subnet_ipam': [{'subnet_cidr': '179.7.44.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-22 14:27:08,288 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7fc3c3b-1271-4922-9687-8e1d30847121', 'name': 'ctest-vn-21677719', 'tenant_id': '501449be8d874a3687a4fb970ce63b29', 'project_id': '501449be8d874a3687a4fb970ce63b29', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['81d6421c-37ae-4fab-8bac-f1c5cc90985d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75096682', 'ctest-vn-21677719'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75096682', 'ctest-policy-allow-all-03103812']], 'subnet_ipam': [{'subnet_cidr': '147.187.156.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-22 14:27:08,457 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-08-22 14:27:08,793 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-08-22 14:27:08,824 - DEBUG - Requesting: http://10.0.0.33:8082/domain/be17c20b-19f9-4365-9ab2-b39746d53e55
2026-08-22 14:27:08,837 - DEBUG - Requesting: http://10.0.0.33:8082/project/501449be-8d87-4a36-87a4-fb970ce63b29
2026-08-22 14:27:08,915 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/48b43959-08e3-426e-96f5-3dfecb6d67f9
2026-08-22 14:27:08,929 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/48b43959-08e3-426e-96f5-3dfecb6d67f9
2026-08-22 14:27:08,942 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7e50441a-d291-4363-8f33-fcb5787fbcb9
2026-08-22 14:27:08,953 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7e50441a-d291-4363-8f33-fcb5787fbcb9
2026-08-22 14:27:08,962 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b008be66-9d7c-4f93-b360-315652f72a66
2026-08-22 14:27:08,971 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-22 14:27:08,971 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/48b43959-08e3-426e-96f5-3dfecb6d67f9
2026-08-22 14:27:08,983 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7e50441a-d291-4363-8f33-fcb5787fbcb9
2026-08-22 14:27:09,001 - INFO - Verified VN network id 11 for VN 48b43959-08e3-426e-96f5-3dfecb6d67f9
2026-08-22 14:27:09,002 - INFO - Verifications in API Server for VN ctest-vn-00492171 passed
2026-08-22 14:27:09,002 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/48b43959-08e3-426e-96f5-3dfecb6d67f9
2026-08-22 14:27:09,016 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7e50441a-d291-4363-8f33-fcb5787fbcb9
2026-08-22 14:27:09,025 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7e50441a-d291-4363-8f33-fcb5787fbcb9
2026-08-22 14:27:09,035 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b008be66-9d7c-4f93-b360-315652f72a66
2026-08-22 14:27:09,052 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75096682:ctest-vn-00492171', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75096682', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5238875321102713454', 'uuid-lslong': '10877668639527233529'}, 'enable': 'true', 'created': '2026-08-22T14:27:06', 'last-modified': '2026-08-22T14:27:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.044031'}
2026-08-22 14:27:09,060 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-22 14:27:09,060 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00492171 passed
2026-08-22 14:27:09,060 - DEBUG - ====Verifying policy data for ctest-vn-00492171 in API_Server ======
2026-08-22 14:27:09,060 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-08-22 14:27:09,067 - DEBUG - Requesting: http://10.0.0.33:8082/domain/be17c20b-19f9-4365-9ab2-b39746d53e55
2026-08-22 14:27:09,080 - DEBUG - Requesting: http://10.0.0.33:8082/project/501449be-8d87-4a36-87a4-fb970ce63b29
2026-08-22 14:27:09,165 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/48b43959-08e3-426e-96f5-3dfecb6d67f9
2026-08-22 14:27:09,176 - DEBUG - ==>Verifying data for policy with id: 08308e32-0e78-4d55-a453-8d22beb80a2b, fqn: ['default-domain', 'ctest-TestBasicPolicy-75096682', 'ctest-policy-allow-all-03103812']
2026-08-22 14:27:09,176 - INFO - VN ctest-vn-00492171 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-22 14:27:09,176 - DEBUG - Verifying the vn in opserver
2026-08-22 14:27:09,176 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75096682:ctest-vn-00492171 virtual network link through opserver 10.0.0.33
2026-08-22 14:27:09,177 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-08-22 14:27:09,526 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-08-22 14:27:09,593 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75096682:ctest-vn-00492171', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75096682:ctest-vn-00492171?flat'}
2026-08-22 14:27:09,593 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75096682:ctest-vn-00492171 is found in opserver
2026-08-22 14:27:09,606 - DEBUG - Do not have enough data to verify VN in agent
2026-08-22 14:27:09,612 - DEBUG - VRF ids for VN ctest-vn-00492171: {}
2026-08-22 14:27:09,612 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-08-22 14:27:09,620 - DEBUG - Requesting: http://10.0.0.33:8082/domain/be17c20b-19f9-4365-9ab2-b39746d53e55
2026-08-22 14:27:09,634 - DEBUG - Requesting: http://10.0.0.33:8082/project/501449be-8d87-4a36-87a4-fb970ce63b29
2026-08-22 14:27:09,719 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a7fc3c3b-1271-4922-9687-8e1d30847121
2026-08-22 14:27:09,735 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a7fc3c3b-1271-4922-9687-8e1d30847121
2026-08-22 14:27:09,747 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/66288961-43b9-4dd9-be4a-8bca6868f832
2026-08-22 14:27:09,756 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/66288961-43b9-4dd9-be4a-8bca6868f832
2026-08-22 14:27:09,764 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9dee4c85-d778-42c6-98e0-8aec381d1e75
2026-08-22 14:27:09,772 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-22 14:27:09,772 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a7fc3c3b-1271-4922-9687-8e1d30847121
2026-08-22 14:27:09,781 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/66288961-43b9-4dd9-be4a-8bca6868f832
2026-08-22 14:27:09,797 - INFO - Verified VN network id 12 for VN a7fc3c3b-1271-4922-9687-8e1d30847121
2026-08-22 14:27:09,797 - INFO - Verifications in API Server for VN ctest-vn-21677719 passed
2026-08-22 14:27:09,797 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a7fc3c3b-1271-4922-9687-8e1d30847121
2026-08-22 14:27:09,807 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/66288961-43b9-4dd9-be4a-8bca6868f832
2026-08-22 14:27:09,816 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/66288961-43b9-4dd9-be4a-8bca6868f832
2026-08-22 14:27:09,825 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9dee4c85-d778-42c6-98e0-8aec381d1e75
2026-08-22 14:27:09,840 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75096682:ctest-vn-21677719', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75096682', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12104616122875201826', 'uuid-lslong': '10846794483564310817'}, 'enable': 'true', 'created': '2026-08-22T14:27:07', 'last-modified': '2026-08-22T14:27:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.582942'}
2026-08-22 14:27:09,851 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-22 14:27:09,851 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21677719 passed
2026-08-22 14:27:09,851 - DEBUG - ====Verifying policy data for ctest-vn-21677719 in API_Server ======
2026-08-22 14:27:09,851 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-08-22 14:27:09,858 - DEBUG - Requesting: http://10.0.0.33:8082/domain/be17c20b-19f9-4365-9ab2-b39746d53e55
2026-08-22 14:27:09,870 - DEBUG - Requesting: http://10.0.0.33:8082/project/501449be-8d87-4a36-87a4-fb970ce63b29
2026-08-22 14:27:09,953 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/a7fc3c3b-1271-4922-9687-8e1d30847121
2026-08-22 14:27:09,963 - DEBUG - ==>Verifying data for policy with id: 08308e32-0e78-4d55-a453-8d22beb80a2b, fqn: ['default-domain', 'ctest-TestBasicPolicy-75096682', 'ctest-policy-allow-all-03103812']
2026-08-22 14:27:09,963 - INFO - VN ctest-vn-21677719 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-22 14:27:09,963 - DEBUG - Verifying the vn in opserver
2026-08-22 14:27:09,963 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75096682:ctest-vn-21677719 virtual network link through opserver 10.0.0.33
2026-08-22 14:27:09,963 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-08-22 14:27:09,976 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75096682:ctest-vn-21677719', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75096682:ctest-vn-21677719?flat'}
2026-08-22 14:27:09,976 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75096682:ctest-vn-21677719 is found in opserver
2026-08-22 14:27:09,989 - DEBUG - Do not have enough data to verify VN in agent
2026-08-22 14:27:09,995 - DEBUG - VRF ids for VN ctest-vn-21677719: {}
2026-08-22 14:27:10,060 - DEBUG - Services list from nova: [