2025-10-23 18:28:43,648 - INFO - Domain Default found not creating
2025-10-23 18:28:43,790 - INFO - Project ctest-TestBasicPolicy-07495657 not found, creating it
2025-10-23 18:28:44,305 - INFO - Created Project:ctest-TestBasicPolicy-07495657, ID : c96ab1d7-08c0-4e81-a14f-58d360156b0c
2025-10-23 18:28:45,778 - INFO - ================================================================================
2025-10-23 18:28:45,778 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-23 18:28:45,778 - 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-10-23 18:28:46,046 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with
2025-10-23 18:28:46,046 - INFO - Initial checks done. Running the testcase now
2025-10-23 18:28:46,046 - INFO -
2025-10-23 18:28:46,610 - DEBUG - Response for create_network : {'network': {'id': 'f878c60c-c9c4-4edc-8998-d0d10c00e8ac', 'name': 'ctest-vn-78135185', 'tenant_id': 'c96ab1d708c04e81a14f58d360156b0c', 'project_id': 'c96ab1d708c04e81a14f58d360156b0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07495657', 'ctest-vn-78135185'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 18:28:46,761 - DEBUG - Response for create_subnet : {'subnet': {'id': '50550c68-85e5-4c02-92b9-d97228e23eb5', 'name': '', 'tenant_id': 'c96ab1d708c04e81a14f58d360156b0c', 'network_id': 'f878c60c-c9c4-4edc-8998-d0d10c00e8ac', 'ip_version': 4, 'cidr': '185.145.171.128/26', 'allocation_pools': [{'start': '185.145.171.130', 'end': '185.145.171.190'}], 'gateway_ip': '185.145.171.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.145.171.130', 'tags': [], 'project_id': 'c96ab1d708c04e81a14f58d360156b0c'}}
2025-10-23 18:28:46,777 - INFO - Created VN ctest-vn-78135185
2025-10-23 18:28:46,825 - DEBUG - VN ctest-vn-78135185 UUID is f878c60c-c9c4-4edc-8998-d0d10c00e8ac
2025-10-23 18:28:47,137 - DEBUG - Response for create_network : {'network': {'id': '49f5b755-9e47-46f3-8fc4-1d25d2443ca3', 'name': 'ctest-vn-32539931', 'tenant_id': 'c96ab1d708c04e81a14f58d360156b0c', 'project_id': 'c96ab1d708c04e81a14f58d360156b0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07495657', 'ctest-vn-32539931'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 18:28:47,343 - DEBUG - Response for create_subnet : {'subnet': {'id': '01d8c19b-353d-483c-be2b-6e2148329db0', 'name': '', 'tenant_id': 'c96ab1d708c04e81a14f58d360156b0c', 'network_id': '49f5b755-9e47-46f3-8fc4-1d25d2443ca3', 'ip_version': 4, 'cidr': '214.234.195.192/26', 'allocation_pools': [{'start': '214.234.195.194', 'end': '214.234.195.254'}], 'gateway_ip': '214.234.195.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.234.195.194', 'tags': [], 'project_id': 'c96ab1d708c04e81a14f58d360156b0c'}}
2025-10-23 18:28:47,361 - INFO - Created VN ctest-vn-32539931
2025-10-23 18:28:47,413 - DEBUG - VN ctest-vn-32539931 UUID is 49f5b755-9e47-46f3-8fc4-1d25d2443ca3
2025-10-23 18:28:47,561 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07495657:ctest-vn-78135185, 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-07495657:ctest-vn-32539931, 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-10-23 18:28:47,864 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f878c60c-c9c4-4edc-8998-d0d10c00e8ac', 'name': 'ctest-vn-78135185', 'tenant_id': 'c96ab1d708c04e81a14f58d360156b0c', 'project_id': 'c96ab1d708c04e81a14f58d360156b0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['50550c68-85e5-4c02-92b9-d97228e23eb5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07495657', 'ctest-vn-78135185'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07495657', 'ctest-policy-allow-all-89872896']], 'subnet_ipam': [{'subnet_cidr': '185.145.171.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 18:28:48,132 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '49f5b755-9e47-46f3-8fc4-1d25d2443ca3', 'name': 'ctest-vn-32539931', 'tenant_id': 'c96ab1d708c04e81a14f58d360156b0c', 'project_id': 'c96ab1d708c04e81a14f58d360156b0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['01d8c19b-353d-483c-be2b-6e2148329db0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07495657', 'ctest-vn-32539931'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07495657', 'ctest-policy-allow-all-89872896']], 'subnet_ipam': [{'subnet_cidr': '214.234.195.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 18:28:48,279 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-23 18:28:48,575 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-23 18:28:48,601 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5b2b3185-1ae2-4126-81a5-4799e1ab4b6e
2025-10-23 18:28:48,614 - DEBUG - Requesting: http://10.0.0.27:8082/project/c96ab1d7-08c0-4e81-a14f-58d360156b0c
2025-10-23 18:28:48,704 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f878c60c-c9c4-4edc-8998-d0d10c00e8ac
2025-10-23 18:28:48,715 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f878c60c-c9c4-4edc-8998-d0d10c00e8ac
2025-10-23 18:28:48,724 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/dc26a99c-1bcc-400b-9fc9-a530c71582e3
2025-10-23 18:28:48,731 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/dc26a99c-1bcc-400b-9fc9-a530c71582e3
2025-10-23 18:28:48,739 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/dbba76f9-e493-42ea-9840-f7788739cece
2025-10-23 18:28:48,747 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 18:28:48,747 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f878c60c-c9c4-4edc-8998-d0d10c00e8ac
2025-10-23 18:28:48,759 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/dc26a99c-1bcc-400b-9fc9-a530c71582e3
2025-10-23 18:28:48,775 - INFO - Verified VN network id 9 for VN f878c60c-c9c4-4edc-8998-d0d10c00e8ac
2025-10-23 18:28:48,775 - INFO - Verifications in API Server for VN ctest-vn-78135185 passed
2025-10-23 18:28:48,776 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f878c60c-c9c4-4edc-8998-d0d10c00e8ac
2025-10-23 18:28:48,785 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/dc26a99c-1bcc-400b-9fc9-a530c71582e3
2025-10-23 18:28:48,791 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/dc26a99c-1bcc-400b-9fc9-a530c71582e3
2025-10-23 18:28:48,797 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/dbba76f9-e493-42ea-9840-f7788739cece
2025-10-23 18:28:48,808 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07495657:ctest-vn-78135185', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07495657', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17904278076838399708', 'uuid-lslong': '9914904175924275372'}, 'enable': 'true', 'created': '2025-10-23T18:28:46', 'last-modified': '2025-10-23T18:28:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.963183'}
2025-10-23 18:28:48,815 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 18:28:48,815 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78135185 passed
2025-10-23 18:28:48,815 - DEBUG - ====Verifying policy data for ctest-vn-78135185 in API_Server ======
2025-10-23 18:28:48,815 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-23 18:28:48,820 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5b2b3185-1ae2-4126-81a5-4799e1ab4b6e
2025-10-23 18:28:48,830 - DEBUG - Requesting: http://10.0.0.27:8082/project/c96ab1d7-08c0-4e81-a14f-58d360156b0c
2025-10-23 18:28:48,896 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f878c60c-c9c4-4edc-8998-d0d10c00e8ac
2025-10-23 18:28:48,904 - DEBUG - ==>Verifying data for policy with id: 16230baf-603b-46b3-a8ea-aeec193a9260, fqn: ['default-domain', 'ctest-TestBasicPolicy-07495657', 'ctest-policy-allow-all-89872896']
2025-10-23 18:28:48,904 - INFO - VN ctest-vn-78135185 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 18:28:48,904 - DEBUG - Verifying the vn in opserver
2025-10-23 18:28:48,904 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07495657:ctest-vn-78135185 virtual network link through opserver 10.0.0.27
2025-10-23 18:28:48,904 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-23 18:28:49,193 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-23 18:28:49,251 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07495657:ctest-vn-78135185', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07495657:ctest-vn-78135185?flat'}
2025-10-23 18:28:49,251 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07495657:ctest-vn-78135185 is found in opserver
2025-10-23 18:28:49,261 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 18:28:49,265 - DEBUG - VRF ids for VN ctest-vn-78135185: {}
2025-10-23 18:28:49,265 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-23 18:28:49,271 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5b2b3185-1ae2-4126-81a5-4799e1ab4b6e
2025-10-23 18:28:49,282 - DEBUG - Requesting: http://10.0.0.27:8082/project/c96ab1d7-08c0-4e81-a14f-58d360156b0c
2025-10-23 18:28:49,356 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/49f5b755-9e47-46f3-8fc4-1d25d2443ca3
2025-10-23 18:28:49,367 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/49f5b755-9e47-46f3-8fc4-1d25d2443ca3
2025-10-23 18:28:49,378 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1986abe1-335e-4846-9f8b-e9a5d6abcbdf
2025-10-23 18:28:49,386 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1986abe1-335e-4846-9f8b-e9a5d6abcbdf
2025-10-23 18:28:49,392 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/3b140bed-ed8e-471a-945f-2cee21cd2f1d
2025-10-23 18:28:49,398 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 18:28:49,398 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/49f5b755-9e47-46f3-8fc4-1d25d2443ca3
2025-10-23 18:28:49,407 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1986abe1-335e-4846-9f8b-e9a5d6abcbdf
2025-10-23 18:28:49,420 - INFO - Verified VN network id 10 for VN 49f5b755-9e47-46f3-8fc4-1d25d2443ca3
2025-10-23 18:28:49,420 - INFO - Verifications in API Server for VN ctest-vn-32539931 passed
2025-10-23 18:28:49,420 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/49f5b755-9e47-46f3-8fc4-1d25d2443ca3
2025-10-23 18:28:49,429 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1986abe1-335e-4846-9f8b-e9a5d6abcbdf
2025-10-23 18:28:49,435 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1986abe1-335e-4846-9f8b-e9a5d6abcbdf
2025-10-23 18:28:49,442 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/3b140bed-ed8e-471a-945f-2cee21cd2f1d
2025-10-23 18:28:49,453 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07495657:ctest-vn-32539931', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07495657', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5329367312418424563', 'uuid-lslong': '10359437091137666211'}, 'enable': 'true', 'created': '2025-10-23T18:28:47', 'last-modified': '2025-10-23T18:28:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.387382'}
2025-10-23 18:28:49,458 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 18:28:49,458 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32539931 passed
2025-10-23 18:28:49,458 - DEBUG - ====Verifying policy data for ctest-vn-32539931 in API_Server ======
2025-10-23 18:28:49,458 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-23 18:28:49,464 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5b2b3185-1ae2-4126-81a5-4799e1ab4b6e
2025-10-23 18:28:49,473 - DEBUG - Requesting: http://10.0.0.27:8082/project/c96ab1d7-08c0-4e81-a14f-58d360156b0c
2025-10-23 18:28:49,548 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/49f5b755-9e47-46f3-8fc4-1d25d2443ca3
2025-10-23 18:28:49,557 - DEBUG - ==>Verifying data for policy with id: 16230baf-603b-46b3-a8ea-aeec193a9260, fqn: ['default-domain', 'ctest-TestBasicPolicy-07495657', 'ctest-policy-allow-all-89872896']
2025-10-23 18:28:49,557 - INFO - VN ctest-vn-32539931 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 18:28:49,557 - DEBUG - Verifying the vn in opserver
2025-10-23 18:28:49,557 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07495657:ctest-vn-32539931 virtual network link through opserver 10.0.0.27
2025-10-23 18:28:49,557 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-23 18:28:49,568 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07495657:ctest-vn-32539931', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07495657:ctest-vn-32539931?flat'}
2025-10-23 18:28:49,568 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07495657:ctest-vn-32539931 is found in opserver
2025-10-23 18:28:49,580 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 18:28:49,585 - DEBUG - VRF ids for VN ctest-vn-32539931: {}
2025-10-23 18:28:49,662 - DEBUG - Services list from nova: [