2025-09-14 22:38:05,860 - INFO - Domain Default found not creating 2025-09-14 22:38:05,996 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71458531 not found, creating it 2025-09-14 22:38:06,420 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71458531, ID : 0a7bf536-9ef4-49dc-9553-1053ef1eceb4 2025-09-14 22:38:07,753 - INFO - ================================================================================ 2025-09-14 22:38:07,753 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-14 22:38:08,015 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-14 22:38:08,015 - INFO - Initial checks done. Running the testcase now 2025-09-14 22:38:08,015 - INFO - 2025-09-14 22:38:08,015 - INFO - ================================================================================ 2025-09-14 22:38:08,015 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-14 22:38:08,015 - 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-14 22:38:08,301 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-14 22:38:08,301 - INFO - Initial checks done. Running the testcase now 2025-09-14 22:38:08,301 - INFO - 2025-09-14 22:38:08,680 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71458531:ctest-vn4-64985995, 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-71458531:ctest-vn4-64985995, 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-71458531:ctest-vn4-64985995, 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-71458531:ctest-vn4-64985995, 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-14 22:38:09,175 - DEBUG - Response for create_network : {'network': {'id': '77024178-0216-4c5c-9238-40b2e174287d', 'name': 'ctest-vn4-64985995', 'tenant_id': '0a7bf5369ef449dc95531053ef1eceb4', 'project_id': '0a7bf5369ef449dc95531053ef1eceb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71458531', 'ctest-vn4-64985995'], 'port_security_enabled': True, 'description': ''}} 2025-09-14 22:38:09,371 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f672acb-1ea4-4323-9f6d-2018bfffe29c', 'name': '', 'tenant_id': '0a7bf5369ef449dc95531053ef1eceb4', 'network_id': '77024178-0216-4c5c-9238-40b2e174287d', 'ip_version': 4, 'cidr': '98.20.192.128/26', 'allocation_pools': [{'start': '98.20.192.130', 'end': '98.20.192.190'}], 'gateway_ip': '98.20.192.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.20.192.130', 'tags': [], 'project_id': '0a7bf5369ef449dc95531053ef1eceb4'}} 2025-09-14 22:38:09,499 - DEBUG - Response for create_subnet : {'subnet': {'id': '2f00f17d-d1da-41f1-9b84-a15e8d57a8b3', 'name': '', 'tenant_id': '0a7bf5369ef449dc95531053ef1eceb4', 'network_id': '77024178-0216-4c5c-9238-40b2e174287d', 'ip_version': 6, 'cidr': '27e9:9736:d18a:aeb0:3201:8034::/96', 'allocation_pools': [{'start': '27e9:9736:d18a:aeb0:3201:8034:0:2', 'end': '27e9:9736:d18a:aeb0:3201:8034:ffff:fffe'}], 'gateway_ip': '27e9:9736:d18a:aeb0:3201:8034:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27e9:9736:d18a:aeb0:3201:8034:0:2', 'tags': [], 'project_id': '0a7bf5369ef449dc95531053ef1eceb4'}} 2025-09-14 22:38:09,516 - INFO - Created VN ctest-vn4-64985995 2025-09-14 22:38:09,568 - DEBUG - VN ctest-vn4-64985995 UUID is 77024178-0216-4c5c-9238-40b2e174287d 2025-09-14 22:38:09,796 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '77024178-0216-4c5c-9238-40b2e174287d', 'name': 'ctest-vn4-64985995', 'tenant_id': '0a7bf5369ef449dc95531053ef1eceb4', 'project_id': '0a7bf5369ef449dc95531053ef1eceb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f672acb-1ea4-4323-9f6d-2018bfffe29c', '2f00f17d-d1da-41f1-9b84-a15e8d57a8b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71458531', 'ctest-vn4-64985995'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71458531', 'ctest-policy1-67570766']], 'subnet_ipam': [{'subnet_cidr': '98.20.192.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '27e9:9736:d18a:aeb0:3201:8034::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-14 22:38:09,960 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-14 22:38:10,258 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-14 22:38:10,282 - DEBUG - Requesting: http://10.0.0.22:8082/domain/de99fe32-bc6c-4187-a118-14ae521dec76 2025-09-14 22:38:10,292 - DEBUG - Requesting: http://10.0.0.22:8082/project/0a7bf536-9ef4-49dc-9553-1053ef1eceb4 2025-09-14 22:38:10,362 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/77024178-0216-4c5c-9238-40b2e174287d 2025-09-14 22:38:10,371 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/77024178-0216-4c5c-9238-40b2e174287d 2025-09-14 22:38:10,379 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b912cec9-13f6-4a81-b794-7deffeda53d6 2025-09-14 22:38:10,385 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b912cec9-13f6-4a81-b794-7deffeda53d6 2025-09-14 22:38:10,389 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/13cde7ea-3104-4e4d-85b5-08621011e8b8 2025-09-14 22:38:10,394 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-14 22:38:10,395 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/77024178-0216-4c5c-9238-40b2e174287d 2025-09-14 22:38:10,402 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b912cec9-13f6-4a81-b794-7deffeda53d6 2025-09-14 22:38:10,412 - INFO - Verified VN network id 12 for VN 77024178-0216-4c5c-9238-40b2e174287d 2025-09-14 22:38:10,412 - INFO - Verifications in API Server for VN ctest-vn4-64985995 passed 2025-09-14 22:38:10,412 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/77024178-0216-4c5c-9238-40b2e174287d 2025-09-14 22:38:10,419 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b912cec9-13f6-4a81-b794-7deffeda53d6 2025-09-14 22:38:10,424 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b912cec9-13f6-4a81-b794-7deffeda53d6 2025-09-14 22:38:10,429 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/13cde7ea-3104-4e4d-85b5-08621011e8b8 2025-09-14 22:38:10,438 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71458531:ctest-vn4-64985995', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71458531', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8575488624153742428', 'uuid-lslong': '10536242465264117885'}, 'enable': 'true', 'created': '2025-09-14T22:38:09', 'last-modified': '2025-09-14T22:38:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.720342'} 2025-09-14 22:38:10,443 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-14 22:38:10,443 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-64985995 passed 2025-09-14 22:38:10,443 - DEBUG - ====Verifying policy data for ctest-vn4-64985995 in API_Server ====== 2025-09-14 22:38:10,443 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-14 22:38:10,448 - DEBUG - Requesting: http://10.0.0.22:8082/domain/de99fe32-bc6c-4187-a118-14ae521dec76 2025-09-14 22:38:10,458 - DEBUG - Requesting: http://10.0.0.22:8082/project/0a7bf536-9ef4-49dc-9553-1053ef1eceb4 2025-09-14 22:38:10,525 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/77024178-0216-4c5c-9238-40b2e174287d 2025-09-14 22:38:10,533 - DEBUG - ==>Verifying data for policy with id: d8ab38b4-ebd7-4c25-9bf4-843b20cf299d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71458531', 'ctest-policy1-67570766'] 2025-09-14 22:38:10,533 - INFO - VN ctest-vn4-64985995 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-14 22:38:10,533 - DEBUG - Verifying the vn in opserver 2025-09-14 22:38:10,533 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71458531:ctest-vn4-64985995 virtual network link through opserver 10.0.0.22 2025-09-14 22:38:10,534 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-14 22:38:10,824 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-14 22:38:10,884 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71458531:ctest-vn4-64985995', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71458531:ctest-vn4-64985995?flat'} 2025-09-14 22:38:10,884 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71458531:ctest-vn4-64985995 is found in opserver 2025-09-14 22:38:10,893 - DEBUG - Do not have enough data to verify VN in agent 2025-09-14 22:38:10,897 - DEBUG - VRF ids for VN ctest-vn4-64985995: {} 2025-09-14 22:38:10,897 - DEBUG - ====Verifying data for ctest-policy1-67570766 in API_Server ====== 2025-09-14 22:38:10,897 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-14 22:38:10,902 - DEBUG - Requesting: http://10.0.0.22:8082/domain/de99fe32-bc6c-4187-a118-14ae521dec76 2025-09-14 22:38:10,911 - DEBUG - Requesting: http://10.0.0.22:8082/project/0a7bf536-9ef4-49dc-9553-1053ef1eceb4 2025-09-14 22:38:10,983 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/d8ab38b4-ebd7-4c25-9bf4-843b20cf299d 2025-09-14 22:38:10,991 - INFO - Verified policy ctest-policy1-67570766 in API Server, Result: True 2025-09-14 22:38:10,992 - INFO - Done with setup and verification, moving onto test .. 2025-09-14 22:38:10,998 - INFO - Deleting VN ctest-vn4-64985995 2025-09-14 22:38:11,105 - DEBUG - Response for deleting network () 2025-09-14 22:38:11,105 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b912cec9-13f6-4a81-b794-7deffeda53d6 2025-09-14 22:38:11,109 - DEBUG - Response Code: 404 2025-09-14 22:38:11,109 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-14 22:38:11,114 - DEBUG - Requesting: http://10.0.0.22:8082/domain/de99fe32-bc6c-4187-a118-14ae521dec76 2025-09-14 22:38:11,164 - DEBUG - Requesting: http://10.0.0.22:8082/project/0a7bf536-9ef4-49dc-9553-1053ef1eceb4 2025-09-14 22:38:11,233 - INFO - Validated that VN ctest-vn4-64985995 is not found in API Server 2025-09-14 22:38:11,241 - DEBUG - VN ctest-vn4-64985995 is not present in Agent 10.0.0.22 2025-09-14 22:38:11,241 - INFO - Validated that VN ctest-vn4-64985995 is not in any agent 2025-09-14 22:38:11,252 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-64985995 info 2025-09-14 22:38:11,277 - INFO - Deleted policy ctest-policy1-67570766 2025-09-14 22:38:11,440 - DEBUG - policy ctest-policy1-67570766 is not found in API Server 2025-09-14 22:38:11,693 - DEBUG - No XMPP flaps were noticed during the test