2026-02-05 10:05:28,583 - INFO - Domain Default found not creating
2026-02-05 10:05:28,750 - INFO - Project ctest-TestBasicPolicy-71300823 not found, creating it
2026-02-05 10:05:29,214 - INFO - Created Project:ctest-TestBasicPolicy-71300823, ID : dd79d6a4-9c61-478a-b5ed-a2a4b53965f0
2026-02-05 10:05:30,681 - INFO - ================================================================================
2026-02-05 10:05:30,681 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-05 10:05:30,681 - 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-02-05 10:05:30,937 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2026-02-05 10:05:30,937 - INFO - Initial checks done. Running the testcase now
2026-02-05 10:05:30,937 - INFO -
2026-02-05 10:05:31,481 - DEBUG - Response for create_network : {'network': {'id': '88c85c09-92fe-4d49-8a5b-42afafc0def3', 'name': 'ctest-vn-59256182', 'tenant_id': 'dd79d6a49c61478ab5eda2a4b53965f0', 'project_id': 'dd79d6a49c61478ab5eda2a4b53965f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71300823', 'ctest-vn-59256182'], 'port_security_enabled': True, 'description': ''}}
2026-02-05 10:05:31,695 - DEBUG - Response for create_subnet : {'subnet': {'id': '07bd6190-5a32-4dd1-8a4c-4fabe2ae8590', 'name': '', 'tenant_id': 'dd79d6a49c61478ab5eda2a4b53965f0', 'network_id': '88c85c09-92fe-4d49-8a5b-42afafc0def3', 'ip_version': 4, 'cidr': '8.174.33.64/26', 'allocation_pools': [{'start': '8.174.33.66', 'end': '8.174.33.126'}], 'gateway_ip': '8.174.33.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.174.33.66', 'tags': [], 'project_id': 'dd79d6a49c61478ab5eda2a4b53965f0'}}
2026-02-05 10:05:31,712 - INFO - Created VN ctest-vn-59256182
2026-02-05 10:05:31,764 - DEBUG - VN ctest-vn-59256182 UUID is 88c85c09-92fe-4d49-8a5b-42afafc0def3
2026-02-05 10:05:32,068 - DEBUG - Response for create_network : {'network': {'id': '37c5bf13-8e1d-4c32-9756-b31b9d03cf6d', 'name': 'ctest-vn-13035527', 'tenant_id': 'dd79d6a49c61478ab5eda2a4b53965f0', 'project_id': 'dd79d6a49c61478ab5eda2a4b53965f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71300823', 'ctest-vn-13035527'], 'port_security_enabled': True, 'description': ''}}
2026-02-05 10:05:32,279 - DEBUG - Response for create_subnet : {'subnet': {'id': '68f3e5d5-d797-4630-888d-980a061eb4ce', 'name': '', 'tenant_id': 'dd79d6a49c61478ab5eda2a4b53965f0', 'network_id': '37c5bf13-8e1d-4c32-9756-b31b9d03cf6d', 'ip_version': 4, 'cidr': '60.130.136.0/26', 'allocation_pools': [{'start': '60.130.136.2', 'end': '60.130.136.62'}], 'gateway_ip': '60.130.136.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.130.136.2', 'tags': [], 'project_id': 'dd79d6a49c61478ab5eda2a4b53965f0'}}
2026-02-05 10:05:32,295 - INFO - Created VN ctest-vn-13035527
2026-02-05 10:05:32,352 - DEBUG - VN ctest-vn-13035527 UUID is 37c5bf13-8e1d-4c32-9756-b31b9d03cf6d
2026-02-05 10:05:32,508 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71300823:ctest-vn-59256182, 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-71300823:ctest-vn-13035527, 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-02-05 10:05:32,814 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '88c85c09-92fe-4d49-8a5b-42afafc0def3', 'name': 'ctest-vn-59256182', 'tenant_id': 'dd79d6a49c61478ab5eda2a4b53965f0', 'project_id': 'dd79d6a49c61478ab5eda2a4b53965f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['07bd6190-5a32-4dd1-8a4c-4fabe2ae8590'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71300823', 'ctest-vn-59256182'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71300823', 'ctest-policy-allow-all-20542616']], 'subnet_ipam': [{'subnet_cidr': '8.174.33.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-05 10:05:33,053 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37c5bf13-8e1d-4c32-9756-b31b9d03cf6d', 'name': 'ctest-vn-13035527', 'tenant_id': 'dd79d6a49c61478ab5eda2a4b53965f0', 'project_id': 'dd79d6a49c61478ab5eda2a4b53965f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68f3e5d5-d797-4630-888d-980a061eb4ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71300823', 'ctest-vn-13035527'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71300823', 'ctest-policy-allow-all-20542616']], 'subnet_ipam': [{'subnet_cidr': '60.130.136.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-05 10:05:33,208 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-05 10:05:33,506 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-05 10:05:33,543 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8de96c00-c690-4829-838c-6a62ec0a7129
2026-02-05 10:05:33,554 - DEBUG - Requesting: http://10.0.0.22:8082/project/dd79d6a4-9c61-478a-b5ed-a2a4b53965f0
2026-02-05 10:05:33,627 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/88c85c09-92fe-4d49-8a5b-42afafc0def3
2026-02-05 10:05:33,638 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/88c85c09-92fe-4d49-8a5b-42afafc0def3
2026-02-05 10:05:33,647 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/99da0825-c490-48dc-a841-abf0f8336a82
2026-02-05 10:05:33,654 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/99da0825-c490-48dc-a841-abf0f8336a82
2026-02-05 10:05:33,660 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/2176e06a-4660-43ee-9125-df7d971751e1
2026-02-05 10:05:33,666 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-05 10:05:33,666 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/88c85c09-92fe-4d49-8a5b-42afafc0def3
2026-02-05 10:05:33,675 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/99da0825-c490-48dc-a841-abf0f8336a82
2026-02-05 10:05:33,693 - INFO - Verified VN network id 12 for VN 88c85c09-92fe-4d49-8a5b-42afafc0def3
2026-02-05 10:05:33,693 - INFO - Verifications in API Server for VN ctest-vn-59256182 passed
2026-02-05 10:05:33,693 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/88c85c09-92fe-4d49-8a5b-42afafc0def3
2026-02-05 10:05:33,703 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/99da0825-c490-48dc-a841-abf0f8336a82
2026-02-05 10:05:33,710 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/99da0825-c490-48dc-a841-abf0f8336a82
2026-02-05 10:05:33,716 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/2176e06a-4660-43ee-9125-df7d971751e1
2026-02-05 10:05:33,726 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71300823:ctest-vn-59256182', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71300823', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9856228980690931017', 'uuid-lslong': '9969635522450087667'}, 'enable': 'true', 'created': '2026-02-05T10:05:31', 'last-modified': '2026-02-05T10:05:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.952209'}
2026-02-05 10:05:33,731 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-05 10:05:33,731 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59256182 passed
2026-02-05 10:05:33,732 - DEBUG - ====Verifying policy data for ctest-vn-59256182 in API_Server ======
2026-02-05 10:05:33,732 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-05 10:05:33,736 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8de96c00-c690-4829-838c-6a62ec0a7129
2026-02-05 10:05:33,746 - DEBUG - Requesting: http://10.0.0.22:8082/project/dd79d6a4-9c61-478a-b5ed-a2a4b53965f0
2026-02-05 10:05:33,816 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/88c85c09-92fe-4d49-8a5b-42afafc0def3
2026-02-05 10:05:33,826 - DEBUG - ==>Verifying data for policy with id: 409c98b2-6790-485f-a720-25a3bba7c1b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-71300823', 'ctest-policy-allow-all-20542616']
2026-02-05 10:05:33,826 - INFO - VN ctest-vn-59256182 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-05 10:05:33,826 - DEBUG - Verifying the vn in opserver
2026-02-05 10:05:33,826 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71300823:ctest-vn-59256182 virtual network link through opserver 10.0.0.22
2026-02-05 10:05:33,826 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-05 10:05:34,132 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-05 10:05:34,204 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71300823:ctest-vn-59256182', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71300823:ctest-vn-59256182?flat'}
2026-02-05 10:05:34,204 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71300823:ctest-vn-59256182 is found in opserver
2026-02-05 10:05:34,215 - DEBUG - Do not have enough data to verify VN in agent
2026-02-05 10:05:34,219 - DEBUG - VRF ids for VN ctest-vn-59256182: {}
2026-02-05 10:05:34,219 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-05 10:05:34,224 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8de96c00-c690-4829-838c-6a62ec0a7129
2026-02-05 10:05:34,235 - DEBUG - Requesting: http://10.0.0.22:8082/project/dd79d6a4-9c61-478a-b5ed-a2a4b53965f0
2026-02-05 10:05:34,306 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/37c5bf13-8e1d-4c32-9756-b31b9d03cf6d
2026-02-05 10:05:34,316 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/37c5bf13-8e1d-4c32-9756-b31b9d03cf6d
2026-02-05 10:05:34,324 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6e170abf-d78c-4f9b-97db-de33c333360f
2026-02-05 10:05:34,330 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6e170abf-d78c-4f9b-97db-de33c333360f
2026-02-05 10:05:34,336 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d048ca32-87b5-42e2-b221-960fb70656f2
2026-02-05 10:05:34,342 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-05 10:05:34,342 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/37c5bf13-8e1d-4c32-9756-b31b9d03cf6d
2026-02-05 10:05:34,350 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6e170abf-d78c-4f9b-97db-de33c333360f
2026-02-05 10:05:34,363 - INFO - Verified VN network id 13 for VN 37c5bf13-8e1d-4c32-9756-b31b9d03cf6d
2026-02-05 10:05:34,363 - INFO - Verifications in API Server for VN ctest-vn-13035527 passed
2026-02-05 10:05:34,363 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/37c5bf13-8e1d-4c32-9756-b31b9d03cf6d
2026-02-05 10:05:34,372 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6e170abf-d78c-4f9b-97db-de33c333360f
2026-02-05 10:05:34,378 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6e170abf-d78c-4f9b-97db-de33c333360f
2026-02-05 10:05:34,384 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d048ca32-87b5-42e2-b221-960fb70656f2
2026-02-05 10:05:34,394 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71300823:ctest-vn-13035527', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71300823', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4018828333207604274', 'uuid-lslong': '10905100478903996269'}, 'enable': 'true', 'created': '2026-02-05T10:05:32', 'last-modified': '2026-02-05T10:05:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.364625'}
2026-02-05 10:05:34,400 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-05 10:05:34,400 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13035527 passed
2026-02-05 10:05:34,400 - DEBUG - ====Verifying policy data for ctest-vn-13035527 in API_Server ======
2026-02-05 10:05:34,401 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-05 10:05:34,407 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8de96c00-c690-4829-838c-6a62ec0a7129
2026-02-05 10:05:34,416 - DEBUG - Requesting: http://10.0.0.22:8082/project/dd79d6a4-9c61-478a-b5ed-a2a4b53965f0
2026-02-05 10:05:34,484 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/37c5bf13-8e1d-4c32-9756-b31b9d03cf6d
2026-02-05 10:05:34,492 - DEBUG - ==>Verifying data for policy with id: 409c98b2-6790-485f-a720-25a3bba7c1b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-71300823', 'ctest-policy-allow-all-20542616']
2026-02-05 10:05:34,492 - INFO - VN ctest-vn-13035527 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-05 10:05:34,492 - DEBUG - Verifying the vn in opserver
2026-02-05 10:05:34,492 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71300823:ctest-vn-13035527 virtual network link through opserver 10.0.0.22
2026-02-05 10:05:34,492 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-05 10:05:34,501 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71300823:ctest-vn-13035527', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71300823:ctest-vn-13035527?flat'}
2026-02-05 10:05:34,501 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71300823:ctest-vn-13035527 is found in opserver
2026-02-05 10:05:34,509 - DEBUG - Do not have enough data to verify VN in agent
2026-02-05 10:05:34,513 - DEBUG - VRF ids for VN ctest-vn-13035527: {}
2026-02-05 10:05:34,569 - DEBUG - Services list from nova: [