2025-10-31 16:25:51,355 - INFO - Domain Default found not creating
2025-10-31 16:25:51,733 - INFO - Project ctest-TestBasicPolicy-78228063 not found, creating it
2025-10-31 16:25:52,393 - INFO - Created Project:ctest-TestBasicPolicy-78228063, ID : 3a2508f0-a1ba-44d7-97a5-7993f2474c31
2025-10-31 16:25:54,745 - INFO - ================================================================================
2025-10-31 16:25:54,745 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-31 16:25:54,746 - 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
2025-10-31 16:25:55,074 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-10-31 16:25:55,074 - INFO - Initial checks done. Running the testcase now
2025-10-31 16:25:55,074 - INFO -
2025-10-31 16:25:55,809 - DEBUG - Response for create_network : {'network': {'id': 'f1ca5383-ebd4-4090-841d-e8390ea6c2bd', 'name': 'ctest-vn-35512327', 'tenant_id': '3a2508f0a1ba44d797a57993f2474c31', 'project_id': '3a2508f0a1ba44d797a57993f2474c31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78228063', 'ctest-vn-35512327'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 16:25:56,036 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b81a6fd5-b92c-41e6-9f47-af2194dbcb8b', 'name': '', 'tenant_id': '3a2508f0a1ba44d797a57993f2474c31', 'network_id': 'f1ca5383-ebd4-4090-841d-e8390ea6c2bd', 'ip_version': 4, 'cidr': '175.77.219.128/26', 'allocation_pools': [{'start': '175.77.219.130', 'end': '175.77.219.190'}], 'gateway_ip': '175.77.219.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.77.219.130', 'tags': [], 'project_id': '3a2508f0a1ba44d797a57993f2474c31'}}
2025-10-31 16:25:56,053 - INFO - Created VN ctest-vn-35512327
2025-10-31 16:25:56,109 - DEBUG - VN ctest-vn-35512327 UUID is f1ca5383-ebd4-4090-841d-e8390ea6c2bd
2025-10-31 16:25:56,510 - DEBUG - Response for create_network : {'network': {'id': '300da487-3969-48c8-9ba2-2cdd970cf498', 'name': 'ctest-vn-04316428', 'tenant_id': '3a2508f0a1ba44d797a57993f2474c31', 'project_id': '3a2508f0a1ba44d797a57993f2474c31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78228063', 'ctest-vn-04316428'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 16:25:56,720 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d55fb35-9920-4299-b07f-f91a0badcc40', 'name': '', 'tenant_id': '3a2508f0a1ba44d797a57993f2474c31', 'network_id': '300da487-3969-48c8-9ba2-2cdd970cf498', 'ip_version': 4, 'cidr': '161.129.104.192/26', 'allocation_pools': [{'start': '161.129.104.194', 'end': '161.129.104.254'}], 'gateway_ip': '161.129.104.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.129.104.194', 'tags': [], 'project_id': '3a2508f0a1ba44d797a57993f2474c31'}}
2025-10-31 16:25:56,740 - INFO - Created VN ctest-vn-04316428
2025-10-31 16:25:56,801 - DEBUG - VN ctest-vn-04316428 UUID is 300da487-3969-48c8-9ba2-2cdd970cf498
2025-10-31 16:25:56,956 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78228063:ctest-vn-35512327, 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-78228063:ctest-vn-04316428, 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]
2025-10-31 16:25:57,348 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1ca5383-ebd4-4090-841d-e8390ea6c2bd', 'name': 'ctest-vn-35512327', 'tenant_id': '3a2508f0a1ba44d797a57993f2474c31', 'project_id': '3a2508f0a1ba44d797a57993f2474c31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b81a6fd5-b92c-41e6-9f47-af2194dbcb8b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78228063', 'ctest-vn-35512327'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78228063', 'ctest-policy-allow-all-49873575']], 'subnet_ipam': [{'subnet_cidr': '175.77.219.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 16:25:57,581 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '300da487-3969-48c8-9ba2-2cdd970cf498', 'name': 'ctest-vn-04316428', 'tenant_id': '3a2508f0a1ba44d797a57993f2474c31', 'project_id': '3a2508f0a1ba44d797a57993f2474c31', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d55fb35-9920-4299-b07f-f91a0badcc40'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78228063', 'ctest-vn-04316428'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78228063', 'ctest-policy-allow-all-49873575']], 'subnet_ipam': [{'subnet_cidr': '161.129.104.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 16:25:57,745 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-31 16:25:58,047 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-31 16:25:58,093 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ca8d3a8d-2b3f-4146-b439-65996d4dbb4f
2025-10-31 16:25:58,125 - DEBUG - Requesting: http://10.0.0.50:8082/project/3a2508f0-a1ba-44d7-97a5-7993f2474c31
2025-10-31 16:25:58,248 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f1ca5383-ebd4-4090-841d-e8390ea6c2bd
2025-10-31 16:25:58,274 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f1ca5383-ebd4-4090-841d-e8390ea6c2bd
2025-10-31 16:25:58,296 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/61b6d395-3b2b-495e-a253-5eb411e4230b
2025-10-31 16:25:58,316 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/61b6d395-3b2b-495e-a253-5eb411e4230b
2025-10-31 16:25:58,336 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/399ed451-fa5a-460a-ac15-5fa531fcacaf
2025-10-31 16:25:58,353 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 16:25:58,353 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f1ca5383-ebd4-4090-841d-e8390ea6c2bd
2025-10-31 16:25:58,385 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/61b6d395-3b2b-495e-a253-5eb411e4230b
2025-10-31 16:25:58,421 - INFO - Verified VN network id 11 for VN f1ca5383-ebd4-4090-841d-e8390ea6c2bd
2025-10-31 16:25:58,421 - INFO - Verifications in API Server for VN ctest-vn-35512327 passed
2025-10-31 16:25:58,421 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f1ca5383-ebd4-4090-841d-e8390ea6c2bd
2025-10-31 16:25:58,445 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/61b6d395-3b2b-495e-a253-5eb411e4230b
2025-10-31 16:25:58,461 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/61b6d395-3b2b-495e-a253-5eb411e4230b
2025-10-31 16:25:58,474 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/399ed451-fa5a-460a-ac15-5fa531fcacaf
2025-10-31 16:25:58,503 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78228063:ctest-vn-35512327', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78228063', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17422829934498562192', 'uuid-lslong': '9520020519087686333'}, 'enable': 'true', 'created': '2025-10-31T16:25:55', 'last-modified': '2025-10-31T16:25:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.181404'}
2025-10-31 16:25:58,517 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 16:25:58,517 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35512327 passed
2025-10-31 16:25:58,518 - DEBUG - ====Verifying policy data for ctest-vn-35512327 in API_Server ======
2025-10-31 16:25:58,518 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-31 16:25:58,528 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ca8d3a8d-2b3f-4146-b439-65996d4dbb4f
2025-10-31 16:25:58,541 - DEBUG - Requesting: http://10.0.0.50:8082/project/3a2508f0-a1ba-44d7-97a5-7993f2474c31
2025-10-31 16:25:58,642 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f1ca5383-ebd4-4090-841d-e8390ea6c2bd
2025-10-31 16:25:58,661 - DEBUG - ==>Verifying data for policy with id: be4f8e73-92ec-49bd-8ccf-8f218ae351da, fqn: ['default-domain', 'ctest-TestBasicPolicy-78228063', 'ctest-policy-allow-all-49873575']
2025-10-31 16:25:58,661 - INFO - VN ctest-vn-35512327 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 16:25:58,661 - DEBUG - Verifying the vn in opserver
2025-10-31 16:25:58,661 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78228063:ctest-vn-35512327 virtual network link through opserver 10.0.0.50
2025-10-31 16:25:58,662 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-31 16:25:59,001 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-31 16:25:59,109 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78228063:ctest-vn-35512327', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78228063:ctest-vn-35512327?flat'}
2025-10-31 16:25:59,109 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78228063:ctest-vn-35512327 is found in opserver
2025-10-31 16:25:59,138 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 16:25:59,148 - DEBUG - VRF ids for VN ctest-vn-35512327: {}
2025-10-31 16:25:59,148 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-31 16:25:59,157 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ca8d3a8d-2b3f-4146-b439-65996d4dbb4f
2025-10-31 16:25:59,170 - DEBUG - Requesting: http://10.0.0.50:8082/project/3a2508f0-a1ba-44d7-97a5-7993f2474c31
2025-10-31 16:25:59,289 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/300da487-3969-48c8-9ba2-2cdd970cf498
2025-10-31 16:25:59,331 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/300da487-3969-48c8-9ba2-2cdd970cf498
2025-10-31 16:25:59,350 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96eba33a-faa1-413d-94fe-e43658413624
2025-10-31 16:25:59,364 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96eba33a-faa1-413d-94fe-e43658413624
2025-10-31 16:25:59,376 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0f600e4d-a0f1-4de5-8f81-8a3ddf0ec1c2
2025-10-31 16:25:59,390 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 16:25:59,390 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/300da487-3969-48c8-9ba2-2cdd970cf498
2025-10-31 16:25:59,408 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96eba33a-faa1-413d-94fe-e43658413624
2025-10-31 16:25:59,431 - INFO - Verified VN network id 12 for VN 300da487-3969-48c8-9ba2-2cdd970cf498
2025-10-31 16:25:59,431 - INFO - Verifications in API Server for VN ctest-vn-04316428 passed
2025-10-31 16:25:59,432 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/300da487-3969-48c8-9ba2-2cdd970cf498
2025-10-31 16:25:59,447 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96eba33a-faa1-413d-94fe-e43658413624
2025-10-31 16:25:59,457 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/96eba33a-faa1-413d-94fe-e43658413624
2025-10-31 16:25:59,468 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0f600e4d-a0f1-4de5-8f81-8a3ddf0ec1c2
2025-10-31 16:25:59,486 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78228063:ctest-vn-04316428', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78228063', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3462604589208520904', 'uuid-lslong': '11214575352339559576'}, 'enable': 'true', 'created': '2025-10-31T16:25:56', 'last-modified': '2025-10-31T16:25:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.927993'}
2025-10-31 16:25:59,496 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 16:25:59,496 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04316428 passed
2025-10-31 16:25:59,497 - DEBUG - ====Verifying policy data for ctest-vn-04316428 in API_Server ======
2025-10-31 16:25:59,497 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-31 16:25:59,506 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ca8d3a8d-2b3f-4146-b439-65996d4dbb4f
2025-10-31 16:25:59,529 - DEBUG - Requesting: http://10.0.0.50:8082/project/3a2508f0-a1ba-44d7-97a5-7993f2474c31
2025-10-31 16:25:59,639 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/300da487-3969-48c8-9ba2-2cdd970cf498
2025-10-31 16:25:59,665 - DEBUG - ==>Verifying data for policy with id: be4f8e73-92ec-49bd-8ccf-8f218ae351da, fqn: ['default-domain', 'ctest-TestBasicPolicy-78228063', 'ctest-policy-allow-all-49873575']
2025-10-31 16:25:59,665 - INFO - VN ctest-vn-04316428 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 16:25:59,666 - DEBUG - Verifying the vn in opserver
2025-10-31 16:25:59,666 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78228063:ctest-vn-04316428 virtual network link through opserver 10.0.0.50
2025-10-31 16:25:59,666 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-31 16:25:59,687 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78228063:ctest-vn-04316428', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78228063:ctest-vn-04316428?flat'}
2025-10-31 16:25:59,687 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78228063:ctest-vn-04316428 is found in opserver
2025-10-31 16:25:59,719 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 16:25:59,735 - DEBUG - VRF ids for VN ctest-vn-04316428: {}
2025-10-31 16:25:59,861 - DEBUG - Services list from nova: [