2026-08-24 17:32:17,451 - INFO - Domain Default found not creating
2026-08-24 17:32:17,618 - INFO - Project ctest-TestBasicPolicy-52741806 not found, creating it
2026-08-24 17:32:18,097 - INFO - Created Project:ctest-TestBasicPolicy-52741806, ID : dff9a5e1-65bd-408f-8c67-63212e6b0c78
2026-08-24 17:32:19,654 - INFO - ================================================================================
2026-08-24 17:32:19,654 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-24 17:32:19,654 - 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-24 17:32:19,922 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with
2026-08-24 17:32:19,922 - INFO - Initial checks done. Running the testcase now
2026-08-24 17:32:19,922 - INFO -
2026-08-24 17:32:20,654 - DEBUG - Response for create_network : {'network': {'id': 'bff3a832-2cb0-41b4-a68a-4ed0e407f549', 'name': 'ctest-vn-14712846', 'tenant_id': 'dff9a5e165bd408f8c6763212e6b0c78', 'project_id': 'dff9a5e165bd408f8c6763212e6b0c78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52741806', 'ctest-vn-14712846'], 'port_security_enabled': True, 'description': ''}}
2026-08-24 17:32:20,877 - DEBUG - Response for create_subnet : {'subnet': {'id': '81081079-d4b5-42cd-ac1f-f03f859ae5c4', 'name': '', 'tenant_id': 'dff9a5e165bd408f8c6763212e6b0c78', 'network_id': 'bff3a832-2cb0-41b4-a68a-4ed0e407f549', 'ip_version': 4, 'cidr': '141.254.197.128/26', 'allocation_pools': [{'start': '141.254.197.130', 'end': '141.254.197.190'}], 'gateway_ip': '141.254.197.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.254.197.130', 'tags': [], 'project_id': 'dff9a5e165bd408f8c6763212e6b0c78'}}
2026-08-24 17:32:20,894 - INFO - Created VN ctest-vn-14712846
2026-08-24 17:32:20,947 - DEBUG - VN ctest-vn-14712846 UUID is bff3a832-2cb0-41b4-a68a-4ed0e407f549
2026-08-24 17:32:21,326 - DEBUG - Response for create_network : {'network': {'id': 'c1d656b5-9954-4fdc-85b1-36f53c0f27e0', 'name': 'ctest-vn-21473348', 'tenant_id': 'dff9a5e165bd408f8c6763212e6b0c78', 'project_id': 'dff9a5e165bd408f8c6763212e6b0c78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52741806', 'ctest-vn-21473348'], 'port_security_enabled': True, 'description': ''}}
2026-08-24 17:32:21,600 - DEBUG - Response for create_subnet : {'subnet': {'id': '86fe216d-3d0d-45ab-8a90-aa128ac02c04', 'name': '', 'tenant_id': 'dff9a5e165bd408f8c6763212e6b0c78', 'network_id': 'c1d656b5-9954-4fdc-85b1-36f53c0f27e0', 'ip_version': 4, 'cidr': '54.40.87.64/26', 'allocation_pools': [{'start': '54.40.87.66', 'end': '54.40.87.126'}], 'gateway_ip': '54.40.87.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.40.87.66', 'tags': [], 'project_id': 'dff9a5e165bd408f8c6763212e6b0c78'}}
2026-08-24 17:32:21,617 - INFO - Created VN ctest-vn-21473348
2026-08-24 17:32:21,675 - DEBUG - VN ctest-vn-21473348 UUID is c1d656b5-9954-4fdc-85b1-36f53c0f27e0
2026-08-24 17:32:21,827 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52741806:ctest-vn-14712846, 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-52741806:ctest-vn-21473348, 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-24 17:32:22,153 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bff3a832-2cb0-41b4-a68a-4ed0e407f549', 'name': 'ctest-vn-14712846', 'tenant_id': 'dff9a5e165bd408f8c6763212e6b0c78', 'project_id': 'dff9a5e165bd408f8c6763212e6b0c78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['81081079-d4b5-42cd-ac1f-f03f859ae5c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52741806', 'ctest-vn-14712846'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52741806', 'ctest-policy-allow-all-78785429']], 'subnet_ipam': [{'subnet_cidr': '141.254.197.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-24 17:32:22,455 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c1d656b5-9954-4fdc-85b1-36f53c0f27e0', 'name': 'ctest-vn-21473348', 'tenant_id': 'dff9a5e165bd408f8c6763212e6b0c78', 'project_id': 'dff9a5e165bd408f8c6763212e6b0c78', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['86fe216d-3d0d-45ab-8a90-aa128ac02c04'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52741806', 'ctest-vn-21473348'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52741806', 'ctest-policy-allow-all-78785429']], 'subnet_ipam': [{'subnet_cidr': '54.40.87.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-24 17:32:22,631 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-24 17:32:22,966 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-24 17:32:22,993 - DEBUG - Requesting: http://10.0.0.161:8082/domain/86f499ed-8838-419b-b07a-e41db5a473c4
2026-08-24 17:32:23,006 - DEBUG - Requesting: http://10.0.0.161:8082/project/dff9a5e1-65bd-408f-8c67-63212e6b0c78
2026-08-24 17:32:23,100 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/bff3a832-2cb0-41b4-a68a-4ed0e407f549
2026-08-24 17:32:23,112 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/bff3a832-2cb0-41b4-a68a-4ed0e407f549
2026-08-24 17:32:23,122 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/fe3eb3ff-ca01-4905-ad19-4784743e0098
2026-08-24 17:32:23,129 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/fe3eb3ff-ca01-4905-ad19-4784743e0098
2026-08-24 17:32:23,136 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/1160930f-34c4-454e-87dd-f33c98fae4e8
2026-08-24 17:32:23,144 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-24 17:32:23,144 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/bff3a832-2cb0-41b4-a68a-4ed0e407f549
2026-08-24 17:32:23,159 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/fe3eb3ff-ca01-4905-ad19-4784743e0098
2026-08-24 17:32:23,182 - INFO - Verified VN network id 11 for VN bff3a832-2cb0-41b4-a68a-4ed0e407f549
2026-08-24 17:32:23,182 - INFO - Verifications in API Server for VN ctest-vn-14712846 passed
2026-08-24 17:32:23,182 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/bff3a832-2cb0-41b4-a68a-4ed0e407f549
2026-08-24 17:32:23,194 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/fe3eb3ff-ca01-4905-ad19-4784743e0098
2026-08-24 17:32:23,202 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/fe3eb3ff-ca01-4905-ad19-4784743e0098
2026-08-24 17:32:23,212 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/1160930f-34c4-454e-87dd-f33c98fae4e8
2026-08-24 17:32:23,224 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52741806:ctest-vn-14712846', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52741806', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13831583814036505012', 'uuid-lslong': '12000490816167998793'}, 'enable': 'true', 'created': '2026-08-24T17:32:20', 'last-modified': '2026-08-24T17:32:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.110940'}
2026-08-24 17:32:23,231 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-24 17:32:23,231 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14712846 passed
2026-08-24 17:32:23,232 - DEBUG - ====Verifying policy data for ctest-vn-14712846 in API_Server ======
2026-08-24 17:32:23,232 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-24 17:32:23,240 - DEBUG - Requesting: http://10.0.0.161:8082/domain/86f499ed-8838-419b-b07a-e41db5a473c4
2026-08-24 17:32:23,252 - DEBUG - Requesting: http://10.0.0.161:8082/project/dff9a5e1-65bd-408f-8c67-63212e6b0c78
2026-08-24 17:32:23,329 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/bff3a832-2cb0-41b4-a68a-4ed0e407f549
2026-08-24 17:32:23,338 - DEBUG - ==>Verifying data for policy with id: 9074efc5-c4b2-4de1-b0da-00100f2d45a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-52741806', 'ctest-policy-allow-all-78785429']
2026-08-24 17:32:23,338 - INFO - VN ctest-vn-14712846 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-24 17:32:23,338 - DEBUG - Verifying the vn in opserver
2026-08-24 17:32:23,339 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52741806:ctest-vn-14712846 virtual network link through opserver 10.0.0.161
2026-08-24 17:32:23,339 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-08-24 17:32:23,663 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-08-24 17:32:23,723 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52741806:ctest-vn-14712846', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52741806:ctest-vn-14712846?flat'}
2026-08-24 17:32:23,723 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52741806:ctest-vn-14712846 is found in opserver
2026-08-24 17:32:23,736 - DEBUG - Do not have enough data to verify VN in agent
2026-08-24 17:32:23,743 - DEBUG - VRF ids for VN ctest-vn-14712846: {}
2026-08-24 17:32:23,743 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-24 17:32:23,750 - DEBUG - Requesting: http://10.0.0.161:8082/domain/86f499ed-8838-419b-b07a-e41db5a473c4
2026-08-24 17:32:23,761 - DEBUG - Requesting: http://10.0.0.161:8082/project/dff9a5e1-65bd-408f-8c67-63212e6b0c78
2026-08-24 17:32:23,843 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/c1d656b5-9954-4fdc-85b1-36f53c0f27e0
2026-08-24 17:32:23,861 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/c1d656b5-9954-4fdc-85b1-36f53c0f27e0
2026-08-24 17:32:23,873 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7edfda0d-5028-4b91-8acb-5c920a165b73
2026-08-24 17:32:23,881 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7edfda0d-5028-4b91-8acb-5c920a165b73
2026-08-24 17:32:23,888 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/df7adbd0-cbe3-4908-8870-b31bc791bb0f
2026-08-24 17:32:23,896 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-24 17:32:23,896 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/c1d656b5-9954-4fdc-85b1-36f53c0f27e0
2026-08-24 17:32:23,905 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7edfda0d-5028-4b91-8acb-5c920a165b73
2026-08-24 17:32:23,925 - INFO - Verified VN network id 12 for VN c1d656b5-9954-4fdc-85b1-36f53c0f27e0
2026-08-24 17:32:23,925 - INFO - Verifications in API Server for VN ctest-vn-21473348 passed
2026-08-24 17:32:23,925 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/c1d656b5-9954-4fdc-85b1-36f53c0f27e0
2026-08-24 17:32:23,939 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7edfda0d-5028-4b91-8acb-5c920a165b73
2026-08-24 17:32:23,949 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/7edfda0d-5028-4b91-8acb-5c920a165b73
2026-08-24 17:32:23,958 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/df7adbd0-cbe3-4908-8870-b31bc791bb0f
2026-08-24 17:32:23,978 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52741806:ctest-vn-21473348', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52741806', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13967446632297680860', 'uuid-lslong': '9633541504824715232'}, 'enable': 'true', 'created': '2026-08-24T17:32:21', 'last-modified': '2026-08-24T17:32:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.561651'}
2026-08-24 17:32:23,986 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-24 17:32:23,986 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21473348 passed
2026-08-24 17:32:23,986 - DEBUG - ====Verifying policy data for ctest-vn-21473348 in API_Server ======
2026-08-24 17:32:23,986 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-08-24 17:32:23,994 - DEBUG - Requesting: http://10.0.0.161:8082/domain/86f499ed-8838-419b-b07a-e41db5a473c4
2026-08-24 17:32:24,008 - DEBUG - Requesting: http://10.0.0.161:8082/project/dff9a5e1-65bd-408f-8c67-63212e6b0c78
2026-08-24 17:32:24,085 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/c1d656b5-9954-4fdc-85b1-36f53c0f27e0
2026-08-24 17:32:24,095 - DEBUG - ==>Verifying data for policy with id: 9074efc5-c4b2-4de1-b0da-00100f2d45a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-52741806', 'ctest-policy-allow-all-78785429']
2026-08-24 17:32:24,095 - INFO - VN ctest-vn-21473348 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-24 17:32:24,096 - DEBUG - Verifying the vn in opserver
2026-08-24 17:32:24,096 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52741806:ctest-vn-21473348 virtual network link through opserver 10.0.0.161
2026-08-24 17:32:24,096 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-08-24 17:32:24,107 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52741806:ctest-vn-21473348', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52741806:ctest-vn-21473348?flat'}
2026-08-24 17:32:24,107 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52741806:ctest-vn-21473348 is found in opserver
2026-08-24 17:32:24,116 - DEBUG - Do not have enough data to verify VN in agent
2026-08-24 17:32:24,121 - DEBUG - VRF ids for VN ctest-vn-21473348: {}
2026-08-24 17:32:24,186 - DEBUG - Services list from nova: [