2026-09-29 15:24:58,624 - INFO - Domain Default found not creating
2026-09-29 15:24:58,827 - INFO - Project ctest-TestBasicPolicy-89437715 not found, creating it
2026-09-29 15:24:59,336 - INFO - Created Project:ctest-TestBasicPolicy-89437715, ID : 0fa143d5-4d3b-4181-9dae-97478e1d59db
2026-09-29 15:25:01,177 - INFO - ================================================================================
2026-09-29 15:25:01,177 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-29 15:25:01,177 - 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-09-29 15:25:01,448 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-09-29 15:25:01,448 - INFO - Initial checks done. Running the testcase now
2026-09-29 15:25:01,448 - INFO -
2026-09-29 15:25:02,159 - DEBUG - Response for create_network : {'network': {'id': '2f673a17-822d-4635-bba3-4c70560e6658', 'name': 'ctest-vn-75142354', 'tenant_id': '0fa143d54d3b41819dae97478e1d59db', 'project_id': '0fa143d54d3b41819dae97478e1d59db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89437715', 'ctest-vn-75142354'], 'port_security_enabled': True, 'description': ''}}
2026-09-29 15:25:02,410 - DEBUG - Response for create_subnet : {'subnet': {'id': '02595f78-bb88-47b7-98d8-217739736b3d', 'name': '', 'tenant_id': '0fa143d54d3b41819dae97478e1d59db', 'network_id': '2f673a17-822d-4635-bba3-4c70560e6658', 'ip_version': 4, 'cidr': '201.169.65.64/26', 'allocation_pools': [{'start': '201.169.65.66', 'end': '201.169.65.126'}], 'gateway_ip': '201.169.65.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.169.65.66', 'tags': [], 'project_id': '0fa143d54d3b41819dae97478e1d59db'}}
2026-09-29 15:25:02,431 - INFO - Created VN ctest-vn-75142354
2026-09-29 15:25:02,486 - DEBUG - VN ctest-vn-75142354 UUID is 2f673a17-822d-4635-bba3-4c70560e6658
2026-09-29 15:25:02,861 - DEBUG - Response for create_network : {'network': {'id': 'dbf27c0e-0e40-4d80-be7d-344f0e359531', 'name': 'ctest-vn-41397659', 'tenant_id': '0fa143d54d3b41819dae97478e1d59db', 'project_id': '0fa143d54d3b41819dae97478e1d59db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89437715', 'ctest-vn-41397659'], 'port_security_enabled': True, 'description': ''}}
2026-09-29 15:25:03,098 - DEBUG - Response for create_subnet : {'subnet': {'id': '58e1eea0-fe2c-4ad8-a604-3e02d1ee5f69', 'name': '', 'tenant_id': '0fa143d54d3b41819dae97478e1d59db', 'network_id': 'dbf27c0e-0e40-4d80-be7d-344f0e359531', 'ip_version': 4, 'cidr': '47.214.42.0/26', 'allocation_pools': [{'start': '47.214.42.2', 'end': '47.214.42.62'}], 'gateway_ip': '47.214.42.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.214.42.2', 'tags': [], 'project_id': '0fa143d54d3b41819dae97478e1d59db'}}
2026-09-29 15:25:03,117 - INFO - Created VN ctest-vn-41397659
2026-09-29 15:25:03,174 - DEBUG - VN ctest-vn-41397659 UUID is dbf27c0e-0e40-4d80-be7d-344f0e359531
2026-09-29 15:25:03,290 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89437715:ctest-vn-75142354, 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-89437715:ctest-vn-41397659, 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-09-29 15:25:03,634 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f673a17-822d-4635-bba3-4c70560e6658', 'name': 'ctest-vn-75142354', 'tenant_id': '0fa143d54d3b41819dae97478e1d59db', 'project_id': '0fa143d54d3b41819dae97478e1d59db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['02595f78-bb88-47b7-98d8-217739736b3d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89437715', 'ctest-vn-75142354'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89437715', 'ctest-policy-allow-all-64930931']], 'subnet_ipam': [{'subnet_cidr': '201.169.65.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-29 15:25:03,897 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dbf27c0e-0e40-4d80-be7d-344f0e359531', 'name': 'ctest-vn-41397659', 'tenant_id': '0fa143d54d3b41819dae97478e1d59db', 'project_id': '0fa143d54d3b41819dae97478e1d59db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['58e1eea0-fe2c-4ad8-a604-3e02d1ee5f69'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89437715', 'ctest-vn-41397659'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89437715', 'ctest-policy-allow-all-64930931']], 'subnet_ipam': [{'subnet_cidr': '47.214.42.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-29 15:25:04,070 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-29 15:25:04,442 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-29 15:25:04,474 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1d6812ad-3d63-4717-b4c3-2139d5df56ed
2026-09-29 15:25:04,488 - DEBUG - Requesting: http://10.0.0.38:8082/project/0fa143d5-4d3b-4181-9dae-97478e1d59db
2026-09-29 15:25:04,573 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f673a17-822d-4635-bba3-4c70560e6658
2026-09-29 15:25:04,586 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f673a17-822d-4635-bba3-4c70560e6658
2026-09-29 15:25:04,597 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6ee7398e-ef9b-488c-b7d4-1fccbdc1b6a7
2026-09-29 15:25:04,606 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6ee7398e-ef9b-488c-b7d4-1fccbdc1b6a7
2026-09-29 15:25:04,614 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/df3697f5-4a84-4e74-bcea-ac8741e37374
2026-09-29 15:25:04,622 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-29 15:25:04,622 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f673a17-822d-4635-bba3-4c70560e6658
2026-09-29 15:25:04,632 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6ee7398e-ef9b-488c-b7d4-1fccbdc1b6a7
2026-09-29 15:25:04,648 - INFO - Verified VN network id 12 for VN 2f673a17-822d-4635-bba3-4c70560e6658
2026-09-29 15:25:04,648 - INFO - Verifications in API Server for VN ctest-vn-75142354 passed
2026-09-29 15:25:04,648 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f673a17-822d-4635-bba3-4c70560e6658
2026-09-29 15:25:04,658 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6ee7398e-ef9b-488c-b7d4-1fccbdc1b6a7
2026-09-29 15:25:04,668 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6ee7398e-ef9b-488c-b7d4-1fccbdc1b6a7
2026-09-29 15:25:04,676 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/df3697f5-4a84-4e74-bcea-ac8741e37374
2026-09-29 15:25:04,690 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89437715:ctest-vn-75142354', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89437715', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3415762715026474549', 'uuid-lslong': '13520734551660193368'}, 'enable': 'true', 'created': '2026-09-29T15:25:02', 'last-modified': '2026-09-29T15:25:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.103758'}
2026-09-29 15:25:04,699 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-29 15:25:04,699 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75142354 passed
2026-09-29 15:25:04,699 - DEBUG - ====Verifying policy data for ctest-vn-75142354 in API_Server ======
2026-09-29 15:25:04,699 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-29 15:25:04,706 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1d6812ad-3d63-4717-b4c3-2139d5df56ed
2026-09-29 15:25:04,720 - DEBUG - Requesting: http://10.0.0.38:8082/project/0fa143d5-4d3b-4181-9dae-97478e1d59db
2026-09-29 15:25:04,806 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2f673a17-822d-4635-bba3-4c70560e6658
2026-09-29 15:25:04,819 - DEBUG - ==>Verifying data for policy with id: 2a917952-b3f2-4323-aada-88ec8c49a223, fqn: ['default-domain', 'ctest-TestBasicPolicy-89437715', 'ctest-policy-allow-all-64930931']
2026-09-29 15:25:04,819 - INFO - VN ctest-vn-75142354 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-29 15:25:04,819 - DEBUG - Verifying the vn in opserver
2026-09-29 15:25:04,819 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89437715:ctest-vn-75142354 virtual network link through opserver 10.0.0.38
2026-09-29 15:25:04,819 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-09-29 15:25:05,194 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-09-29 15:25:05,257 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89437715:ctest-vn-75142354', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89437715:ctest-vn-75142354?flat'}
2026-09-29 15:25:05,257 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89437715:ctest-vn-75142354 is found in opserver
2026-09-29 15:25:05,271 - DEBUG - Do not have enough data to verify VN in agent
2026-09-29 15:25:05,277 - DEBUG - VRF ids for VN ctest-vn-75142354: {}
2026-09-29 15:25:05,278 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-29 15:25:05,284 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1d6812ad-3d63-4717-b4c3-2139d5df56ed
2026-09-29 15:25:05,299 - DEBUG - Requesting: http://10.0.0.38:8082/project/0fa143d5-4d3b-4181-9dae-97478e1d59db
2026-09-29 15:25:05,380 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dbf27c0e-0e40-4d80-be7d-344f0e359531
2026-09-29 15:25:05,393 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dbf27c0e-0e40-4d80-be7d-344f0e359531
2026-09-29 15:25:05,403 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a31eccc5-5c70-45ad-8b9c-4bab5f65fc43
2026-09-29 15:25:05,412 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a31eccc5-5c70-45ad-8b9c-4bab5f65fc43
2026-09-29 15:25:05,420 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/60de8709-bb48-4192-95b9-cf1b823f9510
2026-09-29 15:25:05,429 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-29 15:25:05,429 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dbf27c0e-0e40-4d80-be7d-344f0e359531
2026-09-29 15:25:05,439 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a31eccc5-5c70-45ad-8b9c-4bab5f65fc43
2026-09-29 15:25:05,456 - INFO - Verified VN network id 13 for VN dbf27c0e-0e40-4d80-be7d-344f0e359531
2026-09-29 15:25:05,456 - INFO - Verifications in API Server for VN ctest-vn-41397659 passed
2026-09-29 15:25:05,457 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dbf27c0e-0e40-4d80-be7d-344f0e359531
2026-09-29 15:25:05,468 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a31eccc5-5c70-45ad-8b9c-4bab5f65fc43
2026-09-29 15:25:05,477 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a31eccc5-5c70-45ad-8b9c-4bab5f65fc43
2026-09-29 15:25:05,486 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/60de8709-bb48-4192-95b9-cf1b823f9510
2026-09-29 15:25:05,499 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89437715:ctest-vn-41397659', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89437715', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15848866438480678272', 'uuid-lslong': '13726184753440593201'}, 'enable': 'true', 'created': '2026-09-29T15:25:02', 'last-modified': '2026-09-29T15:25:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.637279'}
2026-09-29 15:25:05,506 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-29 15:25:05,507 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41397659 passed
2026-09-29 15:25:05,507 - DEBUG - ====Verifying policy data for ctest-vn-41397659 in API_Server ======
2026-09-29 15:25:05,507 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-29 15:25:05,513 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1d6812ad-3d63-4717-b4c3-2139d5df56ed
2026-09-29 15:25:05,528 - DEBUG - Requesting: http://10.0.0.38:8082/project/0fa143d5-4d3b-4181-9dae-97478e1d59db
2026-09-29 15:25:05,616 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dbf27c0e-0e40-4d80-be7d-344f0e359531
2026-09-29 15:25:05,629 - DEBUG - ==>Verifying data for policy with id: 2a917952-b3f2-4323-aada-88ec8c49a223, fqn: ['default-domain', 'ctest-TestBasicPolicy-89437715', 'ctest-policy-allow-all-64930931']
2026-09-29 15:25:05,629 - INFO - VN ctest-vn-41397659 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-29 15:25:05,629 - DEBUG - Verifying the vn in opserver
2026-09-29 15:25:05,629 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89437715:ctest-vn-41397659 virtual network link through opserver 10.0.0.38
2026-09-29 15:25:05,629 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-09-29 15:25:05,641 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89437715:ctest-vn-41397659', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89437715:ctest-vn-41397659?flat'}
2026-09-29 15:25:05,641 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89437715:ctest-vn-41397659 is found in opserver
2026-09-29 15:25:05,655 - DEBUG - Do not have enough data to verify VN in agent
2026-09-29 15:25:05,660 - DEBUG - VRF ids for VN ctest-vn-41397659: {}
2026-09-29 15:25:05,748 - DEBUG - Services list from nova: [