2026-01-20 10:30:10,128 - INFO - Domain Default found not creating
2026-01-20 10:30:10,281 - INFO - Project ctest-TestBasicPolicy-60262208 not found, creating it
2026-01-20 10:30:10,724 - INFO - Created Project:ctest-TestBasicPolicy-60262208, ID : 41ff682f-e3f7-4de5-9667-60b345e88091
2026-01-20 10:30:12,192 - INFO - ================================================================================
2026-01-20 10:30:12,192 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-20 10:30:12,192 - 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-01-20 10:30:12,449 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-01-20 10:30:12,449 - INFO - Initial checks done. Running the testcase now
2026-01-20 10:30:12,449 - INFO -
2026-01-20 10:30:12,987 - DEBUG - Response for create_network : {'network': {'id': '5387d711-99a3-46c1-babf-8a1236fb6531', 'name': 'ctest-vn-62347054', 'tenant_id': '41ff682fe3f74de5966760b345e88091', 'project_id': '41ff682fe3f74de5966760b345e88091', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60262208', 'ctest-vn-62347054'], 'port_security_enabled': True, 'description': ''}}
2026-01-20 10:30:13,145 - DEBUG - Response for create_subnet : {'subnet': {'id': '75cfb7b7-bd02-4965-939d-e549dc3b116c', 'name': '', 'tenant_id': '41ff682fe3f74de5966760b345e88091', 'network_id': '5387d711-99a3-46c1-babf-8a1236fb6531', 'ip_version': 4, 'cidr': '207.217.208.64/26', 'allocation_pools': [{'start': '207.217.208.66', 'end': '207.217.208.126'}], 'gateway_ip': '207.217.208.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.217.208.66', 'tags': [], 'project_id': '41ff682fe3f74de5966760b345e88091'}}
2026-01-20 10:30:13,160 - INFO - Created VN ctest-vn-62347054
2026-01-20 10:30:13,212 - DEBUG - VN ctest-vn-62347054 UUID is 5387d711-99a3-46c1-babf-8a1236fb6531
2026-01-20 10:30:13,525 - DEBUG - Response for create_network : {'network': {'id': '5da8ae0b-f72a-4411-9c40-2053c0848194', 'name': 'ctest-vn-90670907', 'tenant_id': '41ff682fe3f74de5966760b345e88091', 'project_id': '41ff682fe3f74de5966760b345e88091', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60262208', 'ctest-vn-90670907'], 'port_security_enabled': True, 'description': ''}}
2026-01-20 10:30:13,735 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f11bb41b-c322-4132-b397-74605da11056', 'name': '', 'tenant_id': '41ff682fe3f74de5966760b345e88091', 'network_id': '5da8ae0b-f72a-4411-9c40-2053c0848194', 'ip_version': 4, 'cidr': '223.112.52.128/26', 'allocation_pools': [{'start': '223.112.52.130', 'end': '223.112.52.190'}], 'gateway_ip': '223.112.52.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.112.52.130', 'tags': [], 'project_id': '41ff682fe3f74de5966760b345e88091'}}
2026-01-20 10:30:13,751 - INFO - Created VN ctest-vn-90670907
2026-01-20 10:30:13,800 - DEBUG - VN ctest-vn-90670907 UUID is 5da8ae0b-f72a-4411-9c40-2053c0848194
2026-01-20 10:30:13,944 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60262208:ctest-vn-62347054, 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-60262208:ctest-vn-90670907, 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-01-20 10:30:14,227 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5387d711-99a3-46c1-babf-8a1236fb6531', 'name': 'ctest-vn-62347054', 'tenant_id': '41ff682fe3f74de5966760b345e88091', 'project_id': '41ff682fe3f74de5966760b345e88091', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['75cfb7b7-bd02-4965-939d-e549dc3b116c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60262208', 'ctest-vn-62347054'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60262208', 'ctest-policy-allow-all-73752913']], 'subnet_ipam': [{'subnet_cidr': '207.217.208.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-20 10:30:14,483 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5da8ae0b-f72a-4411-9c40-2053c0848194', 'name': 'ctest-vn-90670907', 'tenant_id': '41ff682fe3f74de5966760b345e88091', 'project_id': '41ff682fe3f74de5966760b345e88091', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f11bb41b-c322-4132-b397-74605da11056'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60262208', 'ctest-vn-90670907'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60262208', 'ctest-policy-allow-all-73752913']], 'subnet_ipam': [{'subnet_cidr': '223.112.52.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-20 10:30:14,600 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-20 10:30:14,902 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-20 10:30:14,930 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7018251f-5a66-4dc2-8254-c9c84769efc9
2026-01-20 10:30:14,940 - DEBUG - Requesting: http://10.0.0.38:8082/project/41ff682f-e3f7-4de5-9667-60b345e88091
2026-01-20 10:30:15,012 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5387d711-99a3-46c1-babf-8a1236fb6531
2026-01-20 10:30:15,021 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5387d711-99a3-46c1-babf-8a1236fb6531
2026-01-20 10:30:15,030 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad4f90a6-3392-4045-ab4f-6c7d94518d86
2026-01-20 10:30:15,036 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad4f90a6-3392-4045-ab4f-6c7d94518d86
2026-01-20 10:30:15,042 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b6d4f1c3-d5c4-447f-9470-d124139ade9c
2026-01-20 10:30:15,048 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-20 10:30:15,048 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5387d711-99a3-46c1-babf-8a1236fb6531
2026-01-20 10:30:15,055 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad4f90a6-3392-4045-ab4f-6c7d94518d86
2026-01-20 10:30:15,068 - INFO - Verified VN network id 12 for VN 5387d711-99a3-46c1-babf-8a1236fb6531
2026-01-20 10:30:15,069 - INFO - Verifications in API Server for VN ctest-vn-62347054 passed
2026-01-20 10:30:15,069 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5387d711-99a3-46c1-babf-8a1236fb6531
2026-01-20 10:30:15,076 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad4f90a6-3392-4045-ab4f-6c7d94518d86
2026-01-20 10:30:15,083 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad4f90a6-3392-4045-ab4f-6c7d94518d86
2026-01-20 10:30:15,089 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b6d4f1c3-d5c4-447f-9470-d124139ade9c
2026-01-20 10:30:15,099 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60262208:ctest-vn-62347054', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60262208', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6019015897595987649', 'uuid-lslong': '13456626022442820913'}, 'enable': 'true', 'created': '2026-01-20T10:30:12', 'last-modified': '2026-01-20T10:30:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.886563'}
2026-01-20 10:30:15,105 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-20 10:30:15,105 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62347054 passed
2026-01-20 10:30:15,105 - DEBUG - ====Verifying policy data for ctest-vn-62347054 in API_Server ======
2026-01-20 10:30:15,105 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-20 10:30:15,110 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7018251f-5a66-4dc2-8254-c9c84769efc9
2026-01-20 10:30:15,119 - DEBUG - Requesting: http://10.0.0.38:8082/project/41ff682f-e3f7-4de5-9667-60b345e88091
2026-01-20 10:30:15,190 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5387d711-99a3-46c1-babf-8a1236fb6531
2026-01-20 10:30:15,199 - DEBUG - ==>Verifying data for policy with id: f76c4f03-cf60-4869-b7cb-a7b1c7c1abbc, fqn: ['default-domain', 'ctest-TestBasicPolicy-60262208', 'ctest-policy-allow-all-73752913']
2026-01-20 10:30:15,199 - INFO - VN ctest-vn-62347054 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-20 10:30:15,199 - DEBUG - Verifying the vn in opserver
2026-01-20 10:30:15,199 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60262208:ctest-vn-62347054 virtual network link through opserver 10.0.0.38
2026-01-20 10:30:15,199 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-20 10:30:15,494 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-20 10:30:15,551 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60262208:ctest-vn-62347054', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60262208:ctest-vn-62347054?flat'}
2026-01-20 10:30:15,551 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60262208:ctest-vn-62347054 is found in opserver
2026-01-20 10:30:15,559 - DEBUG - Do not have enough data to verify VN in agent
2026-01-20 10:30:15,563 - DEBUG - VRF ids for VN ctest-vn-62347054: {}
2026-01-20 10:30:15,563 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-20 10:30:15,568 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7018251f-5a66-4dc2-8254-c9c84769efc9
2026-01-20 10:30:15,578 - DEBUG - Requesting: http://10.0.0.38:8082/project/41ff682f-e3f7-4de5-9667-60b345e88091
2026-01-20 10:30:15,647 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5da8ae0b-f72a-4411-9c40-2053c0848194
2026-01-20 10:30:15,657 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5da8ae0b-f72a-4411-9c40-2053c0848194
2026-01-20 10:30:15,664 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d503d589-af80-48ba-9d94-9d300d3eb09a
2026-01-20 10:30:15,670 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d503d589-af80-48ba-9d94-9d300d3eb09a
2026-01-20 10:30:15,676 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e8387739-bd08-4f53-98e2-3b0aa445478f
2026-01-20 10:30:15,681 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-20 10:30:15,681 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5da8ae0b-f72a-4411-9c40-2053c0848194
2026-01-20 10:30:15,690 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d503d589-af80-48ba-9d94-9d300d3eb09a
2026-01-20 10:30:15,709 - INFO - Verified VN network id 13 for VN 5da8ae0b-f72a-4411-9c40-2053c0848194
2026-01-20 10:30:15,710 - INFO - Verifications in API Server for VN ctest-vn-90670907 passed
2026-01-20 10:30:15,710 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5da8ae0b-f72a-4411-9c40-2053c0848194
2026-01-20 10:30:15,719 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d503d589-af80-48ba-9d94-9d300d3eb09a
2026-01-20 10:30:15,726 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d503d589-af80-48ba-9d94-9d300d3eb09a
2026-01-20 10:30:15,733 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e8387739-bd08-4f53-98e2-3b0aa445478f
2026-01-20 10:30:15,744 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60262208:ctest-vn-90670907', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60262208', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6748835408029303825', 'uuid-lslong': '11259034612510523796'}, 'enable': 'true', 'created': '2026-01-20T10:30:13', 'last-modified': '2026-01-20T10:30:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.316845'}
2026-01-20 10:30:15,751 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-20 10:30:15,751 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90670907 passed
2026-01-20 10:30:15,751 - DEBUG - ====Verifying policy data for ctest-vn-90670907 in API_Server ======
2026-01-20 10:30:15,751 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-20 10:30:15,757 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7018251f-5a66-4dc2-8254-c9c84769efc9
2026-01-20 10:30:15,766 - DEBUG - Requesting: http://10.0.0.38:8082/project/41ff682f-e3f7-4de5-9667-60b345e88091
2026-01-20 10:30:15,840 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5da8ae0b-f72a-4411-9c40-2053c0848194
2026-01-20 10:30:15,848 - DEBUG - ==>Verifying data for policy with id: f76c4f03-cf60-4869-b7cb-a7b1c7c1abbc, fqn: ['default-domain', 'ctest-TestBasicPolicy-60262208', 'ctest-policy-allow-all-73752913']
2026-01-20 10:30:15,848 - INFO - VN ctest-vn-90670907 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-20 10:30:15,848 - DEBUG - Verifying the vn in opserver
2026-01-20 10:30:15,848 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60262208:ctest-vn-90670907 virtual network link through opserver 10.0.0.38
2026-01-20 10:30:15,848 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-20 10:30:15,856 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60262208:ctest-vn-90670907', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60262208:ctest-vn-90670907?flat'}
2026-01-20 10:30:15,856 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60262208:ctest-vn-90670907 is found in opserver
2026-01-20 10:30:15,864 - DEBUG - Do not have enough data to verify VN in agent
2026-01-20 10:30:15,868 - DEBUG - VRF ids for VN ctest-vn-90670907: {}
2026-01-20 10:30:15,923 - DEBUG - Services list from nova: [