2026-08-14 17:24:19,646 - INFO - Domain Default found not creating
2026-08-14 17:24:19,832 - INFO - Project ctest-TestBasicPolicy-65314738 not found, creating it
2026-08-14 17:24:20,311 - INFO - Created Project:ctest-TestBasicPolicy-65314738, ID : 74ef791e-8de0-44b4-9639-fc3d5525fc67
2026-08-14 17:24:22,095 - INFO - ================================================================================
2026-08-14 17:24:22,096 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-14 17:24:22,096 - 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-14 17:24:22,368 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.17': '0'}} with
2026-08-14 17:24:22,368 - INFO - Initial checks done. Running the testcase now
2026-08-14 17:24:22,369 - INFO -
2026-08-14 17:24:23,053 - DEBUG - Response for create_network : {'network': {'id': '639442cb-c99c-466c-8144-fdc85e8d5804', 'name': 'ctest-vn-25862491', 'tenant_id': '74ef791e8de044b49639fc3d5525fc67', 'project_id': '74ef791e8de044b49639fc3d5525fc67', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65314738', 'ctest-vn-25862491'], 'port_security_enabled': True, 'description': ''}}
2026-08-14 17:24:23,237 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ce33f8c-354a-4bb4-a936-5e1cef348bf6', 'name': '', 'tenant_id': '74ef791e8de044b49639fc3d5525fc67', 'network_id': '639442cb-c99c-466c-8144-fdc85e8d5804', 'ip_version': 4, 'cidr': '56.23.89.192/26', 'allocation_pools': [{'start': '56.23.89.194', 'end': '56.23.89.254'}], 'gateway_ip': '56.23.89.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.23.89.194', 'tags': [], 'project_id': '74ef791e8de044b49639fc3d5525fc67'}}
2026-08-14 17:24:23,264 - INFO - Created VN ctest-vn-25862491
2026-08-14 17:24:23,319 - DEBUG - VN ctest-vn-25862491 UUID is 639442cb-c99c-466c-8144-fdc85e8d5804
2026-08-14 17:24:23,657 - DEBUG - Response for create_network : {'network': {'id': '77b0a50b-9259-4105-b9d8-2089f48049f1', 'name': 'ctest-vn-38169859', 'tenant_id': '74ef791e8de044b49639fc3d5525fc67', 'project_id': '74ef791e8de044b49639fc3d5525fc67', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65314738', 'ctest-vn-38169859'], 'port_security_enabled': True, 'description': ''}}
2026-08-14 17:24:23,905 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6df8b60-4128-4208-bcc0-3f04077c616d', 'name': '', 'tenant_id': '74ef791e8de044b49639fc3d5525fc67', 'network_id': '77b0a50b-9259-4105-b9d8-2089f48049f1', 'ip_version': 4, 'cidr': '140.239.14.192/26', 'allocation_pools': [{'start': '140.239.14.194', 'end': '140.239.14.254'}], 'gateway_ip': '140.239.14.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.239.14.194', 'tags': [], 'project_id': '74ef791e8de044b49639fc3d5525fc67'}}
2026-08-14 17:24:23,926 - INFO - Created VN ctest-vn-38169859
2026-08-14 17:24:23,979 - DEBUG - VN ctest-vn-38169859 UUID is 77b0a50b-9259-4105-b9d8-2089f48049f1
2026-08-14 17:24:24,102 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65314738:ctest-vn-25862491, 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-65314738:ctest-vn-38169859, 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-14 17:24:24,424 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '639442cb-c99c-466c-8144-fdc85e8d5804', 'name': 'ctest-vn-25862491', 'tenant_id': '74ef791e8de044b49639fc3d5525fc67', 'project_id': '74ef791e8de044b49639fc3d5525fc67', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ce33f8c-354a-4bb4-a936-5e1cef348bf6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65314738', 'ctest-vn-25862491'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65314738', 'ctest-policy-allow-all-85685930']], 'subnet_ipam': [{'subnet_cidr': '56.23.89.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-14 17:24:24,672 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '77b0a50b-9259-4105-b9d8-2089f48049f1', 'name': 'ctest-vn-38169859', 'tenant_id': '74ef791e8de044b49639fc3d5525fc67', 'project_id': '74ef791e8de044b49639fc3d5525fc67', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b6df8b60-4128-4208-bcc0-3f04077c616d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65314738', 'ctest-vn-38169859'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65314738', 'ctest-policy-allow-all-85685930']], 'subnet_ipam': [{'subnet_cidr': '140.239.14.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-14 17:24:24,851 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-14 17:24:25,219 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-14 17:24:25,258 - DEBUG - Requesting: http://10.0.0.162:8082/domain/c6a1433e-a96d-4510-bc4e-5b4db46bda40
2026-08-14 17:24:25,272 - DEBUG - Requesting: http://10.0.0.162:8082/project/74ef791e-8de0-44b4-9639-fc3d5525fc67
2026-08-14 17:24:25,355 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/639442cb-c99c-466c-8144-fdc85e8d5804
2026-08-14 17:24:25,369 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/639442cb-c99c-466c-8144-fdc85e8d5804
2026-08-14 17:24:25,379 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/0670203b-0cce-4a2b-b66d-0e1fb04ac08a
2026-08-14 17:24:25,388 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/0670203b-0cce-4a2b-b66d-0e1fb04ac08a
2026-08-14 17:24:25,396 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/f931788a-015f-475f-ab0c-7fb601882232
2026-08-14 17:24:25,405 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-14 17:24:25,405 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/639442cb-c99c-466c-8144-fdc85e8d5804
2026-08-14 17:24:25,417 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/0670203b-0cce-4a2b-b66d-0e1fb04ac08a
2026-08-14 17:24:25,440 - INFO - Verified VN network id 12 for VN 639442cb-c99c-466c-8144-fdc85e8d5804
2026-08-14 17:24:25,440 - INFO - Verifications in API Server for VN ctest-vn-25862491 passed
2026-08-14 17:24:25,440 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/639442cb-c99c-466c-8144-fdc85e8d5804
2026-08-14 17:24:25,452 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/0670203b-0cce-4a2b-b66d-0e1fb04ac08a
2026-08-14 17:24:25,461 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/0670203b-0cce-4a2b-b66d-0e1fb04ac08a
2026-08-14 17:24:25,472 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/f931788a-015f-475f-ab0c-7fb601882232
2026-08-14 17:24:25,487 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65314738:ctest-vn-25862491', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65314738', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7175433549336299116', 'uuid-lslong': '9314848966330636292'}, 'enable': 'true', 'created': '2026-08-14T17:24:23', 'last-modified': '2026-08-14T17:24:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.087559'}
2026-08-14 17:24:25,496 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-14 17:24:25,496 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25862491 passed
2026-08-14 17:24:25,496 - DEBUG - ====Verifying policy data for ctest-vn-25862491 in API_Server ======
2026-08-14 17:24:25,496 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-14 17:24:25,503 - DEBUG - Requesting: http://10.0.0.162:8082/domain/c6a1433e-a96d-4510-bc4e-5b4db46bda40
2026-08-14 17:24:25,516 - DEBUG - Requesting: http://10.0.0.162:8082/project/74ef791e-8de0-44b4-9639-fc3d5525fc67
2026-08-14 17:24:25,605 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/639442cb-c99c-466c-8144-fdc85e8d5804
2026-08-14 17:24:25,618 - DEBUG - ==>Verifying data for policy with id: 871303ef-fb54-4398-9484-ec7738b82780, fqn: ['default-domain', 'ctest-TestBasicPolicy-65314738', 'ctest-policy-allow-all-85685930']
2026-08-14 17:24:25,618 - INFO - VN ctest-vn-25862491 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-14 17:24:25,618 - DEBUG - Verifying the vn in opserver
2026-08-14 17:24:25,618 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65314738:ctest-vn-25862491 virtual network link through opserver 10.0.0.162
2026-08-14 17:24:25,618 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks
2026-08-14 17:24:26,004 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks
2026-08-14 17:24:26,065 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65314738:ctest-vn-25862491', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65314738:ctest-vn-25862491?flat'}
2026-08-14 17:24:26,065 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65314738:ctest-vn-25862491 is found in opserver
2026-08-14 17:24:26,077 - DEBUG - Do not have enough data to verify VN in agent
2026-08-14 17:24:26,082 - DEBUG - VRF ids for VN ctest-vn-25862491: {}
2026-08-14 17:24:26,082 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-14 17:24:26,090 - DEBUG - Requesting: http://10.0.0.162:8082/domain/c6a1433e-a96d-4510-bc4e-5b4db46bda40
2026-08-14 17:24:26,103 - DEBUG - Requesting: http://10.0.0.162:8082/project/74ef791e-8de0-44b4-9639-fc3d5525fc67
2026-08-14 17:24:26,177 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/77b0a50b-9259-4105-b9d8-2089f48049f1
2026-08-14 17:24:26,192 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/77b0a50b-9259-4105-b9d8-2089f48049f1
2026-08-14 17:24:26,204 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/6da72582-1ab4-44b4-b9e6-0e9a83f62b47
2026-08-14 17:24:26,213 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/6da72582-1ab4-44b4-b9e6-0e9a83f62b47
2026-08-14 17:24:26,222 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/516274f5-54be-452a-95a4-a3e8821af610
2026-08-14 17:24:26,231 - DEBUG - Route Targets: ['target:64512:8000006']
2026-08-14 17:24:26,231 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/77b0a50b-9259-4105-b9d8-2089f48049f1
2026-08-14 17:24:26,242 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/6da72582-1ab4-44b4-b9e6-0e9a83f62b47
2026-08-14 17:24:26,260 - INFO - Verified VN network id 13 for VN 77b0a50b-9259-4105-b9d8-2089f48049f1
2026-08-14 17:24:26,260 - INFO - Verifications in API Server for VN ctest-vn-38169859 passed
2026-08-14 17:24:26,260 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/77b0a50b-9259-4105-b9d8-2089f48049f1
2026-08-14 17:24:26,272 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/6da72582-1ab4-44b4-b9e6-0e9a83f62b47
2026-08-14 17:24:26,280 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/6da72582-1ab4-44b4-b9e6-0e9a83f62b47
2026-08-14 17:24:26,289 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/516274f5-54be-452a-95a4-a3e8821af610
2026-08-14 17:24:26,304 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65314738:ctest-vn-38169859', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65314738', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8624574755533046021', 'uuid-lslong': '13391489268870826481'}, 'enable': 'true', 'created': '2026-08-14T17:24:23', 'last-modified': '2026-08-14T17:24:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.659164'}
2026-08-14 17:24:26,314 - DEBUG - Route Targets: ['target:64512:8000006']
2026-08-14 17:24:26,314 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38169859 passed
2026-08-14 17:24:26,315 - DEBUG - ====Verifying policy data for ctest-vn-38169859 in API_Server ======
2026-08-14 17:24:26,315 - DEBUG - Requesting: http://10.0.0.162:8082/domains
2026-08-14 17:24:26,321 - DEBUG - Requesting: http://10.0.0.162:8082/domain/c6a1433e-a96d-4510-bc4e-5b4db46bda40
2026-08-14 17:24:26,336 - DEBUG - Requesting: http://10.0.0.162:8082/project/74ef791e-8de0-44b4-9639-fc3d5525fc67
2026-08-14 17:24:26,421 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/77b0a50b-9259-4105-b9d8-2089f48049f1
2026-08-14 17:24:26,432 - DEBUG - ==>Verifying data for policy with id: 871303ef-fb54-4398-9484-ec7738b82780, fqn: ['default-domain', 'ctest-TestBasicPolicy-65314738', 'ctest-policy-allow-all-85685930']
2026-08-14 17:24:26,432 - INFO - VN ctest-vn-38169859 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-14 17:24:26,432 - DEBUG - Verifying the vn in opserver
2026-08-14 17:24:26,432 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65314738:ctest-vn-38169859 virtual network link through opserver 10.0.0.162
2026-08-14 17:24:26,433 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks
2026-08-14 17:24:26,444 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65314738:ctest-vn-38169859', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65314738:ctest-vn-38169859?flat'}
2026-08-14 17:24:26,444 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65314738:ctest-vn-38169859 is found in opserver
2026-08-14 17:24:26,458 - DEBUG - Do not have enough data to verify VN in agent
2026-08-14 17:24:26,465 - DEBUG - VRF ids for VN ctest-vn-38169859: {}
2026-08-14 17:24:26,538 - DEBUG - Services list from nova: [