2026-03-24 13:46:10,369 - INFO - Domain Default found not creating
2026-03-24 13:46:10,584 - INFO - Project ctest-TestBasicPolicy-52958908 not found, creating it
2026-03-24 13:46:11,077 - INFO - Created Project:ctest-TestBasicPolicy-52958908, ID : 5156e989-2412-4ae1-8134-9eb89eacfc79
2026-03-24 13:46:12,829 - INFO - ================================================================================
2026-03-24 13:46:12,829 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-24 13:46:12,829 - 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-03-24 13:46:13,110 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2026-03-24 13:46:13,110 - INFO - Initial checks done. Running the testcase now
2026-03-24 13:46:13,110 - INFO -
2026-03-24 13:46:13,734 - DEBUG - Response for create_network : {'network': {'id': '35c82d27-0082-44d4-b2e2-23371bf9e29e', 'name': 'ctest-vn-95561014', 'tenant_id': '5156e98924124ae181349eb89eacfc79', 'project_id': '5156e98924124ae181349eb89eacfc79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52958908', 'ctest-vn-95561014'], 'port_security_enabled': True, 'description': ''}}
2026-03-24 13:46:13,965 - DEBUG - Response for create_subnet : {'subnet': {'id': '18ed705d-d5e6-4209-8943-c93f248b98c8', 'name': '', 'tenant_id': '5156e98924124ae181349eb89eacfc79', 'network_id': '35c82d27-0082-44d4-b2e2-23371bf9e29e', 'ip_version': 4, 'cidr': '105.157.197.192/26', 'allocation_pools': [{'start': '105.157.197.194', 'end': '105.157.197.254'}], 'gateway_ip': '105.157.197.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.157.197.194', 'tags': [], 'project_id': '5156e98924124ae181349eb89eacfc79'}}
2026-03-24 13:46:13,990 - INFO - Created VN ctest-vn-95561014
2026-03-24 13:46:14,047 - DEBUG - VN ctest-vn-95561014 UUID is 35c82d27-0082-44d4-b2e2-23371bf9e29e
2026-03-24 13:46:14,374 - DEBUG - Response for create_network : {'network': {'id': '9b8beccd-fe40-4040-b11d-ab234dc09cbf', 'name': 'ctest-vn-89433092', 'tenant_id': '5156e98924124ae181349eb89eacfc79', 'project_id': '5156e98924124ae181349eb89eacfc79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52958908', 'ctest-vn-89433092'], 'port_security_enabled': True, 'description': ''}}
2026-03-24 13:46:14,575 - DEBUG - Response for create_subnet : {'subnet': {'id': '04188d91-d721-494f-9dea-0471ecdc1446', 'name': '', 'tenant_id': '5156e98924124ae181349eb89eacfc79', 'network_id': '9b8beccd-fe40-4040-b11d-ab234dc09cbf', 'ip_version': 4, 'cidr': '45.72.248.128/26', 'allocation_pools': [{'start': '45.72.248.130', 'end': '45.72.248.190'}], 'gateway_ip': '45.72.248.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.72.248.130', 'tags': [], 'project_id': '5156e98924124ae181349eb89eacfc79'}}
2026-03-24 13:46:14,599 - INFO - Created VN ctest-vn-89433092
2026-03-24 13:46:14,652 - DEBUG - VN ctest-vn-89433092 UUID is 9b8beccd-fe40-4040-b11d-ab234dc09cbf
2026-03-24 13:46:14,777 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52958908:ctest-vn-95561014, 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-52958908:ctest-vn-89433092, 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-03-24 13:46:15,103 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '35c82d27-0082-44d4-b2e2-23371bf9e29e', 'name': 'ctest-vn-95561014', 'tenant_id': '5156e98924124ae181349eb89eacfc79', 'project_id': '5156e98924124ae181349eb89eacfc79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['18ed705d-d5e6-4209-8943-c93f248b98c8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52958908', 'ctest-vn-95561014'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52958908', 'ctest-policy-allow-all-99949904']], 'subnet_ipam': [{'subnet_cidr': '105.157.197.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-24 13:46:15,387 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b8beccd-fe40-4040-b11d-ab234dc09cbf', 'name': 'ctest-vn-89433092', 'tenant_id': '5156e98924124ae181349eb89eacfc79', 'project_id': '5156e98924124ae181349eb89eacfc79', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['04188d91-d721-494f-9dea-0471ecdc1446'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52958908', 'ctest-vn-89433092'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52958908', 'ctest-policy-allow-all-99949904']], 'subnet_ipam': [{'subnet_cidr': '45.72.248.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-24 13:46:15,531 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-24 13:46:15,848 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-24 13:46:15,887 - DEBUG - Requesting: http://10.0.0.50:8082/domain/76f104c7-22de-4979-81c0-a4a0d0890adf
2026-03-24 13:46:15,902 - DEBUG - Requesting: http://10.0.0.50:8082/project/5156e989-2412-4ae1-8134-9eb89eacfc79
2026-03-24 13:46:15,989 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/35c82d27-0082-44d4-b2e2-23371bf9e29e
2026-03-24 13:46:16,004 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/35c82d27-0082-44d4-b2e2-23371bf9e29e
2026-03-24 13:46:16,014 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/212e118c-e2a2-4e8e-94bf-5d8eade3f2be
2026-03-24 13:46:16,022 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/212e118c-e2a2-4e8e-94bf-5d8eade3f2be
2026-03-24 13:46:16,031 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/895cc331-d61c-42e1-bcca-c91aeaba12bb
2026-03-24 13:46:16,039 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-24 13:46:16,039 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/35c82d27-0082-44d4-b2e2-23371bf9e29e
2026-03-24 13:46:16,050 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/212e118c-e2a2-4e8e-94bf-5d8eade3f2be
2026-03-24 13:46:16,069 - INFO - Verified VN network id 11 for VN 35c82d27-0082-44d4-b2e2-23371bf9e29e
2026-03-24 13:46:16,070 - INFO - Verifications in API Server for VN ctest-vn-95561014 passed
2026-03-24 13:46:16,070 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/35c82d27-0082-44d4-b2e2-23371bf9e29e
2026-03-24 13:46:16,082 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/212e118c-e2a2-4e8e-94bf-5d8eade3f2be
2026-03-24 13:46:16,090 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/212e118c-e2a2-4e8e-94bf-5d8eade3f2be
2026-03-24 13:46:16,099 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/895cc331-d61c-42e1-bcca-c91aeaba12bb
2026-03-24 13:46:16,112 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52958908:ctest-vn-95561014', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52958908', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3875397124887823572', 'uuid-lslong': '12889903803087315614'}, 'enable': 'true', 'created': '2026-03-24T13:46:13', 'last-modified': '2026-03-24T13:46:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.039175'}
2026-03-24 13:46:16,118 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-24 13:46:16,119 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95561014 passed
2026-03-24 13:46:16,119 - DEBUG - ====Verifying policy data for ctest-vn-95561014 in API_Server ======
2026-03-24 13:46:16,119 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-24 13:46:16,126 - DEBUG - Requesting: http://10.0.0.50:8082/domain/76f104c7-22de-4979-81c0-a4a0d0890adf
2026-03-24 13:46:16,139 - DEBUG - Requesting: http://10.0.0.50:8082/project/5156e989-2412-4ae1-8134-9eb89eacfc79
2026-03-24 13:46:16,213 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/35c82d27-0082-44d4-b2e2-23371bf9e29e
2026-03-24 13:46:16,225 - DEBUG - ==>Verifying data for policy with id: dec8816e-dcf2-4e35-901c-a99144326429, fqn: ['default-domain', 'ctest-TestBasicPolicy-52958908', 'ctest-policy-allow-all-99949904']
2026-03-24 13:46:16,225 - INFO - VN ctest-vn-95561014 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-24 13:46:16,225 - DEBUG - Verifying the vn in opserver
2026-03-24 13:46:16,225 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52958908:ctest-vn-95561014 virtual network link through opserver 10.0.0.50
2026-03-24 13:46:16,225 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-24 13:46:16,531 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-24 13:46:16,613 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52958908:ctest-vn-95561014', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52958908:ctest-vn-95561014?flat'}
2026-03-24 13:46:16,613 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52958908:ctest-vn-95561014 is found in opserver
2026-03-24 13:46:16,624 - DEBUG - Do not have enough data to verify VN in agent
2026-03-24 13:46:16,630 - DEBUG - VRF ids for VN ctest-vn-95561014: {}
2026-03-24 13:46:16,630 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-24 13:46:16,636 - DEBUG - Requesting: http://10.0.0.50:8082/domain/76f104c7-22de-4979-81c0-a4a0d0890adf
2026-03-24 13:46:16,649 - DEBUG - Requesting: http://10.0.0.50:8082/project/5156e989-2412-4ae1-8134-9eb89eacfc79
2026-03-24 13:46:16,738 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b8beccd-fe40-4040-b11d-ab234dc09cbf
2026-03-24 13:46:16,752 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b8beccd-fe40-4040-b11d-ab234dc09cbf
2026-03-24 13:46:16,763 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c4ca6c4d-43a6-413f-8564-3cc14681d170
2026-03-24 13:46:16,772 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c4ca6c4d-43a6-413f-8564-3cc14681d170
2026-03-24 13:46:16,781 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a38b9fa7-93dc-4370-afa0-1c0799b62997
2026-03-24 13:46:16,789 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-24 13:46:16,789 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b8beccd-fe40-4040-b11d-ab234dc09cbf
2026-03-24 13:46:16,800 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c4ca6c4d-43a6-413f-8564-3cc14681d170
2026-03-24 13:46:16,818 - INFO - Verified VN network id 12 for VN 9b8beccd-fe40-4040-b11d-ab234dc09cbf
2026-03-24 13:46:16,818 - INFO - Verifications in API Server for VN ctest-vn-89433092 passed
2026-03-24 13:46:16,818 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b8beccd-fe40-4040-b11d-ab234dc09cbf
2026-03-24 13:46:16,828 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c4ca6c4d-43a6-413f-8564-3cc14681d170
2026-03-24 13:46:16,836 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c4ca6c4d-43a6-413f-8564-3cc14681d170
2026-03-24 13:46:16,844 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a38b9fa7-93dc-4370-afa0-1c0799b62997
2026-03-24 13:46:16,858 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52958908:ctest-vn-89433092', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52958908', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11208312467119685696', 'uuid-lslong': '12762545087154527423'}, 'enable': 'true', 'created': '2026-03-24T13:46:14', 'last-modified': '2026-03-24T13:46:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.541907'}
2026-03-24 13:46:16,864 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-24 13:46:16,865 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89433092 passed
2026-03-24 13:46:16,865 - DEBUG - ====Verifying policy data for ctest-vn-89433092 in API_Server ======
2026-03-24 13:46:16,865 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-03-24 13:46:16,871 - DEBUG - Requesting: http://10.0.0.50:8082/domain/76f104c7-22de-4979-81c0-a4a0d0890adf
2026-03-24 13:46:16,883 - DEBUG - Requesting: http://10.0.0.50:8082/project/5156e989-2412-4ae1-8134-9eb89eacfc79
2026-03-24 13:46:16,958 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9b8beccd-fe40-4040-b11d-ab234dc09cbf
2026-03-24 13:46:16,969 - DEBUG - ==>Verifying data for policy with id: dec8816e-dcf2-4e35-901c-a99144326429, fqn: ['default-domain', 'ctest-TestBasicPolicy-52958908', 'ctest-policy-allow-all-99949904']
2026-03-24 13:46:16,969 - INFO - VN ctest-vn-89433092 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-24 13:46:16,969 - DEBUG - Verifying the vn in opserver
2026-03-24 13:46:16,969 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52958908:ctest-vn-89433092 virtual network link through opserver 10.0.0.50
2026-03-24 13:46:16,969 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-03-24 13:46:16,981 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52958908:ctest-vn-89433092', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52958908:ctest-vn-89433092?flat'}
2026-03-24 13:46:16,981 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52958908:ctest-vn-89433092 is found in opserver
2026-03-24 13:46:16,992 - DEBUG - Do not have enough data to verify VN in agent
2026-03-24 13:46:16,998 - DEBUG - VRF ids for VN ctest-vn-89433092: {}
2026-03-24 13:46:17,061 - DEBUG - Services list from nova: [