2026-08-17 05:33:02,930 - INFO - Domain Default found not creating
2026-08-17 05:33:03,146 - INFO - Project ctest-TestBasicPolicy-46665695 not found, creating it
2026-08-17 05:33:03,702 - INFO - Created Project:ctest-TestBasicPolicy-46665695, ID : 68251e10-20d9-41ee-9071-ca4b7367d7b1
2026-08-17 05:33:05,631 - INFO - ================================================================================
2026-08-17 05:33:05,631 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-17 05:33:05,631 - 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-08-17 05:33:05,924 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.18': '0'}} with
2026-08-17 05:33:05,924 - INFO - Initial checks done. Running the testcase now
2026-08-17 05:33:05,924 - INFO -
2026-08-17 05:33:06,716 - DEBUG - Response for create_network : {'network': {'id': '62439e6b-47b9-44a9-bb6e-2ec602a0cecf', 'name': 'ctest-vn-54787512', 'tenant_id': '68251e1020d941ee9071ca4b7367d7b1', 'project_id': '68251e1020d941ee9071ca4b7367d7b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46665695', 'ctest-vn-54787512'], 'port_security_enabled': True, 'description': ''}}
2026-08-17 05:33:06,995 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7724f0a-c7e2-452a-ab89-d07aef316843', 'name': '', 'tenant_id': '68251e1020d941ee9071ca4b7367d7b1', 'network_id': '62439e6b-47b9-44a9-bb6e-2ec602a0cecf', 'ip_version': 4, 'cidr': '146.49.178.128/26', 'allocation_pools': [{'start': '146.49.178.130', 'end': '146.49.178.190'}], 'gateway_ip': '146.49.178.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.49.178.130', 'tags': [], 'project_id': '68251e1020d941ee9071ca4b7367d7b1'}}
2026-08-17 05:33:07,024 - INFO - Created VN ctest-vn-54787512
2026-08-17 05:33:07,084 - DEBUG - VN ctest-vn-54787512 UUID is 62439e6b-47b9-44a9-bb6e-2ec602a0cecf
2026-08-17 05:33:07,467 - DEBUG - Response for create_network : {'network': {'id': 'fbb886e3-4d03-4454-a8d8-9938693eed66', 'name': 'ctest-vn-86670717', 'tenant_id': '68251e1020d941ee9071ca4b7367d7b1', 'project_id': '68251e1020d941ee9071ca4b7367d7b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46665695', 'ctest-vn-86670717'], 'port_security_enabled': True, 'description': ''}}
2026-08-17 05:33:07,677 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e71db1fb-fbe6-46d6-a0d6-848d685a4e56', 'name': '', 'tenant_id': '68251e1020d941ee9071ca4b7367d7b1', 'network_id': 'fbb886e3-4d03-4454-a8d8-9938693eed66', 'ip_version': 4, 'cidr': '202.247.57.192/26', 'allocation_pools': [{'start': '202.247.57.194', 'end': '202.247.57.254'}], 'gateway_ip': '202.247.57.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.247.57.194', 'tags': [], 'project_id': '68251e1020d941ee9071ca4b7367d7b1'}}
2026-08-17 05:33:07,701 - INFO - Created VN ctest-vn-86670717
2026-08-17 05:33:07,756 - DEBUG - VN ctest-vn-86670717 UUID is fbb886e3-4d03-4454-a8d8-9938693eed66
2026-08-17 05:33:07,890 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46665695:ctest-vn-54787512, 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-46665695:ctest-vn-86670717, 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-08-17 05:33:08,317 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '62439e6b-47b9-44a9-bb6e-2ec602a0cecf', 'name': 'ctest-vn-54787512', 'tenant_id': '68251e1020d941ee9071ca4b7367d7b1', 'project_id': '68251e1020d941ee9071ca4b7367d7b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d7724f0a-c7e2-452a-ab89-d07aef316843'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46665695', 'ctest-vn-54787512'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46665695', 'ctest-policy-allow-all-96799152']], 'subnet_ipam': [{'subnet_cidr': '146.49.178.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-17 05:33:08,569 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fbb886e3-4d03-4454-a8d8-9938693eed66', 'name': 'ctest-vn-86670717', 'tenant_id': '68251e1020d941ee9071ca4b7367d7b1', 'project_id': '68251e1020d941ee9071ca4b7367d7b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e71db1fb-fbe6-46d6-a0d6-848d685a4e56'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46665695', 'ctest-vn-86670717'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46665695', 'ctest-policy-allow-all-96799152']], 'subnet_ipam': [{'subnet_cidr': '202.247.57.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-17 05:33:08,752 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-17 05:33:09,134 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-17 05:33:09,170 - DEBUG - Requesting: http://10.0.0.161:8082/domain/676d5299-35c3-49fc-b4d9-f855572b2a5c
2026-08-17 05:33:09,186 - DEBUG - Requesting: http://10.0.0.161:8082/project/68251e10-20d9-41ee-9071-ca4b7367d7b1
2026-08-17 05:33:09,265 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/62439e6b-47b9-44a9-bb6e-2ec602a0cecf
2026-08-17 05:33:09,281 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/62439e6b-47b9-44a9-bb6e-2ec602a0cecf
2026-08-17 05:33:09,292 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/b55bc061-01f5-4a67-a6de-1987506ffdf4
2026-08-17 05:33:09,303 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/b55bc061-01f5-4a67-a6de-1987506ffdf4
2026-08-17 05:33:09,312 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/3d516f36-9ac7-4f6e-9b4f-e88ca3d3e8d0
2026-08-17 05:33:09,320 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-17 05:33:09,320 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/62439e6b-47b9-44a9-bb6e-2ec602a0cecf
2026-08-17 05:33:09,331 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/b55bc061-01f5-4a67-a6de-1987506ffdf4
2026-08-17 05:33:09,349 - INFO - Verified VN network id 12 for VN 62439e6b-47b9-44a9-bb6e-2ec602a0cecf
2026-08-17 05:33:09,350 - INFO - Verifications in API Server for VN ctest-vn-54787512 passed
2026-08-17 05:33:09,350 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/62439e6b-47b9-44a9-bb6e-2ec602a0cecf
2026-08-17 05:33:09,362 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/b55bc061-01f5-4a67-a6de-1987506ffdf4
2026-08-17 05:33:09,370 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/b55bc061-01f5-4a67-a6de-1987506ffdf4
2026-08-17 05:33:09,380 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/3d516f36-9ac7-4f6e-9b4f-e88ca3d3e8d0
2026-08-17 05:33:09,395 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46665695:ctest-vn-54787512', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46665695', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7080677222758565033', 'uuid-lslong': '13505783760513191631'}, 'enable': 'true', 'created': '2026-08-17T05:33:06', 'last-modified': '2026-08-17T05:33:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.112504'}
2026-08-17 05:33:09,404 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-17 05:33:09,404 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54787512 passed
2026-08-17 05:33:09,404 - DEBUG - ====Verifying policy data for ctest-vn-54787512 in API_Server ======
2026-08-17 05:33:09,404 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-17 05:33:09,411 - DEBUG - Requesting: http://10.0.0.161:8082/domain/676d5299-35c3-49fc-b4d9-f855572b2a5c
2026-08-17 05:33:09,425 - DEBUG - Requesting: http://10.0.0.161:8082/project/68251e10-20d9-41ee-9071-ca4b7367d7b1
2026-08-17 05:33:09,502 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/62439e6b-47b9-44a9-bb6e-2ec602a0cecf
2026-08-17 05:33:09,515 - DEBUG - ==>Verifying data for policy with id: c33b9fe3-cb7e-4027-9a72-7e9a75041e0b, fqn: ['default-domain', 'ctest-TestBasicPolicy-46665695', 'ctest-policy-allow-all-96799152']
2026-08-17 05:33:09,516 - INFO - VN ctest-vn-54787512 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-17 05:33:09,516 - DEBUG - Verifying the vn in opserver
2026-08-17 05:33:09,516 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46665695:ctest-vn-54787512 virtual network link through opserver 10.0.0.161
2026-08-17 05:33:09,516 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-08-17 05:33:09,892 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-08-17 05:33:09,955 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46665695:ctest-vn-54787512', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46665695:ctest-vn-54787512?flat'}
2026-08-17 05:33:09,955 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46665695:ctest-vn-54787512 is found in opserver
2026-08-17 05:33:09,968 - DEBUG - Do not have enough data to verify VN in agent
2026-08-17 05:33:09,973 - DEBUG - VRF ids for VN ctest-vn-54787512: {}
2026-08-17 05:33:09,973 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-17 05:33:09,980 - DEBUG - Requesting: http://10.0.0.161:8082/domain/676d5299-35c3-49fc-b4d9-f855572b2a5c
2026-08-17 05:33:09,991 - DEBUG - Requesting: http://10.0.0.161:8082/project/68251e10-20d9-41ee-9071-ca4b7367d7b1
2026-08-17 05:33:10,077 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/fbb886e3-4d03-4454-a8d8-9938693eed66
2026-08-17 05:33:10,091 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/fbb886e3-4d03-4454-a8d8-9938693eed66
2026-08-17 05:33:10,104 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/89177507-fe1d-4d9f-ad47-ad19e1498265
2026-08-17 05:33:10,115 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/89177507-fe1d-4d9f-ad47-ad19e1498265
2026-08-17 05:33:10,125 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/4d255986-c6cb-4e6d-b07b-d3d74f08388a
2026-08-17 05:33:10,135 - DEBUG - Route Targets: ['target:64512:8000006']
2026-08-17 05:33:10,135 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/fbb886e3-4d03-4454-a8d8-9938693eed66
2026-08-17 05:33:10,150 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/89177507-fe1d-4d9f-ad47-ad19e1498265
2026-08-17 05:33:10,168 - INFO - Verified VN network id 13 for VN fbb886e3-4d03-4454-a8d8-9938693eed66
2026-08-17 05:33:10,168 - INFO - Verifications in API Server for VN ctest-vn-86670717 passed
2026-08-17 05:33:10,168 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/fbb886e3-4d03-4454-a8d8-9938693eed66
2026-08-17 05:33:10,180 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/89177507-fe1d-4d9f-ad47-ad19e1498265
2026-08-17 05:33:10,188 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/89177507-fe1d-4d9f-ad47-ad19e1498265
2026-08-17 05:33:10,197 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/4d255986-c6cb-4e6d-b07b-d3d74f08388a
2026-08-17 05:33:10,213 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46665695:ctest-vn-86670717', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46665695', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18138395810042430548', 'uuid-lslong': '12166642860904344934'}, 'enable': 'true', 'created': '2026-08-17T05:33:07', 'last-modified': '2026-08-17T05:33:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.666067'}
2026-08-17 05:33:10,221 - DEBUG - Route Targets: ['target:64512:8000006']
2026-08-17 05:33:10,221 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86670717 passed
2026-08-17 05:33:10,221 - DEBUG - ====Verifying policy data for ctest-vn-86670717 in API_Server ======
2026-08-17 05:33:10,221 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-17 05:33:10,228 - DEBUG - Requesting: http://10.0.0.161:8082/domain/676d5299-35c3-49fc-b4d9-f855572b2a5c
2026-08-17 05:33:10,242 - DEBUG - Requesting: http://10.0.0.161:8082/project/68251e10-20d9-41ee-9071-ca4b7367d7b1
2026-08-17 05:33:10,325 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/fbb886e3-4d03-4454-a8d8-9938693eed66
2026-08-17 05:33:10,339 - DEBUG - ==>Verifying data for policy with id: c33b9fe3-cb7e-4027-9a72-7e9a75041e0b, fqn: ['default-domain', 'ctest-TestBasicPolicy-46665695', 'ctest-policy-allow-all-96799152']
2026-08-17 05:33:10,339 - INFO - VN ctest-vn-86670717 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-17 05:33:10,339 - DEBUG - Verifying the vn in opserver
2026-08-17 05:33:10,339 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46665695:ctest-vn-86670717 virtual network link through opserver 10.0.0.161
2026-08-17 05:33:10,339 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-08-17 05:33:10,351 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46665695:ctest-vn-86670717', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46665695:ctest-vn-86670717?flat'}
2026-08-17 05:33:10,351 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46665695:ctest-vn-86670717 is found in opserver
2026-08-17 05:33:10,366 - DEBUG - Do not have enough data to verify VN in agent
2026-08-17 05:33:10,374 - DEBUG - VRF ids for VN ctest-vn-86670717: {}
2026-08-17 05:33:10,446 - DEBUG - Services list from nova: [