2025-08-08 05:38:46,023 - INFO - Domain Default found not creating 2025-08-08 05:38:46,194 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-45324617 not found, creating it 2025-08-08 05:38:46,671 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-45324617, ID : a3a60246-7877-4d78-a29f-51a5510820ac 2025-08-08 05:38:48,100 - INFO - ================================================================================ 2025-08-08 05:38:48,100 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-08 05:38:48,358 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-08 05:38:48,359 - INFO - Initial checks done. Running the testcase now 2025-08-08 05:38:48,359 - INFO - 2025-08-08 05:38:48,359 - INFO - ================================================================================ 2025-08-08 05:38:48,359 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-08 05:38:48,359 - 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-08 05:38:48,641 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-08 05:38:48,641 - INFO - Initial checks done. Running the testcase now 2025-08-08 05:38:48,641 - INFO - 2025-08-08 05:38:49,000 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45324617:ctest-vn4-94612435, 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-45324617:ctest-vn4-94612435, 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-45324617:ctest-vn4-94612435, 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-45324617:ctest-vn4-94612435, 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-08 05:38:49,543 - DEBUG - Response for create_network : {'network': {'id': '74bf1ac1-ae36-450b-8091-784c89c3f01a', 'name': 'ctest-vn4-94612435', 'tenant_id': 'a3a6024678774d78a29f51a5510820ac', 'project_id': 'a3a6024678774d78a29f51a5510820ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45324617', 'ctest-vn4-94612435'], 'port_security_enabled': True, 'description': ''}} 2025-08-08 05:38:49,739 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5da8146-a457-4884-8216-6de41dcc0983', 'name': '', 'tenant_id': 'a3a6024678774d78a29f51a5510820ac', 'network_id': '74bf1ac1-ae36-450b-8091-784c89c3f01a', 'ip_version': 4, 'cidr': '22.115.210.128/26', 'allocation_pools': [{'start': '22.115.210.130', 'end': '22.115.210.190'}], 'gateway_ip': '22.115.210.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.115.210.130', 'tags': [], 'project_id': 'a3a6024678774d78a29f51a5510820ac'}} 2025-08-08 05:38:49,948 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bbca27a3-b55a-42de-abea-d9997f1e6e04', 'name': '', 'tenant_id': 'a3a6024678774d78a29f51a5510820ac', 'network_id': '74bf1ac1-ae36-450b-8091-784c89c3f01a', 'ip_version': 6, 'cidr': '3cc6:4802:9aab:bfb1:384a:dd75::/96', 'allocation_pools': [{'start': '3cc6:4802:9aab:bfb1:384a:dd75:0:2', 'end': '3cc6:4802:9aab:bfb1:384a:dd75:ffff:fffe'}], 'gateway_ip': '3cc6:4802:9aab:bfb1:384a:dd75:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3cc6:4802:9aab:bfb1:384a:dd75:0:2', 'tags': [], 'project_id': 'a3a6024678774d78a29f51a5510820ac'}} 2025-08-08 05:38:49,973 - INFO - Created VN ctest-vn4-94612435 2025-08-08 05:38:50,027 - DEBUG - VN ctest-vn4-94612435 UUID is 74bf1ac1-ae36-450b-8091-784c89c3f01a 2025-08-08 05:38:50,274 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '74bf1ac1-ae36-450b-8091-784c89c3f01a', 'name': 'ctest-vn4-94612435', 'tenant_id': 'a3a6024678774d78a29f51a5510820ac', 'project_id': 'a3a6024678774d78a29f51a5510820ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b5da8146-a457-4884-8216-6de41dcc0983', 'bbca27a3-b55a-42de-abea-d9997f1e6e04'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45324617', 'ctest-vn4-94612435'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45324617', 'ctest-policy1-55668713']], 'subnet_ipam': [{'subnet_cidr': '22.115.210.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3cc6:4802:9aab:bfb1:384a:dd75::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-08 05:38:50,463 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 05:38:50,761 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 05:38:50,788 - DEBUG - Requesting: http://10.0.0.38:8082/domain/446b4517-882b-4532-866c-0f4d705e0ff3 2025-08-08 05:38:50,801 - DEBUG - Requesting: http://10.0.0.38:8082/project/a3a60246-7877-4d78-a29f-51a5510820ac 2025-08-08 05:38:50,878 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/74bf1ac1-ae36-450b-8091-784c89c3f01a 2025-08-08 05:38:50,891 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/74bf1ac1-ae36-450b-8091-784c89c3f01a 2025-08-08 05:38:50,902 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/24852407-dcfa-42f8-9a7a-c52cc0c2aaf2 2025-08-08 05:38:50,910 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/24852407-dcfa-42f8-9a7a-c52cc0c2aaf2 2025-08-08 05:38:50,919 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f46cb68a-c189-4ffc-8577-db3d8c02c3ef 2025-08-08 05:38:50,926 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 05:38:50,927 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/74bf1ac1-ae36-450b-8091-784c89c3f01a 2025-08-08 05:38:50,938 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/24852407-dcfa-42f8-9a7a-c52cc0c2aaf2 2025-08-08 05:38:50,955 - INFO - Verified VN network id 11 for VN 74bf1ac1-ae36-450b-8091-784c89c3f01a 2025-08-08 05:38:50,955 - INFO - Verifications in API Server for VN ctest-vn4-94612435 passed 2025-08-08 05:38:50,955 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/74bf1ac1-ae36-450b-8091-784c89c3f01a 2025-08-08 05:38:50,968 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/24852407-dcfa-42f8-9a7a-c52cc0c2aaf2 2025-08-08 05:38:50,976 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/24852407-dcfa-42f8-9a7a-c52cc0c2aaf2 2025-08-08 05:38:50,984 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f46cb68a-c189-4ffc-8577-db3d8c02c3ef 2025-08-08 05:38:50,997 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45324617:ctest-vn4-94612435', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-45324617', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8412472048105178379', 'uuid-lslong': '9264318178601988122'}, 'enable': 'true', 'created': '2025-08-08T05:38:49', 'last-modified': '2025-08-08T05:38:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.773887'} 2025-08-08 05:38:51,006 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 05:38:51,006 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-94612435 passed 2025-08-08 05:38:51,006 - DEBUG - ====Verifying policy data for ctest-vn4-94612435 in API_Server ====== 2025-08-08 05:38:51,006 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 05:38:51,013 - DEBUG - Requesting: http://10.0.0.38:8082/domain/446b4517-882b-4532-866c-0f4d705e0ff3 2025-08-08 05:38:51,026 - DEBUG - Requesting: http://10.0.0.38:8082/project/a3a60246-7877-4d78-a29f-51a5510820ac 2025-08-08 05:38:51,101 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/74bf1ac1-ae36-450b-8091-784c89c3f01a 2025-08-08 05:38:51,111 - DEBUG - ==>Verifying data for policy with id: ab6d07ae-e37f-4188-84d4-cd4e0e381d3d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45324617', 'ctest-policy1-55668713'] 2025-08-08 05:38:51,111 - INFO - VN ctest-vn4-94612435 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-08 05:38:51,112 - DEBUG - Verifying the vn in opserver 2025-08-08 05:38:51,112 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45324617:ctest-vn4-94612435 virtual network link through opserver 10.0.0.38 2025-08-08 05:38:51,112 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-08 05:38:51,406 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-08 05:38:51,470 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45324617:ctest-vn4-94612435', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45324617:ctest-vn4-94612435?flat'} 2025-08-08 05:38:51,470 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45324617:ctest-vn4-94612435 is found in opserver 2025-08-08 05:38:51,481 - DEBUG - Do not have enough data to verify VN in agent 2025-08-08 05:38:51,487 - DEBUG - VRF ids for VN ctest-vn4-94612435: {} 2025-08-08 05:38:51,487 - DEBUG - ====Verifying data for ctest-policy1-55668713 in API_Server ====== 2025-08-08 05:38:51,487 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 05:38:51,493 - DEBUG - Requesting: http://10.0.0.38:8082/domain/446b4517-882b-4532-866c-0f4d705e0ff3 2025-08-08 05:38:51,505 - DEBUG - Requesting: http://10.0.0.38:8082/project/a3a60246-7877-4d78-a29f-51a5510820ac 2025-08-08 05:38:51,583 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/ab6d07ae-e37f-4188-84d4-cd4e0e381d3d 2025-08-08 05:38:51,596 - INFO - Verified policy ctest-policy1-55668713 in API Server, Result: True 2025-08-08 05:38:51,596 - INFO - Done with setup and verification, moving onto test .. 2025-08-08 05:38:51,610 - INFO - Deleting VN ctest-vn4-94612435 2025-08-08 05:38:51,755 - DEBUG - Response for deleting network () 2025-08-08 05:38:51,756 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/24852407-dcfa-42f8-9a7a-c52cc0c2aaf2 2025-08-08 05:38:51,761 - DEBUG - Response Code: 404 2025-08-08 05:38:51,761 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 05:38:51,767 - DEBUG - Requesting: http://10.0.0.38:8082/domain/446b4517-882b-4532-866c-0f4d705e0ff3 2025-08-08 05:38:51,822 - DEBUG - Requesting: http://10.0.0.38:8082/project/a3a60246-7877-4d78-a29f-51a5510820ac 2025-08-08 05:38:51,905 - INFO - Validated that VN ctest-vn4-94612435 is not found in API Server 2025-08-08 05:38:51,916 - DEBUG - VN ctest-vn4-94612435 is not present in Agent 10.0.0.38 2025-08-08 05:38:51,916 - INFO - Validated that VN ctest-vn4-94612435 is not in any agent 2025-08-08 05:38:51,933 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-94612435 info 2025-08-08 05:38:51,972 - INFO - Deleted policy ctest-policy1-55668713 2025-08-08 05:38:52,167 - DEBUG - policy ctest-policy1-55668713 is not found in API Server 2025-08-08 05:38:52,425 - DEBUG - No XMPP flaps were noticed during the test
2025-08-08 05:38:52,425 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-08 05:38:52,425 - INFO - -------------------------------------------------------------------------------- 2025-08-08 05:38:52,717 - DEBUG - No XMPP flaps were noticed during the test
2025-08-08 05:38:52,717 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-08 05:38:52,717 - INFO - -------------------------------------------------------------------------------- 2025-08-08 05:38:53,400 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-45324617, ID : a3a60246-7877-4d78-a29f-51a5510820ac