2025-08-18 09:44:24,104 - INFO - Domain Default found not creating 2025-08-18 09:44:24,223 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-52707183 not found, creating it 2025-08-18 09:44:24,648 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-52707183, ID : cdcf4e57-5dc2-4ecf-9df2-ffc82eb69f9a 2025-08-18 09:44:25,944 - INFO - ================================================================================ 2025-08-18 09:44:25,944 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-18 09:44:26,191 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.0.0.48': '0'}} with 2025-08-18 09:44:26,192 - INFO - Initial checks done. Running the testcase now 2025-08-18 09:44:26,192 - INFO - 2025-08-18 09:44:26,192 - INFO - ================================================================================ 2025-08-18 09:44:26,192 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-18 09:44:26,192 - INFO - TEST DESCRIPTION : This tests the following scenarios. 1. Test to validate that policy removal will fail when it referenced with VN. 2. validate vn_policy data in api-s against quantum-vn data, when created and unbind policy from VN thru quantum APIs. 3. validate policy data in api-s against quantum-policy data, when created and deleted thru quantum APIs. 2025-08-18 09:44:26,475 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.0.0.48': '0'}} with 2025-08-18 09:44:26,475 - INFO - Initial checks done. Running the testcase now 2025-08-18 09:44:26,475 - INFO - 2025-08-18 09:44:26,807 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52707183:ctest-vn4-84245842, 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-TestBasicPolicyNegativeIpv4v6-52707183:ctest-vn4-84245842, 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, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52707183:ctest-vn4-84245842, 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-TestBasicPolicyNegativeIpv4v6-52707183:ctest-vn4-84245842, 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-08-18 09:44:27,292 - DEBUG - Response for create_network : {'network': {'id': 'dbf8f27d-6328-4d42-84c0-90258d44154d', 'name': 'ctest-vn4-84245842', 'tenant_id': 'cdcf4e575dc24ecf9df2ffc82eb69f9a', 'project_id': 'cdcf4e575dc24ecf9df2ffc82eb69f9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52707183', 'ctest-vn4-84245842'], 'port_security_enabled': True, 'description': ''}} 2025-08-18 09:44:27,507 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f29a98c8-cff2-4e41-8c17-286ed5e1c9a2', 'name': '', 'tenant_id': 'cdcf4e575dc24ecf9df2ffc82eb69f9a', 'network_id': 'dbf8f27d-6328-4d42-84c0-90258d44154d', 'ip_version': 4, 'cidr': '34.96.203.192/26', 'allocation_pools': [{'start': '34.96.203.194', 'end': '34.96.203.254'}], 'gateway_ip': '34.96.203.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.96.203.194', 'tags': [], 'project_id': 'cdcf4e575dc24ecf9df2ffc82eb69f9a'}} 2025-08-18 09:44:27,682 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc1a3ae9-98f5-4f9d-8b45-be2d770f6fa4', 'name': '', 'tenant_id': 'cdcf4e575dc24ecf9df2ffc82eb69f9a', 'network_id': 'dbf8f27d-6328-4d42-84c0-90258d44154d', 'ip_version': 6, 'cidr': '346d:b54e:2369:23cc:9b3a:aba1::/96', 'allocation_pools': [{'start': '346d:b54e:2369:23cc:9b3a:aba1:0:2', 'end': '346d:b54e:2369:23cc:9b3a:aba1:ffff:fffe'}], 'gateway_ip': '346d:b54e:2369:23cc:9b3a:aba1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '346d:b54e:2369:23cc:9b3a:aba1:0:2', 'tags': [], 'project_id': 'cdcf4e575dc24ecf9df2ffc82eb69f9a'}} 2025-08-18 09:44:27,705 - INFO - Created VN ctest-vn4-84245842 2025-08-18 09:44:27,755 - DEBUG - VN ctest-vn4-84245842 UUID is dbf8f27d-6328-4d42-84c0-90258d44154d 2025-08-18 09:44:27,945 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dbf8f27d-6328-4d42-84c0-90258d44154d', 'name': 'ctest-vn4-84245842', 'tenant_id': 'cdcf4e575dc24ecf9df2ffc82eb69f9a', 'project_id': 'cdcf4e575dc24ecf9df2ffc82eb69f9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f29a98c8-cff2-4e41-8c17-286ed5e1c9a2', 'bc1a3ae9-98f5-4f9d-8b45-be2d770f6fa4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52707183', 'ctest-vn4-84245842'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52707183', 'ctest-policy1-64218504']], 'subnet_ipam': [{'subnet_cidr': '34.96.203.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '346d:b54e:2369:23cc:9b3a:aba1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-18 09:44:28,107 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-18 09:44:28,394 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-18 09:44:28,418 - DEBUG - Requesting: http://10.0.0.48:8082/domain/827661c3-927d-424a-a690-5dd23ede00b3 2025-08-18 09:44:28,429 - DEBUG - Requesting: http://10.0.0.48:8082/project/cdcf4e57-5dc2-4ecf-9df2-ffc82eb69f9a 2025-08-18 09:44:28,500 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/dbf8f27d-6328-4d42-84c0-90258d44154d 2025-08-18 09:44:28,510 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/dbf8f27d-6328-4d42-84c0-90258d44154d 2025-08-18 09:44:28,518 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/af5e314b-528e-4525-9883-da99b5561c56 2025-08-18 09:44:28,523 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/af5e314b-528e-4525-9883-da99b5561c56 2025-08-18 09:44:28,528 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/6bd23b23-d485-42a5-ba31-eb2ab6951107 2025-08-18 09:44:28,533 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 09:44:28,533 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/dbf8f27d-6328-4d42-84c0-90258d44154d 2025-08-18 09:44:28,540 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/af5e314b-528e-4525-9883-da99b5561c56 2025-08-18 09:44:28,550 - INFO - Verified VN network id 12 for VN dbf8f27d-6328-4d42-84c0-90258d44154d 2025-08-18 09:44:28,550 - INFO - Verifications in API Server for VN ctest-vn4-84245842 passed 2025-08-18 09:44:28,550 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/dbf8f27d-6328-4d42-84c0-90258d44154d 2025-08-18 09:44:28,558 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/af5e314b-528e-4525-9883-da99b5561c56 2025-08-18 09:44:28,563 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/af5e314b-528e-4525-9883-da99b5561c56 2025-08-18 09:44:28,567 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/6bd23b23-d485-42a5-ba31-eb2ab6951107 2025-08-18 09:44:28,577 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52707183:ctest-vn4-84245842', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-52707183', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15850685508878880066', 'uuid-lslong': '9565804099493172557'}, 'enable': 'true', 'created': '2025-08-18T09:44:27', 'last-modified': '2025-08-18T09:44:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.667526'} 2025-08-18 09:44:28,582 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 09:44:28,582 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-84245842 passed 2025-08-18 09:44:28,582 - DEBUG - ====Verifying policy data for ctest-vn4-84245842 in API_Server ====== 2025-08-18 09:44:28,582 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-18 09:44:28,586 - DEBUG - Requesting: http://10.0.0.48:8082/domain/827661c3-927d-424a-a690-5dd23ede00b3 2025-08-18 09:44:28,595 - DEBUG - Requesting: http://10.0.0.48:8082/project/cdcf4e57-5dc2-4ecf-9df2-ffc82eb69f9a 2025-08-18 09:44:28,664 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/dbf8f27d-6328-4d42-84c0-90258d44154d 2025-08-18 09:44:28,672 - DEBUG - ==>Verifying data for policy with id: c33887f0-a382-4d3f-9ec4-48774734c396, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52707183', 'ctest-policy1-64218504'] 2025-08-18 09:44:28,672 - INFO - VN ctest-vn4-84245842 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-18 09:44:28,672 - DEBUG - Verifying the vn in opserver 2025-08-18 09:44:28,672 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52707183:ctest-vn4-84245842 virtual network link through opserver 10.0.0.48 2025-08-18 09:44:28,672 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-18 09:44:28,959 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-18 09:44:29,006 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52707183:ctest-vn4-84245842', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52707183:ctest-vn4-84245842?flat'} 2025-08-18 09:44:29,006 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52707183:ctest-vn4-84245842 is found in opserver 2025-08-18 09:44:29,015 - DEBUG - Do not have enough data to verify VN in agent 2025-08-18 09:44:29,019 - DEBUG - VRF ids for VN ctest-vn4-84245842: {} 2025-08-18 09:44:29,019 - DEBUG - ====Verifying data for ctest-policy1-64218504 in API_Server ====== 2025-08-18 09:44:29,019 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-18 09:44:29,023 - DEBUG - Requesting: http://10.0.0.48:8082/domain/827661c3-927d-424a-a690-5dd23ede00b3 2025-08-18 09:44:29,033 - DEBUG - Requesting: http://10.0.0.48:8082/project/cdcf4e57-5dc2-4ecf-9df2-ffc82eb69f9a 2025-08-18 09:44:29,096 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/c33887f0-a382-4d3f-9ec4-48774734c396 2025-08-18 09:44:29,104 - INFO - Verified policy ctest-policy1-64218504 in API Server, Result: True 2025-08-18 09:44:29,104 - INFO - Done with setup and verification, moving onto test .. 2025-08-18 09:44:29,111 - INFO - Deleting VN ctest-vn4-84245842 2025-08-18 09:44:29,217 - DEBUG - Response for deleting network () 2025-08-18 09:44:29,217 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/af5e314b-528e-4525-9883-da99b5561c56 2025-08-18 09:44:29,221 - DEBUG - Response Code: 404 2025-08-18 09:44:29,222 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-18 09:44:29,225 - DEBUG - Requesting: http://10.0.0.48:8082/domain/827661c3-927d-424a-a690-5dd23ede00b3 2025-08-18 09:44:29,279 - DEBUG - Requesting: http://10.0.0.48:8082/project/cdcf4e57-5dc2-4ecf-9df2-ffc82eb69f9a 2025-08-18 09:44:29,346 - INFO - Validated that VN ctest-vn4-84245842 is not found in API Server 2025-08-18 09:44:29,355 - DEBUG - VN ctest-vn4-84245842 is not present in Agent 10.0.0.48 2025-08-18 09:44:29,355 - INFO - Validated that VN ctest-vn4-84245842 is not in any agent 2025-08-18 09:44:29,368 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-84245842 info 2025-08-18 09:44:29,392 - INFO - Deleted policy ctest-policy1-64218504 2025-08-18 09:44:29,555 - DEBUG - policy ctest-policy1-64218504 is not found in API Server 2025-08-18 09:44:29,815 - DEBUG - No XMPP flaps were noticed during the test
2025-08-18 09:44:29,815 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-08-18 09:44:29,815 - INFO - -------------------------------------------------------------------------------- 2025-08-18 09:44:30,111 - DEBUG - No XMPP flaps were noticed during the test
2025-08-18 09:44:30,112 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-08-18 09:44:30,112 - INFO - -------------------------------------------------------------------------------- 2025-08-18 09:44:30,752 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-52707183, ID : cdcf4e57-5dc2-4ecf-9df2-ffc82eb69f9a