2025-12-11 02:38:28,443 - INFO - Domain Default found not creating 2025-12-11 02:38:28,612 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-39946947 not found, creating it 2025-12-11 02:38:29,202 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-39946947, ID : 83548a94-f887-40f5-b3a9-6c0af1bc4ad3 2025-12-11 02:38:31,313 - INFO - ================================================================================ 2025-12-11 02:38:31,313 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-11 02:38:32,587 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.18': '0', '10.20.0.252': '0'}, '10.0.0.23': {'10.20.0.18': '0', '10.20.0.252': '0'}} with 2025-12-11 02:38:32,587 - INFO - Initial checks done. Running the testcase now 2025-12-11 02:38:32,587 - INFO - 2025-12-11 02:38:32,587 - INFO - ================================================================================ 2025-12-11 02:38:32,587 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-11 02:38:32,587 - 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-12-11 02:38:33,867 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.18': '0', '10.20.0.252': '0'}, '10.0.0.23': {'10.20.0.18': '0', '10.20.0.252': '0'}} with 2025-12-11 02:38:33,867 - INFO - Initial checks done. Running the testcase now 2025-12-11 02:38:33,867 - INFO - 2025-12-11 02:38:34,189 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39946947:ctest-vn4-88355254, 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-39946947:ctest-vn4-88355254, 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-39946947:ctest-vn4-88355254, 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-39946947:ctest-vn4-88355254, 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-12-11 02:38:34,793 - DEBUG - Response for create_network : {'network': {'id': '1a5b0a81-6ad2-48ec-a7f9-ff1f3b47821a', 'name': 'ctest-vn4-88355254', 'tenant_id': '83548a94f88740f5b3a96c0af1bc4ad3', 'project_id': '83548a94f88740f5b3a96c0af1bc4ad3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39946947', 'ctest-vn4-88355254'], 'port_security_enabled': True, 'description': ''}} 2025-12-11 02:38:35,104 - DEBUG - Response for create_subnet : {'subnet': {'id': '39cfe94b-9ff8-42e2-bf1b-8c888d30eb65', 'name': '', 'tenant_id': '83548a94f88740f5b3a96c0af1bc4ad3', 'network_id': '1a5b0a81-6ad2-48ec-a7f9-ff1f3b47821a', 'ip_version': 4, 'cidr': '3.222.240.0/26', 'allocation_pools': [{'start': '3.222.240.2', 'end': '3.222.240.62'}], 'gateway_ip': '3.222.240.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.222.240.2', 'tags': [], 'project_id': '83548a94f88740f5b3a96c0af1bc4ad3'}} 2025-12-11 02:38:35,338 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6ae6eed-f428-45c5-9223-2691867f9e2e', 'name': '', 'tenant_id': '83548a94f88740f5b3a96c0af1bc4ad3', 'network_id': '1a5b0a81-6ad2-48ec-a7f9-ff1f3b47821a', 'ip_version': 6, 'cidr': '26b2:a1f0:99dc:bbb0:266d:8c98::/96', 'allocation_pools': [{'start': '26b2:a1f0:99dc:bbb0:266d:8c98:0:2', 'end': '26b2:a1f0:99dc:bbb0:266d:8c98:ffff:fffe'}], 'gateway_ip': '26b2:a1f0:99dc:bbb0:266d:8c98:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26b2:a1f0:99dc:bbb0:266d:8c98:0:2', 'tags': [], 'project_id': '83548a94f88740f5b3a96c0af1bc4ad3'}} 2025-12-11 02:38:35,361 - INFO - Created VN ctest-vn4-88355254 2025-12-11 02:38:35,371 - DEBUG - VN ctest-vn4-88355254 UUID is 1a5b0a81-6ad2-48ec-a7f9-ff1f3b47821a 2025-12-11 02:38:35,564 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1a5b0a81-6ad2-48ec-a7f9-ff1f3b47821a', 'name': 'ctest-vn4-88355254', 'tenant_id': '83548a94f88740f5b3a96c0af1bc4ad3', 'project_id': '83548a94f88740f5b3a96c0af1bc4ad3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['39cfe94b-9ff8-42e2-bf1b-8c888d30eb65', 'a6ae6eed-f428-45c5-9223-2691867f9e2e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39946947', 'ctest-vn4-88355254'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39946947', 'ctest-policy1-63663148']], 'subnet_ipam': [{'subnet_cidr': '3.222.240.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '26b2:a1f0:99dc:bbb0:266d:8c98::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-11 02:38:35,676 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-11 02:38:35,971 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-11 02:38:36,015 - DEBUG - Requesting: http://10.0.0.61:8082/domain/35136ed0-c5bb-4823-8f5c-ae1b4c17652e 2025-12-11 02:38:36,032 - DEBUG - Requesting: http://10.0.0.61:8082/project/83548a94-f887-40f5-b3a9-6c0af1bc4ad3 2025-12-11 02:38:36,118 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/1a5b0a81-6ad2-48ec-a7f9-ff1f3b47821a 2025-12-11 02:38:36,131 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/1a5b0a81-6ad2-48ec-a7f9-ff1f3b47821a 2025-12-11 02:38:36,143 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/da4f18f3-e3de-4f8a-8180-f1f8700d5e2d 2025-12-11 02:38:36,150 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/da4f18f3-e3de-4f8a-8180-f1f8700d5e2d 2025-12-11 02:38:36,157 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/19d0960a-cfbd-4224-9538-ae24278fbfbd 2025-12-11 02:38:36,164 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-11 02:38:36,164 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/1a5b0a81-6ad2-48ec-a7f9-ff1f3b47821a 2025-12-11 02:38:36,173 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/da4f18f3-e3de-4f8a-8180-f1f8700d5e2d 2025-12-11 02:38:36,187 - INFO - Verified VN network id 14 for VN 1a5b0a81-6ad2-48ec-a7f9-ff1f3b47821a 2025-12-11 02:38:36,187 - INFO - Verifications in API Server for VN ctest-vn4-88355254 passed 2025-12-11 02:38:36,187 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/1a5b0a81-6ad2-48ec-a7f9-ff1f3b47821a 2025-12-11 02:38:36,196 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/da4f18f3-e3de-4f8a-8180-f1f8700d5e2d 2025-12-11 02:38:36,202 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/da4f18f3-e3de-4f8a-8180-f1f8700d5e2d 2025-12-11 02:38:36,208 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/19d0960a-cfbd-4224-9538-ae24278fbfbd 2025-12-11 02:38:36,218 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39946947:ctest-vn4-88355254', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-39946947', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1899123218826021100', 'uuid-lslong': '12103985983138529818'}, 'enable': 'true', 'created': '2025-12-11T02:38:34', 'last-modified': '2025-12-11T02:38:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.697626'} 2025-12-11 02:38:36,224 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-11 02:38:36,230 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39946947:ctest-vn4-88355254', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-39946947', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1899123218826021100', 'uuid-lslong': '12103985983138529818'}, 'enable': 'true', 'created': '2025-12-11T02:38:34', 'last-modified': '2025-12-11T02:38:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.703396'} 2025-12-11 02:38:36,236 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-11 02:38:36,241 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39946947:ctest-vn4-88355254', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-39946947', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1899123218826021100', 'uuid-lslong': '12103985983138529818'}, 'enable': 'true', 'created': '2025-12-11T02:38:34', 'last-modified': '2025-12-11T02:38:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.717965'} 2025-12-11 02:38:36,246 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-11 02:38:36,246 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88355254 passed 2025-12-11 02:38:36,246 - DEBUG - ====Verifying policy data for ctest-vn4-88355254 in API_Server ====== 2025-12-11 02:38:36,246 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-11 02:38:36,251 - DEBUG - Requesting: http://10.0.0.61:8082/domain/35136ed0-c5bb-4823-8f5c-ae1b4c17652e 2025-12-11 02:38:36,262 - DEBUG - Requesting: http://10.0.0.61:8082/project/83548a94-f887-40f5-b3a9-6c0af1bc4ad3 2025-12-11 02:38:36,351 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/1a5b0a81-6ad2-48ec-a7f9-ff1f3b47821a 2025-12-11 02:38:36,362 - DEBUG - ==>Verifying data for policy with id: a45fd96e-a32b-4098-975c-0e0548b6e8da, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39946947', 'ctest-policy1-63663148'] 2025-12-11 02:38:36,362 - INFO - VN ctest-vn4-88355254 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-11 02:38:36,362 - DEBUG - Verifying the vn in opserver 2025-12-11 02:38:36,362 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39946947:ctest-vn4-88355254 virtual network link through opserver 10.0.0.61 2025-12-11 02:38:36,362 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-12-11 02:38:36,655 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-12-11 02:38:36,712 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39946947:ctest-vn4-88355254', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39946947:ctest-vn4-88355254?flat'} 2025-12-11 02:38:36,712 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39946947:ctest-vn4-88355254 virtual network link through opserver 10.0.0.33 2025-12-11 02:38:36,712 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-11 02:38:37,010 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-11 02:38:37,069 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39946947:ctest-vn4-88355254', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39946947:ctest-vn4-88355254?flat'} 2025-12-11 02:38:37,069 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39946947:ctest-vn4-88355254 virtual network link through opserver 10.0.0.27 2025-12-11 02:38:37,069 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-11 02:38:37,364 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-11 02:38:37,417 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39946947:ctest-vn4-88355254', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39946947:ctest-vn4-88355254?flat'} 2025-12-11 02:38:37,417 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39946947:ctest-vn4-88355254 is found in opserver 2025-12-11 02:38:37,439 - DEBUG - Do not have enough data to verify VN in agent 2025-12-11 02:38:37,447 - DEBUG - VRF ids for VN ctest-vn4-88355254: {} 2025-12-11 02:38:37,447 - DEBUG - ====Verifying data for ctest-policy1-63663148 in API_Server ====== 2025-12-11 02:38:37,447 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-11 02:38:37,453 - DEBUG - Requesting: http://10.0.0.61:8082/domain/35136ed0-c5bb-4823-8f5c-ae1b4c17652e 2025-12-11 02:38:37,464 - DEBUG - Requesting: http://10.0.0.61:8082/project/83548a94-f887-40f5-b3a9-6c0af1bc4ad3 2025-12-11 02:38:37,552 - DEBUG - Requesting: http://10.0.0.61:8082/network-policy/a45fd96e-a32b-4098-975c-0e0548b6e8da 2025-12-11 02:38:37,560 - INFO - Verified policy ctest-policy1-63663148 in API Server, Result: True 2025-12-11 02:38:37,560 - INFO - Done with setup and verification, moving onto test .. 2025-12-11 02:38:37,570 - INFO - Deleting VN ctest-vn4-88355254 2025-12-11 02:38:37,763 - DEBUG - Response for deleting network () 2025-12-11 02:38:37,763 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/da4f18f3-e3de-4f8a-8180-f1f8700d5e2d 2025-12-11 02:38:37,770 - DEBUG - Response Code: 404 2025-12-11 02:38:37,770 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-12-11 02:38:37,775 - DEBUG - Requesting: http://10.0.0.61:8082/domain/35136ed0-c5bb-4823-8f5c-ae1b4c17652e 2025-12-11 02:38:37,785 - DEBUG - Requesting: http://10.0.0.61:8082/project/83548a94-f887-40f5-b3a9-6c0af1bc4ad3 2025-12-11 02:38:37,869 - INFO - Validated that VN ctest-vn4-88355254 is not found in API Server 2025-12-11 02:38:37,882 - DEBUG - VN ctest-vn4-88355254 is not present in Agent 10.0.0.141 2025-12-11 02:38:37,892 - DEBUG - VN ctest-vn4-88355254 is not present in Agent 10.0.0.23 2025-12-11 02:38:37,892 - INFO - Validated that VN ctest-vn4-88355254 is not in any agent 2025-12-11 02:38:37,918 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88355254 info 2025-12-11 02:38:37,967 - INFO - Deleted policy ctest-policy1-63663148 2025-12-11 02:38:38,144 - DEBUG - policy ctest-policy1-63663148 is not found in API Server 2025-12-11 02:38:39,394 - DEBUG - No XMPP flaps were noticed during the test
2025-12-11 02:38:39,394 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2025-12-11 02:38:39,394 - INFO - -------------------------------------------------------------------------------- 2025-12-11 02:38:40,641 - DEBUG - No XMPP flaps were noticed during the test
2025-12-11 02:38:40,641 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09]
2025-12-11 02:38:40,641 - INFO - -------------------------------------------------------------------------------- 2025-12-11 02:38:41,322 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-39946947, ID : 83548a94-f887-40f5-b3a9-6c0af1bc4ad3