2025-10-08 13:41:20,638 - INFO - Domain Default found not creating 2025-10-08 13:41:20,780 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-03227292 not found, creating it 2025-10-08 13:41:21,278 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-03227292, ID : 43324981-6533-4677-be75-0e1e8c67dd46 2025-10-08 13:41:22,682 - INFO - ================================================================================ 2025-10-08 13:41:22,682 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-08 13:41:23,949 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.25': '0', '10.20.0.14': '0'}, '10.0.0.131': {'10.20.0.14': '0', '10.20.0.25': '0'}} with 2025-10-08 13:41:23,949 - INFO - Initial checks done. Running the testcase now 2025-10-08 13:41:23,949 - INFO - 2025-10-08 13:41:23,949 - INFO - ================================================================================ 2025-10-08 13:41:23,949 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-08 13:41:23,949 - 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-10-08 13:41:25,198 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.25': '0', '10.20.0.14': '0'}, '10.0.0.131': {'10.20.0.14': '0', '10.20.0.25': '0'}} with 2025-10-08 13:41:25,198 - INFO - Initial checks done. Running the testcase now 2025-10-08 13:41:25,198 - INFO - 2025-10-08 13:41:25,544 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03227292:ctest-vn4-91181762, 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-03227292:ctest-vn4-91181762, 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-03227292:ctest-vn4-91181762, 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-03227292:ctest-vn4-91181762, 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-08 13:41:26,164 - DEBUG - Response for create_network : {'network': {'id': '31785318-862e-40ee-8e80-35fb5877ab10', 'name': 'ctest-vn4-91181762', 'tenant_id': '4332498165334677be750e1e8c67dd46', 'project_id': '4332498165334677be750e1e8c67dd46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03227292', 'ctest-vn4-91181762'], 'port_security_enabled': True, 'description': ''}} 2025-10-08 13:41:26,411 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b07211e7-241d-45c4-a3a0-45301324687a', 'name': '', 'tenant_id': '4332498165334677be750e1e8c67dd46', 'network_id': '31785318-862e-40ee-8e80-35fb5877ab10', 'ip_version': 4, 'cidr': '199.6.224.64/26', 'allocation_pools': [{'start': '199.6.224.66', 'end': '199.6.224.126'}], 'gateway_ip': '199.6.224.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.6.224.66', 'tags': [], 'project_id': '4332498165334677be750e1e8c67dd46'}} 2025-10-08 13:41:26,656 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc8d15b2-b02f-42a9-b65e-2fd98a9447bf', 'name': '', 'tenant_id': '4332498165334677be750e1e8c67dd46', 'network_id': '31785318-862e-40ee-8e80-35fb5877ab10', 'ip_version': 6, 'cidr': '2b4d:a4c8:801a:e43e:3c85:2870::/96', 'allocation_pools': [{'start': '2b4d:a4c8:801a:e43e:3c85:2870:0:2', 'end': '2b4d:a4c8:801a:e43e:3c85:2870:ffff:fffe'}], 'gateway_ip': '2b4d:a4c8:801a:e43e:3c85:2870:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b4d:a4c8:801a:e43e:3c85:2870:0:2', 'tags': [], 'project_id': '4332498165334677be750e1e8c67dd46'}} 2025-10-08 13:41:26,682 - INFO - Created VN ctest-vn4-91181762 2025-10-08 13:41:26,693 - DEBUG - VN ctest-vn4-91181762 UUID is 31785318-862e-40ee-8e80-35fb5877ab10 2025-10-08 13:41:26,980 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '31785318-862e-40ee-8e80-35fb5877ab10', 'name': 'ctest-vn4-91181762', 'tenant_id': '4332498165334677be750e1e8c67dd46', 'project_id': '4332498165334677be750e1e8c67dd46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b07211e7-241d-45c4-a3a0-45301324687a', 'fc8d15b2-b02f-42a9-b65e-2fd98a9447bf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03227292', 'ctest-vn4-91181762'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03227292', 'ctest-policy1-65839831']], 'subnet_ipam': [{'subnet_cidr': '199.6.224.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b4d:a4c8:801a:e43e:3c85:2870::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-08 13:41:27,066 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-08 13:41:27,369 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-08 13:41:27,397 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e655d23d-1695-42cd-a914-8836b4a49568 2025-10-08 13:41:27,417 - DEBUG - Requesting: http://10.0.0.33:8082/project/43324981-6533-4677-be75-0e1e8c67dd46 2025-10-08 13:41:27,516 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/31785318-862e-40ee-8e80-35fb5877ab10 2025-10-08 13:41:27,528 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/31785318-862e-40ee-8e80-35fb5877ab10 2025-10-08 13:41:27,538 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0db3a58a-8aa0-4f70-9537-07dc48b8c592 2025-10-08 13:41:27,545 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0db3a58a-8aa0-4f70-9537-07dc48b8c592 2025-10-08 13:41:27,555 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ff6f5b55-4966-4bd3-8ebf-919cf2342fd1 2025-10-08 13:41:27,566 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 13:41:27,566 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/31785318-862e-40ee-8e80-35fb5877ab10 2025-10-08 13:41:27,577 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0db3a58a-8aa0-4f70-9537-07dc48b8c592 2025-10-08 13:41:27,592 - INFO - Verified VN network id 14 for VN 31785318-862e-40ee-8e80-35fb5877ab10 2025-10-08 13:41:27,592 - INFO - Verifications in API Server for VN ctest-vn4-91181762 passed 2025-10-08 13:41:27,592 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/31785318-862e-40ee-8e80-35fb5877ab10 2025-10-08 13:41:27,603 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0db3a58a-8aa0-4f70-9537-07dc48b8c592 2025-10-08 13:41:27,611 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0db3a58a-8aa0-4f70-9537-07dc48b8c592 2025-10-08 13:41:27,618 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ff6f5b55-4966-4bd3-8ebf-919cf2342fd1 2025-10-08 13:41:27,629 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03227292:ctest-vn4-91181762', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03227292', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3564690469859246318', 'uuid-lslong': '10268266504042031888'}, 'enable': 'true', 'created': '2025-10-08T13:41:26', 'last-modified': '2025-10-08T13:41:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.756691'} 2025-10-08 13:41:27,634 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 13:41:27,639 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03227292:ctest-vn4-91181762', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03227292', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3564690469859246318', 'uuid-lslong': '10268266504042031888'}, 'enable': 'true', 'created': '2025-10-08T13:41:26', 'last-modified': '2025-10-08T13:41:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.767385'} 2025-10-08 13:41:27,645 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 13:41:27,650 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03227292:ctest-vn4-91181762', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03227292', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3564690469859246318', 'uuid-lslong': '10268266504042031888'}, 'enable': 'true', 'created': '2025-10-08T13:41:26', 'last-modified': '2025-10-08T13:41:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.778114'} 2025-10-08 13:41:27,655 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 13:41:27,655 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-91181762 passed 2025-10-08 13:41:27,655 - DEBUG - ====Verifying policy data for ctest-vn4-91181762 in API_Server ====== 2025-10-08 13:41:27,655 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-08 13:41:27,661 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e655d23d-1695-42cd-a914-8836b4a49568 2025-10-08 13:41:27,672 - DEBUG - Requesting: http://10.0.0.33:8082/project/43324981-6533-4677-be75-0e1e8c67dd46 2025-10-08 13:41:27,771 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/31785318-862e-40ee-8e80-35fb5877ab10 2025-10-08 13:41:27,787 - DEBUG - ==>Verifying data for policy with id: e733677a-8a91-402e-91b9-c4edaa148bf7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03227292', 'ctest-policy1-65839831'] 2025-10-08 13:41:27,787 - INFO - VN ctest-vn4-91181762 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-08 13:41:27,787 - DEBUG - Verifying the vn in opserver 2025-10-08 13:41:27,787 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03227292:ctest-vn4-91181762 virtual network link through opserver 10.0.0.33 2025-10-08 13:41:27,787 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-08 13:41:28,084 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-08 13:41:28,137 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03227292:ctest-vn4-91181762', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03227292:ctest-vn4-91181762?flat'} 2025-10-08 13:41:28,137 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03227292:ctest-vn4-91181762 virtual network link through opserver 10.0.0.19 2025-10-08 13:41:28,138 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-08 13:41:28,444 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-08 13:41:28,497 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03227292:ctest-vn4-91181762', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03227292:ctest-vn4-91181762?flat'} 2025-10-08 13:41:28,497 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03227292:ctest-vn4-91181762 virtual network link through opserver 10.0.0.129 2025-10-08 13:41:28,497 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-10-08 13:41:28,792 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-10-08 13:41:28,851 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03227292:ctest-vn4-91181762', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03227292:ctest-vn4-91181762?flat'} 2025-10-08 13:41:28,852 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03227292:ctest-vn4-91181762 is found in opserver 2025-10-08 13:41:28,873 - DEBUG - Do not have enough data to verify VN in agent 2025-10-08 13:41:28,882 - DEBUG - VRF ids for VN ctest-vn4-91181762: {} 2025-10-08 13:41:28,882 - DEBUG - ====Verifying data for ctest-policy1-65839831 in API_Server ====== 2025-10-08 13:41:28,882 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-08 13:41:28,888 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e655d23d-1695-42cd-a914-8836b4a49568 2025-10-08 13:41:28,906 - DEBUG - Requesting: http://10.0.0.33:8082/project/43324981-6533-4677-be75-0e1e8c67dd46 2025-10-08 13:41:28,995 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/e733677a-8a91-402e-91b9-c4edaa148bf7 2025-10-08 13:41:29,004 - INFO - Verified policy ctest-policy1-65839831 in API Server, Result: True 2025-10-08 13:41:29,004 - INFO - Done with setup and verification, moving onto test .. 2025-10-08 13:41:29,014 - INFO - Deleting VN ctest-vn4-91181762 2025-10-08 13:41:29,201 - DEBUG - Response for deleting network () 2025-10-08 13:41:29,201 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0db3a58a-8aa0-4f70-9537-07dc48b8c592 2025-10-08 13:41:29,220 - DEBUG - Response Code: 404 2025-10-08 13:41:29,220 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-08 13:41:29,227 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e655d23d-1695-42cd-a914-8836b4a49568 2025-10-08 13:41:29,281 - DEBUG - Requesting: http://10.0.0.33:8082/project/43324981-6533-4677-be75-0e1e8c67dd46 2025-10-08 13:41:29,381 - INFO - Validated that VN ctest-vn4-91181762 is not found in API Server 2025-10-08 13:41:29,391 - DEBUG - VN ctest-vn4-91181762 is not present in Agent 10.0.0.130 2025-10-08 13:41:29,403 - DEBUG - VN ctest-vn4-91181762 is not present in Agent 10.0.0.131 2025-10-08 13:41:29,403 - INFO - Validated that VN ctest-vn4-91181762 is not in any agent 2025-10-08 13:41:29,432 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-91181762 info 2025-10-08 13:41:29,466 - INFO - Deleted policy ctest-policy1-65839831 2025-10-08 13:41:29,651 - DEBUG - policy ctest-policy1-65839831 is not found in API Server 2025-10-08 13:41:30,919 - DEBUG - No XMPP flaps were noticed during the test
2025-10-08 13:41:30,919 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2025-10-08 13:41:30,919 - INFO - -------------------------------------------------------------------------------- 2025-10-08 13:41:32,205 - DEBUG - No XMPP flaps were noticed during the test
2025-10-08 13:41:32,205 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2025-10-08 13:41:32,205 - INFO - -------------------------------------------------------------------------------- 2025-10-08 13:41:32,993 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-03227292, ID : 43324981-6533-4677-be75-0e1e8c67dd46