2025-09-18 12:43:20,810 - INFO - Domain Default found not creating
2025-09-18 12:43:20,951 - INFO - Project ctest-TestBasicPolicy-60865284 not found, creating it
2025-09-18 12:43:21,420 - INFO - Created Project:ctest-TestBasicPolicy-60865284, ID : d5b521de-3966-4d1d-b183-946f45f49ded
2025-09-18 12:43:22,764 - INFO - ================================================================================
2025-09-18 12:43:22,764 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-18 12:43:22,764 - 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-18 12:43:23,022 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-18 12:43:23,022 - INFO - Initial checks done. Running the testcase now
2025-09-18 12:43:23,022 - INFO -
2025-09-18 12:43:23,546 - DEBUG - Response for create_network : {'network': {'id': 'f80f8b78-1d75-4d65-b667-b8142747cb43', 'name': 'ctest-vn-28191151', 'tenant_id': 'd5b521de39664d1db183946f45f49ded', 'project_id': 'd5b521de39664d1db183946f45f49ded', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60865284', 'ctest-vn-28191151'], 'port_security_enabled': True, 'description': ''}}
2025-09-18 12:43:23,744 - DEBUG - Response for create_subnet : {'subnet': {'id': '828f7b1d-1f1c-488f-bfc5-3dfeb283b834', 'name': '', 'tenant_id': 'd5b521de39664d1db183946f45f49ded', 'network_id': 'f80f8b78-1d75-4d65-b667-b8142747cb43', 'ip_version': 4, 'cidr': '148.205.80.128/26', 'allocation_pools': [{'start': '148.205.80.130', 'end': '148.205.80.190'}], 'gateway_ip': '148.205.80.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.205.80.130', 'tags': [], 'project_id': 'd5b521de39664d1db183946f45f49ded'}}
2025-09-18 12:43:23,759 - INFO - Created VN ctest-vn-28191151
2025-09-18 12:43:23,810 - DEBUG - VN ctest-vn-28191151 UUID is f80f8b78-1d75-4d65-b667-b8142747cb43
2025-09-18 12:43:24,123 - DEBUG - Response for create_network : {'network': {'id': '041ba727-dfb9-4d92-a71f-265f96e3aaa8', 'name': 'ctest-vn-78611216', 'tenant_id': 'd5b521de39664d1db183946f45f49ded', 'project_id': 'd5b521de39664d1db183946f45f49ded', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60865284', 'ctest-vn-78611216'], 'port_security_enabled': True, 'description': ''}}
2025-09-18 12:43:24,308 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e50a5194-7fe0-4c46-a758-79dbf2788334', 'name': '', 'tenant_id': 'd5b521de39664d1db183946f45f49ded', 'network_id': '041ba727-dfb9-4d92-a71f-265f96e3aaa8', 'ip_version': 4, 'cidr': '37.206.207.64/26', 'allocation_pools': [{'start': '37.206.207.66', 'end': '37.206.207.126'}], 'gateway_ip': '37.206.207.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.206.207.66', 'tags': [], 'project_id': 'd5b521de39664d1db183946f45f49ded'}}
2025-09-18 12:43:24,325 - INFO - Created VN ctest-vn-78611216
2025-09-18 12:43:24,378 - DEBUG - VN ctest-vn-78611216 UUID is 041ba727-dfb9-4d92-a71f-265f96e3aaa8
2025-09-18 12:43:24,526 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60865284:ctest-vn-28191151, 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-60865284:ctest-vn-78611216, 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-18 12:43:24,808 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f80f8b78-1d75-4d65-b667-b8142747cb43', 'name': 'ctest-vn-28191151', 'tenant_id': 'd5b521de39664d1db183946f45f49ded', 'project_id': 'd5b521de39664d1db183946f45f49ded', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['828f7b1d-1f1c-488f-bfc5-3dfeb283b834'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60865284', 'ctest-vn-28191151'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60865284', 'ctest-policy-allow-all-88074792']], 'subnet_ipam': [{'subnet_cidr': '148.205.80.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-18 12:43:25,025 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '041ba727-dfb9-4d92-a71f-265f96e3aaa8', 'name': 'ctest-vn-78611216', 'tenant_id': 'd5b521de39664d1db183946f45f49ded', 'project_id': 'd5b521de39664d1db183946f45f49ded', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e50a5194-7fe0-4c46-a758-79dbf2788334'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60865284', 'ctest-vn-78611216'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60865284', 'ctest-policy-allow-all-88074792']], 'subnet_ipam': [{'subnet_cidr': '37.206.207.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-18 12:43:25,190 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-18 12:43:25,481 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-18 12:43:25,506 - DEBUG - Requesting: http://10.0.0.254:8082/domain/152c17c4-b630-40d8-a714-8de71f26333d
2025-09-18 12:43:25,519 - DEBUG - Requesting: http://10.0.0.254:8082/project/d5b521de-3966-4d1d-b183-946f45f49ded
2025-09-18 12:43:25,584 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f80f8b78-1d75-4d65-b667-b8142747cb43
2025-09-18 12:43:25,593 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f80f8b78-1d75-4d65-b667-b8142747cb43
2025-09-18 12:43:25,601 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/768c4cd3-5e1c-451f-9c5f-8a9c2c879389
2025-09-18 12:43:25,607 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/768c4cd3-5e1c-451f-9c5f-8a9c2c879389
2025-09-18 12:43:25,613 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/70ab8e59-9073-4e6e-b00b-dcb36b2e9cc1
2025-09-18 12:43:25,618 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-18 12:43:25,618 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f80f8b78-1d75-4d65-b667-b8142747cb43
2025-09-18 12:43:25,626 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/768c4cd3-5e1c-451f-9c5f-8a9c2c879389
2025-09-18 12:43:25,637 - INFO - Verified VN network id 12 for VN f80f8b78-1d75-4d65-b667-b8142747cb43
2025-09-18 12:43:25,637 - INFO - Verifications in API Server for VN ctest-vn-28191151 passed
2025-09-18 12:43:25,637 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f80f8b78-1d75-4d65-b667-b8142747cb43
2025-09-18 12:43:25,646 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/768c4cd3-5e1c-451f-9c5f-8a9c2c879389
2025-09-18 12:43:25,651 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/768c4cd3-5e1c-451f-9c5f-8a9c2c879389
2025-09-18 12:43:25,657 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/70ab8e59-9073-4e6e-b00b-dcb36b2e9cc1
2025-09-18 12:43:25,667 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60865284:ctest-vn-28191151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60865284', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17874658794063351141', 'uuid-lslong': '13143676434201955139'}, 'enable': 'true', 'created': '2025-09-18T12:43:23', 'last-modified': '2025-09-18T12:43:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.876841'}
2025-09-18 12:43:25,673 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-18 12:43:25,673 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28191151 passed
2025-09-18 12:43:25,673 - DEBUG - ====Verifying policy data for ctest-vn-28191151 in API_Server ======
2025-09-18 12:43:25,673 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-18 12:43:25,678 - DEBUG - Requesting: http://10.0.0.254:8082/domain/152c17c4-b630-40d8-a714-8de71f26333d
2025-09-18 12:43:25,686 - DEBUG - Requesting: http://10.0.0.254:8082/project/d5b521de-3966-4d1d-b183-946f45f49ded
2025-09-18 12:43:25,750 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f80f8b78-1d75-4d65-b667-b8142747cb43
2025-09-18 12:43:25,757 - DEBUG - ==>Verifying data for policy with id: b26647d7-ae58-4c0b-b712-81cf84087bab, fqn: ['default-domain', 'ctest-TestBasicPolicy-60865284', 'ctest-policy-allow-all-88074792']
2025-09-18 12:43:25,757 - INFO - VN ctest-vn-28191151 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-18 12:43:25,758 - DEBUG - Verifying the vn in opserver
2025-09-18 12:43:25,758 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60865284:ctest-vn-28191151 virtual network link through opserver 10.0.0.254
2025-09-18 12:43:25,758 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-18 12:43:26,047 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-18 12:43:26,095 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60865284:ctest-vn-28191151', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60865284:ctest-vn-28191151?flat'}
2025-09-18 12:43:26,095 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60865284:ctest-vn-28191151 is found in opserver
2025-09-18 12:43:26,104 - DEBUG - Do not have enough data to verify VN in agent
2025-09-18 12:43:26,108 - DEBUG - VRF ids for VN ctest-vn-28191151: {}
2025-09-18 12:43:26,108 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-18 12:43:26,112 - DEBUG - Requesting: http://10.0.0.254:8082/domain/152c17c4-b630-40d8-a714-8de71f26333d
2025-09-18 12:43:26,122 - DEBUG - Requesting: http://10.0.0.254:8082/project/d5b521de-3966-4d1d-b183-946f45f49ded
2025-09-18 12:43:26,188 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/041ba727-dfb9-4d92-a71f-265f96e3aaa8
2025-09-18 12:43:26,197 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/041ba727-dfb9-4d92-a71f-265f96e3aaa8
2025-09-18 12:43:26,205 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f1ca954e-d0a5-4665-bd6e-703af80ee910
2025-09-18 12:43:26,211 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f1ca954e-d0a5-4665-bd6e-703af80ee910
2025-09-18 12:43:26,217 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a6fdc5ee-caca-4dbe-a196-cbf90de54246
2025-09-18 12:43:26,222 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-18 12:43:26,222 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/041ba727-dfb9-4d92-a71f-265f96e3aaa8
2025-09-18 12:43:26,230 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f1ca954e-d0a5-4665-bd6e-703af80ee910
2025-09-18 12:43:26,243 - INFO - Verified VN network id 13 for VN 041ba727-dfb9-4d92-a71f-265f96e3aaa8
2025-09-18 12:43:26,243 - INFO - Verifications in API Server for VN ctest-vn-78611216 passed
2025-09-18 12:43:26,243 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/041ba727-dfb9-4d92-a71f-265f96e3aaa8
2025-09-18 12:43:26,251 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f1ca954e-d0a5-4665-bd6e-703af80ee910
2025-09-18 12:43:26,257 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f1ca954e-d0a5-4665-bd6e-703af80ee910
2025-09-18 12:43:26,264 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a6fdc5ee-caca-4dbe-a196-cbf90de54246
2025-09-18 12:43:26,273 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60865284:ctest-vn-78611216', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60865284', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '296013990221925778', 'uuid-lslong': '12042386120607247016'}, 'enable': 'true', 'created': '2025-09-18T12:43:24', 'last-modified': '2025-09-18T12:43:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.266991'}
2025-09-18 12:43:26,278 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-18 12:43:26,278 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78611216 passed
2025-09-18 12:43:26,279 - DEBUG - ====Verifying policy data for ctest-vn-78611216 in API_Server ======
2025-09-18 12:43:26,279 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-18 12:43:26,283 - DEBUG - Requesting: http://10.0.0.254:8082/domain/152c17c4-b630-40d8-a714-8de71f26333d
2025-09-18 12:43:26,292 - DEBUG - Requesting: http://10.0.0.254:8082/project/d5b521de-3966-4d1d-b183-946f45f49ded
2025-09-18 12:43:26,357 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/041ba727-dfb9-4d92-a71f-265f96e3aaa8
2025-09-18 12:43:26,365 - DEBUG - ==>Verifying data for policy with id: b26647d7-ae58-4c0b-b712-81cf84087bab, fqn: ['default-domain', 'ctest-TestBasicPolicy-60865284', 'ctest-policy-allow-all-88074792']
2025-09-18 12:43:26,365 - INFO - VN ctest-vn-78611216 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-18 12:43:26,365 - DEBUG - Verifying the vn in opserver
2025-09-18 12:43:26,365 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60865284:ctest-vn-78611216 virtual network link through opserver 10.0.0.254
2025-09-18 12:43:26,365 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-18 12:43:26,373 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60865284:ctest-vn-78611216', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60865284:ctest-vn-78611216?flat'}
2025-09-18 12:43:26,373 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60865284:ctest-vn-78611216 is found in opserver
2025-09-18 12:43:26,381 - DEBUG - Do not have enough data to verify VN in agent
2025-09-18 12:43:26,384 - DEBUG - VRF ids for VN ctest-vn-78611216: {}
2025-09-18 12:43:26,435 - DEBUG - Services list from nova: [