2026-04-03 13:21:10,338 - INFO - Domain Default found not creating
2026-04-03 13:21:10,515 - INFO - Project ctest-TestBasicPolicy-76957423 not found, creating it
2026-04-03 13:21:11,004 - INFO - Created Project:ctest-TestBasicPolicy-76957423, ID : 4398164e-ff2b-4730-860b-f2bbf98e842d
2026-04-03 13:21:13,137 - INFO - ================================================================================
2026-04-03 13:21:13,137 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-03 13:21:13,137 - 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-04-03 13:21:13,390 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-04-03 13:21:13,390 - INFO - Initial checks done. Running the testcase now
2026-04-03 13:21:13,390 - INFO -
2026-04-03 13:21:13,891 - DEBUG - Response for create_network : {'network': {'id': '96224cc6-8a99-4b97-8481-dd65c69632b1', 'name': 'ctest-vn-55372488', 'tenant_id': '4398164eff2b4730860bf2bbf98e842d', 'project_id': '4398164eff2b4730860bf2bbf98e842d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76957423', 'ctest-vn-55372488'], 'port_security_enabled': True, 'description': ''}}
2026-04-03 13:21:14,059 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e8aaa6b-561b-4090-a6af-0405ed549e77', 'name': '', 'tenant_id': '4398164eff2b4730860bf2bbf98e842d', 'network_id': '96224cc6-8a99-4b97-8481-dd65c69632b1', 'ip_version': 4, 'cidr': '107.214.124.128/26', 'allocation_pools': [{'start': '107.214.124.130', 'end': '107.214.124.190'}], 'gateway_ip': '107.214.124.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.214.124.130', 'tags': [], 'project_id': '4398164eff2b4730860bf2bbf98e842d'}}
2026-04-03 13:21:14,082 - INFO - Created VN ctest-vn-55372488
2026-04-03 13:21:14,136 - DEBUG - VN ctest-vn-55372488 UUID is 96224cc6-8a99-4b97-8481-dd65c69632b1
2026-04-03 13:21:14,455 - DEBUG - Response for create_network : {'network': {'id': '2bdddc66-0a24-4b4d-8743-94f49393fe5e', 'name': 'ctest-vn-71518941', 'tenant_id': '4398164eff2b4730860bf2bbf98e842d', 'project_id': '4398164eff2b4730860bf2bbf98e842d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76957423', 'ctest-vn-71518941'], 'port_security_enabled': True, 'description': ''}}
2026-04-03 13:21:14,633 - DEBUG - Response for create_subnet : {'subnet': {'id': '814cfda4-9b73-4ab4-b6dd-e92a3c77cc44', 'name': '', 'tenant_id': '4398164eff2b4730860bf2bbf98e842d', 'network_id': '2bdddc66-0a24-4b4d-8743-94f49393fe5e', 'ip_version': 4, 'cidr': '71.92.6.128/26', 'allocation_pools': [{'start': '71.92.6.130', 'end': '71.92.6.190'}], 'gateway_ip': '71.92.6.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.92.6.130', 'tags': [], 'project_id': '4398164eff2b4730860bf2bbf98e842d'}}
2026-04-03 13:21:14,650 - INFO - Created VN ctest-vn-71518941
2026-04-03 13:21:14,704 - DEBUG - VN ctest-vn-71518941 UUID is 2bdddc66-0a24-4b4d-8743-94f49393fe5e
2026-04-03 13:21:14,852 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76957423:ctest-vn-55372488, 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-76957423:ctest-vn-71518941, 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-04-03 13:21:15,140 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '96224cc6-8a99-4b97-8481-dd65c69632b1', 'name': 'ctest-vn-55372488', 'tenant_id': '4398164eff2b4730860bf2bbf98e842d', 'project_id': '4398164eff2b4730860bf2bbf98e842d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e8aaa6b-561b-4090-a6af-0405ed549e77'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76957423', 'ctest-vn-55372488'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76957423', 'ctest-policy-allow-all-30957532']], 'subnet_ipam': [{'subnet_cidr': '107.214.124.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-03 13:21:15,377 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2bdddc66-0a24-4b4d-8743-94f49393fe5e', 'name': 'ctest-vn-71518941', 'tenant_id': '4398164eff2b4730860bf2bbf98e842d', 'project_id': '4398164eff2b4730860bf2bbf98e842d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['814cfda4-9b73-4ab4-b6dd-e92a3c77cc44'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76957423', 'ctest-vn-71518941'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76957423', 'ctest-policy-allow-all-30957532']], 'subnet_ipam': [{'subnet_cidr': '71.92.6.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-03 13:21:15,536 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-03 13:21:15,834 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-03 13:21:15,871 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d3fa6066-2972-4f98-9aa3-c23174dd5620
2026-04-03 13:21:15,885 - DEBUG - Requesting: http://10.0.0.38:8082/project/4398164e-ff2b-4730-860b-f2bbf98e842d
2026-04-03 13:21:15,957 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/96224cc6-8a99-4b97-8481-dd65c69632b1
2026-04-03 13:21:15,969 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/96224cc6-8a99-4b97-8481-dd65c69632b1
2026-04-03 13:21:15,980 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49a70900-ed83-41c4-8032-c4e5b221a4d4
2026-04-03 13:21:15,989 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49a70900-ed83-41c4-8032-c4e5b221a4d4
2026-04-03 13:21:15,997 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5606060e-ce23-46ec-b30b-3791e1fe35ed
2026-04-03 13:21:16,004 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-03 13:21:16,004 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/96224cc6-8a99-4b97-8481-dd65c69632b1
2026-04-03 13:21:16,013 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49a70900-ed83-41c4-8032-c4e5b221a4d4
2026-04-03 13:21:16,025 - INFO - Verified VN network id 11 for VN 96224cc6-8a99-4b97-8481-dd65c69632b1
2026-04-03 13:21:16,025 - INFO - Verifications in API Server for VN ctest-vn-55372488 passed
2026-04-03 13:21:16,025 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/96224cc6-8a99-4b97-8481-dd65c69632b1
2026-04-03 13:21:16,033 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49a70900-ed83-41c4-8032-c4e5b221a4d4
2026-04-03 13:21:16,039 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49a70900-ed83-41c4-8032-c4e5b221a4d4
2026-04-03 13:21:16,045 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5606060e-ce23-46ec-b30b-3791e1fe35ed
2026-04-03 13:21:16,058 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76957423:ctest-vn-55372488', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76957423', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10818293670509890455', 'uuid-lslong': '9548156114195329713'}, 'enable': 'true', 'created': '2026-04-03T13:21:13', 'last-modified': '2026-04-03T13:21:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.937328'}
2026-04-03 13:21:16,066 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-03 13:21:16,066 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55372488 passed
2026-04-03 13:21:16,066 - DEBUG - ====Verifying policy data for ctest-vn-55372488 in API_Server ======
2026-04-03 13:21:16,066 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-03 13:21:16,073 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d3fa6066-2972-4f98-9aa3-c23174dd5620
2026-04-03 13:21:16,085 - DEBUG - Requesting: http://10.0.0.38:8082/project/4398164e-ff2b-4730-860b-f2bbf98e842d
2026-04-03 13:21:16,154 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/96224cc6-8a99-4b97-8481-dd65c69632b1
2026-04-03 13:21:16,165 - DEBUG - ==>Verifying data for policy with id: 0d98f801-5537-4722-8486-ded1248b2d66, fqn: ['default-domain', 'ctest-TestBasicPolicy-76957423', 'ctest-policy-allow-all-30957532']
2026-04-03 13:21:16,165 - INFO - VN ctest-vn-55372488 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-03 13:21:16,165 - DEBUG - Verifying the vn in opserver
2026-04-03 13:21:16,165 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76957423:ctest-vn-55372488 virtual network link through opserver 10.0.0.38
2026-04-03 13:21:16,165 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-03 13:21:16,459 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-03 13:21:16,519 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76957423:ctest-vn-55372488', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76957423:ctest-vn-55372488?flat'}
2026-04-03 13:21:16,519 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76957423:ctest-vn-55372488 is found in opserver
2026-04-03 13:21:16,530 - DEBUG - Do not have enough data to verify VN in agent
2026-04-03 13:21:16,535 - DEBUG - VRF ids for VN ctest-vn-55372488: {}
2026-04-03 13:21:16,535 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-03 13:21:16,540 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d3fa6066-2972-4f98-9aa3-c23174dd5620
2026-04-03 13:21:16,554 - DEBUG - Requesting: http://10.0.0.38:8082/project/4398164e-ff2b-4730-860b-f2bbf98e842d
2026-04-03 13:21:16,621 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2bdddc66-0a24-4b4d-8743-94f49393fe5e
2026-04-03 13:21:16,632 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2bdddc66-0a24-4b4d-8743-94f49393fe5e
2026-04-03 13:21:16,642 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9d849219-c5bb-425d-b457-5cfaac748e37
2026-04-03 13:21:16,650 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9d849219-c5bb-425d-b457-5cfaac748e37
2026-04-03 13:21:16,657 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/12bade20-59f3-4e9e-abd7-035e0cf687ed
2026-04-03 13:21:16,665 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-03 13:21:16,665 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2bdddc66-0a24-4b4d-8743-94f49393fe5e
2026-04-03 13:21:16,674 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9d849219-c5bb-425d-b457-5cfaac748e37
2026-04-03 13:21:16,688 - INFO - Verified VN network id 12 for VN 2bdddc66-0a24-4b4d-8743-94f49393fe5e
2026-04-03 13:21:16,688 - INFO - Verifications in API Server for VN ctest-vn-71518941 passed
2026-04-03 13:21:16,688 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2bdddc66-0a24-4b4d-8743-94f49393fe5e
2026-04-03 13:21:16,697 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9d849219-c5bb-425d-b457-5cfaac748e37
2026-04-03 13:21:16,704 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9d849219-c5bb-425d-b457-5cfaac748e37
2026-04-03 13:21:16,711 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/12bade20-59f3-4e9e-abd7-035e0cf687ed
2026-04-03 13:21:16,722 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76957423:ctest-vn-71518941', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76957423', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3160924844298881869', 'uuid-lslong': '9746797796728766046'}, 'enable': 'true', 'created': '2026-04-03T13:21:14', 'last-modified': '2026-04-03T13:21:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.372782'}
2026-04-03 13:21:16,728 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-03 13:21:16,728 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71518941 passed
2026-04-03 13:21:16,728 - DEBUG - ====Verifying policy data for ctest-vn-71518941 in API_Server ======
2026-04-03 13:21:16,728 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-03 13:21:16,734 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d3fa6066-2972-4f98-9aa3-c23174dd5620
2026-04-03 13:21:16,744 - DEBUG - Requesting: http://10.0.0.38:8082/project/4398164e-ff2b-4730-860b-f2bbf98e842d
2026-04-03 13:21:16,812 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2bdddc66-0a24-4b4d-8743-94f49393fe5e
2026-04-03 13:21:16,820 - DEBUG - ==>Verifying data for policy with id: 0d98f801-5537-4722-8486-ded1248b2d66, fqn: ['default-domain', 'ctest-TestBasicPolicy-76957423', 'ctest-policy-allow-all-30957532']
2026-04-03 13:21:16,820 - INFO - VN ctest-vn-71518941 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-03 13:21:16,820 - DEBUG - Verifying the vn in opserver
2026-04-03 13:21:16,820 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76957423:ctest-vn-71518941 virtual network link through opserver 10.0.0.38
2026-04-03 13:21:16,821 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-03 13:21:16,830 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76957423:ctest-vn-71518941', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76957423:ctest-vn-71518941?flat'}
2026-04-03 13:21:16,830 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76957423:ctest-vn-71518941 is found in opserver
2026-04-03 13:21:16,838 - DEBUG - Do not have enough data to verify VN in agent
2026-04-03 13:21:16,842 - DEBUG - VRF ids for VN ctest-vn-71518941: {}
2026-04-03 13:21:16,899 - DEBUG - Services list from nova: [