2026-01-20 15:38:11,689 - INFO - Domain Default found not creating
2026-01-20 15:38:11,920 - INFO - Project ctest-TestBasicPolicy-46371465 not found, creating it
2026-01-20 15:38:12,427 - INFO - Created Project:ctest-TestBasicPolicy-46371465, ID : 0a361458-1ff2-47d2-8b32-3a9d992cd647
2026-01-20 15:38:14,139 - INFO - ================================================================================
2026-01-20 15:38:14,139 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-20 15:38:14,139 - 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 15:38:14,416 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-01-20 15:38:14,416 - INFO - Initial checks done. Running the testcase now
2026-01-20 15:38:14,416 - INFO -
2026-01-20 15:38:15,014 - DEBUG - Response for create_network : {'network': {'id': '172195f2-4383-4caf-a185-c0bb3b4509fb', 'name': 'ctest-vn-46537654', 'tenant_id': '0a3614581ff247d28b323a9d992cd647', 'project_id': '0a3614581ff247d28b323a9d992cd647', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46371465', 'ctest-vn-46537654'], 'port_security_enabled': True, 'description': ''}}
2026-01-20 15:38:15,203 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0be08f9-5cf9-44e8-a5dc-a0bf73d6d188', 'name': '', 'tenant_id': '0a3614581ff247d28b323a9d992cd647', 'network_id': '172195f2-4383-4caf-a185-c0bb3b4509fb', 'ip_version': 4, 'cidr': '117.43.36.192/26', 'allocation_pools': [{'start': '117.43.36.194', 'end': '117.43.36.254'}], 'gateway_ip': '117.43.36.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.43.36.194', 'tags': [], 'project_id': '0a3614581ff247d28b323a9d992cd647'}}
2026-01-20 15:38:15,227 - INFO - Created VN ctest-vn-46537654
2026-01-20 15:38:15,282 - DEBUG - VN ctest-vn-46537654 UUID is 172195f2-4383-4caf-a185-c0bb3b4509fb
2026-01-20 15:38:15,605 - DEBUG - Response for create_network : {'network': {'id': '08a06e8f-c658-462c-b411-093827b18aee', 'name': 'ctest-vn-53130981', 'tenant_id': '0a3614581ff247d28b323a9d992cd647', 'project_id': '0a3614581ff247d28b323a9d992cd647', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46371465', 'ctest-vn-53130981'], 'port_security_enabled': True, 'description': ''}}
2026-01-20 15:38:15,838 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c20c00a3-966f-452c-a6cf-24df44e3a385', 'name': '', 'tenant_id': '0a3614581ff247d28b323a9d992cd647', 'network_id': '08a06e8f-c658-462c-b411-093827b18aee', 'ip_version': 4, 'cidr': '167.30.237.192/26', 'allocation_pools': [{'start': '167.30.237.194', 'end': '167.30.237.254'}], 'gateway_ip': '167.30.237.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.30.237.194', 'tags': [], 'project_id': '0a3614581ff247d28b323a9d992cd647'}}
2026-01-20 15:38:15,861 - INFO - Created VN ctest-vn-53130981
2026-01-20 15:38:15,914 - DEBUG - VN ctest-vn-53130981 UUID is 08a06e8f-c658-462c-b411-093827b18aee
2026-01-20 15:38:16,034 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46371465:ctest-vn-46537654, 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-46371465:ctest-vn-53130981, 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 15:38:16,351 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '172195f2-4383-4caf-a185-c0bb3b4509fb', 'name': 'ctest-vn-46537654', 'tenant_id': '0a3614581ff247d28b323a9d992cd647', 'project_id': '0a3614581ff247d28b323a9d992cd647', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0be08f9-5cf9-44e8-a5dc-a0bf73d6d188'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46371465', 'ctest-vn-46537654'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46371465', 'ctest-policy-allow-all-19329699']], 'subnet_ipam': [{'subnet_cidr': '117.43.36.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-20 15:38:16,602 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '08a06e8f-c658-462c-b411-093827b18aee', 'name': 'ctest-vn-53130981', 'tenant_id': '0a3614581ff247d28b323a9d992cd647', 'project_id': '0a3614581ff247d28b323a9d992cd647', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c20c00a3-966f-452c-a6cf-24df44e3a385'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46371465', 'ctest-vn-53130981'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46371465', 'ctest-policy-allow-all-19329699']], 'subnet_ipam': [{'subnet_cidr': '167.30.237.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-20 15:38:16,772 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-20 15:38:17,080 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-20 15:38:17,121 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3bc5aa90-91ed-41a6-8596-526f2437f8ef
2026-01-20 15:38:17,136 - DEBUG - Requesting: http://10.0.0.50:8082/project/0a361458-1ff2-47d2-8b32-3a9d992cd647
2026-01-20 15:38:17,217 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/172195f2-4383-4caf-a185-c0bb3b4509fb
2026-01-20 15:38:17,229 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/172195f2-4383-4caf-a185-c0bb3b4509fb
2026-01-20 15:38:17,241 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d279af79-62ec-495b-89d7-bfdeed2abd98
2026-01-20 15:38:17,249 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d279af79-62ec-495b-89d7-bfdeed2abd98
2026-01-20 15:38:17,257 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a419b759-c6ae-4195-bf19-f5e746aa2dd1
2026-01-20 15:38:17,264 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-20 15:38:17,264 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/172195f2-4383-4caf-a185-c0bb3b4509fb
2026-01-20 15:38:17,275 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d279af79-62ec-495b-89d7-bfdeed2abd98
2026-01-20 15:38:17,293 - INFO - Verified VN network id 12 for VN 172195f2-4383-4caf-a185-c0bb3b4509fb
2026-01-20 15:38:17,293 - INFO - Verifications in API Server for VN ctest-vn-46537654 passed
2026-01-20 15:38:17,293 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/172195f2-4383-4caf-a185-c0bb3b4509fb
2026-01-20 15:38:17,303 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d279af79-62ec-495b-89d7-bfdeed2abd98
2026-01-20 15:38:17,312 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d279af79-62ec-495b-89d7-bfdeed2abd98
2026-01-20 15:38:17,320 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a419b759-c6ae-4195-bf19-f5e746aa2dd1
2026-01-20 15:38:17,334 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46371465:ctest-vn-46537654', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46371465', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1666778204851096751', 'uuid-lslong': '11638920722394712571'}, 'enable': 'true', 'created': '2026-01-20T15:38:14', 'last-modified': '2026-01-20T15:38:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.006888'}
2026-01-20 15:38:17,343 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-20 15:38:17,343 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46537654 passed
2026-01-20 15:38:17,343 - DEBUG - ====Verifying policy data for ctest-vn-46537654 in API_Server ======
2026-01-20 15:38:17,343 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-20 15:38:17,350 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3bc5aa90-91ed-41a6-8596-526f2437f8ef
2026-01-20 15:38:17,361 - DEBUG - Requesting: http://10.0.0.50:8082/project/0a361458-1ff2-47d2-8b32-3a9d992cd647
2026-01-20 15:38:17,438 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/172195f2-4383-4caf-a185-c0bb3b4509fb
2026-01-20 15:38:17,449 - DEBUG - ==>Verifying data for policy with id: 34527896-56a4-409a-8eb8-da10a75e2e09, fqn: ['default-domain', 'ctest-TestBasicPolicy-46371465', 'ctest-policy-allow-all-19329699']
2026-01-20 15:38:17,449 - INFO - VN ctest-vn-46537654 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-20 15:38:17,449 - DEBUG - Verifying the vn in opserver
2026-01-20 15:38:17,449 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46371465:ctest-vn-46537654 virtual network link through opserver 10.0.0.50
2026-01-20 15:38:17,449 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-20 15:38:17,759 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-20 15:38:17,835 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46371465:ctest-vn-46537654', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46371465:ctest-vn-46537654?flat'}
2026-01-20 15:38:17,835 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46371465:ctest-vn-46537654 is found in opserver
2026-01-20 15:38:17,847 - DEBUG - Do not have enough data to verify VN in agent
2026-01-20 15:38:17,853 - DEBUG - VRF ids for VN ctest-vn-46537654: {}
2026-01-20 15:38:17,853 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-20 15:38:17,860 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3bc5aa90-91ed-41a6-8596-526f2437f8ef
2026-01-20 15:38:17,873 - DEBUG - Requesting: http://10.0.0.50:8082/project/0a361458-1ff2-47d2-8b32-3a9d992cd647
2026-01-20 15:38:17,948 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/08a06e8f-c658-462c-b411-093827b18aee
2026-01-20 15:38:17,962 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/08a06e8f-c658-462c-b411-093827b18aee
2026-01-20 15:38:17,973 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4e24ef8d-4817-44d8-ab44-7b6471c68219
2026-01-20 15:38:17,982 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4e24ef8d-4817-44d8-ab44-7b6471c68219
2026-01-20 15:38:17,991 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e1ecddea-486c-4da9-80df-836b798b9f04
2026-01-20 15:38:18,000 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-20 15:38:18,000 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/08a06e8f-c658-462c-b411-093827b18aee
2026-01-20 15:38:18,010 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4e24ef8d-4817-44d8-ab44-7b6471c68219
2026-01-20 15:38:18,026 - INFO - Verified VN network id 13 for VN 08a06e8f-c658-462c-b411-093827b18aee
2026-01-20 15:38:18,027 - INFO - Verifications in API Server for VN ctest-vn-53130981 passed
2026-01-20 15:38:18,027 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/08a06e8f-c658-462c-b411-093827b18aee
2026-01-20 15:38:18,038 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4e24ef8d-4817-44d8-ab44-7b6471c68219
2026-01-20 15:38:18,047 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4e24ef8d-4817-44d8-ab44-7b6471c68219
2026-01-20 15:38:18,057 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e1ecddea-486c-4da9-80df-836b798b9f04
2026-01-20 15:38:18,071 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46371465:ctest-vn-53130981', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46371465', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '621618312364181036', 'uuid-lslong': '12975162138219875054'}, 'enable': 'true', 'created': '2026-01-20T15:38:15', 'last-modified': '2026-01-20T15:38:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.508015'}
2026-01-20 15:38:18,078 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-20 15:38:18,078 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53130981 passed
2026-01-20 15:38:18,078 - DEBUG - ====Verifying policy data for ctest-vn-53130981 in API_Server ======
2026-01-20 15:38:18,078 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-01-20 15:38:18,086 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3bc5aa90-91ed-41a6-8596-526f2437f8ef
2026-01-20 15:38:18,097 - DEBUG - Requesting: http://10.0.0.50:8082/project/0a361458-1ff2-47d2-8b32-3a9d992cd647
2026-01-20 15:38:18,171 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/08a06e8f-c658-462c-b411-093827b18aee
2026-01-20 15:38:18,182 - DEBUG - ==>Verifying data for policy with id: 34527896-56a4-409a-8eb8-da10a75e2e09, fqn: ['default-domain', 'ctest-TestBasicPolicy-46371465', 'ctest-policy-allow-all-19329699']
2026-01-20 15:38:18,182 - INFO - VN ctest-vn-53130981 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-20 15:38:18,182 - DEBUG - Verifying the vn in opserver
2026-01-20 15:38:18,182 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46371465:ctest-vn-53130981 virtual network link through opserver 10.0.0.50
2026-01-20 15:38:18,183 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-01-20 15:38:18,194 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46371465:ctest-vn-53130981', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46371465:ctest-vn-53130981?flat'}
2026-01-20 15:38:18,194 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46371465:ctest-vn-53130981 is found in opserver
2026-01-20 15:38:18,204 - DEBUG - Do not have enough data to verify VN in agent
2026-01-20 15:38:18,209 - DEBUG - VRF ids for VN ctest-vn-53130981: {}
2026-01-20 15:38:18,277 - DEBUG - Services list from nova: [