2026-02-09 21:57:35,425 - INFO - Domain Default found not creating
2026-02-09 21:57:35,583 - INFO - Project ctest-TestBasicPolicy-76715705 not found, creating it
2026-02-09 21:57:36,013 - INFO - Created Project:ctest-TestBasicPolicy-76715705, ID : c04605b3-616a-4161-acb4-2743cf1d1a1d
2026-02-09 21:57:37,469 - INFO - ================================================================================
2026-02-09 21:57:37,469 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-09 21:57:37,469 - 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-09 21:57:37,722 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.254': '0'}} with
2026-02-09 21:57:37,722 - INFO - Initial checks done. Running the testcase now
2026-02-09 21:57:37,722 - INFO -
2026-02-09 21:57:38,246 - DEBUG - Response for create_network : {'network': {'id': '3a967e87-6103-4c3e-8249-bebc280720bc', 'name': 'ctest-vn-20052122', 'tenant_id': 'c04605b3616a4161acb42743cf1d1a1d', 'project_id': 'c04605b3616a4161acb42743cf1d1a1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76715705', 'ctest-vn-20052122'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 21:57:38,447 - DEBUG - Response for create_subnet : {'subnet': {'id': '03f3a96a-a5cc-496f-952d-4e98aa0d395c', 'name': '', 'tenant_id': 'c04605b3616a4161acb42743cf1d1a1d', 'network_id': '3a967e87-6103-4c3e-8249-bebc280720bc', 'ip_version': 4, 'cidr': '85.210.24.0/26', 'allocation_pools': [{'start': '85.210.24.2', 'end': '85.210.24.62'}], 'gateway_ip': '85.210.24.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.210.24.2', 'tags': [], 'project_id': 'c04605b3616a4161acb42743cf1d1a1d'}}
2026-02-09 21:57:38,462 - INFO - Created VN ctest-vn-20052122
2026-02-09 21:57:38,513 - DEBUG - VN ctest-vn-20052122 UUID is 3a967e87-6103-4c3e-8249-bebc280720bc
2026-02-09 21:57:38,816 - DEBUG - Response for create_network : {'network': {'id': 'eb64c2a5-dba8-449d-8163-88a9399143a9', 'name': 'ctest-vn-84899967', 'tenant_id': 'c04605b3616a4161acb42743cf1d1a1d', 'project_id': 'c04605b3616a4161acb42743cf1d1a1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76715705', 'ctest-vn-84899967'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 21:57:38,969 - DEBUG - Response for create_subnet : {'subnet': {'id': '198f8f03-2d7b-4443-9ab2-b39ddba1e077', 'name': '', 'tenant_id': 'c04605b3616a4161acb42743cf1d1a1d', 'network_id': 'eb64c2a5-dba8-449d-8163-88a9399143a9', 'ip_version': 4, 'cidr': '216.89.1.64/26', 'allocation_pools': [{'start': '216.89.1.66', 'end': '216.89.1.126'}], 'gateway_ip': '216.89.1.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.89.1.66', 'tags': [], 'project_id': 'c04605b3616a4161acb42743cf1d1a1d'}}
2026-02-09 21:57:38,983 - INFO - Created VN ctest-vn-84899967
2026-02-09 21:57:39,033 - DEBUG - VN ctest-vn-84899967 UUID is eb64c2a5-dba8-449d-8163-88a9399143a9
2026-02-09 21:57:39,177 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76715705:ctest-vn-20052122, 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-76715705:ctest-vn-84899967, 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-09 21:57:39,464 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3a967e87-6103-4c3e-8249-bebc280720bc', 'name': 'ctest-vn-20052122', 'tenant_id': 'c04605b3616a4161acb42743cf1d1a1d', 'project_id': 'c04605b3616a4161acb42743cf1d1a1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['03f3a96a-a5cc-496f-952d-4e98aa0d395c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76715705', 'ctest-vn-20052122'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76715705', 'ctest-policy-allow-all-94962519']], 'subnet_ipam': [{'subnet_cidr': '85.210.24.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 21:57:39,732 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb64c2a5-dba8-449d-8163-88a9399143a9', 'name': 'ctest-vn-84899967', 'tenant_id': 'c04605b3616a4161acb42743cf1d1a1d', 'project_id': 'c04605b3616a4161acb42743cf1d1a1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['198f8f03-2d7b-4443-9ab2-b39ddba1e077'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76715705', 'ctest-vn-84899967'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76715705', 'ctest-policy-allow-all-94962519']], 'subnet_ipam': [{'subnet_cidr': '216.89.1.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 21:57:39,873 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-02-09 21:57:40,167 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-02-09 21:57:40,195 - DEBUG - Requesting: http://10.0.0.130:8082/domain/ba55c2a5-9cca-440a-870c-5f103e86b0b2
2026-02-09 21:57:40,205 - DEBUG - Requesting: http://10.0.0.130:8082/project/c04605b3-616a-4161-acb4-2743cf1d1a1d
2026-02-09 21:57:40,275 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/3a967e87-6103-4c3e-8249-bebc280720bc
2026-02-09 21:57:40,284 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/3a967e87-6103-4c3e-8249-bebc280720bc
2026-02-09 21:57:40,292 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0af9b86d-b2b3-41a7-ad64-bc0e290cbf9a
2026-02-09 21:57:40,298 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0af9b86d-b2b3-41a7-ad64-bc0e290cbf9a
2026-02-09 21:57:40,303 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/b89b17e2-4d10-4f98-8b7e-4456a5c11fe3
2026-02-09 21:57:40,309 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 21:57:40,309 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/3a967e87-6103-4c3e-8249-bebc280720bc
2026-02-09 21:57:40,316 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0af9b86d-b2b3-41a7-ad64-bc0e290cbf9a
2026-02-09 21:57:40,327 - INFO - Verified VN network id 11 for VN 3a967e87-6103-4c3e-8249-bebc280720bc
2026-02-09 21:57:40,327 - INFO - Verifications in API Server for VN ctest-vn-20052122 passed
2026-02-09 21:57:40,327 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/3a967e87-6103-4c3e-8249-bebc280720bc
2026-02-09 21:57:40,335 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0af9b86d-b2b3-41a7-ad64-bc0e290cbf9a
2026-02-09 21:57:40,340 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0af9b86d-b2b3-41a7-ad64-bc0e290cbf9a
2026-02-09 21:57:40,346 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/b89b17e2-4d10-4f98-8b7e-4456a5c11fe3
2026-02-09 21:57:40,355 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76715705:ctest-vn-20052122', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76715705', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4221700820619709502', 'uuid-lslong': '9388244613565194428'}, 'enable': 'true', 'created': '2026-02-09T21:57:38', 'last-modified': '2026-02-09T21:57:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.914013'}
2026-02-09 21:57:40,361 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 21:57:40,362 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20052122 passed
2026-02-09 21:57:40,362 - DEBUG - ====Verifying policy data for ctest-vn-20052122 in API_Server ======
2026-02-09 21:57:40,362 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-02-09 21:57:40,366 - DEBUG - Requesting: http://10.0.0.130:8082/domain/ba55c2a5-9cca-440a-870c-5f103e86b0b2
2026-02-09 21:57:40,376 - DEBUG - Requesting: http://10.0.0.130:8082/project/c04605b3-616a-4161-acb4-2743cf1d1a1d
2026-02-09 21:57:40,445 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/3a967e87-6103-4c3e-8249-bebc280720bc
2026-02-09 21:57:40,453 - DEBUG - ==>Verifying data for policy with id: 6c5a7bcf-49c2-48de-8a72-4b5a02559b45, fqn: ['default-domain', 'ctest-TestBasicPolicy-76715705', 'ctest-policy-allow-all-94962519']
2026-02-09 21:57:40,453 - INFO - VN ctest-vn-20052122 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 21:57:40,453 - DEBUG - Verifying the vn in opserver
2026-02-09 21:57:40,453 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76715705:ctest-vn-20052122 virtual network link through opserver 10.0.0.130
2026-02-09 21:57:40,453 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-02-09 21:57:40,744 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-02-09 21:57:40,812 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76715705:ctest-vn-20052122', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76715705:ctest-vn-20052122?flat'}
2026-02-09 21:57:40,813 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76715705:ctest-vn-20052122 is found in opserver
2026-02-09 21:57:40,821 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 21:57:40,825 - DEBUG - VRF ids for VN ctest-vn-20052122: {}
2026-02-09 21:57:40,825 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-02-09 21:57:40,829 - DEBUG - Requesting: http://10.0.0.130:8082/domain/ba55c2a5-9cca-440a-870c-5f103e86b0b2
2026-02-09 21:57:40,841 - DEBUG - Requesting: http://10.0.0.130:8082/project/c04605b3-616a-4161-acb4-2743cf1d1a1d
2026-02-09 21:57:40,910 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/eb64c2a5-dba8-449d-8163-88a9399143a9
2026-02-09 21:57:40,921 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/eb64c2a5-dba8-449d-8163-88a9399143a9
2026-02-09 21:57:40,930 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/dc7b271d-6e63-4ed1-90e6-0e5b23d855c7
2026-02-09 21:57:40,936 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/dc7b271d-6e63-4ed1-90e6-0e5b23d855c7
2026-02-09 21:57:40,942 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/9dd45578-7211-4a9f-a2c3-6945d8def2cc
2026-02-09 21:57:40,948 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 21:57:40,948 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/eb64c2a5-dba8-449d-8163-88a9399143a9
2026-02-09 21:57:40,955 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/dc7b271d-6e63-4ed1-90e6-0e5b23d855c7
2026-02-09 21:57:40,966 - INFO - Verified VN network id 12 for VN eb64c2a5-dba8-449d-8163-88a9399143a9
2026-02-09 21:57:40,966 - INFO - Verifications in API Server for VN ctest-vn-84899967 passed
2026-02-09 21:57:40,966 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/eb64c2a5-dba8-449d-8163-88a9399143a9
2026-02-09 21:57:40,973 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/dc7b271d-6e63-4ed1-90e6-0e5b23d855c7
2026-02-09 21:57:40,978 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/dc7b271d-6e63-4ed1-90e6-0e5b23d855c7
2026-02-09 21:57:40,984 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/9dd45578-7211-4a9f-a2c3-6945d8def2cc
2026-02-09 21:57:40,992 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76715705:ctest-vn-84899967', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76715705', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16961896114194760861', 'uuid-lslong': '9323445913983730601'}, 'enable': 'true', 'created': '2026-02-09T21:57:38', 'last-modified': '2026-02-09T21:57:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.323920'}
2026-02-09 21:57:40,998 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 21:57:40,998 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84899967 passed
2026-02-09 21:57:40,998 - DEBUG - ====Verifying policy data for ctest-vn-84899967 in API_Server ======
2026-02-09 21:57:40,998 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-02-09 21:57:41,003 - DEBUG - Requesting: http://10.0.0.130:8082/domain/ba55c2a5-9cca-440a-870c-5f103e86b0b2
2026-02-09 21:57:41,014 - DEBUG - Requesting: http://10.0.0.130:8082/project/c04605b3-616a-4161-acb4-2743cf1d1a1d
2026-02-09 21:57:41,079 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/eb64c2a5-dba8-449d-8163-88a9399143a9
2026-02-09 21:57:41,087 - DEBUG - ==>Verifying data for policy with id: 6c5a7bcf-49c2-48de-8a72-4b5a02559b45, fqn: ['default-domain', 'ctest-TestBasicPolicy-76715705', 'ctest-policy-allow-all-94962519']
2026-02-09 21:57:41,087 - INFO - VN ctest-vn-84899967 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 21:57:41,087 - DEBUG - Verifying the vn in opserver
2026-02-09 21:57:41,087 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76715705:ctest-vn-84899967 virtual network link through opserver 10.0.0.130
2026-02-09 21:57:41,087 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-02-09 21:57:41,095 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76715705:ctest-vn-84899967', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76715705:ctest-vn-84899967?flat'}
2026-02-09 21:57:41,095 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76715705:ctest-vn-84899967 is found in opserver
2026-02-09 21:57:41,103 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 21:57:41,108 - DEBUG - VRF ids for VN ctest-vn-84899967: {}
2026-02-09 21:57:41,162 - DEBUG - Services list from nova: [