2025-09-11 16:56:04,856 - INFO - Domain Default found not creating 2025-09-11 16:56:05,159 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36339041 not found, creating it 2025-09-11 16:56:05,873 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36339041, ID : a2b1c299-468d-47cc-9a42-4b990e5824a5 2025-09-11 16:56:07,807 - INFO - ================================================================================ 2025-09-11 16:56:07,807 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 16:56:08,112 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-11 16:56:08,112 - INFO - Initial checks done. Running the testcase now 2025-09-11 16:56:08,113 - INFO - 2025-09-11 16:56:08,113 - INFO - ================================================================================ 2025-09-11 16:56:08,113 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 16:56:08,113 - 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-09-11 16:56:08,434 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-11 16:56:08,434 - INFO - Initial checks done. Running the testcase now 2025-09-11 16:56:08,435 - INFO - 2025-09-11 16:56:08,915 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36339041:ctest-vn4-21154619, 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-36339041:ctest-vn4-21154619, 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-36339041:ctest-vn4-21154619, 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-36339041:ctest-vn4-21154619, 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-09-11 16:56:09,690 - DEBUG - Response for create_network : {'network': {'id': '136e85db-e1bc-4435-a88c-d6d9fb728432', 'name': 'ctest-vn4-21154619', 'tenant_id': 'a2b1c299468d47cc9a424b990e5824a5', 'project_id': 'a2b1c299468d47cc9a424b990e5824a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36339041', 'ctest-vn4-21154619'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 16:56:09,912 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f62b8cd4-5f2a-4811-a06d-12bd694db773', 'name': '', 'tenant_id': 'a2b1c299468d47cc9a424b990e5824a5', 'network_id': '136e85db-e1bc-4435-a88c-d6d9fb728432', 'ip_version': 4, 'cidr': '130.240.48.0/26', 'allocation_pools': [{'start': '130.240.48.2', 'end': '130.240.48.62'}], 'gateway_ip': '130.240.48.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.240.48.2', 'tags': [], 'project_id': 'a2b1c299468d47cc9a424b990e5824a5'}} 2025-09-11 16:56:10,168 - DEBUG - Response for create_subnet : {'subnet': {'id': '8845dc81-9088-4285-9758-2bd153b02feb', 'name': '', 'tenant_id': 'a2b1c299468d47cc9a424b990e5824a5', 'network_id': '136e85db-e1bc-4435-a88c-d6d9fb728432', 'ip_version': 6, 'cidr': '322c:747a:a206:4636:f192:665b::/96', 'allocation_pools': [{'start': '322c:747a:a206:4636:f192:665b:0:2', 'end': '322c:747a:a206:4636:f192:665b:ffff:fffe'}], 'gateway_ip': '322c:747a:a206:4636:f192:665b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '322c:747a:a206:4636:f192:665b:0:2', 'tags': [], 'project_id': 'a2b1c299468d47cc9a424b990e5824a5'}} 2025-09-11 16:56:10,194 - INFO - Created VN ctest-vn4-21154619 2025-09-11 16:56:10,251 - DEBUG - VN ctest-vn4-21154619 UUID is 136e85db-e1bc-4435-a88c-d6d9fb728432 2025-09-11 16:56:10,656 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '136e85db-e1bc-4435-a88c-d6d9fb728432', 'name': 'ctest-vn4-21154619', 'tenant_id': 'a2b1c299468d47cc9a424b990e5824a5', 'project_id': 'a2b1c299468d47cc9a424b990e5824a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f62b8cd4-5f2a-4811-a06d-12bd694db773', '8845dc81-9088-4285-9758-2bd153b02feb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36339041', 'ctest-vn4-21154619'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36339041', 'ctest-policy1-53431659']], 'subnet_ipam': [{'subnet_cidr': '130.240.48.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '322c:747a:a206:4636:f192:665b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-11 16:56:10,844 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 16:56:11,170 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 16:56:11,213 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fb7c22c2-0288-4af0-ab21-cc950696582f 2025-09-11 16:56:11,248 - DEBUG - Requesting: http://10.0.0.254:8082/project/a2b1c299-468d-47cc-9a42-4b990e5824a5 2025-09-11 16:56:11,355 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/136e85db-e1bc-4435-a88c-d6d9fb728432 2025-09-11 16:56:11,375 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/136e85db-e1bc-4435-a88c-d6d9fb728432 2025-09-11 16:56:11,394 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a45bd9bf-e6f8-4a86-9a3f-5927fa8a1f71 2025-09-11 16:56:11,409 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a45bd9bf-e6f8-4a86-9a3f-5927fa8a1f71 2025-09-11 16:56:11,421 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0c4bf0ca-7a0d-47c5-bf73-f088b98d91db 2025-09-11 16:56:11,435 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 16:56:11,435 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/136e85db-e1bc-4435-a88c-d6d9fb728432 2025-09-11 16:56:11,459 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a45bd9bf-e6f8-4a86-9a3f-5927fa8a1f71 2025-09-11 16:56:11,551 - INFO - Verified VN network id 11 for VN 136e85db-e1bc-4435-a88c-d6d9fb728432 2025-09-11 16:56:11,551 - INFO - Verifications in API Server for VN ctest-vn4-21154619 passed 2025-09-11 16:56:11,552 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/136e85db-e1bc-4435-a88c-d6d9fb728432 2025-09-11 16:56:11,573 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a45bd9bf-e6f8-4a86-9a3f-5927fa8a1f71 2025-09-11 16:56:11,585 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a45bd9bf-e6f8-4a86-9a3f-5927fa8a1f71 2025-09-11 16:56:11,599 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0c4bf0ca-7a0d-47c5-bf73-f088b98d91db 2025-09-11 16:56:11,622 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36339041:ctest-vn4-21154619', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36339041', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1400203713590346805', 'uuid-lslong': '12145318526826218546'}, 'enable': 'true', 'created': '2025-09-11T16:56:09', 'last-modified': '2025-09-11T16:56:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.022494'} 2025-09-11 16:56:11,634 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 16:56:11,634 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-21154619 passed 2025-09-11 16:56:11,634 - DEBUG - ====Verifying policy data for ctest-vn4-21154619 in API_Server ====== 2025-09-11 16:56:11,634 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 16:56:11,644 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fb7c22c2-0288-4af0-ab21-cc950696582f 2025-09-11 16:56:11,667 - DEBUG - Requesting: http://10.0.0.254:8082/project/a2b1c299-468d-47cc-9a42-4b990e5824a5 2025-09-11 16:56:11,778 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/136e85db-e1bc-4435-a88c-d6d9fb728432 2025-09-11 16:56:11,797 - DEBUG - ==>Verifying data for policy with id: 42f3129b-2d50-409f-bf59-e1866ac31998, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36339041', 'ctest-policy1-53431659'] 2025-09-11 16:56:11,797 - INFO - VN ctest-vn4-21154619 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-11 16:56:11,797 - DEBUG - Verifying the vn in opserver 2025-09-11 16:56:11,797 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36339041:ctest-vn4-21154619 virtual network link through opserver 10.0.0.254 2025-09-11 16:56:11,798 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-11 16:56:12,151 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-11 16:56:12,284 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36339041:ctest-vn4-21154619', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36339041:ctest-vn4-21154619?flat'} 2025-09-11 16:56:12,284 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36339041:ctest-vn4-21154619 is found in opserver 2025-09-11 16:56:12,299 - DEBUG - Do not have enough data to verify VN in agent 2025-09-11 16:56:12,308 - DEBUG - VRF ids for VN ctest-vn4-21154619: {} 2025-09-11 16:56:12,310 - DEBUG - ====Verifying data for ctest-policy1-53431659 in API_Server ====== 2025-09-11 16:56:12,310 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 16:56:12,321 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fb7c22c2-0288-4af0-ab21-cc950696582f 2025-09-11 16:56:12,339 - DEBUG - Requesting: http://10.0.0.254:8082/project/a2b1c299-468d-47cc-9a42-4b990e5824a5 2025-09-11 16:56:12,453 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/42f3129b-2d50-409f-bf59-e1866ac31998 2025-09-11 16:56:12,474 - INFO - Verified policy ctest-policy1-53431659 in API Server, Result: True 2025-09-11 16:56:12,474 - INFO - Done with setup and verification, moving onto test .. 2025-09-11 16:56:12,489 - INFO - Deleting VN ctest-vn4-21154619 2025-09-11 16:56:12,687 - DEBUG - Response for deleting network () 2025-09-11 16:56:12,687 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a45bd9bf-e6f8-4a86-9a3f-5927fa8a1f71 2025-09-11 16:56:12,694 - DEBUG - Response Code: 404 2025-09-11 16:56:12,694 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 16:56:12,702 - DEBUG - Requesting: http://10.0.0.254:8082/domain/fb7c22c2-0288-4af0-ab21-cc950696582f 2025-09-11 16:56:12,767 - DEBUG - Requesting: http://10.0.0.254:8082/project/a2b1c299-468d-47cc-9a42-4b990e5824a5 2025-09-11 16:56:12,870 - INFO - Validated that VN ctest-vn4-21154619 is not found in API Server 2025-09-11 16:56:12,899 - DEBUG - VN ctest-vn4-21154619 is not present in Agent 10.0.0.254 2025-09-11 16:56:12,900 - INFO - Validated that VN ctest-vn4-21154619 is not in any agent 2025-09-11 16:56:12,930 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-21154619 info 2025-09-11 16:56:12,959 - INFO - Deleted policy ctest-policy1-53431659 2025-09-11 16:56:13,143 - DEBUG - policy ctest-policy1-53431659 is not found in API Server 2025-09-11 16:56:13,453 - DEBUG - No XMPP flaps were noticed during the test
2025-09-11 16:56:13,453 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-09-11 16:56:13,453 - INFO - -------------------------------------------------------------------------------- 2025-09-11 16:56:13,795 - DEBUG - No XMPP flaps were noticed during the test
2025-09-11 16:56:13,795 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06]
2025-09-11 16:56:13,795 - INFO - -------------------------------------------------------------------------------- 2025-09-11 16:56:14,661 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-36339041, ID : a2b1c299-468d-47cc-9a42-4b990e5824a5