2025-10-08 20:20:52,093 - INFO - Domain Default found not creating
2025-10-08 20:20:52,217 - INFO - Project ctest-TestBasicPolicy-24728085 not found, creating it
2025-10-08 20:20:52,636 - INFO - Created Project:ctest-TestBasicPolicy-24728085, ID : ff91d833-0cd9-4a26-95bc-2f6188fde045
2025-10-08 20:20:53,955 - INFO - ================================================================================
2025-10-08 20:20:53,955 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-08 20:20:53,955 - 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
2025-10-08 20:20:54,209 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-10-08 20:20:54,209 - INFO - Initial checks done. Running the testcase now
2025-10-08 20:20:54,209 - INFO -
2025-10-08 20:20:54,716 - DEBUG - Response for create_network : {'network': {'id': 'e81d2f25-6071-40d4-8704-cd7a2eea2ff3', 'name': 'ctest-vn-42313797', 'tenant_id': 'ff91d8330cd94a2695bc2f6188fde045', 'project_id': 'ff91d8330cd94a2695bc2f6188fde045', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24728085', 'ctest-vn-42313797'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 20:20:54,902 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7f9279f-479f-4d0d-9449-9940918a8176', 'name': '', 'tenant_id': 'ff91d8330cd94a2695bc2f6188fde045', 'network_id': 'e81d2f25-6071-40d4-8704-cd7a2eea2ff3', 'ip_version': 4, 'cidr': '11.30.25.0/26', 'allocation_pools': [{'start': '11.30.25.2', 'end': '11.30.25.62'}], 'gateway_ip': '11.30.25.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.30.25.2', 'tags': [], 'project_id': 'ff91d8330cd94a2695bc2f6188fde045'}}
2025-10-08 20:20:54,917 - INFO - Created VN ctest-vn-42313797
2025-10-08 20:20:54,968 - DEBUG - VN ctest-vn-42313797 UUID is e81d2f25-6071-40d4-8704-cd7a2eea2ff3
2025-10-08 20:20:55,263 - DEBUG - Response for create_network : {'network': {'id': '7561a7a7-2f19-4834-85f4-d6a8dff76320', 'name': 'ctest-vn-28203359', 'tenant_id': 'ff91d8330cd94a2695bc2f6188fde045', 'project_id': 'ff91d8330cd94a2695bc2f6188fde045', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24728085', 'ctest-vn-28203359'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 20:20:55,456 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf624050-2baf-4444-b9e4-406db42d0f2b', 'name': '', 'tenant_id': 'ff91d8330cd94a2695bc2f6188fde045', 'network_id': '7561a7a7-2f19-4834-85f4-d6a8dff76320', 'ip_version': 4, 'cidr': '148.17.25.192/26', 'allocation_pools': [{'start': '148.17.25.194', 'end': '148.17.25.254'}], 'gateway_ip': '148.17.25.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.17.25.194', 'tags': [], 'project_id': 'ff91d8330cd94a2695bc2f6188fde045'}}
2025-10-08 20:20:55,471 - INFO - Created VN ctest-vn-28203359
2025-10-08 20:20:55,520 - DEBUG - VN ctest-vn-28203359 UUID is 7561a7a7-2f19-4834-85f4-d6a8dff76320
2025-10-08 20:20:55,664 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24728085:ctest-vn-42313797, 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-24728085:ctest-vn-28203359, 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]
2025-10-08 20:20:55,950 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e81d2f25-6071-40d4-8704-cd7a2eea2ff3', 'name': 'ctest-vn-42313797', 'tenant_id': 'ff91d8330cd94a2695bc2f6188fde045', 'project_id': 'ff91d8330cd94a2695bc2f6188fde045', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7f9279f-479f-4d0d-9449-9940918a8176'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24728085', 'ctest-vn-42313797'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24728085', 'ctest-policy-allow-all-64841778']], 'subnet_ipam': [{'subnet_cidr': '11.30.25.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 20:20:56,167 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7561a7a7-2f19-4834-85f4-d6a8dff76320', 'name': 'ctest-vn-28203359', 'tenant_id': 'ff91d8330cd94a2695bc2f6188fde045', 'project_id': 'ff91d8330cd94a2695bc2f6188fde045', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bf624050-2baf-4444-b9e4-406db42d0f2b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24728085', 'ctest-vn-28203359'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24728085', 'ctest-policy-allow-all-64841778']], 'subnet_ipam': [{'subnet_cidr': '148.17.25.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 20:20:56,332 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-08 20:20:56,621 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-08 20:20:56,643 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6d79180f-b032-4733-9c89-d927ea9a1292
2025-10-08 20:20:56,653 - DEBUG - Requesting: http://10.0.0.254:8082/project/ff91d833-0cd9-4a26-95bc-2f6188fde045
2025-10-08 20:20:56,724 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e81d2f25-6071-40d4-8704-cd7a2eea2ff3
2025-10-08 20:20:56,732 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e81d2f25-6071-40d4-8704-cd7a2eea2ff3
2025-10-08 20:20:56,740 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59eaaed0-e113-41f9-bea4-a6303429b7af
2025-10-08 20:20:56,745 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59eaaed0-e113-41f9-bea4-a6303429b7af
2025-10-08 20:20:56,750 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9877b1fe-82a0-4311-b4f1-52da4537b172
2025-10-08 20:20:56,755 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 20:20:56,755 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e81d2f25-6071-40d4-8704-cd7a2eea2ff3
2025-10-08 20:20:56,762 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59eaaed0-e113-41f9-bea4-a6303429b7af
2025-10-08 20:20:56,773 - INFO - Verified VN network id 12 for VN e81d2f25-6071-40d4-8704-cd7a2eea2ff3
2025-10-08 20:20:56,773 - INFO - Verifications in API Server for VN ctest-vn-42313797 passed
2025-10-08 20:20:56,773 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e81d2f25-6071-40d4-8704-cd7a2eea2ff3
2025-10-08 20:20:56,780 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59eaaed0-e113-41f9-bea4-a6303429b7af
2025-10-08 20:20:56,784 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59eaaed0-e113-41f9-bea4-a6303429b7af
2025-10-08 20:20:56,789 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9877b1fe-82a0-4311-b4f1-52da4537b172
2025-10-08 20:20:56,798 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24728085:ctest-vn-42313797', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24728085', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16725576428702220500', 'uuid-lslong': '9729127019683917811'}, 'enable': 'true', 'created': '2025-10-08T20:20:54', 'last-modified': '2025-10-08T20:20:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.869819'}
2025-10-08 20:20:56,804 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 20:20:56,804 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42313797 passed
2025-10-08 20:20:56,804 - DEBUG - ====Verifying policy data for ctest-vn-42313797 in API_Server ======
2025-10-08 20:20:56,804 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-08 20:20:56,808 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6d79180f-b032-4733-9c89-d927ea9a1292
2025-10-08 20:20:56,819 - DEBUG - Requesting: http://10.0.0.254:8082/project/ff91d833-0cd9-4a26-95bc-2f6188fde045
2025-10-08 20:20:56,883 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e81d2f25-6071-40d4-8704-cd7a2eea2ff3
2025-10-08 20:20:56,891 - DEBUG - ==>Verifying data for policy with id: 56e29bbf-bc9f-4f30-b46e-fc0c4bcf1c06, fqn: ['default-domain', 'ctest-TestBasicPolicy-24728085', 'ctest-policy-allow-all-64841778']
2025-10-08 20:20:56,891 - INFO - VN ctest-vn-42313797 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 20:20:56,891 - DEBUG - Verifying the vn in opserver
2025-10-08 20:20:56,891 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24728085:ctest-vn-42313797 virtual network link through opserver 10.0.0.254
2025-10-08 20:20:56,892 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-08 20:20:57,178 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-08 20:20:57,226 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24728085:ctest-vn-42313797', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24728085:ctest-vn-42313797?flat'}
2025-10-08 20:20:57,226 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24728085:ctest-vn-42313797 is found in opserver
2025-10-08 20:20:57,234 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 20:20:57,238 - DEBUG - VRF ids for VN ctest-vn-42313797: {}
2025-10-08 20:20:57,238 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-08 20:20:57,242 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6d79180f-b032-4733-9c89-d927ea9a1292
2025-10-08 20:20:57,251 - DEBUG - Requesting: http://10.0.0.254:8082/project/ff91d833-0cd9-4a26-95bc-2f6188fde045
2025-10-08 20:20:57,316 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7561a7a7-2f19-4834-85f4-d6a8dff76320
2025-10-08 20:20:57,328 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7561a7a7-2f19-4834-85f4-d6a8dff76320
2025-10-08 20:20:57,335 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf0f0c6b-52c1-4692-a701-64dc166e1144
2025-10-08 20:20:57,341 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf0f0c6b-52c1-4692-a701-64dc166e1144
2025-10-08 20:20:57,346 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/bc6233de-ca0b-48ef-a3d4-6db268f5b976
2025-10-08 20:20:57,352 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 20:20:57,352 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7561a7a7-2f19-4834-85f4-d6a8dff76320
2025-10-08 20:20:57,359 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf0f0c6b-52c1-4692-a701-64dc166e1144
2025-10-08 20:20:57,369 - INFO - Verified VN network id 13 for VN 7561a7a7-2f19-4834-85f4-d6a8dff76320
2025-10-08 20:20:57,369 - INFO - Verifications in API Server for VN ctest-vn-28203359 passed
2025-10-08 20:20:57,369 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7561a7a7-2f19-4834-85f4-d6a8dff76320
2025-10-08 20:20:57,376 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf0f0c6b-52c1-4692-a701-64dc166e1144
2025-10-08 20:20:57,381 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bf0f0c6b-52c1-4692-a701-64dc166e1144
2025-10-08 20:20:57,386 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/bc6233de-ca0b-48ef-a3d4-6db268f5b976
2025-10-08 20:20:57,394 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24728085:ctest-vn-28203359', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24728085', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8458225911670065204', 'uuid-lslong': '9652575922162197280'}, 'enable': 'true', 'created': '2025-10-08T20:20:55', 'last-modified': '2025-10-08T20:20:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.248355'}
2025-10-08 20:20:57,398 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 20:20:57,398 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28203359 passed
2025-10-08 20:20:57,399 - DEBUG - ====Verifying policy data for ctest-vn-28203359 in API_Server ======
2025-10-08 20:20:57,399 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-08 20:20:57,404 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6d79180f-b032-4733-9c89-d927ea9a1292
2025-10-08 20:20:57,411 - DEBUG - Requesting: http://10.0.0.254:8082/project/ff91d833-0cd9-4a26-95bc-2f6188fde045
2025-10-08 20:20:57,472 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7561a7a7-2f19-4834-85f4-d6a8dff76320
2025-10-08 20:20:57,480 - DEBUG - ==>Verifying data for policy with id: 56e29bbf-bc9f-4f30-b46e-fc0c4bcf1c06, fqn: ['default-domain', 'ctest-TestBasicPolicy-24728085', 'ctest-policy-allow-all-64841778']
2025-10-08 20:20:57,480 - INFO - VN ctest-vn-28203359 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 20:20:57,480 - DEBUG - Verifying the vn in opserver
2025-10-08 20:20:57,480 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24728085:ctest-vn-28203359 virtual network link through opserver 10.0.0.254
2025-10-08 20:20:57,480 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-08 20:20:57,488 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24728085:ctest-vn-28203359', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24728085:ctest-vn-28203359?flat'}
2025-10-08 20:20:57,488 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24728085:ctest-vn-28203359 is found in opserver
2025-10-08 20:20:57,496 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 20:20:57,500 - DEBUG - VRF ids for VN ctest-vn-28203359: {}
2025-10-08 20:20:57,547 - DEBUG - Services list from nova: [