2026-02-10 06:01:08,415 - INFO - Domain Default found not creating
2026-02-10 06:01:08,577 - INFO - Project ctest-TestBasicPolicy-04936487 not found, creating it
2026-02-10 06:01:09,023 - INFO - Created Project:ctest-TestBasicPolicy-04936487, ID : d5172e1d-6f4f-48da-85b5-da61e64c6906
2026-02-10 06:01:10,484 - INFO - ================================================================================
2026-02-10 06:01:10,484 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-10 06:01:10,484 - 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-02-10 06:01:10,749 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-02-10 06:01:10,749 - INFO - Initial checks done. Running the testcase now
2026-02-10 06:01:10,749 - INFO -
2026-02-10 06:01:11,316 - DEBUG - Response for create_network : {'network': {'id': '15d4c5fe-c57b-4240-8c4a-f6139ff80e5b', 'name': 'ctest-vn-52145745', 'tenant_id': 'd5172e1d6f4f48da85b5da61e64c6906', 'project_id': 'd5172e1d6f4f48da85b5da61e64c6906', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04936487', 'ctest-vn-52145745'], 'port_security_enabled': True, 'description': ''}}
2026-02-10 06:01:11,528 - DEBUG - Response for create_subnet : {'subnet': {'id': '3f855866-8aaa-43b0-9356-cf09f2d08cb3', 'name': '', 'tenant_id': 'd5172e1d6f4f48da85b5da61e64c6906', 'network_id': '15d4c5fe-c57b-4240-8c4a-f6139ff80e5b', 'ip_version': 4, 'cidr': '105.10.207.0/26', 'allocation_pools': [{'start': '105.10.207.2', 'end': '105.10.207.62'}], 'gateway_ip': '105.10.207.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.10.207.2', 'tags': [], 'project_id': 'd5172e1d6f4f48da85b5da61e64c6906'}}
2026-02-10 06:01:11,546 - INFO - Created VN ctest-vn-52145745
2026-02-10 06:01:11,597 - DEBUG - VN ctest-vn-52145745 UUID is 15d4c5fe-c57b-4240-8c4a-f6139ff80e5b
2026-02-10 06:01:11,907 - DEBUG - Response for create_network : {'network': {'id': 'be0910ea-ffc1-4a61-9cfc-a04ca6490e3b', 'name': 'ctest-vn-81925670', 'tenant_id': 'd5172e1d6f4f48da85b5da61e64c6906', 'project_id': 'd5172e1d6f4f48da85b5da61e64c6906', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04936487', 'ctest-vn-81925670'], 'port_security_enabled': True, 'description': ''}}
2026-02-10 06:01:12,061 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c2db4243-b66a-4653-9aa3-9c0ef8ca942d', 'name': '', 'tenant_id': 'd5172e1d6f4f48da85b5da61e64c6906', 'network_id': 'be0910ea-ffc1-4a61-9cfc-a04ca6490e3b', 'ip_version': 4, 'cidr': '45.93.178.192/26', 'allocation_pools': [{'start': '45.93.178.194', 'end': '45.93.178.254'}], 'gateway_ip': '45.93.178.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.93.178.194', 'tags': [], 'project_id': 'd5172e1d6f4f48da85b5da61e64c6906'}}
2026-02-10 06:01:12,077 - INFO - Created VN ctest-vn-81925670
2026-02-10 06:01:12,129 - DEBUG - VN ctest-vn-81925670 UUID is be0910ea-ffc1-4a61-9cfc-a04ca6490e3b
2026-02-10 06:01:12,277 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04936487:ctest-vn-52145745, 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-04936487:ctest-vn-81925670, 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-02-10 06:01:12,555 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15d4c5fe-c57b-4240-8c4a-f6139ff80e5b', 'name': 'ctest-vn-52145745', 'tenant_id': 'd5172e1d6f4f48da85b5da61e64c6906', 'project_id': 'd5172e1d6f4f48da85b5da61e64c6906', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3f855866-8aaa-43b0-9356-cf09f2d08cb3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04936487', 'ctest-vn-52145745'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04936487', 'ctest-policy-allow-all-67810428']], 'subnet_ipam': [{'subnet_cidr': '105.10.207.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-10 06:01:12,829 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be0910ea-ffc1-4a61-9cfc-a04ca6490e3b', 'name': 'ctest-vn-81925670', 'tenant_id': 'd5172e1d6f4f48da85b5da61e64c6906', 'project_id': 'd5172e1d6f4f48da85b5da61e64c6906', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c2db4243-b66a-4653-9aa3-9c0ef8ca942d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04936487', 'ctest-vn-81925670'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04936487', 'ctest-policy-allow-all-67810428']], 'subnet_ipam': [{'subnet_cidr': '45.93.178.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-10 06:01:12,973 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-10 06:01:13,277 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-10 06:01:13,311 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b51e8295-8a4c-467e-bc54-a2cc4d7e9027
2026-02-10 06:01:13,329 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5172e1d-6f4f-48da-85b5-da61e64c6906
2026-02-10 06:01:13,402 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/15d4c5fe-c57b-4240-8c4a-f6139ff80e5b
2026-02-10 06:01:13,410 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/15d4c5fe-c57b-4240-8c4a-f6139ff80e5b
2026-02-10 06:01:13,417 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ea6a7ef9-6a64-48a2-8563-798aba7f431c
2026-02-10 06:01:13,423 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ea6a7ef9-6a64-48a2-8563-798aba7f431c
2026-02-10 06:01:13,429 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a357ee70-5e0c-48b0-a202-ad5a43204f0b
2026-02-10 06:01:13,434 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-10 06:01:13,434 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/15d4c5fe-c57b-4240-8c4a-f6139ff80e5b
2026-02-10 06:01:13,441 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ea6a7ef9-6a64-48a2-8563-798aba7f431c
2026-02-10 06:01:13,451 - INFO - Verified VN network id 11 for VN 15d4c5fe-c57b-4240-8c4a-f6139ff80e5b
2026-02-10 06:01:13,451 - INFO - Verifications in API Server for VN ctest-vn-52145745 passed
2026-02-10 06:01:13,451 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/15d4c5fe-c57b-4240-8c4a-f6139ff80e5b
2026-02-10 06:01:13,459 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ea6a7ef9-6a64-48a2-8563-798aba7f431c
2026-02-10 06:01:13,465 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ea6a7ef9-6a64-48a2-8563-798aba7f431c
2026-02-10 06:01:13,471 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a357ee70-5e0c-48b0-a202-ad5a43204f0b
2026-02-10 06:01:13,480 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04936487:ctest-vn-52145745', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04936487', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1573099867884700224', 'uuid-lslong': '10109162877735145051'}, 'enable': 'true', 'created': '2026-02-10T06:01:11', 'last-modified': '2026-02-10T06:01:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.941228'}
2026-02-10 06:01:13,485 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-10 06:01:13,485 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52145745 passed
2026-02-10 06:01:13,485 - DEBUG - ====Verifying policy data for ctest-vn-52145745 in API_Server ======
2026-02-10 06:01:13,485 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-10 06:01:13,490 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b51e8295-8a4c-467e-bc54-a2cc4d7e9027
2026-02-10 06:01:13,500 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5172e1d-6f4f-48da-85b5-da61e64c6906
2026-02-10 06:01:13,571 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/15d4c5fe-c57b-4240-8c4a-f6139ff80e5b
2026-02-10 06:01:13,579 - DEBUG - ==>Verifying data for policy with id: 9ebb31dd-e69e-412b-8690-052f7f289490, fqn: ['default-domain', 'ctest-TestBasicPolicy-04936487', 'ctest-policy-allow-all-67810428']
2026-02-10 06:01:13,579 - INFO - VN ctest-vn-52145745 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-10 06:01:13,579 - DEBUG - Verifying the vn in opserver
2026-02-10 06:01:13,579 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04936487:ctest-vn-52145745 virtual network link through opserver 10.0.0.38
2026-02-10 06:01:13,579 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-10 06:01:13,870 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-10 06:01:13,932 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04936487:ctest-vn-52145745', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04936487:ctest-vn-52145745?flat'}
2026-02-10 06:01:13,932 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04936487:ctest-vn-52145745 is found in opserver
2026-02-10 06:01:13,941 - DEBUG - Do not have enough data to verify VN in agent
2026-02-10 06:01:13,945 - DEBUG - VRF ids for VN ctest-vn-52145745: {}
2026-02-10 06:01:13,945 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-10 06:01:13,950 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b51e8295-8a4c-467e-bc54-a2cc4d7e9027
2026-02-10 06:01:13,960 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5172e1d-6f4f-48da-85b5-da61e64c6906
2026-02-10 06:01:14,030 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/be0910ea-ffc1-4a61-9cfc-a04ca6490e3b
2026-02-10 06:01:14,041 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/be0910ea-ffc1-4a61-9cfc-a04ca6490e3b
2026-02-10 06:01:14,050 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e558a693-611a-4d21-b5e6-0c05aba99251
2026-02-10 06:01:14,057 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e558a693-611a-4d21-b5e6-0c05aba99251
2026-02-10 06:01:14,062 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e632e2f4-3801-4f34-a471-fd2502c996d3
2026-02-10 06:01:14,068 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-10 06:01:14,068 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/be0910ea-ffc1-4a61-9cfc-a04ca6490e3b
2026-02-10 06:01:14,075 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e558a693-611a-4d21-b5e6-0c05aba99251
2026-02-10 06:01:14,087 - INFO - Verified VN network id 12 for VN be0910ea-ffc1-4a61-9cfc-a04ca6490e3b
2026-02-10 06:01:14,087 - INFO - Verifications in API Server for VN ctest-vn-81925670 passed
2026-02-10 06:01:14,087 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/be0910ea-ffc1-4a61-9cfc-a04ca6490e3b
2026-02-10 06:01:14,095 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e558a693-611a-4d21-b5e6-0c05aba99251
2026-02-10 06:01:14,100 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e558a693-611a-4d21-b5e6-0c05aba99251
2026-02-10 06:01:14,105 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e632e2f4-3801-4f34-a471-fd2502c996d3
2026-02-10 06:01:14,114 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04936487:ctest-vn-81925670', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04936487', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13693494743495952993', 'uuid-lslong': '11312092615115607611'}, 'enable': 'true', 'created': '2026-02-10T06:01:11', 'last-modified': '2026-02-10T06:01:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.351316'}
2026-02-10 06:01:14,120 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-10 06:01:14,120 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81925670 passed
2026-02-10 06:01:14,120 - DEBUG - ====Verifying policy data for ctest-vn-81925670 in API_Server ======
2026-02-10 06:01:14,120 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-10 06:01:14,125 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b51e8295-8a4c-467e-bc54-a2cc4d7e9027
2026-02-10 06:01:14,134 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5172e1d-6f4f-48da-85b5-da61e64c6906
2026-02-10 06:01:14,204 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/be0910ea-ffc1-4a61-9cfc-a04ca6490e3b
2026-02-10 06:01:14,214 - DEBUG - ==>Verifying data for policy with id: 9ebb31dd-e69e-412b-8690-052f7f289490, fqn: ['default-domain', 'ctest-TestBasicPolicy-04936487', 'ctest-policy-allow-all-67810428']
2026-02-10 06:01:14,214 - INFO - VN ctest-vn-81925670 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-10 06:01:14,214 - DEBUG - Verifying the vn in opserver
2026-02-10 06:01:14,214 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04936487:ctest-vn-81925670 virtual network link through opserver 10.0.0.38
2026-02-10 06:01:14,214 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-10 06:01:14,223 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04936487:ctest-vn-81925670', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04936487:ctest-vn-81925670?flat'}
2026-02-10 06:01:14,223 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04936487:ctest-vn-81925670 is found in opserver
2026-02-10 06:01:14,234 - DEBUG - Do not have enough data to verify VN in agent
2026-02-10 06:01:14,238 - DEBUG - VRF ids for VN ctest-vn-81925670: {}
2026-02-10 06:01:14,294 - DEBUG - Services list from nova: [