2025-12-04 18:06:24,130 - INFO - Domain Default found not creating
2025-12-04 18:06:24,327 - INFO - Project ctest-TestBasicPolicy-97198876 not found, creating it
2025-12-04 18:06:24,826 - INFO - Created Project:ctest-TestBasicPolicy-97198876, ID : 2f4cfa06-bb4f-4681-84c8-bce65b4e479c
2025-12-04 18:06:26,386 - INFO - ================================================================================
2025-12-04 18:06:26,386 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-04 18:06:26,386 - 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-12-04 18:06:26,657 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-12-04 18:06:26,657 - INFO - Initial checks done. Running the testcase now
2025-12-04 18:06:26,658 - INFO -
2025-12-04 18:06:27,290 - DEBUG - Response for create_network : {'network': {'id': '201a5056-6e99-4531-a1bb-3bd44c263462', 'name': 'ctest-vn-36829452', 'tenant_id': '2f4cfa06bb4f468184c8bce65b4e479c', 'project_id': '2f4cfa06bb4f468184c8bce65b4e479c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97198876', 'ctest-vn-36829452'], 'port_security_enabled': True, 'description': ''}}
2025-12-04 18:06:27,463 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f6dbb38-75e4-49a7-a8cf-76619fba753c', 'name': '', 'tenant_id': '2f4cfa06bb4f468184c8bce65b4e479c', 'network_id': '201a5056-6e99-4531-a1bb-3bd44c263462', 'ip_version': 4, 'cidr': '221.93.61.128/26', 'allocation_pools': [{'start': '221.93.61.130', 'end': '221.93.61.190'}], 'gateway_ip': '221.93.61.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.93.61.130', 'tags': [], 'project_id': '2f4cfa06bb4f468184c8bce65b4e479c'}}
2025-12-04 18:06:27,482 - INFO - Created VN ctest-vn-36829452
2025-12-04 18:06:27,533 - DEBUG - VN ctest-vn-36829452 UUID is 201a5056-6e99-4531-a1bb-3bd44c263462
2025-12-04 18:06:27,853 - DEBUG - Response for create_network : {'network': {'id': '9ed9cfe4-83b7-4565-b2fd-3309255d3307', 'name': 'ctest-vn-23323679', 'tenant_id': '2f4cfa06bb4f468184c8bce65b4e479c', 'project_id': '2f4cfa06bb4f468184c8bce65b4e479c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97198876', 'ctest-vn-23323679'], 'port_security_enabled': True, 'description': ''}}
2025-12-04 18:06:28,043 - DEBUG - Response for create_subnet : {'subnet': {'id': '05f13bed-2e65-44ed-ab13-3427f53f8621', 'name': '', 'tenant_id': '2f4cfa06bb4f468184c8bce65b4e479c', 'network_id': '9ed9cfe4-83b7-4565-b2fd-3309255d3307', 'ip_version': 4, 'cidr': '165.12.193.0/26', 'allocation_pools': [{'start': '165.12.193.2', 'end': '165.12.193.62'}], 'gateway_ip': '165.12.193.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.12.193.2', 'tags': [], 'project_id': '2f4cfa06bb4f468184c8bce65b4e479c'}}
2025-12-04 18:06:28,062 - INFO - Created VN ctest-vn-23323679
2025-12-04 18:06:28,113 - DEBUG - VN ctest-vn-23323679 UUID is 9ed9cfe4-83b7-4565-b2fd-3309255d3307
2025-12-04 18:06:28,235 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97198876:ctest-vn-36829452, 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-97198876:ctest-vn-23323679, 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-12-04 18:06:28,692 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '201a5056-6e99-4531-a1bb-3bd44c263462', 'name': 'ctest-vn-36829452', 'tenant_id': '2f4cfa06bb4f468184c8bce65b4e479c', 'project_id': '2f4cfa06bb4f468184c8bce65b4e479c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f6dbb38-75e4-49a7-a8cf-76619fba753c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97198876', 'ctest-vn-36829452'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97198876', 'ctest-policy-allow-all-73776509']], 'subnet_ipam': [{'subnet_cidr': '221.93.61.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-04 18:06:29,007 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9ed9cfe4-83b7-4565-b2fd-3309255d3307', 'name': 'ctest-vn-23323679', 'tenant_id': '2f4cfa06bb4f468184c8bce65b4e479c', 'project_id': '2f4cfa06bb4f468184c8bce65b4e479c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['05f13bed-2e65-44ed-ab13-3427f53f8621'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97198876', 'ctest-vn-23323679'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97198876', 'ctest-policy-allow-all-73776509']], 'subnet_ipam': [{'subnet_cidr': '165.12.193.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-04 18:06:29,169 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-04 18:06:29,476 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-04 18:06:29,516 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4fba6479-6940-41ce-945c-382d2eb096c8
2025-12-04 18:06:29,539 - DEBUG - Requesting: http://10.0.0.38:8082/project/2f4cfa06-bb4f-4681-84c8-bce65b4e479c
2025-12-04 18:06:29,612 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/201a5056-6e99-4531-a1bb-3bd44c263462
2025-12-04 18:06:29,623 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/201a5056-6e99-4531-a1bb-3bd44c263462
2025-12-04 18:06:29,633 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c021fd29-ab1c-419d-a2a5-e59f8958013e
2025-12-04 18:06:29,641 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c021fd29-ab1c-419d-a2a5-e59f8958013e
2025-12-04 18:06:29,648 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/df71658b-5c07-45b0-a9a2-99c08281b921
2025-12-04 18:06:29,654 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-04 18:06:29,654 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/201a5056-6e99-4531-a1bb-3bd44c263462
2025-12-04 18:06:29,664 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c021fd29-ab1c-419d-a2a5-e59f8958013e
2025-12-04 18:06:29,681 - INFO - Verified VN network id 11 for VN 201a5056-6e99-4531-a1bb-3bd44c263462
2025-12-04 18:06:29,682 - INFO - Verifications in API Server for VN ctest-vn-36829452 passed
2025-12-04 18:06:29,682 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/201a5056-6e99-4531-a1bb-3bd44c263462
2025-12-04 18:06:29,693 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c021fd29-ab1c-419d-a2a5-e59f8958013e
2025-12-04 18:06:29,701 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c021fd29-ab1c-419d-a2a5-e59f8958013e
2025-12-04 18:06:29,708 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/df71658b-5c07-45b0-a9a2-99c08281b921
2025-12-04 18:06:29,722 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97198876:ctest-vn-36829452', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97198876', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2313249690761119025', 'uuid-lslong': '11653974243747968098'}, 'enable': 'true', 'created': '2025-12-04T18:06:27', 'last-modified': '2025-12-04T18:06:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.087015'}
2025-12-04 18:06:29,729 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-04 18:06:29,729 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36829452 passed
2025-12-04 18:06:29,729 - DEBUG - ====Verifying policy data for ctest-vn-36829452 in API_Server ======
2025-12-04 18:06:29,729 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-04 18:06:29,735 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4fba6479-6940-41ce-945c-382d2eb096c8
2025-12-04 18:06:29,746 - DEBUG - Requesting: http://10.0.0.38:8082/project/2f4cfa06-bb4f-4681-84c8-bce65b4e479c
2025-12-04 18:06:29,826 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/201a5056-6e99-4531-a1bb-3bd44c263462
2025-12-04 18:06:29,837 - DEBUG - ==>Verifying data for policy with id: e76be02a-43e3-41dd-bc62-056bdfb95ed4, fqn: ['default-domain', 'ctest-TestBasicPolicy-97198876', 'ctest-policy-allow-all-73776509']
2025-12-04 18:06:29,837 - INFO - VN ctest-vn-36829452 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-04 18:06:29,837 - DEBUG - Verifying the vn in opserver
2025-12-04 18:06:29,837 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97198876:ctest-vn-36829452 virtual network link through opserver 10.0.0.38
2025-12-04 18:06:29,837 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-04 18:06:30,145 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-04 18:06:30,231 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97198876:ctest-vn-36829452', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97198876:ctest-vn-36829452?flat'}
2025-12-04 18:06:30,231 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97198876:ctest-vn-36829452 is found in opserver
2025-12-04 18:06:30,245 - DEBUG - Do not have enough data to verify VN in agent
2025-12-04 18:06:30,251 - DEBUG - VRF ids for VN ctest-vn-36829452: {}
2025-12-04 18:06:30,251 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-04 18:06:30,258 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4fba6479-6940-41ce-945c-382d2eb096c8
2025-12-04 18:06:30,271 - DEBUG - Requesting: http://10.0.0.38:8082/project/2f4cfa06-bb4f-4681-84c8-bce65b4e479c
2025-12-04 18:06:30,350 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9ed9cfe4-83b7-4565-b2fd-3309255d3307
2025-12-04 18:06:30,362 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9ed9cfe4-83b7-4565-b2fd-3309255d3307
2025-12-04 18:06:30,371 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/59df0c30-734d-41d9-bee1-504895749b36
2025-12-04 18:06:30,381 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/59df0c30-734d-41d9-bee1-504895749b36
2025-12-04 18:06:30,391 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/273ddd91-1456-4fe1-a4c2-29487736253b
2025-12-04 18:06:30,399 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-04 18:06:30,399 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9ed9cfe4-83b7-4565-b2fd-3309255d3307
2025-12-04 18:06:30,410 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/59df0c30-734d-41d9-bee1-504895749b36
2025-12-04 18:06:30,431 - INFO - Verified VN network id 12 for VN 9ed9cfe4-83b7-4565-b2fd-3309255d3307
2025-12-04 18:06:30,431 - INFO - Verifications in API Server for VN ctest-vn-23323679 passed
2025-12-04 18:06:30,431 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9ed9cfe4-83b7-4565-b2fd-3309255d3307
2025-12-04 18:06:30,442 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/59df0c30-734d-41d9-bee1-504895749b36
2025-12-04 18:06:30,450 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/59df0c30-734d-41d9-bee1-504895749b36
2025-12-04 18:06:30,457 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/273ddd91-1456-4fe1-a4c2-29487736253b
2025-12-04 18:06:30,470 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97198876:ctest-vn-23323679', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97198876', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11446408508308145509', 'uuid-lslong': '12897521022233555719'}, 'enable': 'true', 'created': '2025-12-04T18:06:27', 'last-modified': '2025-12-04T18:06:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.529919'}
2025-12-04 18:06:30,476 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-04 18:06:30,476 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23323679 passed
2025-12-04 18:06:30,477 - DEBUG - ====Verifying policy data for ctest-vn-23323679 in API_Server ======
2025-12-04 18:06:30,477 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-04 18:06:30,483 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4fba6479-6940-41ce-945c-382d2eb096c8
2025-12-04 18:06:30,494 - DEBUG - Requesting: http://10.0.0.38:8082/project/2f4cfa06-bb4f-4681-84c8-bce65b4e479c
2025-12-04 18:06:30,567 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9ed9cfe4-83b7-4565-b2fd-3309255d3307
2025-12-04 18:06:30,579 - DEBUG - ==>Verifying data for policy with id: e76be02a-43e3-41dd-bc62-056bdfb95ed4, fqn: ['default-domain', 'ctest-TestBasicPolicy-97198876', 'ctest-policy-allow-all-73776509']
2025-12-04 18:06:30,579 - INFO - VN ctest-vn-23323679 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-04 18:06:30,579 - DEBUG - Verifying the vn in opserver
2025-12-04 18:06:30,579 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97198876:ctest-vn-23323679 virtual network link through opserver 10.0.0.38
2025-12-04 18:06:30,579 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-04 18:06:30,590 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97198876:ctest-vn-23323679', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97198876:ctest-vn-23323679?flat'}
2025-12-04 18:06:30,590 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97198876:ctest-vn-23323679 is found in opserver
2025-12-04 18:06:30,602 - DEBUG - Do not have enough data to verify VN in agent
2025-12-04 18:06:30,607 - DEBUG - VRF ids for VN ctest-vn-23323679: {}
2025-12-04 18:06:30,673 - DEBUG - Services list from nova: [