2026-06-24 22:33:33,529 - INFO - Domain Default found not creating
2026-06-24 22:33:33,651 - INFO - Project ctest-TestBasicPolicy-00835868 not found, creating it
2026-06-24 22:33:34,053 - INFO - Created Project:ctest-TestBasicPolicy-00835868, ID : c005fd6b-e7e7-4874-9ac4-db3cb03c6a08
2026-06-24 22:33:35,413 - INFO - ================================================================================
2026-06-24 22:33:35,413 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-24 22:33:35,413 - 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-06-24 22:33:35,661 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-06-24 22:33:35,661 - INFO - Initial checks done. Running the testcase now
2026-06-24 22:33:35,661 - INFO -
2026-06-24 22:33:36,168 - DEBUG - Response for create_network : {'network': {'id': 'dffdc74c-812d-4517-8931-2dadb6976ccb', 'name': 'ctest-vn-17069092', 'tenant_id': 'c005fd6be7e748749ac4db3cb03c6a08', 'project_id': 'c005fd6be7e748749ac4db3cb03c6a08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00835868', 'ctest-vn-17069092'], 'port_security_enabled': True, 'description': ''}}
2026-06-24 22:33:36,375 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cfbc25ee-a813-461e-b746-4155f0a13d9a', 'name': '', 'tenant_id': 'c005fd6be7e748749ac4db3cb03c6a08', 'network_id': 'dffdc74c-812d-4517-8931-2dadb6976ccb', 'ip_version': 4, 'cidr': '83.128.15.64/26', 'allocation_pools': [{'start': '83.128.15.66', 'end': '83.128.15.126'}], 'gateway_ip': '83.128.15.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.128.15.66', 'tags': [], 'project_id': 'c005fd6be7e748749ac4db3cb03c6a08'}}
2026-06-24 22:33:36,389 - INFO - Created VN ctest-vn-17069092
2026-06-24 22:33:36,441 - DEBUG - VN ctest-vn-17069092 UUID is dffdc74c-812d-4517-8931-2dadb6976ccb
2026-06-24 22:33:36,722 - DEBUG - Response for create_network : {'network': {'id': '73374478-4327-43d1-848c-17663825d586', 'name': 'ctest-vn-04011755', 'tenant_id': 'c005fd6be7e748749ac4db3cb03c6a08', 'project_id': 'c005fd6be7e748749ac4db3cb03c6a08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00835868', 'ctest-vn-04011755'], 'port_security_enabled': True, 'description': ''}}
2026-06-24 22:33:36,865 - DEBUG - Response for create_subnet : {'subnet': {'id': '35ae733d-e8c3-4a48-b87a-3cb15e01b835', 'name': '', 'tenant_id': 'c005fd6be7e748749ac4db3cb03c6a08', 'network_id': '73374478-4327-43d1-848c-17663825d586', 'ip_version': 4, 'cidr': '190.63.171.0/26', 'allocation_pools': [{'start': '190.63.171.2', 'end': '190.63.171.62'}], 'gateway_ip': '190.63.171.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.63.171.2', 'tags': [], 'project_id': 'c005fd6be7e748749ac4db3cb03c6a08'}}
2026-06-24 22:33:36,879 - INFO - Created VN ctest-vn-04011755
2026-06-24 22:33:36,929 - DEBUG - VN ctest-vn-04011755 UUID is 73374478-4327-43d1-848c-17663825d586
2026-06-24 22:33:37,065 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00835868:ctest-vn-17069092, 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-00835868:ctest-vn-04011755, 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-06-24 22:33:37,333 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dffdc74c-812d-4517-8931-2dadb6976ccb', 'name': 'ctest-vn-17069092', 'tenant_id': 'c005fd6be7e748749ac4db3cb03c6a08', 'project_id': 'c005fd6be7e748749ac4db3cb03c6a08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cfbc25ee-a813-461e-b746-4155f0a13d9a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00835868', 'ctest-vn-17069092'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00835868', 'ctest-policy-allow-all-17907720']], 'subnet_ipam': [{'subnet_cidr': '83.128.15.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-24 22:33:37,547 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '73374478-4327-43d1-848c-17663825d586', 'name': 'ctest-vn-04011755', 'tenant_id': 'c005fd6be7e748749ac4db3cb03c6a08', 'project_id': 'c005fd6be7e748749ac4db3cb03c6a08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['35ae733d-e8c3-4a48-b87a-3cb15e01b835'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00835868', 'ctest-vn-04011755'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00835868', 'ctest-policy-allow-all-17907720']], 'subnet_ipam': [{'subnet_cidr': '190.63.171.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-24 22:33:37,709 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-24 22:33:38,026 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-24 22:33:38,048 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f4b6c565-acf2-4aab-85c0-d1678f98e284
2026-06-24 22:33:38,058 - DEBUG - Requesting: http://10.0.0.50:8082/project/c005fd6b-e7e7-4874-9ac4-db3cb03c6a08
2026-06-24 22:33:38,126 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dffdc74c-812d-4517-8931-2dadb6976ccb
2026-06-24 22:33:38,135 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dffdc74c-812d-4517-8931-2dadb6976ccb
2026-06-24 22:33:38,142 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5df61b32-b393-4f2a-9a7f-46490d85f8f1
2026-06-24 22:33:38,148 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5df61b32-b393-4f2a-9a7f-46490d85f8f1
2026-06-24 22:33:38,152 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ada028d3-3453-4c86-9cc4-bf285b04738d
2026-06-24 22:33:38,157 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-24 22:33:38,157 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dffdc74c-812d-4517-8931-2dadb6976ccb
2026-06-24 22:33:38,164 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5df61b32-b393-4f2a-9a7f-46490d85f8f1
2026-06-24 22:33:38,176 - INFO - Verified VN network id 11 for VN dffdc74c-812d-4517-8931-2dadb6976ccb
2026-06-24 22:33:38,176 - INFO - Verifications in API Server for VN ctest-vn-17069092 passed
2026-06-24 22:33:38,176 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dffdc74c-812d-4517-8931-2dadb6976ccb
2026-06-24 22:33:38,183 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5df61b32-b393-4f2a-9a7f-46490d85f8f1
2026-06-24 22:33:38,188 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5df61b32-b393-4f2a-9a7f-46490d85f8f1
2026-06-24 22:33:38,195 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ada028d3-3453-4c86-9cc4-bf285b04738d
2026-06-24 22:33:38,203 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00835868:ctest-vn-17069092', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00835868', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16140275770964395287', 'uuid-lslong': '9885732881170918603'}, 'enable': 'true', 'created': '2026-06-24T22:33:36', 'last-modified': '2026-06-24T22:33:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.888119'}
2026-06-24 22:33:38,208 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-24 22:33:38,208 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17069092 passed
2026-06-24 22:33:38,208 - DEBUG - ====Verifying policy data for ctest-vn-17069092 in API_Server ======
2026-06-24 22:33:38,208 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-24 22:33:38,212 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f4b6c565-acf2-4aab-85c0-d1678f98e284
2026-06-24 22:33:38,223 - DEBUG - Requesting: http://10.0.0.50:8082/project/c005fd6b-e7e7-4874-9ac4-db3cb03c6a08
2026-06-24 22:33:38,289 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/dffdc74c-812d-4517-8931-2dadb6976ccb
2026-06-24 22:33:38,297 - DEBUG - ==>Verifying data for policy with id: 8635d0a0-eea7-4930-a718-7d95fa5db25a, fqn: ['default-domain', 'ctest-TestBasicPolicy-00835868', 'ctest-policy-allow-all-17907720']
2026-06-24 22:33:38,297 - INFO - VN ctest-vn-17069092 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-24 22:33:38,297 - DEBUG - Verifying the vn in opserver
2026-06-24 22:33:38,297 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00835868:ctest-vn-17069092 virtual network link through opserver 10.0.0.50
2026-06-24 22:33:38,297 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-24 22:33:38,611 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-24 22:33:38,654 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00835868:ctest-vn-17069092', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00835868:ctest-vn-17069092?flat'}
2026-06-24 22:33:38,654 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00835868:ctest-vn-17069092 is found in opserver
2026-06-24 22:33:38,662 - DEBUG - Do not have enough data to verify VN in agent
2026-06-24 22:33:38,665 - DEBUG - VRF ids for VN ctest-vn-17069092: {}
2026-06-24 22:33:38,665 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-24 22:33:38,670 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f4b6c565-acf2-4aab-85c0-d1678f98e284
2026-06-24 22:33:38,678 - DEBUG - Requesting: http://10.0.0.50:8082/project/c005fd6b-e7e7-4874-9ac4-db3cb03c6a08
2026-06-24 22:33:38,742 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/73374478-4327-43d1-848c-17663825d586
2026-06-24 22:33:38,752 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/73374478-4327-43d1-848c-17663825d586
2026-06-24 22:33:38,760 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f551cb8b-c53f-48fd-900f-f0da86c4c1fd
2026-06-24 22:33:38,765 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f551cb8b-c53f-48fd-900f-f0da86c4c1fd
2026-06-24 22:33:38,771 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2dc3256a-8e68-4fb2-ace2-9502d035a2f7
2026-06-24 22:33:38,775 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-24 22:33:38,775 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/73374478-4327-43d1-848c-17663825d586
2026-06-24 22:33:38,783 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f551cb8b-c53f-48fd-900f-f0da86c4c1fd
2026-06-24 22:33:38,794 - INFO - Verified VN network id 12 for VN 73374478-4327-43d1-848c-17663825d586
2026-06-24 22:33:38,794 - INFO - Verifications in API Server for VN ctest-vn-04011755 passed
2026-06-24 22:33:38,794 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/73374478-4327-43d1-848c-17663825d586
2026-06-24 22:33:38,801 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f551cb8b-c53f-48fd-900f-f0da86c4c1fd
2026-06-24 22:33:38,806 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f551cb8b-c53f-48fd-900f-f0da86c4c1fd
2026-06-24 22:33:38,811 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2dc3256a-8e68-4fb2-ace2-9502d035a2f7
2026-06-24 22:33:38,820 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00835868:ctest-vn-04011755', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00835868', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8302179721394209745', 'uuid-lslong': '9551034637542086022'}, 'enable': 'true', 'created': '2026-06-24T22:33:36', 'last-modified': '2026-06-24T22:33:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.285577'}
2026-06-24 22:33:38,824 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-24 22:33:38,824 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04011755 passed
2026-06-24 22:33:38,824 - DEBUG - ====Verifying policy data for ctest-vn-04011755 in API_Server ======
2026-06-24 22:33:38,824 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-24 22:33:38,828 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f4b6c565-acf2-4aab-85c0-d1678f98e284
2026-06-24 22:33:38,837 - DEBUG - Requesting: http://10.0.0.50:8082/project/c005fd6b-e7e7-4874-9ac4-db3cb03c6a08
2026-06-24 22:33:38,906 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/73374478-4327-43d1-848c-17663825d586
2026-06-24 22:33:38,914 - DEBUG - ==>Verifying data for policy with id: 8635d0a0-eea7-4930-a718-7d95fa5db25a, fqn: ['default-domain', 'ctest-TestBasicPolicy-00835868', 'ctest-policy-allow-all-17907720']
2026-06-24 22:33:38,914 - INFO - VN ctest-vn-04011755 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-24 22:33:38,914 - DEBUG - Verifying the vn in opserver
2026-06-24 22:33:38,914 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00835868:ctest-vn-04011755 virtual network link through opserver 10.0.0.50
2026-06-24 22:33:38,914 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-24 22:33:38,922 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00835868:ctest-vn-04011755', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00835868:ctest-vn-04011755?flat'}
2026-06-24 22:33:38,922 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00835868:ctest-vn-04011755 is found in opserver
2026-06-24 22:33:38,931 - DEBUG - Do not have enough data to verify VN in agent
2026-06-24 22:33:38,934 - DEBUG - VRF ids for VN ctest-vn-04011755: {}
2026-06-24 22:33:38,980 - DEBUG - Services list from nova: [