2025-08-19 10:32:40,745 - INFO - Domain Default found not creating 2025-08-19 10:32:40,899 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-63605397 not found, creating it 2025-08-19 10:32:41,361 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-63605397, ID : 27a27203-e89d-44d0-91eb-7d57da9ac871 2025-08-19 10:32:42,893 - INFO - ================================================================================ 2025-08-19 10:32:42,893 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-19 10:32:43,151 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-08-19 10:32:43,151 - INFO - Initial checks done. Running the testcase now 2025-08-19 10:32:43,151 - INFO - 2025-08-19 10:32:43,151 - INFO - ================================================================================ 2025-08-19 10:32:43,152 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-19 10:32:43,152 - 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-19 10:32:43,441 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-08-19 10:32:43,441 - INFO - Initial checks done. Running the testcase now 2025-08-19 10:32:43,441 - INFO - 2025-08-19 10:32:43,790 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63605397:ctest-vn4-48108580, 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-63605397:ctest-vn4-48108580, 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-63605397:ctest-vn4-48108580, 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-63605397:ctest-vn4-48108580, 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-19 10:32:44,302 - DEBUG - Response for create_network : {'network': {'id': '30f11722-eae8-46c9-9666-5ce5c4f1bd88', 'name': 'ctest-vn4-48108580', 'tenant_id': '27a27203e89d44d091eb7d57da9ac871', 'project_id': '27a27203e89d44d091eb7d57da9ac871', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63605397', 'ctest-vn4-48108580'], 'port_security_enabled': True, 'description': ''}} 2025-08-19 10:32:44,512 - DEBUG - Response for create_subnet : {'subnet': {'id': '10d33626-24b6-4890-bf98-8e3cbfaa0a71', 'name': '', 'tenant_id': '27a27203e89d44d091eb7d57da9ac871', 'network_id': '30f11722-eae8-46c9-9666-5ce5c4f1bd88', 'ip_version': 4, 'cidr': '52.72.40.64/26', 'allocation_pools': [{'start': '52.72.40.66', 'end': '52.72.40.126'}], 'gateway_ip': '52.72.40.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.72.40.66', 'tags': [], 'project_id': '27a27203e89d44d091eb7d57da9ac871'}} 2025-08-19 10:32:44,675 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f194aeb7-e64c-4023-b768-f5e8089edab5', 'name': '', 'tenant_id': '27a27203e89d44d091eb7d57da9ac871', 'network_id': '30f11722-eae8-46c9-9666-5ce5c4f1bd88', 'ip_version': 6, 'cidr': '30e8:a655:3249:63f4:8874:b48a::/96', 'allocation_pools': [{'start': '30e8:a655:3249:63f4:8874:b48a:0:2', 'end': '30e8:a655:3249:63f4:8874:b48a:ffff:fffe'}], 'gateway_ip': '30e8:a655:3249:63f4:8874:b48a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30e8:a655:3249:63f4:8874:b48a:0:2', 'tags': [], 'project_id': '27a27203e89d44d091eb7d57da9ac871'}} 2025-08-19 10:32:44,695 - INFO - Created VN ctest-vn4-48108580 2025-08-19 10:32:44,750 - DEBUG - VN ctest-vn4-48108580 UUID is 30f11722-eae8-46c9-9666-5ce5c4f1bd88 2025-08-19 10:32:44,950 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '30f11722-eae8-46c9-9666-5ce5c4f1bd88', 'name': 'ctest-vn4-48108580', 'tenant_id': '27a27203e89d44d091eb7d57da9ac871', 'project_id': '27a27203e89d44d091eb7d57da9ac871', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['10d33626-24b6-4890-bf98-8e3cbfaa0a71', 'f194aeb7-e64c-4023-b768-f5e8089edab5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63605397', 'ctest-vn4-48108580'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63605397', 'ctest-policy1-29955717']], 'subnet_ipam': [{'subnet_cidr': '52.72.40.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30e8:a655:3249:63f4:8874:b48a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-19 10:32:45,118 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-19 10:32:45,408 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-19 10:32:45,437 - DEBUG - Requesting: http://10.0.0.48:8082/domain/94073ea1-9b01-4c53-ac9c-6b933aa02e21 2025-08-19 10:32:45,450 - DEBUG - Requesting: http://10.0.0.48:8082/project/27a27203-e89d-44d0-91eb-7d57da9ac871 2025-08-19 10:32:45,525 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/30f11722-eae8-46c9-9666-5ce5c4f1bd88 2025-08-19 10:32:45,541 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/30f11722-eae8-46c9-9666-5ce5c4f1bd88 2025-08-19 10:32:45,552 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ba7600cd-8f36-4072-a9e1-25d31ee435c0 2025-08-19 10:32:45,560 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ba7600cd-8f36-4072-a9e1-25d31ee435c0 2025-08-19 10:32:45,567 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/88126a56-bb66-4f7d-af54-60acfd0bcb63 2025-08-19 10:32:45,575 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-19 10:32:45,575 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/30f11722-eae8-46c9-9666-5ce5c4f1bd88 2025-08-19 10:32:45,587 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ba7600cd-8f36-4072-a9e1-25d31ee435c0 2025-08-19 10:32:45,602 - INFO - Verified VN network id 12 for VN 30f11722-eae8-46c9-9666-5ce5c4f1bd88 2025-08-19 10:32:45,602 - INFO - Verifications in API Server for VN ctest-vn4-48108580 passed 2025-08-19 10:32:45,602 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/30f11722-eae8-46c9-9666-5ce5c4f1bd88 2025-08-19 10:32:45,613 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ba7600cd-8f36-4072-a9e1-25d31ee435c0 2025-08-19 10:32:45,621 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ba7600cd-8f36-4072-a9e1-25d31ee435c0 2025-08-19 10:32:45,630 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/88126a56-bb66-4f7d-af54-60acfd0bcb63 2025-08-19 10:32:45,644 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63605397:ctest-vn4-48108580', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-63605397', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3526625421945226953', 'uuid-lslong': '10837451695235120520'}, 'enable': 'true', 'created': '2025-08-19T10:32:44', 'last-modified': '2025-08-19T10:32:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.720401'} 2025-08-19 10:32:45,650 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-19 10:32:45,651 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-48108580 passed 2025-08-19 10:32:45,651 - DEBUG - ====Verifying policy data for ctest-vn4-48108580 in API_Server ====== 2025-08-19 10:32:45,651 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-19 10:32:45,656 - DEBUG - Requesting: http://10.0.0.48:8082/domain/94073ea1-9b01-4c53-ac9c-6b933aa02e21 2025-08-19 10:32:45,668 - DEBUG - Requesting: http://10.0.0.48:8082/project/27a27203-e89d-44d0-91eb-7d57da9ac871 2025-08-19 10:32:45,741 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/30f11722-eae8-46c9-9666-5ce5c4f1bd88 2025-08-19 10:32:45,751 - DEBUG - ==>Verifying data for policy with id: 4570e3d6-5384-47f7-9fdc-6c1ed5c9397a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63605397', 'ctest-policy1-29955717'] 2025-08-19 10:32:45,751 - INFO - VN ctest-vn4-48108580 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-19 10:32:45,751 - DEBUG - Verifying the vn in opserver 2025-08-19 10:32:45,751 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63605397:ctest-vn4-48108580 virtual network link through opserver 10.0.0.48 2025-08-19 10:32:45,751 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-19 10:32:46,043 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-19 10:32:46,110 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63605397:ctest-vn4-48108580', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63605397:ctest-vn4-48108580?flat'} 2025-08-19 10:32:46,110 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63605397:ctest-vn4-48108580 is found in opserver 2025-08-19 10:32:46,123 - DEBUG - Do not have enough data to verify VN in agent 2025-08-19 10:32:46,128 - DEBUG - VRF ids for VN ctest-vn4-48108580: {} 2025-08-19 10:32:46,129 - DEBUG - ====Verifying data for ctest-policy1-29955717 in API_Server ====== 2025-08-19 10:32:46,129 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-19 10:32:46,134 - DEBUG - Requesting: http://10.0.0.48:8082/domain/94073ea1-9b01-4c53-ac9c-6b933aa02e21 2025-08-19 10:32:46,145 - DEBUG - Requesting: http://10.0.0.48:8082/project/27a27203-e89d-44d0-91eb-7d57da9ac871 2025-08-19 10:32:46,219 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/4570e3d6-5384-47f7-9fdc-6c1ed5c9397a 2025-08-19 10:32:46,229 - INFO - Verified policy ctest-policy1-29955717 in API Server, Result: True 2025-08-19 10:32:46,229 - INFO - Done with setup and verification, moving onto test .. 2025-08-19 10:32:46,237 - INFO - Deleting VN ctest-vn4-48108580 2025-08-19 10:32:46,346 - DEBUG - Response for deleting network () 2025-08-19 10:32:46,346 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ba7600cd-8f36-4072-a9e1-25d31ee435c0 2025-08-19 10:32:46,351 - DEBUG - Response Code: 404 2025-08-19 10:32:46,351 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-19 10:32:46,357 - DEBUG - Requesting: http://10.0.0.48:8082/domain/94073ea1-9b01-4c53-ac9c-6b933aa02e21 2025-08-19 10:32:46,411 - DEBUG - Requesting: http://10.0.0.48:8082/project/27a27203-e89d-44d0-91eb-7d57da9ac871 2025-08-19 10:32:46,481 - INFO - Validated that VN ctest-vn4-48108580 is not found in API Server 2025-08-19 10:32:46,492 - DEBUG - VN ctest-vn4-48108580 is not present in Agent 10.0.0.48 2025-08-19 10:32:46,492 - INFO - Validated that VN ctest-vn4-48108580 is not in any agent 2025-08-19 10:32:46,507 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-48108580 info 2025-08-19 10:32:46,535 - INFO - Deleted policy ctest-policy1-29955717 2025-08-19 10:32:46,701 - DEBUG - policy ctest-policy1-29955717 is not found in API Server 2025-08-19 10:32:46,957 - DEBUG - No XMPP flaps were noticed during the test