2026-01-29 03:49:55,609 - INFO - Domain Default found not creating 2026-01-29 03:49:55,788 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-53928627 not found, creating it 2026-01-29 03:49:56,278 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-53928627, ID : 02f45ee3-c340-4981-8782-a93f693e15c4 2026-01-29 03:49:57,946 - INFO - ================================================================================ 2026-01-29 03:49:57,947 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 03:49:58,204 - DEBUG - Nothing to compare xmpp stats {'10.0.0.154': {'10.20.0.18': '0'}} with 2026-01-29 03:49:58,204 - INFO - Initial checks done. Running the testcase now 2026-01-29 03:49:58,204 - INFO - 2026-01-29 03:49:58,204 - INFO - ================================================================================ 2026-01-29 03:49:58,204 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 03:49:58,204 - 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-01-29 03:49:58,495 - DEBUG - Nothing to compare xmpp stats {'10.0.0.154': {'10.20.0.18': '0'}} with 2026-01-29 03:49:58,495 - INFO - Initial checks done. Running the testcase now 2026-01-29 03:49:58,495 - INFO - 2026-01-29 03:49:58,904 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53928627:ctest-vn4-41392091, 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-53928627:ctest-vn4-41392091, 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-53928627:ctest-vn4-41392091, 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-53928627:ctest-vn4-41392091, 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-01-29 03:49:59,446 - DEBUG - Response for create_network : {'network': {'id': '5889c082-9fed-46ad-999d-94a70a965c77', 'name': 'ctest-vn4-41392091', 'tenant_id': '02f45ee3c34049818782a93f693e15c4', 'project_id': '02f45ee3c34049818782a93f693e15c4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53928627', 'ctest-vn4-41392091'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 03:49:59,661 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b804fd82-9b58-4244-b383-e24fe6513c53', 'name': '', 'tenant_id': '02f45ee3c34049818782a93f693e15c4', 'network_id': '5889c082-9fed-46ad-999d-94a70a965c77', 'ip_version': 4, 'cidr': '111.121.47.0/26', 'allocation_pools': [{'start': '111.121.47.2', 'end': '111.121.47.62'}], 'gateway_ip': '111.121.47.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.121.47.2', 'tags': [], 'project_id': '02f45ee3c34049818782a93f693e15c4'}} 2026-01-29 03:49:59,827 - DEBUG - Response for create_subnet : {'subnet': {'id': '58c04780-0eed-4b59-b3a8-4990f44b6176', 'name': '', 'tenant_id': '02f45ee3c34049818782a93f693e15c4', 'network_id': '5889c082-9fed-46ad-999d-94a70a965c77', 'ip_version': 6, 'cidr': '3ec5:bf82:fc71:d679:c83d:a964::/96', 'allocation_pools': [{'start': '3ec5:bf82:fc71:d679:c83d:a964:0:2', 'end': '3ec5:bf82:fc71:d679:c83d:a964:ffff:fffe'}], 'gateway_ip': '3ec5:bf82:fc71:d679:c83d:a964:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ec5:bf82:fc71:d679:c83d:a964:0:2', 'tags': [], 'project_id': '02f45ee3c34049818782a93f693e15c4'}} 2026-01-29 03:49:59,853 - INFO - Created VN ctest-vn4-41392091 2026-01-29 03:49:59,910 - DEBUG - VN ctest-vn4-41392091 UUID is 5889c082-9fed-46ad-999d-94a70a965c77 2026-01-29 03:50:00,131 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5889c082-9fed-46ad-999d-94a70a965c77', 'name': 'ctest-vn4-41392091', 'tenant_id': '02f45ee3c34049818782a93f693e15c4', 'project_id': '02f45ee3c34049818782a93f693e15c4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b804fd82-9b58-4244-b383-e24fe6513c53', '58c04780-0eed-4b59-b3a8-4990f44b6176'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53928627', 'ctest-vn4-41392091'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53928627', 'ctest-policy1-39870819']], 'subnet_ipam': [{'subnet_cidr': '111.121.47.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ec5:bf82:fc71:d679:c83d:a964::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 03:50:00,306 - DEBUG - Requesting: http://10.0.0.154:8082/domains 2026-01-29 03:50:00,642 - DEBUG - Requesting: http://10.0.0.154:8082/domains 2026-01-29 03:50:00,676 - DEBUG - Requesting: http://10.0.0.154:8082/domain/bb07218a-3314-4037-9045-ca2856dfd6f8 2026-01-29 03:50:00,690 - DEBUG - Requesting: http://10.0.0.154:8082/project/02f45ee3-c340-4981-8782-a93f693e15c4 2026-01-29 03:50:00,766 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/5889c082-9fed-46ad-999d-94a70a965c77 2026-01-29 03:50:00,780 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/5889c082-9fed-46ad-999d-94a70a965c77 2026-01-29 03:50:00,791 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/50a665e9-662c-4bd9-bf83-fdebd8e9da31 2026-01-29 03:50:00,800 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/50a665e9-662c-4bd9-bf83-fdebd8e9da31 2026-01-29 03:50:00,808 - DEBUG - Requesting: http://10.0.0.154:8082/route-target/7deec669-608b-49a8-a2ac-192f15b09507 2026-01-29 03:50:00,816 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 03:50:00,816 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/5889c082-9fed-46ad-999d-94a70a965c77 2026-01-29 03:50:00,829 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/50a665e9-662c-4bd9-bf83-fdebd8e9da31 2026-01-29 03:50:00,847 - INFO - Verified VN network id 11 for VN 5889c082-9fed-46ad-999d-94a70a965c77 2026-01-29 03:50:00,847 - INFO - Verifications in API Server for VN ctest-vn4-41392091 passed 2026-01-29 03:50:00,847 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/5889c082-9fed-46ad-999d-94a70a965c77 2026-01-29 03:50:00,860 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/50a665e9-662c-4bd9-bf83-fdebd8e9da31 2026-01-29 03:50:00,869 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/50a665e9-662c-4bd9-bf83-fdebd8e9da31 2026-01-29 03:50:00,877 - DEBUG - Requesting: http://10.0.0.154:8082/route-target/7deec669-608b-49a8-a2ac-192f15b09507 2026-01-29 03:50:00,891 - DEBUG - Control-node 10.0.0.154 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53928627:ctest-vn4-41392091', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-53928627', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6379842014408427181', 'uuid-lslong': '11069166904304622711'}, 'enable': 'true', 'created': '2026-01-29T03:49:59', 'last-modified': '2026-01-29T03:50:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.792565'} 2026-01-29 03:50:00,898 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 03:50:00,898 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-41392091 passed 2026-01-29 03:50:00,898 - DEBUG - ====Verifying policy data for ctest-vn4-41392091 in API_Server ====== 2026-01-29 03:50:00,898 - DEBUG - Requesting: http://10.0.0.154:8082/domains 2026-01-29 03:50:00,905 - DEBUG - Requesting: http://10.0.0.154:8082/domain/bb07218a-3314-4037-9045-ca2856dfd6f8 2026-01-29 03:50:00,921 - DEBUG - Requesting: http://10.0.0.154:8082/project/02f45ee3-c340-4981-8782-a93f693e15c4 2026-01-29 03:50:00,998 - DEBUG - Requesting: http://10.0.0.154:8082/virtual-network/5889c082-9fed-46ad-999d-94a70a965c77 2026-01-29 03:50:01,013 - DEBUG - ==>Verifying data for policy with id: 96eea9da-592d-4cc7-83f8-6181810674cf, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53928627', 'ctest-policy1-39870819'] 2026-01-29 03:50:01,013 - INFO - VN ctest-vn4-41392091 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 03:50:01,013 - DEBUG - Verifying the vn in opserver 2026-01-29 03:50:01,014 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53928627:ctest-vn4-41392091 virtual network link through opserver 10.0.0.154 2026-01-29 03:50:01,014 - DEBUG - Requesting: http://10.0.0.154:8081/analytics/uves/virtual-networks 2026-01-29 03:50:01,364 - DEBUG - Requesting: http://10.0.0.154:8081/analytics/uves/virtual-networks 2026-01-29 03:50:01,440 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53928627:ctest-vn4-41392091', 'href': 'http://10.0.0.154:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53928627:ctest-vn4-41392091?flat'} 2026-01-29 03:50:01,441 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53928627:ctest-vn4-41392091 is found in opserver 2026-01-29 03:50:01,451 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 03:50:01,456 - DEBUG - VRF ids for VN ctest-vn4-41392091: {} 2026-01-29 03:50:01,457 - DEBUG - ====Verifying data for ctest-policy1-39870819 in API_Server ====== 2026-01-29 03:50:01,457 - DEBUG - Requesting: http://10.0.0.154:8082/domains 2026-01-29 03:50:01,464 - DEBUG - Requesting: http://10.0.0.154:8082/domain/bb07218a-3314-4037-9045-ca2856dfd6f8 2026-01-29 03:50:01,479 - DEBUG - Requesting: http://10.0.0.154:8082/project/02f45ee3-c340-4981-8782-a93f693e15c4 2026-01-29 03:50:01,557 - DEBUG - Requesting: http://10.0.0.154:8082/network-policy/96eea9da-592d-4cc7-83f8-6181810674cf 2026-01-29 03:50:01,571 - INFO - Verified policy ctest-policy1-39870819 in API Server, Result: True 2026-01-29 03:50:01,571 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 03:50:01,581 - INFO - Deleting VN ctest-vn4-41392091 2026-01-29 03:50:01,728 - DEBUG - Response for deleting network () 2026-01-29 03:50:01,728 - DEBUG - Requesting: http://10.0.0.154:8082/routing-instance/50a665e9-662c-4bd9-bf83-fdebd8e9da31 2026-01-29 03:50:01,734 - DEBUG - Response Code: 404 2026-01-29 03:50:01,734 - DEBUG - Requesting: http://10.0.0.154:8082/domains 2026-01-29 03:50:01,741 - DEBUG - Requesting: http://10.0.0.154:8082/domain/bb07218a-3314-4037-9045-ca2856dfd6f8 2026-01-29 03:50:01,795 - DEBUG - Requesting: http://10.0.0.154:8082/project/02f45ee3-c340-4981-8782-a93f693e15c4 2026-01-29 03:50:01,873 - INFO - Validated that VN ctest-vn4-41392091 is not found in API Server 2026-01-29 03:50:01,885 - DEBUG - VN ctest-vn4-41392091 is not present in Agent 10.0.0.154 2026-01-29 03:50:01,885 - INFO - Validated that VN ctest-vn4-41392091 is not in any agent 2026-01-29 03:50:01,904 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-41392091 info 2026-01-29 03:50:01,937 - INFO - Deleted policy ctest-policy1-39870819 2026-01-29 03:50:02,109 - DEBUG - policy ctest-policy1-39870819 is not found in API Server 2026-01-29 03:50:02,363 - DEBUG - No XMPP flaps were noticed during the test
2026-01-29 03:50:02,363 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-29 03:50:02,363 - INFO - -------------------------------------------------------------------------------- 2026-01-29 03:50:02,674 - DEBUG - No XMPP flaps were noticed during the test
2026-01-29 03:50:02,674 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-01-29 03:50:02,674 - INFO - -------------------------------------------------------------------------------- 2026-01-29 03:50:03,427 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-53928627, ID : 02f45ee3-c340-4981-8782-a93f693e15c4