2026-02-19 02:32:54,621 - INFO - Domain Default found not creating 2026-02-19 02:32:54,808 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-23218461 not found, creating it 2026-02-19 02:32:55,398 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-23218461, ID : 37185d87-9ad1-401b-a215-701ad0d9843c 2026-02-19 02:32:56,876 - INFO - ================================================================================ 2026-02-19 02:32:56,876 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 02:32:58,135 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0', '10.20.0.18': '0'}, '10.0.0.133': {'10.20.0.17': '0', '10.20.0.18': '0'}} with 2026-02-19 02:32:58,135 - INFO - Initial checks done. Running the testcase now 2026-02-19 02:32:58,136 - INFO - 2026-02-19 02:32:58,136 - INFO - ================================================================================ 2026-02-19 02:32:58,136 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 02:32:58,136 - 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-02-19 02:32:59,414 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0', '10.20.0.18': '0'}, '10.0.0.133': {'10.20.0.17': '0', '10.20.0.18': '0'}} with 2026-02-19 02:32:59,414 - INFO - Initial checks done. Running the testcase now 2026-02-19 02:32:59,414 - INFO - 2026-02-19 02:32:59,780 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23218461:ctest-vn4-84535515, 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-23218461:ctest-vn4-84535515, 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-23218461:ctest-vn4-84535515, 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-23218461:ctest-vn4-84535515, 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-02-19 02:33:00,470 - DEBUG - Response for create_network : {'network': {'id': 'a73fcb53-95b0-4339-a5d9-242ea627f552', 'name': 'ctest-vn4-84535515', 'tenant_id': '37185d879ad1401ba215701ad0d9843c', 'project_id': '37185d879ad1401ba215701ad0d9843c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23218461', 'ctest-vn4-84535515'], 'port_security_enabled': True, 'description': ''}} 2026-02-19 02:33:00,746 - DEBUG - Response for create_subnet : {'subnet': {'id': '22d2db81-c2a0-4f43-9845-d2aeacd0b846', 'name': '', 'tenant_id': '37185d879ad1401ba215701ad0d9843c', 'network_id': 'a73fcb53-95b0-4339-a5d9-242ea627f552', 'ip_version': 4, 'cidr': '110.89.69.0/26', 'allocation_pools': [{'start': '110.89.69.2', 'end': '110.89.69.62'}], 'gateway_ip': '110.89.69.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.89.69.2', 'tags': [], 'project_id': '37185d879ad1401ba215701ad0d9843c'}} 2026-02-19 02:33:00,983 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6bd63a1-54a0-4e95-a6d0-d555d49f991b', 'name': '', 'tenant_id': '37185d879ad1401ba215701ad0d9843c', 'network_id': 'a73fcb53-95b0-4339-a5d9-242ea627f552', 'ip_version': 6, 'cidr': '3b30:d53:e624:a916:dc9e:c3ba::/96', 'allocation_pools': [{'start': '3b30:d53:e624:a916:dc9e:c3ba:0:2', 'end': '3b30:d53:e624:a916:dc9e:c3ba:ffff:fffe'}], 'gateway_ip': '3b30:d53:e624:a916:dc9e:c3ba:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b30:d53:e624:a916:dc9e:c3ba:0:2', 'tags': [], 'project_id': '37185d879ad1401ba215701ad0d9843c'}} 2026-02-19 02:33:01,008 - INFO - Created VN ctest-vn4-84535515 2026-02-19 02:33:01,022 - DEBUG - VN ctest-vn4-84535515 UUID is a73fcb53-95b0-4339-a5d9-242ea627f552 2026-02-19 02:33:01,313 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a73fcb53-95b0-4339-a5d9-242ea627f552', 'name': 'ctest-vn4-84535515', 'tenant_id': '37185d879ad1401ba215701ad0d9843c', 'project_id': '37185d879ad1401ba215701ad0d9843c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['22d2db81-c2a0-4f43-9845-d2aeacd0b846', 'c6bd63a1-54a0-4e95-a6d0-d555d49f991b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23218461', 'ctest-vn4-84535515'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23218461', 'ctest-policy1-25026291']], 'subnet_ipam': [{'subnet_cidr': '110.89.69.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b30:d53:e624:a916:dc9e:c3ba::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-19 02:33:01,410 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-19 02:33:01,715 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-19 02:33:01,746 - DEBUG - Requesting: http://10.0.0.129:8082/domain/0d96b699-7b7b-4313-9fa1-bd6ec91582e3 2026-02-19 02:33:01,760 - DEBUG - Requesting: http://10.0.0.129:8082/project/37185d87-9ad1-401b-a215-701ad0d9843c 2026-02-19 02:33:01,859 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a73fcb53-95b0-4339-a5d9-242ea627f552 2026-02-19 02:33:01,878 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a73fcb53-95b0-4339-a5d9-242ea627f552 2026-02-19 02:33:01,888 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/742aac83-ec75-4f59-bd1b-c2e5679c7ee5 2026-02-19 02:33:01,895 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/742aac83-ec75-4f59-bd1b-c2e5679c7ee5 2026-02-19 02:33:01,907 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/d7290b55-6225-4101-a1ea-502668929128 2026-02-19 02:33:01,915 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 02:33:01,915 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a73fcb53-95b0-4339-a5d9-242ea627f552 2026-02-19 02:33:01,927 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/742aac83-ec75-4f59-bd1b-c2e5679c7ee5 2026-02-19 02:33:01,944 - INFO - Verified VN network id 13 for VN a73fcb53-95b0-4339-a5d9-242ea627f552 2026-02-19 02:33:01,944 - INFO - Verifications in API Server for VN ctest-vn4-84535515 passed 2026-02-19 02:33:01,944 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a73fcb53-95b0-4339-a5d9-242ea627f552 2026-02-19 02:33:01,954 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/742aac83-ec75-4f59-bd1b-c2e5679c7ee5 2026-02-19 02:33:01,962 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/742aac83-ec75-4f59-bd1b-c2e5679c7ee5 2026-02-19 02:33:01,971 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/d7290b55-6225-4101-a1ea-502668929128 2026-02-19 02:33:01,985 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23218461:ctest-vn4-84535515', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-23218461', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12051574687720817465', 'uuid-lslong': '11950622868979053906'}, 'enable': 'true', 'created': '2026-02-19T02:33:00', 'last-modified': '2026-02-19T02:33:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.761258'} 2026-02-19 02:33:01,994 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 02:33:02,000 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23218461:ctest-vn4-84535515', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-23218461', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12051574687720817465', 'uuid-lslong': '11950622868979053906'}, 'enable': 'true', 'created': '2026-02-19T02:33:00', 'last-modified': '2026-02-19T02:33:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.779344'} 2026-02-19 02:33:02,011 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 02:33:02,017 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23218461:ctest-vn4-84535515', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-23218461', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12051574687720817465', 'uuid-lslong': '11950622868979053906'}, 'enable': 'true', 'created': '2026-02-19T02:33:00', 'last-modified': '2026-02-19T02:33:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.794306'} 2026-02-19 02:33:02,023 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 02:33:02,023 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-84535515 passed 2026-02-19 02:33:02,023 - DEBUG - ====Verifying policy data for ctest-vn4-84535515 in API_Server ====== 2026-02-19 02:33:02,023 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-19 02:33:02,030 - DEBUG - Requesting: http://10.0.0.129:8082/domain/0d96b699-7b7b-4313-9fa1-bd6ec91582e3 2026-02-19 02:33:02,042 - DEBUG - Requesting: http://10.0.0.129:8082/project/37185d87-9ad1-401b-a215-701ad0d9843c 2026-02-19 02:33:02,135 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/a73fcb53-95b0-4339-a5d9-242ea627f552 2026-02-19 02:33:02,146 - DEBUG - ==>Verifying data for policy with id: 15affbbe-1f9d-41d3-a7f7-41db2a9b0608, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23218461', 'ctest-policy1-25026291'] 2026-02-19 02:33:02,146 - INFO - VN ctest-vn4-84535515 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-19 02:33:02,146 - DEBUG - Verifying the vn in opserver 2026-02-19 02:33:02,146 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23218461:ctest-vn4-84535515 virtual network link through opserver 10.0.0.129 2026-02-19 02:33:02,146 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-19 02:33:02,444 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-19 02:33:02,518 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23218461:ctest-vn4-84535515', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23218461:ctest-vn4-84535515?flat'} 2026-02-19 02:33:02,518 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23218461:ctest-vn4-84535515 virtual network link through opserver 10.0.0.38 2026-02-19 02:33:02,518 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-19 02:33:02,812 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-19 02:33:02,891 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23218461:ctest-vn4-84535515', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23218461:ctest-vn4-84535515?flat'} 2026-02-19 02:33:02,891 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23218461:ctest-vn4-84535515 virtual network link through opserver 10.0.0.130 2026-02-19 02:33:02,891 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-02-19 02:33:03,264 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-02-19 02:33:03,365 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23218461:ctest-vn4-84535515', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23218461:ctest-vn4-84535515?flat'} 2026-02-19 02:33:03,366 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23218461:ctest-vn4-84535515 is found in opserver 2026-02-19 02:33:03,389 - DEBUG - Do not have enough data to verify VN in agent 2026-02-19 02:33:03,400 - DEBUG - VRF ids for VN ctest-vn4-84535515: {} 2026-02-19 02:33:03,400 - DEBUG - ====Verifying data for ctest-policy1-25026291 in API_Server ====== 2026-02-19 02:33:03,400 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-19 02:33:03,407 - DEBUG - Requesting: http://10.0.0.129:8082/domain/0d96b699-7b7b-4313-9fa1-bd6ec91582e3 2026-02-19 02:33:03,420 - DEBUG - Requesting: http://10.0.0.129:8082/project/37185d87-9ad1-401b-a215-701ad0d9843c 2026-02-19 02:33:03,523 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/15affbbe-1f9d-41d3-a7f7-41db2a9b0608 2026-02-19 02:33:03,540 - INFO - Verified policy ctest-policy1-25026291 in API Server, Result: True 2026-02-19 02:33:03,540 - INFO - Done with setup and verification, moving onto test .. 2026-02-19 02:33:03,552 - INFO - Deleting VN ctest-vn4-84535515 2026-02-19 02:33:03,780 - DEBUG - Response for deleting network () 2026-02-19 02:33:03,780 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/742aac83-ec75-4f59-bd1b-c2e5679c7ee5 2026-02-19 02:33:03,796 - DEBUG - Response Code: 404 2026-02-19 02:33:03,796 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-19 02:33:03,806 - DEBUG - Requesting: http://10.0.0.129:8082/domain/0d96b699-7b7b-4313-9fa1-bd6ec91582e3 2026-02-19 02:33:03,823 - DEBUG - Requesting: http://10.0.0.129:8082/project/37185d87-9ad1-401b-a215-701ad0d9843c 2026-02-19 02:33:03,915 - INFO - Validated that VN ctest-vn4-84535515 is not found in API Server 2026-02-19 02:33:03,925 - DEBUG - VN ctest-vn4-84535515 is not present in Agent 10.0.0.65 2026-02-19 02:33:03,937 - DEBUG - VN ctest-vn4-84535515 is not present in Agent 10.0.0.133 2026-02-19 02:33:03,937 - INFO - Validated that VN ctest-vn4-84535515 is not in any agent 2026-02-19 02:33:03,969 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-84535515 info 2026-02-19 02:33:04,010 - INFO - Deleted policy ctest-policy1-25026291 2026-02-19 02:33:04,200 - DEBUG - policy ctest-policy1-25026291 is not found in API Server 2026-02-19 02:33:05,474 - DEBUG - No XMPP flaps were noticed during the test
2026-02-19 02:33:05,474 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-02-19 02:33:05,474 - INFO - -------------------------------------------------------------------------------- 2026-02-19 02:33:06,742 - DEBUG - No XMPP flaps were noticed during the test
2026-02-19 02:33:06,742 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2026-02-19 02:33:06,742 - INFO - -------------------------------------------------------------------------------- 2026-02-19 02:33:07,485 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-23218461, ID : 37185d87-9ad1-401b-a215-701ad0d9843c