2025-10-28 08:55:43,562 - INFO - Reading existing Domain with UUID 3e60116d-6a4a-4c62-bccd-443e6f5e662f
2025-10-28 08:55:43,574 - INFO - Using existing domain ['admin_domain'](3e60116d-6a4a-4c62-bccd-443e6f5e662f)
2025-10-28 08:55:43,773 - INFO - Project ctest-TestBasicPolicy-63597536 not found, creating it
2025-10-28 08:55:44,250 - INFO - Created Project:ctest-TestBasicPolicy-63597536, ID : e1d3eb0c-a456-4706-88b5-e22f6ce7dff8
2025-10-28 08:55:46,067 - INFO - ================================================================================
2025-10-28 08:55:46,067 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-28 08:55:46,067 - 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-28 08:55:46,462 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.0.0.38': '0'}} with
2025-10-28 08:55:46,462 - INFO - Initial checks done. Running the testcase now
2025-10-28 08:55:46,462 - INFO -
2025-10-28 08:55:47,253 - DEBUG - Response for create_network : {'network': {'id': '4a2c58be-3804-451a-9d37-89ca2c47a4f0', 'name': 'ctest-vn-29677455', 'tenant_id': 'e1d3eb0ca456470688b5e22f6ce7dff8', 'project_id': 'e1d3eb0ca456470688b5e22f6ce7dff8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-63597536', 'ctest-vn-29677455'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-28 08:55:47,525 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e15b5fcc-b7bd-4d4c-a72f-a94dc03f3659', 'name': '', 'tenant_id': 'e1d3eb0ca456470688b5e22f6ce7dff8', 'network_id': '4a2c58be-3804-451a-9d37-89ca2c47a4f0', 'ip_version': 4, 'cidr': '87.74.83.0/26', 'allocation_pools': [{'start': '87.74.83.2', 'end': '87.74.83.62'}], 'gateway_ip': '87.74.83.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-28T08:55:47.422848', 'updated_at': '2025-10-28T08:55:47.422848', 'dns_server_address': '87.74.83.2', 'tags': [], 'project_id': 'e1d3eb0ca456470688b5e22f6ce7dff8'}}
2025-10-28 08:55:47,590 - INFO - Created VN ctest-vn-29677455
2025-10-28 08:55:47,644 - DEBUG - VN ctest-vn-29677455 UUID is 4a2c58be-3804-451a-9d37-89ca2c47a4f0
2025-10-28 08:55:48,157 - DEBUG - Response for create_network : {'network': {'id': '8ab43bb2-c206-4eed-ab21-c263ce9d3f78', 'name': 'ctest-vn-47828702', 'tenant_id': 'e1d3eb0ca456470688b5e22f6ce7dff8', 'project_id': 'e1d3eb0ca456470688b5e22f6ce7dff8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-63597536', 'ctest-vn-47828702'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-28 08:55:48,409 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f26451c1-5961-43c8-9bbd-07232fc7ac38', 'name': '', 'tenant_id': 'e1d3eb0ca456470688b5e22f6ce7dff8', 'network_id': '8ab43bb2-c206-4eed-ab21-c263ce9d3f78', 'ip_version': 4, 'cidr': '193.201.176.128/26', 'allocation_pools': [{'start': '193.201.176.130', 'end': '193.201.176.190'}], 'gateway_ip': '193.201.176.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-28T08:55:48.314236', 'updated_at': '2025-10-28T08:55:48.314236', 'dns_server_address': '193.201.176.130', 'tags': [], 'project_id': 'e1d3eb0ca456470688b5e22f6ce7dff8'}}
2025-10-28 08:55:48,478 - INFO - Created VN ctest-vn-47828702
2025-10-28 08:55:48,532 - DEBUG - VN ctest-vn-47828702 UUID is 8ab43bb2-c206-4eed-ab21-c263ce9d3f78
2025-10-28 08:55:48,760 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-63597536:ctest-vn-29677455, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-63597536:ctest-vn-47828702, 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-28 08:55:49,172 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a2c58be-3804-451a-9d37-89ca2c47a4f0', 'name': 'ctest-vn-29677455', 'tenant_id': 'e1d3eb0ca456470688b5e22f6ce7dff8', 'project_id': 'e1d3eb0ca456470688b5e22f6ce7dff8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e15b5fcc-b7bd-4d4c-a72f-a94dc03f3659'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-63597536', 'ctest-vn-29677455'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-63597536', 'ctest-policy-allow-all-80846161']], 'subnet_ipam': [{'subnet_cidr': '87.74.83.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-28T08:55:47.176610', 'updated_at': '2025-10-28T08:55:47.437633'}}
2025-10-28 08:55:49,564 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8ab43bb2-c206-4eed-ab21-c263ce9d3f78', 'name': 'ctest-vn-47828702', 'tenant_id': 'e1d3eb0ca456470688b5e22f6ce7dff8', 'project_id': 'e1d3eb0ca456470688b5e22f6ce7dff8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f26451c1-5961-43c8-9bbd-07232fc7ac38'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-63597536', 'ctest-vn-47828702'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-63597536', 'ctest-policy-allow-all-80846161']], 'subnet_ipam': [{'subnet_cidr': '193.201.176.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-28T08:55:48.078999', 'updated_at': '2025-10-28T08:55:48.325901'}}
2025-10-28 08:55:49,748 - DEBUG - Requesting: https://10.0.0.38:8082/domains
2025-10-28 08:55:50,110 - DEBUG - Requesting: https://10.0.0.38:8082/domains
2025-10-28 08:55:50,193 - DEBUG - Requesting: https://10.0.0.38:8082/domain/3e60116d-6a4a-4c62-bccd-443e6f5e662f
2025-10-28 08:55:50,250 - DEBUG - Requesting: https://10.0.0.38:8082/project/e1d3eb0c-a456-4706-88b5-e22f6ce7dff8
2025-10-28 08:55:50,329 - DEBUG - Requesting: https://10.0.0.38:8082/virtual-network/4a2c58be-3804-451a-9d37-89ca2c47a4f0
2025-10-28 08:55:50,387 - DEBUG - Requesting: https://10.0.0.38:8082/virtual-network/4a2c58be-3804-451a-9d37-89ca2c47a4f0
2025-10-28 08:55:50,442 - DEBUG - Requesting: https://10.0.0.38:8082/routing-instance/fdb1f4b1-f2b4-46e9-bc4d-40b5951aec3c
2025-10-28 08:55:50,497 - DEBUG - Requesting: https://10.0.0.38:8082/routing-instance/fdb1f4b1-f2b4-46e9-bc4d-40b5951aec3c
2025-10-28 08:55:50,549 - DEBUG - Requesting: https://10.0.0.38:8082/route-target/1439051a-f007-4ffb-a2c7-1a55edbbea1d
2025-10-28 08:55:50,601 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-28 08:55:50,601 - DEBUG - Requesting: https://10.0.0.38:8082/virtual-network/4a2c58be-3804-451a-9d37-89ca2c47a4f0
2025-10-28 08:55:50,658 - DEBUG - Requesting: https://10.0.0.38:8082/routing-instance/fdb1f4b1-f2b4-46e9-bc4d-40b5951aec3c
2025-10-28 08:55:50,723 - INFO - Verified VN network id 11 for VN 4a2c58be-3804-451a-9d37-89ca2c47a4f0
2025-10-28 08:55:50,723 - INFO - Verifications in API Server for VN ctest-vn-29677455 passed
2025-10-28 08:55:50,723 - DEBUG - Requesting: https://10.0.0.38:8082/virtual-network/4a2c58be-3804-451a-9d37-89ca2c47a4f0
2025-10-28 08:55:50,778 - DEBUG - Requesting: https://10.0.0.38:8082/routing-instance/fdb1f4b1-f2b4-46e9-bc4d-40b5951aec3c
2025-10-28 08:55:50,829 - DEBUG - Requesting: https://10.0.0.38:8082/routing-instance/fdb1f4b1-f2b4-46e9-bc4d-40b5951aec3c
2025-10-28 08:55:50,885 - DEBUG - Requesting: https://10.0.0.38:8082/route-target/1439051a-f007-4ffb-a2c7-1a55edbbea1d
2025-10-28 08:55:50,990 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-63597536:ctest-vn-29677455', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63597536', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5344744431788770586', 'uuid-lslong': '11328674889093063920'}, 'enable': 'true', 'created': '2025-10-28T08:55:47', 'last-modified': '2025-10-28T08:55:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.845090'}
2025-10-28 08:55:51,044 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-28 08:55:51,045 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29677455 passed
2025-10-28 08:55:51,045 - DEBUG - ====Verifying policy data for ctest-vn-29677455 in API_Server ======
2025-10-28 08:55:51,045 - DEBUG - Requesting: https://10.0.0.38:8082/domains
2025-10-28 08:55:51,097 - DEBUG - Requesting: https://10.0.0.38:8082/domain/3e60116d-6a4a-4c62-bccd-443e6f5e662f
2025-10-28 08:55:51,159 - DEBUG - Requesting: https://10.0.0.38:8082/project/e1d3eb0c-a456-4706-88b5-e22f6ce7dff8
2025-10-28 08:55:51,237 - DEBUG - Requesting: https://10.0.0.38:8082/virtual-network/4a2c58be-3804-451a-9d37-89ca2c47a4f0
2025-10-28 08:55:51,294 - DEBUG - ==>Verifying data for policy with id: c67ff618-48ec-47f8-a558-9d6447cc7df7, fqn: ['admin_domain', 'ctest-TestBasicPolicy-63597536', 'ctest-policy-allow-all-80846161']
2025-10-28 08:55:51,294 - INFO - VN ctest-vn-29677455 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-28 08:55:51,294 - DEBUG - Verifying the vn in opserver
2025-10-28 08:55:51,294 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-63597536:ctest-vn-29677455 virtual network link through opserver 10.0.0.38
2025-10-28 08:55:51,294 - DEBUG - Requesting: https://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-28 08:55:51,656 - DEBUG - Requesting: https://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-28 08:55:51,789 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-63597536:ctest-vn-29677455', 'href': 'https://10.0.0.38:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-63597536:ctest-vn-29677455?flat'}
2025-10-28 08:55:51,789 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-63597536:ctest-vn-29677455 is found in opserver
2025-10-28 08:55:51,889 - DEBUG - Do not have enough data to verify VN in agent
2025-10-28 08:55:51,941 - DEBUG - VRF ids for VN ctest-vn-29677455: {}
2025-10-28 08:55:51,941 - DEBUG - Requesting: https://10.0.0.38:8082/domains
2025-10-28 08:55:51,993 - DEBUG - Requesting: https://10.0.0.38:8082/domain/3e60116d-6a4a-4c62-bccd-443e6f5e662f
2025-10-28 08:55:52,053 - DEBUG - Requesting: https://10.0.0.38:8082/project/e1d3eb0c-a456-4706-88b5-e22f6ce7dff8
2025-10-28 08:55:52,130 - DEBUG - Requesting: https://10.0.0.38:8082/virtual-network/8ab43bb2-c206-4eed-ab21-c263ce9d3f78
2025-10-28 08:55:52,191 - DEBUG - Requesting: https://10.0.0.38:8082/virtual-network/8ab43bb2-c206-4eed-ab21-c263ce9d3f78
2025-10-28 08:55:52,246 - DEBUG - Requesting: https://10.0.0.38:8082/routing-instance/8f457336-91bf-472a-ba9c-4be32fa5dd7d
2025-10-28 08:55:52,305 - DEBUG - Requesting: https://10.0.0.38:8082/routing-instance/8f457336-91bf-472a-ba9c-4be32fa5dd7d
2025-10-28 08:55:52,362 - DEBUG - Requesting: https://10.0.0.38:8082/route-target/0d44a149-0821-4f82-bcb9-39d22ccf1e54
2025-10-28 08:55:52,417 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-28 08:55:52,417 - DEBUG - Requesting: https://10.0.0.38:8082/virtual-network/8ab43bb2-c206-4eed-ab21-c263ce9d3f78
2025-10-28 08:55:52,475 - DEBUG - Requesting: https://10.0.0.38:8082/routing-instance/8f457336-91bf-472a-ba9c-4be32fa5dd7d
2025-10-28 08:55:52,539 - INFO - Verified VN network id 12 for VN 8ab43bb2-c206-4eed-ab21-c263ce9d3f78
2025-10-28 08:55:52,539 - INFO - Verifications in API Server for VN ctest-vn-47828702 passed
2025-10-28 08:55:52,539 - DEBUG - Requesting: https://10.0.0.38:8082/virtual-network/8ab43bb2-c206-4eed-ab21-c263ce9d3f78
2025-10-28 08:55:52,598 - DEBUG - Requesting: https://10.0.0.38:8082/routing-instance/8f457336-91bf-472a-ba9c-4be32fa5dd7d
2025-10-28 08:55:52,653 - DEBUG - Requesting: https://10.0.0.38:8082/routing-instance/8f457336-91bf-472a-ba9c-4be32fa5dd7d
2025-10-28 08:55:52,710 - DEBUG - Requesting: https://10.0.0.38:8082/route-target/0d44a149-0821-4f82-bcb9-39d22ccf1e54
2025-10-28 08:55:52,817 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-63597536:ctest-vn-47828702', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63597536', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9994679111987384045', 'uuid-lslong': '12331350988641091448'}, 'enable': 'true', 'created': '2025-10-28T08:55:48', 'last-modified': '2025-10-28T08:55:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.323684'}
2025-10-28 08:55:52,870 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-28 08:55:52,870 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47828702 passed
2025-10-28 08:55:52,870 - DEBUG - ====Verifying policy data for ctest-vn-47828702 in API_Server ======
2025-10-28 08:55:52,870 - DEBUG - Requesting: https://10.0.0.38:8082/domains
2025-10-28 08:55:52,925 - DEBUG - Requesting: https://10.0.0.38:8082/domain/3e60116d-6a4a-4c62-bccd-443e6f5e662f
2025-10-28 08:55:52,981 - DEBUG - Requesting: https://10.0.0.38:8082/project/e1d3eb0c-a456-4706-88b5-e22f6ce7dff8
2025-10-28 08:55:53,074 - DEBUG - Requesting: https://10.0.0.38:8082/virtual-network/8ab43bb2-c206-4eed-ab21-c263ce9d3f78
2025-10-28 08:55:53,130 - DEBUG - ==>Verifying data for policy with id: c67ff618-48ec-47f8-a558-9d6447cc7df7, fqn: ['admin_domain', 'ctest-TestBasicPolicy-63597536', 'ctest-policy-allow-all-80846161']
2025-10-28 08:55:53,130 - INFO - VN ctest-vn-47828702 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-28 08:55:53,130 - DEBUG - Verifying the vn in opserver
2025-10-28 08:55:53,130 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-63597536:ctest-vn-47828702 virtual network link through opserver 10.0.0.38
2025-10-28 08:55:53,130 - DEBUG - Requesting: https://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-28 08:55:53,185 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-63597536:ctest-vn-47828702', 'href': 'https://10.0.0.38:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-63597536:ctest-vn-47828702?flat'}
2025-10-28 08:55:53,185 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-63597536:ctest-vn-47828702 is found in opserver
2025-10-28 08:55:53,285 - DEBUG - Do not have enough data to verify VN in agent
2025-10-28 08:55:53,337 - DEBUG - VRF ids for VN ctest-vn-47828702: {}
2025-10-28 08:55:53,407 - DEBUG - Services list from nova: [