2025-12-29 02:09:52,970 - INFO - Domain Default found not creating 2025-12-29 02:09:53,180 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35385773 not found, creating it 2025-12-29 02:09:53,668 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35385773, ID : 671ffa5b-043d-4901-926e-0a29ed6f978a 2025-12-29 02:09:55,220 - INFO - ================================================================================ 2025-12-29 02:09:55,220 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-29 02:09:55,479 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2025-12-29 02:09:55,480 - INFO - Initial checks done. Running the testcase now 2025-12-29 02:09:55,480 - INFO - 2025-12-29 02:09:55,480 - INFO - ================================================================================ 2025-12-29 02:09:55,480 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-29 02:09:55,480 - 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-29 02:09:55,780 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2025-12-29 02:09:55,780 - INFO - Initial checks done. Running the testcase now 2025-12-29 02:09:55,780 - INFO - 2025-12-29 02:09:56,164 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35385773:ctest-vn4-26913558, 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-35385773:ctest-vn4-26913558, 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-35385773:ctest-vn4-26913558, 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-35385773:ctest-vn4-26913558, 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-29 02:09:56,700 - DEBUG - Response for create_network : {'network': {'id': 'c9128f4f-e893-44c0-af19-d426a6f2bcd8', 'name': 'ctest-vn4-26913558', 'tenant_id': '671ffa5b043d4901926e0a29ed6f978a', 'project_id': '671ffa5b043d4901926e0a29ed6f978a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35385773', 'ctest-vn4-26913558'], 'port_security_enabled': True, 'description': ''}} 2025-12-29 02:09:56,868 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c4b32e91-e23c-4359-bc04-0c838ea9953f', 'name': '', 'tenant_id': '671ffa5b043d4901926e0a29ed6f978a', 'network_id': 'c9128f4f-e893-44c0-af19-d426a6f2bcd8', 'ip_version': 4, 'cidr': '36.89.133.0/26', 'allocation_pools': [{'start': '36.89.133.2', 'end': '36.89.133.62'}], 'gateway_ip': '36.89.133.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.89.133.2', 'tags': [], 'project_id': '671ffa5b043d4901926e0a29ed6f978a'}} 2025-12-29 02:09:57,088 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf8feef5-ce2b-428b-ade4-74526dcad4b0', 'name': '', 'tenant_id': '671ffa5b043d4901926e0a29ed6f978a', 'network_id': 'c9128f4f-e893-44c0-af19-d426a6f2bcd8', 'ip_version': 6, 'cidr': '3ca4:a919:4b16:e95e:ee11:afd0::/96', 'allocation_pools': [{'start': '3ca4:a919:4b16:e95e:ee11:afd0:0:2', 'end': '3ca4:a919:4b16:e95e:ee11:afd0:ffff:fffe'}], 'gateway_ip': '3ca4:a919:4b16:e95e:ee11:afd0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ca4:a919:4b16:e95e:ee11:afd0:0:2', 'tags': [], 'project_id': '671ffa5b043d4901926e0a29ed6f978a'}} 2025-12-29 02:09:57,110 - INFO - Created VN ctest-vn4-26913558 2025-12-29 02:09:57,166 - DEBUG - VN ctest-vn4-26913558 UUID is c9128f4f-e893-44c0-af19-d426a6f2bcd8 2025-12-29 02:09:57,376 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9128f4f-e893-44c0-af19-d426a6f2bcd8', 'name': 'ctest-vn4-26913558', 'tenant_id': '671ffa5b043d4901926e0a29ed6f978a', 'project_id': '671ffa5b043d4901926e0a29ed6f978a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c4b32e91-e23c-4359-bc04-0c838ea9953f', 'cf8feef5-ce2b-428b-ade4-74526dcad4b0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35385773', 'ctest-vn4-26913558'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35385773', 'ctest-policy1-42944717']], 'subnet_ipam': [{'subnet_cidr': '36.89.133.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ca4:a919:4b16:e95e:ee11:afd0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-29 02:09:57,537 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-29 02:09:57,845 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-29 02:09:57,877 - DEBUG - Requesting: http://10.0.0.141:8082/domain/45512d6d-640d-4445-9cd5-76be0ff0d521 2025-12-29 02:09:57,892 - DEBUG - Requesting: http://10.0.0.141:8082/project/671ffa5b-043d-4901-926e-0a29ed6f978a 2025-12-29 02:09:57,968 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c9128f4f-e893-44c0-af19-d426a6f2bcd8 2025-12-29 02:09:57,983 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c9128f4f-e893-44c0-af19-d426a6f2bcd8 2025-12-29 02:09:57,996 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0c03655c-13a0-4081-916b-d7e670bd5bca 2025-12-29 02:09:58,005 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0c03655c-13a0-4081-916b-d7e670bd5bca 2025-12-29 02:09:58,012 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/62909622-2944-43a7-8175-7d4de4b17ff9 2025-12-29 02:09:58,020 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-29 02:09:58,020 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c9128f4f-e893-44c0-af19-d426a6f2bcd8 2025-12-29 02:09:58,032 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0c03655c-13a0-4081-916b-d7e670bd5bca 2025-12-29 02:09:58,050 - INFO - Verified VN network id 11 for VN c9128f4f-e893-44c0-af19-d426a6f2bcd8 2025-12-29 02:09:58,050 - INFO - Verifications in API Server for VN ctest-vn4-26913558 passed 2025-12-29 02:09:58,050 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c9128f4f-e893-44c0-af19-d426a6f2bcd8 2025-12-29 02:09:58,061 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0c03655c-13a0-4081-916b-d7e670bd5bca 2025-12-29 02:09:58,069 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0c03655c-13a0-4081-916b-d7e670bd5bca 2025-12-29 02:09:58,077 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/62909622-2944-43a7-8175-7d4de4b17ff9 2025-12-29 02:09:58,091 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35385773:ctest-vn4-26913558', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35385773', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14488800524571460800', 'uuid-lslong': '12617349093529926872'}, 'enable': 'true', 'created': '2025-12-29T02:09:56', 'last-modified': '2025-12-29T02:09:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.741534'} 2025-12-29 02:09:58,099 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-29 02:09:58,099 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-26913558 passed 2025-12-29 02:09:58,099 - DEBUG - ====Verifying policy data for ctest-vn4-26913558 in API_Server ====== 2025-12-29 02:09:58,099 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-29 02:09:58,106 - DEBUG - Requesting: http://10.0.0.141:8082/domain/45512d6d-640d-4445-9cd5-76be0ff0d521 2025-12-29 02:09:58,119 - DEBUG - Requesting: http://10.0.0.141:8082/project/671ffa5b-043d-4901-926e-0a29ed6f978a 2025-12-29 02:09:58,192 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c9128f4f-e893-44c0-af19-d426a6f2bcd8 2025-12-29 02:09:58,204 - DEBUG - ==>Verifying data for policy with id: a154489d-78a5-4bba-afb0-5ee2c3f50da0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35385773', 'ctest-policy1-42944717'] 2025-12-29 02:09:58,204 - INFO - VN ctest-vn4-26913558 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-29 02:09:58,204 - DEBUG - Verifying the vn in opserver 2025-12-29 02:09:58,204 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35385773:ctest-vn4-26913558 virtual network link through opserver 10.0.0.141 2025-12-29 02:09:58,205 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-12-29 02:09:58,502 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-12-29 02:09:58,567 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35385773:ctest-vn4-26913558', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35385773:ctest-vn4-26913558?flat'} 2025-12-29 02:09:58,567 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35385773:ctest-vn4-26913558 is found in opserver 2025-12-29 02:09:58,578 - DEBUG - Do not have enough data to verify VN in agent 2025-12-29 02:09:58,583 - DEBUG - VRF ids for VN ctest-vn4-26913558: {} 2025-12-29 02:09:58,583 - DEBUG - ====Verifying data for ctest-policy1-42944717 in API_Server ====== 2025-12-29 02:09:58,584 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-29 02:09:58,589 - DEBUG - Requesting: http://10.0.0.141:8082/domain/45512d6d-640d-4445-9cd5-76be0ff0d521 2025-12-29 02:09:58,600 - DEBUG - Requesting: http://10.0.0.141:8082/project/671ffa5b-043d-4901-926e-0a29ed6f978a 2025-12-29 02:09:58,681 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/a154489d-78a5-4bba-afb0-5ee2c3f50da0 2025-12-29 02:09:58,692 - INFO - Verified policy ctest-policy1-42944717 in API Server, Result: True 2025-12-29 02:09:58,692 - INFO - Done with setup and verification, moving onto test .. 2025-12-29 02:09:58,700 - INFO - Deleting VN ctest-vn4-26913558 2025-12-29 02:09:58,833 - DEBUG - Response for deleting network () 2025-12-29 02:09:58,833 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/0c03655c-13a0-4081-916b-d7e670bd5bca 2025-12-29 02:09:58,839 - DEBUG - Response Code: 404 2025-12-29 02:09:58,839 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-29 02:09:58,845 - DEBUG - Requesting: http://10.0.0.141:8082/domain/45512d6d-640d-4445-9cd5-76be0ff0d521 2025-12-29 02:09:58,898 - DEBUG - Requesting: http://10.0.0.141:8082/project/671ffa5b-043d-4901-926e-0a29ed6f978a 2025-12-29 02:09:58,969 - INFO - Validated that VN ctest-vn4-26913558 is not found in API Server 2025-12-29 02:09:58,978 - DEBUG - VN ctest-vn4-26913558 is not present in Agent 10.0.0.141 2025-12-29 02:09:58,978 - INFO - Validated that VN ctest-vn4-26913558 is not in any agent 2025-12-29 02:09:58,993 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-26913558 info 2025-12-29 02:09:59,022 - INFO - Deleted policy ctest-policy1-42944717 2025-12-29 02:09:59,189 - DEBUG - policy ctest-policy1-42944717 is not found in API Server 2025-12-29 02:09:59,442 - DEBUG - No XMPP flaps were noticed during the test
2025-12-29 02:09:59,442 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-29 02:09:59,442 - INFO - -------------------------------------------------------------------------------- 2025-12-29 02:09:59,742 - DEBUG - No XMPP flaps were noticed during the test
2025-12-29 02:09:59,743 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-29 02:09:59,743 - INFO - -------------------------------------------------------------------------------- 2025-12-29 02:10:00,472 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-35385773, ID : 671ffa5b-043d-4901-926e-0a29ed6f978a