2025-11-03 17:56:22,713 - INFO - Domain Default found not creating 2025-11-03 17:56:22,891 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-57800089 not found, creating it 2025-11-03 17:56:23,369 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-57800089, ID : b8a349c7-7a4b-4977-8465-730f4c08f7c8 2025-11-03 17:56:24,894 - INFO - ================================================================================ 2025-11-03 17:56:24,894 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-03 17:56:25,151 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-11-03 17:56:25,151 - INFO - Initial checks done. Running the testcase now 2025-11-03 17:56:25,151 - INFO - 2025-11-03 17:56:25,152 - INFO - ================================================================================ 2025-11-03 17:56:25,152 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-03 17:56:25,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-11-03 17:56:25,448 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-11-03 17:56:25,448 - INFO - Initial checks done. Running the testcase now 2025-11-03 17:56:25,448 - INFO - 2025-11-03 17:56:25,850 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57800089:ctest-vn4-05950977, 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-57800089:ctest-vn4-05950977, 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-57800089:ctest-vn4-05950977, 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-57800089:ctest-vn4-05950977, 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-11-03 17:56:26,433 - DEBUG - Response for create_network : {'network': {'id': 'c360d6b1-ce08-40e4-86bd-9386cf6c61df', 'name': 'ctest-vn4-05950977', 'tenant_id': 'b8a349c77a4b49778465730f4c08f7c8', 'project_id': 'b8a349c77a4b49778465730f4c08f7c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57800089', 'ctest-vn4-05950977'], 'port_security_enabled': True, 'description': ''}} 2025-11-03 17:56:26,633 - DEBUG - Response for create_subnet : {'subnet': {'id': '92d175a4-bfa0-4ed4-8dd4-65569791f078', 'name': '', 'tenant_id': 'b8a349c77a4b49778465730f4c08f7c8', 'network_id': 'c360d6b1-ce08-40e4-86bd-9386cf6c61df', 'ip_version': 4, 'cidr': '22.79.47.128/26', 'allocation_pools': [{'start': '22.79.47.130', 'end': '22.79.47.190'}], 'gateway_ip': '22.79.47.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.79.47.130', 'tags': [], 'project_id': 'b8a349c77a4b49778465730f4c08f7c8'}} 2025-11-03 17:56:26,840 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e6e8a98-99e5-44a8-bf74-4051ca4adfd5', 'name': '', 'tenant_id': 'b8a349c77a4b49778465730f4c08f7c8', 'network_id': 'c360d6b1-ce08-40e4-86bd-9386cf6c61df', 'ip_version': 6, 'cidr': '263b:c9eb:aac0:7aaa:55c2:41a9::/96', 'allocation_pools': [{'start': '263b:c9eb:aac0:7aaa:55c2:41a9:0:2', 'end': '263b:c9eb:aac0:7aaa:55c2:41a9:ffff:fffe'}], 'gateway_ip': '263b:c9eb:aac0:7aaa:55c2:41a9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '263b:c9eb:aac0:7aaa:55c2:41a9:0:2', 'tags': [], 'project_id': 'b8a349c77a4b49778465730f4c08f7c8'}} 2025-11-03 17:56:26,863 - INFO - Created VN ctest-vn4-05950977 2025-11-03 17:56:26,918 - DEBUG - VN ctest-vn4-05950977 UUID is c360d6b1-ce08-40e4-86bd-9386cf6c61df 2025-11-03 17:56:27,132 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c360d6b1-ce08-40e4-86bd-9386cf6c61df', 'name': 'ctest-vn4-05950977', 'tenant_id': 'b8a349c77a4b49778465730f4c08f7c8', 'project_id': 'b8a349c77a4b49778465730f4c08f7c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['92d175a4-bfa0-4ed4-8dd4-65569791f078', '3e6e8a98-99e5-44a8-bf74-4051ca4adfd5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57800089', 'ctest-vn4-05950977'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57800089', 'ctest-policy1-73428185']], 'subnet_ipam': [{'subnet_cidr': '22.79.47.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '263b:c9eb:aac0:7aaa:55c2:41a9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-03 17:56:27,302 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-03 17:56:27,601 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-03 17:56:27,634 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74f4a7a9-0448-4f59-b582-413a395f4304 2025-11-03 17:56:27,647 - DEBUG - Requesting: http://10.0.0.33:8082/project/b8a349c7-7a4b-4977-8465-730f4c08f7c8 2025-11-03 17:56:27,717 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c360d6b1-ce08-40e4-86bd-9386cf6c61df 2025-11-03 17:56:27,734 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c360d6b1-ce08-40e4-86bd-9386cf6c61df 2025-11-03 17:56:27,745 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c7fc4564-5f57-436d-8572-69955e072d5f 2025-11-03 17:56:27,753 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c7fc4564-5f57-436d-8572-69955e072d5f 2025-11-03 17:56:27,761 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/32d85fc8-13b1-4896-a8cf-6e3d4b017fcc 2025-11-03 17:56:27,769 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 17:56:27,769 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c360d6b1-ce08-40e4-86bd-9386cf6c61df 2025-11-03 17:56:27,780 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c7fc4564-5f57-436d-8572-69955e072d5f 2025-11-03 17:56:27,794 - INFO - Verified VN network id 11 for VN c360d6b1-ce08-40e4-86bd-9386cf6c61df 2025-11-03 17:56:27,794 - INFO - Verifications in API Server for VN ctest-vn4-05950977 passed 2025-11-03 17:56:27,795 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c360d6b1-ce08-40e4-86bd-9386cf6c61df 2025-11-03 17:56:27,805 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c7fc4564-5f57-436d-8572-69955e072d5f 2025-11-03 17:56:27,813 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c7fc4564-5f57-436d-8572-69955e072d5f 2025-11-03 17:56:27,824 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/32d85fc8-13b1-4896-a8cf-6e3d4b017fcc 2025-11-03 17:56:27,835 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57800089:ctest-vn4-05950977', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-57800089', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14078488494314373348', 'uuid-lslong': '9709078578895544799'}, 'enable': 'true', 'created': '2025-11-03T17:56:26', 'last-modified': '2025-11-03T17:56:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.731258'} 2025-11-03 17:56:27,844 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 17:56:27,844 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05950977 passed 2025-11-03 17:56:27,844 - DEBUG - ====Verifying policy data for ctest-vn4-05950977 in API_Server ====== 2025-11-03 17:56:27,844 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-03 17:56:27,851 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74f4a7a9-0448-4f59-b582-413a395f4304 2025-11-03 17:56:27,862 - DEBUG - Requesting: http://10.0.0.33:8082/project/b8a349c7-7a4b-4977-8465-730f4c08f7c8 2025-11-03 17:56:27,936 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c360d6b1-ce08-40e4-86bd-9386cf6c61df 2025-11-03 17:56:27,947 - DEBUG - ==>Verifying data for policy with id: e27f6662-e702-4754-bdfd-2d7c527b251b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57800089', 'ctest-policy1-73428185'] 2025-11-03 17:56:27,947 - INFO - VN ctest-vn4-05950977 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-03 17:56:27,947 - DEBUG - Verifying the vn in opserver 2025-11-03 17:56:27,947 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57800089:ctest-vn4-05950977 virtual network link through opserver 10.0.0.33 2025-11-03 17:56:27,947 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-03 17:56:28,246 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-03 17:56:28,315 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57800089:ctest-vn4-05950977', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57800089:ctest-vn4-05950977?flat'} 2025-11-03 17:56:28,315 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57800089:ctest-vn4-05950977 is found in opserver 2025-11-03 17:56:28,327 - DEBUG - Do not have enough data to verify VN in agent 2025-11-03 17:56:28,333 - DEBUG - VRF ids for VN ctest-vn4-05950977: {} 2025-11-03 17:56:28,333 - DEBUG - ====Verifying data for ctest-policy1-73428185 in API_Server ====== 2025-11-03 17:56:28,333 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-03 17:56:28,339 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74f4a7a9-0448-4f59-b582-413a395f4304 2025-11-03 17:56:28,350 - DEBUG - Requesting: http://10.0.0.33:8082/project/b8a349c7-7a4b-4977-8465-730f4c08f7c8 2025-11-03 17:56:28,422 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/e27f6662-e702-4754-bdfd-2d7c527b251b 2025-11-03 17:56:28,431 - INFO - Verified policy ctest-policy1-73428185 in API Server, Result: True 2025-11-03 17:56:28,431 - INFO - Done with setup and verification, moving onto test .. 2025-11-03 17:56:28,439 - INFO - Deleting VN ctest-vn4-05950977 2025-11-03 17:56:28,566 - DEBUG - Response for deleting network () 2025-11-03 17:56:28,566 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c7fc4564-5f57-436d-8572-69955e072d5f 2025-11-03 17:56:28,572 - DEBUG - Response Code: 404 2025-11-03 17:56:28,572 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-03 17:56:28,578 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74f4a7a9-0448-4f59-b582-413a395f4304 2025-11-03 17:56:28,632 - DEBUG - Requesting: http://10.0.0.33:8082/project/b8a349c7-7a4b-4977-8465-730f4c08f7c8 2025-11-03 17:56:28,705 - INFO - Validated that VN ctest-vn4-05950977 is not found in API Server 2025-11-03 17:56:28,717 - DEBUG - VN ctest-vn4-05950977 is not present in Agent 10.0.0.33 2025-11-03 17:56:28,717 - INFO - Validated that VN ctest-vn4-05950977 is not in any agent 2025-11-03 17:56:28,734 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05950977 info 2025-11-03 17:56:28,756 - INFO - Deleted policy ctest-policy1-73428185 2025-11-03 17:56:28,926 - DEBUG - policy ctest-policy1-73428185 is not found in API Server 2025-11-03 17:56:29,191 - DEBUG - No XMPP flaps were noticed during the test