2025-09-10 16:48:54,766 - INFO - Domain Default found not creating
2025-09-10 16:48:54,900 - INFO - Project ctest-TestBasicPolicy-31576764 not found, creating it
2025-09-10 16:48:55,357 - INFO - Created Project:ctest-TestBasicPolicy-31576764, ID : 9554f1dd-c231-4dcd-8f3b-48f6b1b1c58d
2025-09-10 16:48:56,758 - INFO - ================================================================================
2025-09-10 16:48:56,758 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-10 16:48:56,758 - 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-10 16:48:57,020 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.193': '0'}} with
2025-09-10 16:48:57,021 - INFO - Initial checks done. Running the testcase now
2025-09-10 16:48:57,021 - INFO -
2025-09-10 16:48:57,563 - DEBUG - Response for create_network : {'network': {'id': '9f12871f-1401-414d-b0c6-913b07fdb47a', 'name': 'ctest-vn-78002804', 'tenant_id': '9554f1ddc2314dcd8f3b48f6b1b1c58d', 'project_id': '9554f1ddc2314dcd8f3b48f6b1b1c58d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31576764', 'ctest-vn-78002804'], 'port_security_enabled': True, 'description': ''}}
2025-09-10 16:48:57,764 - DEBUG - Response for create_subnet : {'subnet': {'id': '61414720-9726-4ec4-8edc-e7feb6ae5d30', 'name': '', 'tenant_id': '9554f1ddc2314dcd8f3b48f6b1b1c58d', 'network_id': '9f12871f-1401-414d-b0c6-913b07fdb47a', 'ip_version': 4, 'cidr': '8.155.91.0/26', 'allocation_pools': [{'start': '8.155.91.2', 'end': '8.155.91.62'}], 'gateway_ip': '8.155.91.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.155.91.2', 'tags': [], 'project_id': '9554f1ddc2314dcd8f3b48f6b1b1c58d'}}
2025-09-10 16:48:57,784 - INFO - Created VN ctest-vn-78002804
2025-09-10 16:48:57,835 - DEBUG - VN ctest-vn-78002804 UUID is 9f12871f-1401-414d-b0c6-913b07fdb47a
2025-09-10 16:48:58,128 - DEBUG - Response for create_network : {'network': {'id': 'b7a9c071-191f-4f12-aa28-8904eca20af8', 'name': 'ctest-vn-91124689', 'tenant_id': '9554f1ddc2314dcd8f3b48f6b1b1c58d', 'project_id': '9554f1ddc2314dcd8f3b48f6b1b1c58d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31576764', 'ctest-vn-91124689'], 'port_security_enabled': True, 'description': ''}}
2025-09-10 16:48:58,326 - DEBUG - Response for create_subnet : {'subnet': {'id': '93200e8a-80d4-4b1e-9d41-acc919bc8f69', 'name': '', 'tenant_id': '9554f1ddc2314dcd8f3b48f6b1b1c58d', 'network_id': 'b7a9c071-191f-4f12-aa28-8904eca20af8', 'ip_version': 4, 'cidr': '178.227.76.0/26', 'allocation_pools': [{'start': '178.227.76.2', 'end': '178.227.76.62'}], 'gateway_ip': '178.227.76.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.227.76.2', 'tags': [], 'project_id': '9554f1ddc2314dcd8f3b48f6b1b1c58d'}}
2025-09-10 16:48:58,343 - INFO - Created VN ctest-vn-91124689
2025-09-10 16:48:58,395 - DEBUG - VN ctest-vn-91124689 UUID is b7a9c071-191f-4f12-aa28-8904eca20af8
2025-09-10 16:48:58,543 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31576764:ctest-vn-78002804, 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-31576764:ctest-vn-91124689, 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-10 16:48:58,829 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9f12871f-1401-414d-b0c6-913b07fdb47a', 'name': 'ctest-vn-78002804', 'tenant_id': '9554f1ddc2314dcd8f3b48f6b1b1c58d', 'project_id': '9554f1ddc2314dcd8f3b48f6b1b1c58d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['61414720-9726-4ec4-8edc-e7feb6ae5d30'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31576764', 'ctest-vn-78002804'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31576764', 'ctest-policy-allow-all-86456671']], 'subnet_ipam': [{'subnet_cidr': '8.155.91.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-10 16:48:59,064 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b7a9c071-191f-4f12-aa28-8904eca20af8', 'name': 'ctest-vn-91124689', 'tenant_id': '9554f1ddc2314dcd8f3b48f6b1b1c58d', 'project_id': '9554f1ddc2314dcd8f3b48f6b1b1c58d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['93200e8a-80d4-4b1e-9d41-acc919bc8f69'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31576764', 'ctest-vn-91124689'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31576764', 'ctest-policy-allow-all-86456671']], 'subnet_ipam': [{'subnet_cidr': '178.227.76.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-10 16:48:59,215 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-10 16:48:59,516 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-10 16:48:59,542 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bfc7b387-c8ba-427d-acaf-188347cac98e
2025-09-10 16:48:59,553 - DEBUG - Requesting: http://10.0.0.254:8082/project/9554f1dd-c231-4dcd-8f3b-48f6b1b1c58d
2025-09-10 16:48:59,622 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9f12871f-1401-414d-b0c6-913b07fdb47a
2025-09-10 16:48:59,633 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9f12871f-1401-414d-b0c6-913b07fdb47a
2025-09-10 16:48:59,644 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/042af523-b914-4c15-ba35-ac075591722b
2025-09-10 16:48:59,652 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/042af523-b914-4c15-ba35-ac075591722b
2025-09-10 16:48:59,659 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/80671b84-f2fd-45b9-9d9d-454036cf8563
2025-09-10 16:48:59,665 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-10 16:48:59,665 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9f12871f-1401-414d-b0c6-913b07fdb47a
2025-09-10 16:48:59,676 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/042af523-b914-4c15-ba35-ac075591722b
2025-09-10 16:48:59,691 - INFO - Verified VN network id 12 for VN 9f12871f-1401-414d-b0c6-913b07fdb47a
2025-09-10 16:48:59,691 - INFO - Verifications in API Server for VN ctest-vn-78002804 passed
2025-09-10 16:48:59,691 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9f12871f-1401-414d-b0c6-913b07fdb47a
2025-09-10 16:48:59,700 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/042af523-b914-4c15-ba35-ac075591722b
2025-09-10 16:48:59,707 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/042af523-b914-4c15-ba35-ac075591722b
2025-09-10 16:48:59,714 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/80671b84-f2fd-45b9-9d9d-454036cf8563
2025-09-10 16:48:59,725 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31576764:ctest-vn-78002804', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31576764', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11462372569160696141', 'uuid-lslong': '12738028278787191930'}, 'enable': 'true', 'created': '2025-09-10T16:48:57', 'last-modified': '2025-09-10T16:48:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915681'}
2025-09-10 16:48:59,730 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-10 16:48:59,730 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78002804 passed
2025-09-10 16:48:59,730 - DEBUG - ====Verifying policy data for ctest-vn-78002804 in API_Server ======
2025-09-10 16:48:59,730 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-10 16:48:59,735 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bfc7b387-c8ba-427d-acaf-188347cac98e
2025-09-10 16:48:59,746 - DEBUG - Requesting: http://10.0.0.254:8082/project/9554f1dd-c231-4dcd-8f3b-48f6b1b1c58d
2025-09-10 16:48:59,817 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9f12871f-1401-414d-b0c6-913b07fdb47a
2025-09-10 16:48:59,828 - DEBUG - ==>Verifying data for policy with id: f524e252-83f7-4485-bf14-485fb1beceb7, fqn: ['default-domain', 'ctest-TestBasicPolicy-31576764', 'ctest-policy-allow-all-86456671']
2025-09-10 16:48:59,828 - INFO - VN ctest-vn-78002804 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-10 16:48:59,828 - DEBUG - Verifying the vn in opserver
2025-09-10 16:48:59,828 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31576764:ctest-vn-78002804 virtual network link through opserver 10.0.0.254
2025-09-10 16:48:59,828 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-10 16:49:00,131 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-10 16:49:00,189 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31576764:ctest-vn-78002804', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31576764:ctest-vn-78002804?flat'}
2025-09-10 16:49:00,189 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31576764:ctest-vn-78002804 is found in opserver
2025-09-10 16:49:00,199 - DEBUG - Do not have enough data to verify VN in agent
2025-09-10 16:49:00,204 - DEBUG - VRF ids for VN ctest-vn-78002804: {}
2025-09-10 16:49:00,204 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-10 16:49:00,209 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bfc7b387-c8ba-427d-acaf-188347cac98e
2025-09-10 16:49:00,220 - DEBUG - Requesting: http://10.0.0.254:8082/project/9554f1dd-c231-4dcd-8f3b-48f6b1b1c58d
2025-09-10 16:49:00,287 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b7a9c071-191f-4f12-aa28-8904eca20af8
2025-09-10 16:49:00,298 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b7a9c071-191f-4f12-aa28-8904eca20af8
2025-09-10 16:49:00,306 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/feb9608d-a4d3-4f59-a526-a3441552bdd3
2025-09-10 16:49:00,313 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/feb9608d-a4d3-4f59-a526-a3441552bdd3
2025-09-10 16:49:00,319 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/19b982bb-415c-4109-8367-89008bb95886
2025-09-10 16:49:00,325 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-10 16:49:00,325 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b7a9c071-191f-4f12-aa28-8904eca20af8
2025-09-10 16:49:00,332 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/feb9608d-a4d3-4f59-a526-a3441552bdd3
2025-09-10 16:49:00,347 - INFO - Verified VN network id 13 for VN b7a9c071-191f-4f12-aa28-8904eca20af8
2025-09-10 16:49:00,347 - INFO - Verifications in API Server for VN ctest-vn-91124689 passed
2025-09-10 16:49:00,348 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b7a9c071-191f-4f12-aa28-8904eca20af8
2025-09-10 16:49:00,357 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/feb9608d-a4d3-4f59-a526-a3441552bdd3
2025-09-10 16:49:00,363 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/feb9608d-a4d3-4f59-a526-a3441552bdd3
2025-09-10 16:49:00,370 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/19b982bb-415c-4109-8367-89008bb95886
2025-09-10 16:49:00,381 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31576764:ctest-vn-91124689', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31576764', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13234320571990232850', 'uuid-lslong': '12261200639759092472'}, 'enable': 'true', 'created': '2025-09-10T16:48:58', 'last-modified': '2025-09-10T16:48:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.337260'}
2025-09-10 16:49:00,387 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-10 16:49:00,387 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91124689 passed
2025-09-10 16:49:00,387 - DEBUG - ====Verifying policy data for ctest-vn-91124689 in API_Server ======
2025-09-10 16:49:00,387 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-10 16:49:00,392 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bfc7b387-c8ba-427d-acaf-188347cac98e
2025-09-10 16:49:00,402 - DEBUG - Requesting: http://10.0.0.254:8082/project/9554f1dd-c231-4dcd-8f3b-48f6b1b1c58d
2025-09-10 16:49:00,469 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b7a9c071-191f-4f12-aa28-8904eca20af8
2025-09-10 16:49:00,480 - DEBUG - ==>Verifying data for policy with id: f524e252-83f7-4485-bf14-485fb1beceb7, fqn: ['default-domain', 'ctest-TestBasicPolicy-31576764', 'ctest-policy-allow-all-86456671']
2025-09-10 16:49:00,480 - INFO - VN ctest-vn-91124689 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-10 16:49:00,480 - DEBUG - Verifying the vn in opserver
2025-09-10 16:49:00,480 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31576764:ctest-vn-91124689 virtual network link through opserver 10.0.0.254
2025-09-10 16:49:00,480 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-10 16:49:00,489 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31576764:ctest-vn-91124689', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31576764:ctest-vn-91124689?flat'}
2025-09-10 16:49:00,489 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31576764:ctest-vn-91124689 is found in opserver
2025-09-10 16:49:00,498 - DEBUG - Do not have enough data to verify VN in agent
2025-09-10 16:49:00,502 - DEBUG - VRF ids for VN ctest-vn-91124689: {}
2025-09-10 16:49:00,558 - DEBUG - Services list from nova: [