2025-10-27 14:59:34,780 - INFO - Domain Default found not creating 2025-10-27 14:59:34,960 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95248912 not found, creating it 2025-10-27 14:59:35,472 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95248912, ID : 18ba3054-0254-45b8-90e0-1e6a222c8b41 2025-10-27 14:59:37,035 - INFO - ================================================================================ 2025-10-27 14:59:37,035 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 14:59:37,288 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-10-27 14:59:37,288 - INFO - Initial checks done. Running the testcase now 2025-10-27 14:59:37,288 - INFO - 2025-10-27 14:59:37,288 - INFO - ================================================================================ 2025-10-27 14:59:37,288 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 14:59:37,288 - 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-10-27 14:59:37,575 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-10-27 14:59:37,575 - INFO - Initial checks done. Running the testcase now 2025-10-27 14:59:37,575 - INFO - 2025-10-27 14:59:37,968 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95248912:ctest-vn4-80029190, 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-95248912:ctest-vn4-80029190, 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-95248912:ctest-vn4-80029190, 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-95248912:ctest-vn4-80029190, 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-10-27 14:59:38,481 - DEBUG - Response for create_network : {'network': {'id': '1ff2a9a2-087f-4077-a1a5-0027d3fdc783', 'name': 'ctest-vn4-80029190', 'tenant_id': '18ba3054025445b890e01e6a222c8b41', 'project_id': '18ba3054025445b890e01e6a222c8b41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95248912', 'ctest-vn4-80029190'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 14:59:38,679 - DEBUG - Response for create_subnet : {'subnet': {'id': '1eb43edf-bf89-4edf-9edb-561fec0c10ac', 'name': '', 'tenant_id': '18ba3054025445b890e01e6a222c8b41', 'network_id': '1ff2a9a2-087f-4077-a1a5-0027d3fdc783', 'ip_version': 4, 'cidr': '169.73.81.0/26', 'allocation_pools': [{'start': '169.73.81.2', 'end': '169.73.81.62'}], 'gateway_ip': '169.73.81.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.73.81.2', 'tags': [], 'project_id': '18ba3054025445b890e01e6a222c8b41'}} 2025-10-27 14:59:38,842 - DEBUG - Response for create_subnet : {'subnet': {'id': '97290d6e-00c5-48a4-8db0-0701e460ccc2', 'name': '', 'tenant_id': '18ba3054025445b890e01e6a222c8b41', 'network_id': '1ff2a9a2-087f-4077-a1a5-0027d3fdc783', 'ip_version': 6, 'cidr': '3a4b:4093:9e44:13d7:5585:b75e::/96', 'allocation_pools': [{'start': '3a4b:4093:9e44:13d7:5585:b75e:0:2', 'end': '3a4b:4093:9e44:13d7:5585:b75e:ffff:fffe'}], 'gateway_ip': '3a4b:4093:9e44:13d7:5585:b75e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a4b:4093:9e44:13d7:5585:b75e:0:2', 'tags': [], 'project_id': '18ba3054025445b890e01e6a222c8b41'}} 2025-10-27 14:59:38,864 - INFO - Created VN ctest-vn4-80029190 2025-10-27 14:59:38,918 - DEBUG - VN ctest-vn4-80029190 UUID is 1ff2a9a2-087f-4077-a1a5-0027d3fdc783 2025-10-27 14:59:39,141 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1ff2a9a2-087f-4077-a1a5-0027d3fdc783', 'name': 'ctest-vn4-80029190', 'tenant_id': '18ba3054025445b890e01e6a222c8b41', 'project_id': '18ba3054025445b890e01e6a222c8b41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1eb43edf-bf89-4edf-9edb-561fec0c10ac', '97290d6e-00c5-48a4-8db0-0701e460ccc2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95248912', 'ctest-vn4-80029190'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95248912', 'ctest-policy1-49624812']], 'subnet_ipam': [{'subnet_cidr': '169.73.81.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a4b:4093:9e44:13d7:5585:b75e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-27 14:59:39,298 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 14:59:39,647 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 14:59:39,684 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0b6beecf-458a-42d6-86e1-d418933685c8 2025-10-27 14:59:39,700 - DEBUG - Requesting: http://10.0.0.242:8082/project/18ba3054-0254-45b8-90e0-1e6a222c8b41 2025-10-27 14:59:39,778 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1ff2a9a2-087f-4077-a1a5-0027d3fdc783 2025-10-27 14:59:39,790 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1ff2a9a2-087f-4077-a1a5-0027d3fdc783 2025-10-27 14:59:39,799 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a3223758-0ab1-4167-a0df-ce6a7a7ff8b0 2025-10-27 14:59:39,805 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a3223758-0ab1-4167-a0df-ce6a7a7ff8b0 2025-10-27 14:59:39,812 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/a1816e37-4dda-48d4-b20d-74d81362d1db 2025-10-27 14:59:39,818 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 14:59:39,818 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1ff2a9a2-087f-4077-a1a5-0027d3fdc783 2025-10-27 14:59:39,828 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a3223758-0ab1-4167-a0df-ce6a7a7ff8b0 2025-10-27 14:59:39,844 - INFO - Verified VN network id 11 for VN 1ff2a9a2-087f-4077-a1a5-0027d3fdc783 2025-10-27 14:59:39,844 - INFO - Verifications in API Server for VN ctest-vn4-80029190 passed 2025-10-27 14:59:39,844 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1ff2a9a2-087f-4077-a1a5-0027d3fdc783 2025-10-27 14:59:39,856 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a3223758-0ab1-4167-a0df-ce6a7a7ff8b0 2025-10-27 14:59:39,864 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a3223758-0ab1-4167-a0df-ce6a7a7ff8b0 2025-10-27 14:59:39,873 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/a1816e37-4dda-48d4-b20d-74d81362d1db 2025-10-27 14:59:39,888 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95248912:ctest-vn4-80029190', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95248912', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2302088872932098167', 'uuid-lslong': '11647716182324004739'}, 'enable': 'true', 'created': '2025-10-27T14:59:38', 'last-modified': '2025-10-27T14:59:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.792429'} 2025-10-27 14:59:39,895 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 14:59:39,895 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-80029190 passed 2025-10-27 14:59:39,895 - DEBUG - ====Verifying policy data for ctest-vn4-80029190 in API_Server ====== 2025-10-27 14:59:39,895 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 14:59:39,901 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0b6beecf-458a-42d6-86e1-d418933685c8 2025-10-27 14:59:39,914 - DEBUG - Requesting: http://10.0.0.242:8082/project/18ba3054-0254-45b8-90e0-1e6a222c8b41 2025-10-27 14:59:39,989 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1ff2a9a2-087f-4077-a1a5-0027d3fdc783 2025-10-27 14:59:39,999 - DEBUG - ==>Verifying data for policy with id: 58d37483-84b1-4a1d-ab69-e20b5fae3798, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95248912', 'ctest-policy1-49624812'] 2025-10-27 14:59:39,999 - INFO - VN ctest-vn4-80029190 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-27 14:59:39,999 - DEBUG - Verifying the vn in opserver 2025-10-27 14:59:40,000 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95248912:ctest-vn4-80029190 virtual network link through opserver 10.0.0.242 2025-10-27 14:59:40,000 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-27 14:59:40,332 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-27 14:59:40,394 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95248912:ctest-vn4-80029190', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95248912:ctest-vn4-80029190?flat'} 2025-10-27 14:59:40,394 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95248912:ctest-vn4-80029190 is found in opserver 2025-10-27 14:59:40,406 - DEBUG - Do not have enough data to verify VN in agent 2025-10-27 14:59:40,411 - DEBUG - VRF ids for VN ctest-vn4-80029190: {} 2025-10-27 14:59:40,412 - DEBUG - ====Verifying data for ctest-policy1-49624812 in API_Server ====== 2025-10-27 14:59:40,412 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 14:59:40,418 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0b6beecf-458a-42d6-86e1-d418933685c8 2025-10-27 14:59:40,429 - DEBUG - Requesting: http://10.0.0.242:8082/project/18ba3054-0254-45b8-90e0-1e6a222c8b41 2025-10-27 14:59:40,526 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/58d37483-84b1-4a1d-ab69-e20b5fae3798 2025-10-27 14:59:40,538 - INFO - Verified policy ctest-policy1-49624812 in API Server, Result: True 2025-10-27 14:59:40,538 - INFO - Done with setup and verification, moving onto test .. 2025-10-27 14:59:40,547 - INFO - Deleting VN ctest-vn4-80029190 2025-10-27 14:59:40,690 - DEBUG - Response for deleting network () 2025-10-27 14:59:40,690 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a3223758-0ab1-4167-a0df-ce6a7a7ff8b0 2025-10-27 14:59:40,695 - DEBUG - Response Code: 404 2025-10-27 14:59:40,696 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 14:59:40,704 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0b6beecf-458a-42d6-86e1-d418933685c8 2025-10-27 14:59:40,763 - DEBUG - Requesting: http://10.0.0.242:8082/project/18ba3054-0254-45b8-90e0-1e6a222c8b41 2025-10-27 14:59:40,832 - INFO - Validated that VN ctest-vn4-80029190 is not found in API Server 2025-10-27 14:59:40,843 - DEBUG - VN ctest-vn4-80029190 is not present in Agent 10.0.0.242 2025-10-27 14:59:40,843 - INFO - Validated that VN ctest-vn4-80029190 is not in any agent 2025-10-27 14:59:40,856 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-80029190 info 2025-10-27 14:59:40,879 - INFO - Deleted policy ctest-policy1-49624812 2025-10-27 14:59:41,046 - DEBUG - policy ctest-policy1-49624812 is not found in API Server 2025-10-27 14:59:41,300 - DEBUG - No XMPP flaps were noticed during the test