2025-10-27 13:57:18,454 - INFO - Domain Default found not creating
2025-10-27 13:57:18,636 - INFO - Project ctest-TestBasicPolicy-13873929 not found, creating it
2025-10-27 13:57:19,119 - INFO - Created Project:ctest-TestBasicPolicy-13873929, ID : 3963724d-4c5c-4543-ad30-b2c6a80f6e0f
2025-10-27 13:57:20,585 - INFO - ================================================================================
2025-10-27 13:57:20,586 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 13:57:20,586 - 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-27 13:57:20,839 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2025-10-27 13:57:20,839 - INFO - Initial checks done. Running the testcase now
2025-10-27 13:57:20,839 - INFO -
2025-10-27 13:57:21,409 - DEBUG - Response for create_network : {'network': {'id': '4dfbb3f7-67a5-4855-bb3b-c6fd0ec126ee', 'name': 'ctest-vn-28091416', 'tenant_id': '3963724d4c5c4543ad30b2c6a80f6e0f', 'project_id': '3963724d4c5c4543ad30b2c6a80f6e0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13873929', 'ctest-vn-28091416'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 13:57:21,577 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c8b649d-a53c-4b8e-8014-a9b50d02c201', 'name': '', 'tenant_id': '3963724d4c5c4543ad30b2c6a80f6e0f', 'network_id': '4dfbb3f7-67a5-4855-bb3b-c6fd0ec126ee', 'ip_version': 4, 'cidr': '70.68.222.192/26', 'allocation_pools': [{'start': '70.68.222.194', 'end': '70.68.222.254'}], 'gateway_ip': '70.68.222.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.68.222.194', 'tags': [], 'project_id': '3963724d4c5c4543ad30b2c6a80f6e0f'}}
2025-10-27 13:57:21,603 - INFO - Created VN ctest-vn-28091416
2025-10-27 13:57:21,661 - DEBUG - VN ctest-vn-28091416 UUID is 4dfbb3f7-67a5-4855-bb3b-c6fd0ec126ee
2025-10-27 13:57:21,971 - DEBUG - Response for create_network : {'network': {'id': '6a31c791-04a3-44f0-b210-00f50a03935b', 'name': 'ctest-vn-52364558', 'tenant_id': '3963724d4c5c4543ad30b2c6a80f6e0f', 'project_id': '3963724d4c5c4543ad30b2c6a80f6e0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13873929', 'ctest-vn-52364558'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 13:57:22,140 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e73854e6-b7f1-4372-92a9-a35be50f0fd4', 'name': '', 'tenant_id': '3963724d4c5c4543ad30b2c6a80f6e0f', 'network_id': '6a31c791-04a3-44f0-b210-00f50a03935b', 'ip_version': 4, 'cidr': '167.175.22.0/26', 'allocation_pools': [{'start': '167.175.22.2', 'end': '167.175.22.62'}], 'gateway_ip': '167.175.22.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.175.22.2', 'tags': [], 'project_id': '3963724d4c5c4543ad30b2c6a80f6e0f'}}
2025-10-27 13:57:22,159 - INFO - Created VN ctest-vn-52364558
2025-10-27 13:57:22,213 - DEBUG - VN ctest-vn-52364558 UUID is 6a31c791-04a3-44f0-b210-00f50a03935b
2025-10-27 13:57:22,330 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13873929:ctest-vn-28091416, 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-13873929:ctest-vn-52364558, 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-27 13:57:22,629 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4dfbb3f7-67a5-4855-bb3b-c6fd0ec126ee', 'name': 'ctest-vn-28091416', 'tenant_id': '3963724d4c5c4543ad30b2c6a80f6e0f', 'project_id': '3963724d4c5c4543ad30b2c6a80f6e0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c8b649d-a53c-4b8e-8014-a9b50d02c201'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13873929', 'ctest-vn-28091416'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13873929', 'ctest-policy-allow-all-45123353']], 'subnet_ipam': [{'subnet_cidr': '70.68.222.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 13:57:22,906 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a31c791-04a3-44f0-b210-00f50a03935b', 'name': 'ctest-vn-52364558', 'tenant_id': '3963724d4c5c4543ad30b2c6a80f6e0f', 'project_id': '3963724d4c5c4543ad30b2c6a80f6e0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e73854e6-b7f1-4372-92a9-a35be50f0fd4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13873929', 'ctest-vn-52364558'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13873929', 'ctest-policy-allow-all-45123353']], 'subnet_ipam': [{'subnet_cidr': '167.175.22.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 13:57:23,069 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 13:57:23,408 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 13:57:23,443 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c8788a6e-59cc-401c-9c15-61ceece4ce05
2025-10-27 13:57:23,455 - DEBUG - Requesting: http://10.0.0.242:8082/project/3963724d-4c5c-4543-ad30-b2c6a80f6e0f
2025-10-27 13:57:23,532 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4dfbb3f7-67a5-4855-bb3b-c6fd0ec126ee
2025-10-27 13:57:23,543 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4dfbb3f7-67a5-4855-bb3b-c6fd0ec126ee
2025-10-27 13:57:23,553 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fb3992b1-3c95-4142-a8a9-484c05d5573c
2025-10-27 13:57:23,562 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fb3992b1-3c95-4142-a8a9-484c05d5573c
2025-10-27 13:57:23,569 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/2242284d-1fbb-4d93-98cc-3d1d46a188b4
2025-10-27 13:57:23,577 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 13:57:23,577 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4dfbb3f7-67a5-4855-bb3b-c6fd0ec126ee
2025-10-27 13:57:23,586 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fb3992b1-3c95-4142-a8a9-484c05d5573c
2025-10-27 13:57:23,601 - INFO - Verified VN network id 12 for VN 4dfbb3f7-67a5-4855-bb3b-c6fd0ec126ee
2025-10-27 13:57:23,601 - INFO - Verifications in API Server for VN ctest-vn-28091416 passed
2025-10-27 13:57:23,601 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4dfbb3f7-67a5-4855-bb3b-c6fd0ec126ee
2025-10-27 13:57:23,611 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fb3992b1-3c95-4142-a8a9-484c05d5573c
2025-10-27 13:57:23,619 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fb3992b1-3c95-4142-a8a9-484c05d5573c
2025-10-27 13:57:23,629 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/2242284d-1fbb-4d93-98cc-3d1d46a188b4
2025-10-27 13:57:23,641 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13873929:ctest-vn-28091416', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13873929', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5619282835252004949', 'uuid-lslong': '13491595898895017710'}, 'enable': 'true', 'created': '2025-10-27T13:57:21', 'last-modified': '2025-10-27T13:57:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035547'}
2025-10-27 13:57:23,647 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 13:57:23,647 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28091416 passed
2025-10-27 13:57:23,648 - DEBUG - ====Verifying policy data for ctest-vn-28091416 in API_Server ======
2025-10-27 13:57:23,648 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 13:57:23,654 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c8788a6e-59cc-401c-9c15-61ceece4ce05
2025-10-27 13:57:23,667 - DEBUG - Requesting: http://10.0.0.242:8082/project/3963724d-4c5c-4543-ad30-b2c6a80f6e0f
2025-10-27 13:57:23,740 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4dfbb3f7-67a5-4855-bb3b-c6fd0ec126ee
2025-10-27 13:57:23,750 - DEBUG - ==>Verifying data for policy with id: ec79bda6-6291-4013-b7b2-cd0f2d8cb1a9, fqn: ['default-domain', 'ctest-TestBasicPolicy-13873929', 'ctest-policy-allow-all-45123353']
2025-10-27 13:57:23,750 - INFO - VN ctest-vn-28091416 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 13:57:23,750 - DEBUG - Verifying the vn in opserver
2025-10-27 13:57:23,750 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13873929:ctest-vn-28091416 virtual network link through opserver 10.0.0.242
2025-10-27 13:57:23,750 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-27 13:57:24,046 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-27 13:57:24,112 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13873929:ctest-vn-28091416', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13873929:ctest-vn-28091416?flat'}
2025-10-27 13:57:24,112 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13873929:ctest-vn-28091416 is found in opserver
2025-10-27 13:57:24,122 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 13:57:24,127 - DEBUG - VRF ids for VN ctest-vn-28091416: {}
2025-10-27 13:57:24,127 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 13:57:24,133 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c8788a6e-59cc-401c-9c15-61ceece4ce05
2025-10-27 13:57:24,143 - DEBUG - Requesting: http://10.0.0.242:8082/project/3963724d-4c5c-4543-ad30-b2c6a80f6e0f
2025-10-27 13:57:24,215 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6a31c791-04a3-44f0-b210-00f50a03935b
2025-10-27 13:57:24,228 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6a31c791-04a3-44f0-b210-00f50a03935b
2025-10-27 13:57:24,239 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/229ddc9a-4c7a-4872-bf0c-8b5f0c2ccf00
2025-10-27 13:57:24,247 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/229ddc9a-4c7a-4872-bf0c-8b5f0c2ccf00
2025-10-27 13:57:24,256 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/e111be3e-048e-4b94-87c1-df551d662351
2025-10-27 13:57:24,264 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 13:57:24,264 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6a31c791-04a3-44f0-b210-00f50a03935b
2025-10-27 13:57:24,274 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/229ddc9a-4c7a-4872-bf0c-8b5f0c2ccf00
2025-10-27 13:57:24,291 - INFO - Verified VN network id 13 for VN 6a31c791-04a3-44f0-b210-00f50a03935b
2025-10-27 13:57:24,291 - INFO - Verifications in API Server for VN ctest-vn-52364558 passed
2025-10-27 13:57:24,291 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6a31c791-04a3-44f0-b210-00f50a03935b
2025-10-27 13:57:24,302 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/229ddc9a-4c7a-4872-bf0c-8b5f0c2ccf00
2025-10-27 13:57:24,311 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/229ddc9a-4c7a-4872-bf0c-8b5f0c2ccf00
2025-10-27 13:57:24,319 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/e111be3e-048e-4b94-87c1-df551d662351
2025-10-27 13:57:24,332 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13873929:ctest-vn-52364558', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13873929', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7652116667541177584', 'uuid-lslong': '12830756390813537115'}, 'enable': 'true', 'created': '2025-10-27T13:57:21', 'last-modified': '2025-10-27T13:57:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.490458'}
2025-10-27 13:57:24,339 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 13:57:24,339 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52364558 passed
2025-10-27 13:57:24,340 - DEBUG - ====Verifying policy data for ctest-vn-52364558 in API_Server ======
2025-10-27 13:57:24,340 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-10-27 13:57:24,346 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c8788a6e-59cc-401c-9c15-61ceece4ce05
2025-10-27 13:57:24,360 - DEBUG - Requesting: http://10.0.0.242:8082/project/3963724d-4c5c-4543-ad30-b2c6a80f6e0f
2025-10-27 13:57:24,433 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6a31c791-04a3-44f0-b210-00f50a03935b
2025-10-27 13:57:24,444 - DEBUG - ==>Verifying data for policy with id: ec79bda6-6291-4013-b7b2-cd0f2d8cb1a9, fqn: ['default-domain', 'ctest-TestBasicPolicy-13873929', 'ctest-policy-allow-all-45123353']
2025-10-27 13:57:24,444 - INFO - VN ctest-vn-52364558 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 13:57:24,444 - DEBUG - Verifying the vn in opserver
2025-10-27 13:57:24,445 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13873929:ctest-vn-52364558 virtual network link through opserver 10.0.0.242
2025-10-27 13:57:24,445 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-10-27 13:57:24,456 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13873929:ctest-vn-52364558', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13873929:ctest-vn-52364558?flat'}
2025-10-27 13:57:24,456 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13873929:ctest-vn-52364558 is found in opserver
2025-10-27 13:57:24,468 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 13:57:24,472 - DEBUG - VRF ids for VN ctest-vn-52364558: {}
2025-10-27 13:57:24,540 - DEBUG - Services list from nova: [