2025-09-22 15:27:51,158 - INFO - Domain Default found not creating
2025-09-22 15:27:51,317 - INFO - Project ctest-TestBasicPolicy-74746488 not found, creating it
2025-09-22 15:27:51,803 - INFO - Created Project:ctest-TestBasicPolicy-74746488, ID : 6cbec506-7eab-4f24-ae02-0fcba9a92898
2025-09-22 15:27:53,270 - INFO - ================================================================================
2025-09-22 15:27:53,270 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-22 15:27:53,270 - 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-22 15:27:53,525 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-09-22 15:27:53,525 - INFO - Initial checks done. Running the testcase now
2025-09-22 15:27:53,525 - INFO -
2025-09-22 15:27:54,104 - DEBUG - Response for create_network : {'network': {'id': '8ef78ea6-ef25-47a5-88c6-edde455120be', 'name': 'ctest-vn-68384754', 'tenant_id': '6cbec5067eab4f24ae020fcba9a92898', 'project_id': '6cbec5067eab4f24ae020fcba9a92898', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74746488', 'ctest-vn-68384754'], 'port_security_enabled': True, 'description': ''}}
2025-09-22 15:27:54,383 - DEBUG - Response for create_subnet : {'subnet': {'id': '3694530f-0efa-489b-b564-40c452a15356', 'name': '', 'tenant_id': '6cbec5067eab4f24ae020fcba9a92898', 'network_id': '8ef78ea6-ef25-47a5-88c6-edde455120be', 'ip_version': 4, 'cidr': '200.146.206.64/26', 'allocation_pools': [{'start': '200.146.206.66', 'end': '200.146.206.126'}], 'gateway_ip': '200.146.206.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.146.206.66', 'tags': [], 'project_id': '6cbec5067eab4f24ae020fcba9a92898'}}
2025-09-22 15:27:54,410 - INFO - Created VN ctest-vn-68384754
2025-09-22 15:27:54,466 - DEBUG - VN ctest-vn-68384754 UUID is 8ef78ea6-ef25-47a5-88c6-edde455120be
2025-09-22 15:27:54,824 - DEBUG - Response for create_network : {'network': {'id': 'e4da7262-e5e3-4cd2-bb51-cfd1b6fb28d9', 'name': 'ctest-vn-65885822', 'tenant_id': '6cbec5067eab4f24ae020fcba9a92898', 'project_id': '6cbec5067eab4f24ae020fcba9a92898', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74746488', 'ctest-vn-65885822'], 'port_security_enabled': True, 'description': ''}}
2025-09-22 15:27:55,054 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc0899c7-86d7-42ef-bc92-f20fe65ea0e0', 'name': '', 'tenant_id': '6cbec5067eab4f24ae020fcba9a92898', 'network_id': 'e4da7262-e5e3-4cd2-bb51-cfd1b6fb28d9', 'ip_version': 4, 'cidr': '80.216.131.0/26', 'allocation_pools': [{'start': '80.216.131.2', 'end': '80.216.131.62'}], 'gateway_ip': '80.216.131.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.216.131.2', 'tags': [], 'project_id': '6cbec5067eab4f24ae020fcba9a92898'}}
2025-09-22 15:27:55,074 - INFO - Created VN ctest-vn-65885822
2025-09-22 15:27:55,130 - DEBUG - VN ctest-vn-65885822 UUID is e4da7262-e5e3-4cd2-bb51-cfd1b6fb28d9
2025-09-22 15:27:55,248 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74746488:ctest-vn-68384754, 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-74746488:ctest-vn-65885822, 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-22 15:27:55,567 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8ef78ea6-ef25-47a5-88c6-edde455120be', 'name': 'ctest-vn-68384754', 'tenant_id': '6cbec5067eab4f24ae020fcba9a92898', 'project_id': '6cbec5067eab4f24ae020fcba9a92898', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3694530f-0efa-489b-b564-40c452a15356'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74746488', 'ctest-vn-68384754'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74746488', 'ctest-policy-allow-all-17490507']], 'subnet_ipam': [{'subnet_cidr': '200.146.206.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-22 15:27:55,884 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e4da7262-e5e3-4cd2-bb51-cfd1b6fb28d9', 'name': 'ctest-vn-65885822', 'tenant_id': '6cbec5067eab4f24ae020fcba9a92898', 'project_id': '6cbec5067eab4f24ae020fcba9a92898', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc0899c7-86d7-42ef-bc92-f20fe65ea0e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74746488', 'ctest-vn-65885822'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74746488', 'ctest-policy-allow-all-17490507']], 'subnet_ipam': [{'subnet_cidr': '80.216.131.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-22 15:27:56,055 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-22 15:27:56,370 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-22 15:27:56,407 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1db0b9d4-8eaa-4d63-b12b-e969ad445b15
2025-09-22 15:27:56,420 - DEBUG - Requesting: http://10.0.0.50:8082/project/6cbec506-7eab-4f24-ae02-0fcba9a92898
2025-09-22 15:27:56,488 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8ef78ea6-ef25-47a5-88c6-edde455120be
2025-09-22 15:27:56,498 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8ef78ea6-ef25-47a5-88c6-edde455120be
2025-09-22 15:27:56,509 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/75733b59-1bb7-4074-9d03-e62b6ff24dc0
2025-09-22 15:27:56,521 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/75733b59-1bb7-4074-9d03-e62b6ff24dc0
2025-09-22 15:27:56,532 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/30a6611d-103b-4534-9cc2-e588735f5f86
2025-09-22 15:27:56,540 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-22 15:27:56,540 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8ef78ea6-ef25-47a5-88c6-edde455120be
2025-09-22 15:27:56,550 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/75733b59-1bb7-4074-9d03-e62b6ff24dc0
2025-09-22 15:27:56,567 - INFO - Verified VN network id 11 for VN 8ef78ea6-ef25-47a5-88c6-edde455120be
2025-09-22 15:27:56,567 - INFO - Verifications in API Server for VN ctest-vn-68384754 passed
2025-09-22 15:27:56,567 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8ef78ea6-ef25-47a5-88c6-edde455120be
2025-09-22 15:27:56,579 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/75733b59-1bb7-4074-9d03-e62b6ff24dc0
2025-09-22 15:27:56,589 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/75733b59-1bb7-4074-9d03-e62b6ff24dc0
2025-09-22 15:27:56,597 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/30a6611d-103b-4534-9cc2-e588735f5f86
2025-09-22 15:27:56,612 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74746488:ctest-vn-68384754', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74746488', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10301859520261212069', 'uuid-lslong': '9855826373448376510'}, 'enable': 'true', 'created': '2025-09-22T15:27:54', 'last-modified': '2025-09-22T15:27:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.067836'}
2025-09-22 15:27:56,618 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-22 15:27:56,618 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68384754 passed
2025-09-22 15:27:56,618 - DEBUG - ====Verifying policy data for ctest-vn-68384754 in API_Server ======
2025-09-22 15:27:56,619 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-22 15:27:56,626 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1db0b9d4-8eaa-4d63-b12b-e969ad445b15
2025-09-22 15:27:56,641 - DEBUG - Requesting: http://10.0.0.50:8082/project/6cbec506-7eab-4f24-ae02-0fcba9a92898
2025-09-22 15:27:56,725 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8ef78ea6-ef25-47a5-88c6-edde455120be
2025-09-22 15:27:56,735 - DEBUG - ==>Verifying data for policy with id: c965096f-ce08-4115-bca4-ff0a3ee7fa93, fqn: ['default-domain', 'ctest-TestBasicPolicy-74746488', 'ctest-policy-allow-all-17490507']
2025-09-22 15:27:56,735 - INFO - VN ctest-vn-68384754 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-22 15:27:56,735 - DEBUG - Verifying the vn in opserver
2025-09-22 15:27:56,735 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74746488:ctest-vn-68384754 virtual network link through opserver 10.0.0.50
2025-09-22 15:27:56,735 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-22 15:27:57,033 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-22 15:27:57,097 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74746488:ctest-vn-68384754', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74746488:ctest-vn-68384754?flat'}
2025-09-22 15:27:57,097 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74746488:ctest-vn-68384754 is found in opserver
2025-09-22 15:27:57,109 - DEBUG - Do not have enough data to verify VN in agent
2025-09-22 15:27:57,116 - DEBUG - VRF ids for VN ctest-vn-68384754: {}
2025-09-22 15:27:57,117 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-22 15:27:57,124 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1db0b9d4-8eaa-4d63-b12b-e969ad445b15
2025-09-22 15:27:57,136 - DEBUG - Requesting: http://10.0.0.50:8082/project/6cbec506-7eab-4f24-ae02-0fcba9a92898
2025-09-22 15:27:57,216 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e4da7262-e5e3-4cd2-bb51-cfd1b6fb28d9
2025-09-22 15:27:57,231 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e4da7262-e5e3-4cd2-bb51-cfd1b6fb28d9
2025-09-22 15:27:57,247 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50d90f8b-73b3-4c14-b6a3-7968b2ec0867
2025-09-22 15:27:57,258 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50d90f8b-73b3-4c14-b6a3-7968b2ec0867
2025-09-22 15:27:57,266 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4ce60b72-f183-4e1d-84b0-c29a478f5e9e
2025-09-22 15:27:57,273 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-22 15:27:57,273 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e4da7262-e5e3-4cd2-bb51-cfd1b6fb28d9
2025-09-22 15:27:57,283 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50d90f8b-73b3-4c14-b6a3-7968b2ec0867
2025-09-22 15:27:57,297 - INFO - Verified VN network id 12 for VN e4da7262-e5e3-4cd2-bb51-cfd1b6fb28d9
2025-09-22 15:27:57,298 - INFO - Verifications in API Server for VN ctest-vn-65885822 passed
2025-09-22 15:27:57,298 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e4da7262-e5e3-4cd2-bb51-cfd1b6fb28d9
2025-09-22 15:27:57,310 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50d90f8b-73b3-4c14-b6a3-7968b2ec0867
2025-09-22 15:27:57,317 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50d90f8b-73b3-4c14-b6a3-7968b2ec0867
2025-09-22 15:27:57,325 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4ce60b72-f183-4e1d-84b0-c29a478f5e9e
2025-09-22 15:27:57,337 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74746488:ctest-vn-65885822', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74746488', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16490618754659732690', 'uuid-lslong': '13497798057831114969'}, 'enable': 'true', 'created': '2025-09-22T15:27:54', 'last-modified': '2025-09-22T15:27:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.531495'}
2025-09-22 15:27:57,343 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-22 15:27:57,343 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65885822 passed
2025-09-22 15:27:57,344 - DEBUG - ====Verifying policy data for ctest-vn-65885822 in API_Server ======
2025-09-22 15:27:57,344 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-22 15:27:57,350 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1db0b9d4-8eaa-4d63-b12b-e969ad445b15
2025-09-22 15:27:57,362 - DEBUG - Requesting: http://10.0.0.50:8082/project/6cbec506-7eab-4f24-ae02-0fcba9a92898
2025-09-22 15:27:57,448 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e4da7262-e5e3-4cd2-bb51-cfd1b6fb28d9
2025-09-22 15:27:57,459 - DEBUG - ==>Verifying data for policy with id: c965096f-ce08-4115-bca4-ff0a3ee7fa93, fqn: ['default-domain', 'ctest-TestBasicPolicy-74746488', 'ctest-policy-allow-all-17490507']
2025-09-22 15:27:57,459 - INFO - VN ctest-vn-65885822 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-22 15:27:57,459 - DEBUG - Verifying the vn in opserver
2025-09-22 15:27:57,459 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74746488:ctest-vn-65885822 virtual network link through opserver 10.0.0.50
2025-09-22 15:27:57,459 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-22 15:27:57,475 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74746488:ctest-vn-65885822', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74746488:ctest-vn-65885822?flat'}
2025-09-22 15:27:57,475 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74746488:ctest-vn-65885822 is found in opserver
2025-09-22 15:27:57,493 - DEBUG - Do not have enough data to verify VN in agent
2025-09-22 15:27:57,499 - DEBUG - VRF ids for VN ctest-vn-65885822: {}
2025-09-22 15:27:57,576 - DEBUG - Services list from nova: [