2025-09-23 12:49:32,083 - INFO - Domain Default found not creating
2025-09-23 12:49:32,217 - INFO - Project ctest-TestBasicPolicy-71040271 not found, creating it
2025-09-23 12:49:32,651 - INFO - Created Project:ctest-TestBasicPolicy-71040271, ID : 2b0f80fa-c8c2-4388-877a-d8d44bb12a71
2025-09-23 12:49:33,991 - INFO - ================================================================================
2025-09-23 12:49:33,991 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-23 12:49:33,991 - 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-09-23 12:49:34,243 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with
2025-09-23 12:49:34,243 - INFO - Initial checks done. Running the testcase now
2025-09-23 12:49:34,243 - INFO -
2025-09-23 12:49:34,768 - DEBUG - Response for create_network : {'network': {'id': '51438e97-60c0-49cd-986e-dbb709284308', 'name': 'ctest-vn-94933078', 'tenant_id': '2b0f80fac8c24388877ad8d44bb12a71', 'project_id': '2b0f80fac8c24388877ad8d44bb12a71', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71040271', 'ctest-vn-94933078'], 'port_security_enabled': True, 'description': ''}}
2025-09-23 12:49:34,926 - DEBUG - Response for create_subnet : {'subnet': {'id': '02ab7c41-5ea8-4d77-814b-2b95bc659733', 'name': '', 'tenant_id': '2b0f80fac8c24388877ad8d44bb12a71', 'network_id': '51438e97-60c0-49cd-986e-dbb709284308', 'ip_version': 4, 'cidr': '27.221.4.192/26', 'allocation_pools': [{'start': '27.221.4.194', 'end': '27.221.4.254'}], 'gateway_ip': '27.221.4.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.221.4.194', 'tags': [], 'project_id': '2b0f80fac8c24388877ad8d44bb12a71'}}
2025-09-23 12:49:34,941 - INFO - Created VN ctest-vn-94933078
2025-09-23 12:49:34,997 - DEBUG - VN ctest-vn-94933078 UUID is 51438e97-60c0-49cd-986e-dbb709284308
2025-09-23 12:49:35,307 - DEBUG - Response for create_network : {'network': {'id': '4fcec4a9-a22e-4447-a569-19fb37e53741', 'name': 'ctest-vn-94328298', 'tenant_id': '2b0f80fac8c24388877ad8d44bb12a71', 'project_id': '2b0f80fac8c24388877ad8d44bb12a71', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71040271', 'ctest-vn-94328298'], 'port_security_enabled': True, 'description': ''}}
2025-09-23 12:49:35,461 - DEBUG - Response for create_subnet : {'subnet': {'id': '70041042-57b5-4a61-978e-f93dac9c3ab8', 'name': '', 'tenant_id': '2b0f80fac8c24388877ad8d44bb12a71', 'network_id': '4fcec4a9-a22e-4447-a569-19fb37e53741', 'ip_version': 4, 'cidr': '186.183.168.0/26', 'allocation_pools': [{'start': '186.183.168.2', 'end': '186.183.168.62'}], 'gateway_ip': '186.183.168.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.183.168.2', 'tags': [], 'project_id': '2b0f80fac8c24388877ad8d44bb12a71'}}
2025-09-23 12:49:35,479 - INFO - Created VN ctest-vn-94328298
2025-09-23 12:49:35,530 - DEBUG - VN ctest-vn-94328298 UUID is 4fcec4a9-a22e-4447-a569-19fb37e53741
2025-09-23 12:49:35,677 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71040271:ctest-vn-94933078, 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-71040271:ctest-vn-94328298, 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-09-23 12:49:35,966 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '51438e97-60c0-49cd-986e-dbb709284308', 'name': 'ctest-vn-94933078', 'tenant_id': '2b0f80fac8c24388877ad8d44bb12a71', 'project_id': '2b0f80fac8c24388877ad8d44bb12a71', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['02ab7c41-5ea8-4d77-814b-2b95bc659733'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71040271', 'ctest-vn-94933078'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71040271', 'ctest-policy-allow-all-12574891']], 'subnet_ipam': [{'subnet_cidr': '27.221.4.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-23 12:49:36,224 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4fcec4a9-a22e-4447-a569-19fb37e53741', 'name': 'ctest-vn-94328298', 'tenant_id': '2b0f80fac8c24388877ad8d44bb12a71', 'project_id': '2b0f80fac8c24388877ad8d44bb12a71', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['70041042-57b5-4a61-978e-f93dac9c3ab8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71040271', 'ctest-vn-94328298'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71040271', 'ctest-policy-allow-all-12574891']], 'subnet_ipam': [{'subnet_cidr': '186.183.168.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-23 12:49:36,369 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-23 12:49:36,658 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-23 12:49:36,683 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6885e1fb-4730-453f-9180-56c383eb32b3
2025-09-23 12:49:36,694 - DEBUG - Requesting: http://10.0.0.254:8082/project/2b0f80fa-c8c2-4388-877a-d8d44bb12a71
2025-09-23 12:49:36,762 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/51438e97-60c0-49cd-986e-dbb709284308
2025-09-23 12:49:36,771 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/51438e97-60c0-49cd-986e-dbb709284308
2025-09-23 12:49:36,779 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41ed037f-66e2-4b75-9377-817280202c12
2025-09-23 12:49:36,784 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41ed037f-66e2-4b75-9377-817280202c12
2025-09-23 12:49:36,790 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/eb7a38fc-b782-436f-b084-ea7317aae986
2025-09-23 12:49:36,794 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-23 12:49:36,794 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/51438e97-60c0-49cd-986e-dbb709284308
2025-09-23 12:49:36,801 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41ed037f-66e2-4b75-9377-817280202c12
2025-09-23 12:49:36,812 - INFO - Verified VN network id 11 for VN 51438e97-60c0-49cd-986e-dbb709284308
2025-09-23 12:49:36,812 - INFO - Verifications in API Server for VN ctest-vn-94933078 passed
2025-09-23 12:49:36,812 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/51438e97-60c0-49cd-986e-dbb709284308
2025-09-23 12:49:36,818 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41ed037f-66e2-4b75-9377-817280202c12
2025-09-23 12:49:36,823 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/41ed037f-66e2-4b75-9377-817280202c12
2025-09-23 12:49:36,828 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/eb7a38fc-b782-436f-b084-ea7317aae986
2025-09-23 12:49:36,837 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71040271:ctest-vn-94933078', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71040271', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5855680721326197197', 'uuid-lslong': '10983958120382350088'}, 'enable': 'true', 'created': '2025-09-23T12:49:34', 'last-modified': '2025-09-23T12:49:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.891584'}
2025-09-23 12:49:36,842 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-23 12:49:36,842 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94933078 passed
2025-09-23 12:49:36,842 - DEBUG - ====Verifying policy data for ctest-vn-94933078 in API_Server ======
2025-09-23 12:49:36,842 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-23 12:49:36,846 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6885e1fb-4730-453f-9180-56c383eb32b3
2025-09-23 12:49:36,855 - DEBUG - Requesting: http://10.0.0.254:8082/project/2b0f80fa-c8c2-4388-877a-d8d44bb12a71
2025-09-23 12:49:36,920 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/51438e97-60c0-49cd-986e-dbb709284308
2025-09-23 12:49:36,927 - DEBUG - ==>Verifying data for policy with id: 4fe57c83-2b05-4f06-9201-8a83b18932f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-71040271', 'ctest-policy-allow-all-12574891']
2025-09-23 12:49:36,927 - INFO - VN ctest-vn-94933078 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-23 12:49:36,927 - DEBUG - Verifying the vn in opserver
2025-09-23 12:49:36,928 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71040271:ctest-vn-94933078 virtual network link through opserver 10.0.0.254
2025-09-23 12:49:36,928 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-23 12:49:37,214 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-23 12:49:37,260 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71040271:ctest-vn-94933078', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71040271:ctest-vn-94933078?flat'}
2025-09-23 12:49:37,260 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71040271:ctest-vn-94933078 is found in opserver
2025-09-23 12:49:37,268 - DEBUG - Do not have enough data to verify VN in agent
2025-09-23 12:49:37,272 - DEBUG - VRF ids for VN ctest-vn-94933078: {}
2025-09-23 12:49:37,272 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-23 12:49:37,276 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6885e1fb-4730-453f-9180-56c383eb32b3
2025-09-23 12:49:37,285 - DEBUG - Requesting: http://10.0.0.254:8082/project/2b0f80fa-c8c2-4388-877a-d8d44bb12a71
2025-09-23 12:49:37,347 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fcec4a9-a22e-4447-a569-19fb37e53741
2025-09-23 12:49:37,358 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fcec4a9-a22e-4447-a569-19fb37e53741
2025-09-23 12:49:37,365 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46f56c03-9b0d-445a-9e49-0308751246df
2025-09-23 12:49:37,371 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46f56c03-9b0d-445a-9e49-0308751246df
2025-09-23 12:49:37,377 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3dff6adb-63c5-40b4-bb17-b5bf76043ca9
2025-09-23 12:49:37,383 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-23 12:49:37,383 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fcec4a9-a22e-4447-a569-19fb37e53741
2025-09-23 12:49:37,390 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46f56c03-9b0d-445a-9e49-0308751246df
2025-09-23 12:49:37,400 - INFO - Verified VN network id 12 for VN 4fcec4a9-a22e-4447-a569-19fb37e53741
2025-09-23 12:49:37,400 - INFO - Verifications in API Server for VN ctest-vn-94328298 passed
2025-09-23 12:49:37,401 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fcec4a9-a22e-4447-a569-19fb37e53741
2025-09-23 12:49:37,407 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46f56c03-9b0d-445a-9e49-0308751246df
2025-09-23 12:49:37,412 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46f56c03-9b0d-445a-9e49-0308751246df
2025-09-23 12:49:37,416 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3dff6adb-63c5-40b4-bb17-b5bf76043ca9
2025-09-23 12:49:37,425 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71040271:ctest-vn-94328298', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71040271', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5750750007048160327', 'uuid-lslong': '11919086455577982785'}, 'enable': 'true', 'created': '2025-09-23T12:49:35', 'last-modified': '2025-09-23T12:49:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.262861'}
2025-09-23 12:49:37,430 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-23 12:49:37,430 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94328298 passed
2025-09-23 12:49:37,430 - DEBUG - ====Verifying policy data for ctest-vn-94328298 in API_Server ======
2025-09-23 12:49:37,430 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-23 12:49:37,434 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6885e1fb-4730-453f-9180-56c383eb32b3
2025-09-23 12:49:37,442 - DEBUG - Requesting: http://10.0.0.254:8082/project/2b0f80fa-c8c2-4388-877a-d8d44bb12a71
2025-09-23 12:49:37,508 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4fcec4a9-a22e-4447-a569-19fb37e53741
2025-09-23 12:49:37,516 - DEBUG - ==>Verifying data for policy with id: 4fe57c83-2b05-4f06-9201-8a83b18932f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-71040271', 'ctest-policy-allow-all-12574891']
2025-09-23 12:49:37,516 - INFO - VN ctest-vn-94328298 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-23 12:49:37,516 - DEBUG - Verifying the vn in opserver
2025-09-23 12:49:37,516 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71040271:ctest-vn-94328298 virtual network link through opserver 10.0.0.254
2025-09-23 12:49:37,516 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-23 12:49:37,524 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71040271:ctest-vn-94328298', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71040271:ctest-vn-94328298?flat'}
2025-09-23 12:49:37,524 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71040271:ctest-vn-94328298 is found in opserver
2025-09-23 12:49:37,532 - DEBUG - Do not have enough data to verify VN in agent
2025-09-23 12:49:37,535 - DEBUG - VRF ids for VN ctest-vn-94328298: {}
2025-09-23 12:49:37,589 - DEBUG - Services list from nova: [