2026-04-23 01:59:49,923 - INFO - Domain Default found not creating 2026-04-23 01:59:50,083 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-12528128 not found, creating it 2026-04-23 01:59:50,522 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-12528128, ID : fc3a7f34-cefc-44df-9717-3757c3ac8f35 2026-04-23 01:59:51,931 - INFO - ================================================================================ 2026-04-23 01:59:51,931 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-23 01:59:52,193 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-23 01:59:52,193 - INFO - Initial checks done. Running the testcase now 2026-04-23 01:59:52,193 - INFO - 2026-04-23 01:59:52,193 - INFO - ================================================================================ 2026-04-23 01:59:52,193 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-23 01:59:52,194 - 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. 2026-04-23 01:59:52,479 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-23 01:59:52,479 - INFO - Initial checks done. Running the testcase now 2026-04-23 01:59:52,479 - INFO - 2026-04-23 01:59:52,867 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12528128:ctest-vn4-72875091, 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-12528128:ctest-vn4-72875091, 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-12528128:ctest-vn4-72875091, 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-12528128:ctest-vn4-72875091, 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] 2026-04-23 01:59:53,365 - DEBUG - Response for create_network : {'network': {'id': '69a4d9f8-ce1b-49b8-b82f-29a2aabf51c6', 'name': 'ctest-vn4-72875091', 'tenant_id': 'fc3a7f34cefc44df97173757c3ac8f35', 'project_id': 'fc3a7f34cefc44df97173757c3ac8f35', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12528128', 'ctest-vn4-72875091'], 'port_security_enabled': True, 'description': ''}} 2026-04-23 01:59:53,535 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b54a145-e36e-49ac-bcc6-34c3ce3782b0', 'name': '', 'tenant_id': 'fc3a7f34cefc44df97173757c3ac8f35', 'network_id': '69a4d9f8-ce1b-49b8-b82f-29a2aabf51c6', 'ip_version': 4, 'cidr': '163.160.52.64/26', 'allocation_pools': [{'start': '163.160.52.66', 'end': '163.160.52.126'}], 'gateway_ip': '163.160.52.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.160.52.66', 'tags': [], 'project_id': 'fc3a7f34cefc44df97173757c3ac8f35'}} 2026-04-23 01:59:53,714 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf7aa831-5656-480e-82ac-65a279c82277', 'name': '', 'tenant_id': 'fc3a7f34cefc44df97173757c3ac8f35', 'network_id': '69a4d9f8-ce1b-49b8-b82f-29a2aabf51c6', 'ip_version': 6, 'cidr': '2d17:cdf2:649:998e:fc1c:401f::/96', 'allocation_pools': [{'start': '2d17:cdf2:649:998e:fc1c:401f:0:2', 'end': '2d17:cdf2:649:998e:fc1c:401f:ffff:fffe'}], 'gateway_ip': '2d17:cdf2:649:998e:fc1c:401f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d17:cdf2:649:998e:fc1c:401f:0:2', 'tags': [], 'project_id': 'fc3a7f34cefc44df97173757c3ac8f35'}} 2026-04-23 01:59:53,733 - INFO - Created VN ctest-vn4-72875091 2026-04-23 01:59:53,783 - DEBUG - VN ctest-vn4-72875091 UUID is 69a4d9f8-ce1b-49b8-b82f-29a2aabf51c6 2026-04-23 01:59:53,958 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '69a4d9f8-ce1b-49b8-b82f-29a2aabf51c6', 'name': 'ctest-vn4-72875091', 'tenant_id': 'fc3a7f34cefc44df97173757c3ac8f35', 'project_id': 'fc3a7f34cefc44df97173757c3ac8f35', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b54a145-e36e-49ac-bcc6-34c3ce3782b0', 'cf7aa831-5656-480e-82ac-65a279c82277'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12528128', 'ctest-vn4-72875091'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12528128', 'ctest-policy1-16636816']], 'subnet_ipam': [{'subnet_cidr': '163.160.52.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d17:cdf2:649:998e:fc1c:401f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-23 01:59:54,127 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-23 01:59:54,418 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-23 01:59:54,444 - DEBUG - Requesting: http://10.0.0.38:8082/domain/63294607-7558-4a2c-b899-0097ad180adc 2026-04-23 01:59:54,456 - DEBUG - Requesting: http://10.0.0.38:8082/project/fc3a7f34-cefc-44df-9717-3757c3ac8f35 2026-04-23 01:59:54,526 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/69a4d9f8-ce1b-49b8-b82f-29a2aabf51c6 2026-04-23 01:59:54,536 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/69a4d9f8-ce1b-49b8-b82f-29a2aabf51c6 2026-04-23 01:59:54,544 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3652e927-8e6c-4061-bdae-d9f1f3b4c1e0 2026-04-23 01:59:54,548 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3652e927-8e6c-4061-bdae-d9f1f3b4c1e0 2026-04-23 01:59:54,553 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0f2aab9d-8f71-4707-a71f-04f013b99abe 2026-04-23 01:59:54,558 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-23 01:59:54,558 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/69a4d9f8-ce1b-49b8-b82f-29a2aabf51c6 2026-04-23 01:59:54,565 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3652e927-8e6c-4061-bdae-d9f1f3b4c1e0 2026-04-23 01:59:54,577 - INFO - Verified VN network id 9 for VN 69a4d9f8-ce1b-49b8-b82f-29a2aabf51c6 2026-04-23 01:59:54,577 - INFO - Verifications in API Server for VN ctest-vn4-72875091 passed 2026-04-23 01:59:54,577 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/69a4d9f8-ce1b-49b8-b82f-29a2aabf51c6 2026-04-23 01:59:54,584 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3652e927-8e6c-4061-bdae-d9f1f3b4c1e0 2026-04-23 01:59:54,589 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3652e927-8e6c-4061-bdae-d9f1f3b4c1e0 2026-04-23 01:59:54,594 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0f2aab9d-8f71-4707-a71f-04f013b99abe 2026-04-23 01:59:54,604 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12528128:ctest-vn4-72875091', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-12528128', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7612448932795992504', 'uuid-lslong': '13271872405510246854'}, 'enable': 'true', 'created': '2026-04-23T01:59:53', 'last-modified': '2026-04-23T01:59:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.666815'} 2026-04-23 01:59:54,609 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-23 01:59:54,609 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-72875091 passed 2026-04-23 01:59:54,609 - DEBUG - ====Verifying policy data for ctest-vn4-72875091 in API_Server ====== 2026-04-23 01:59:54,610 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-23 01:59:54,613 - DEBUG - Requesting: http://10.0.0.38:8082/domain/63294607-7558-4a2c-b899-0097ad180adc 2026-04-23 01:59:54,622 - DEBUG - Requesting: http://10.0.0.38:8082/project/fc3a7f34-cefc-44df-9717-3757c3ac8f35 2026-04-23 01:59:54,693 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/69a4d9f8-ce1b-49b8-b82f-29a2aabf51c6 2026-04-23 01:59:54,701 - DEBUG - ==>Verifying data for policy with id: 5f8f908a-2c2d-4909-9f1e-38e294288b36, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12528128', 'ctest-policy1-16636816'] 2026-04-23 01:59:54,701 - INFO - VN ctest-vn4-72875091 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-23 01:59:54,701 - DEBUG - Verifying the vn in opserver 2026-04-23 01:59:54,701 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12528128:ctest-vn4-72875091 virtual network link through opserver 10.0.0.38 2026-04-23 01:59:54,701 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-23 01:59:54,994 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-23 01:59:55,046 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12528128:ctest-vn4-72875091', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12528128:ctest-vn4-72875091?flat'} 2026-04-23 01:59:55,046 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12528128:ctest-vn4-72875091 is found in opserver 2026-04-23 01:59:55,055 - DEBUG - Do not have enough data to verify VN in agent 2026-04-23 01:59:55,060 - DEBUG - VRF ids for VN ctest-vn4-72875091: {} 2026-04-23 01:59:55,060 - DEBUG - ====Verifying data for ctest-policy1-16636816 in API_Server ====== 2026-04-23 01:59:55,060 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-23 01:59:55,067 - DEBUG - Requesting: http://10.0.0.38:8082/domain/63294607-7558-4a2c-b899-0097ad180adc 2026-04-23 01:59:55,076 - DEBUG - Requesting: http://10.0.0.38:8082/project/fc3a7f34-cefc-44df-9717-3757c3ac8f35 2026-04-23 01:59:55,143 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/5f8f908a-2c2d-4909-9f1e-38e294288b36 2026-04-23 01:59:55,151 - INFO - Verified policy ctest-policy1-16636816 in API Server, Result: True 2026-04-23 01:59:55,151 - INFO - Done with setup and verification, moving onto test .. 2026-04-23 01:59:55,157 - INFO - Deleting VN ctest-vn4-72875091 2026-04-23 01:59:55,253 - DEBUG - Response for deleting network () 2026-04-23 01:59:55,253 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3652e927-8e6c-4061-bdae-d9f1f3b4c1e0 2026-04-23 01:59:55,257 - DEBUG - Response Code: 404 2026-04-23 01:59:55,257 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-23 01:59:55,261 - DEBUG - Requesting: http://10.0.0.38:8082/domain/63294607-7558-4a2c-b899-0097ad180adc 2026-04-23 01:59:55,311 - DEBUG - Requesting: http://10.0.0.38:8082/project/fc3a7f34-cefc-44df-9717-3757c3ac8f35 2026-04-23 01:59:55,378 - INFO - Validated that VN ctest-vn4-72875091 is not found in API Server 2026-04-23 01:59:55,386 - DEBUG - VN ctest-vn4-72875091 is not present in Agent 10.0.0.38 2026-04-23 01:59:55,386 - INFO - Validated that VN ctest-vn4-72875091 is not in any agent 2026-04-23 01:59:55,398 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-72875091 info 2026-04-23 01:59:55,420 - INFO - Deleted policy ctest-policy1-16636816 2026-04-23 01:59:55,583 - DEBUG - policy ctest-policy1-16636816 is not found in API Server 2026-04-23 01:59:55,836 - DEBUG - No XMPP flaps were noticed during the test
2026-04-23 01:59:55,836 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-04-23 01:59:55,837 - INFO - -------------------------------------------------------------------------------- 2026-04-23 01:59:56,131 - DEBUG - No XMPP flaps were noticed during the test
2026-04-23 01:59:56,131 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-04-23 01:59:56,132 - INFO - -------------------------------------------------------------------------------- 2026-04-23 01:59:56,795 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-12528128, ID : fc3a7f34-cefc-44df-9717-3757c3ac8f35