2026-01-29 02:33:12,152 - INFO - Domain Default found not creating 2026-01-29 02:33:12,296 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-58519918 not found, creating it 2026-01-29 02:33:12,865 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-58519918, ID : 4b5fe8b3-c0dd-4afc-a132-cf259af1bcad 2026-01-29 02:33:14,382 - INFO - ================================================================================ 2026-01-29 02:33:14,383 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 02:33:15,656 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.193': '0', '10.20.0.254': '0'}, '10.0.0.128': {'10.20.0.254': '0', '10.20.0.14': '0'}} with 2026-01-29 02:33:15,656 - INFO - Initial checks done. Running the testcase now 2026-01-29 02:33:15,656 - INFO - 2026-01-29 02:33:15,656 - INFO - ================================================================================ 2026-01-29 02:33:15,656 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 02:33:15,657 - 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 02:33:16,960 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.193': '0', '10.20.0.254': '0'}, '10.0.0.128': {'10.20.0.254': '0', '10.20.0.14': '0'}} with 2026-01-29 02:33:16,960 - INFO - Initial checks done. Running the testcase now 2026-01-29 02:33:16,960 - INFO - 2026-01-29 02:33:17,311 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58519918:ctest-vn4-54320694, 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-58519918:ctest-vn4-54320694, 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-58519918:ctest-vn4-54320694, 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-58519918:ctest-vn4-54320694, 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 02:33:17,933 - DEBUG - Response for create_network : {'network': {'id': '72eda9ba-430c-4d92-a663-6ad4568644dc', 'name': 'ctest-vn4-54320694', 'tenant_id': '4b5fe8b3c0dd4afca132cf259af1bcad', 'project_id': '4b5fe8b3c0dd4afca132cf259af1bcad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58519918', 'ctest-vn4-54320694'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 02:33:18,233 - DEBUG - Response for create_subnet : {'subnet': {'id': '762ac7fa-883a-4374-bd2b-3f7948981080', 'name': '', 'tenant_id': '4b5fe8b3c0dd4afca132cf259af1bcad', 'network_id': '72eda9ba-430c-4d92-a663-6ad4568644dc', 'ip_version': 4, 'cidr': '32.19.50.192/26', 'allocation_pools': [{'start': '32.19.50.194', 'end': '32.19.50.254'}], 'gateway_ip': '32.19.50.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.19.50.194', 'tags': [], 'project_id': '4b5fe8b3c0dd4afca132cf259af1bcad'}} 2026-01-29 02:33:18,418 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a8950c3-9988-4f12-8654-e523599e7260', 'name': '', 'tenant_id': '4b5fe8b3c0dd4afca132cf259af1bcad', 'network_id': '72eda9ba-430c-4d92-a663-6ad4568644dc', 'ip_version': 6, 'cidr': '35bc:ba08:86d2:6b00:4ea0:2a27::/96', 'allocation_pools': [{'start': '35bc:ba08:86d2:6b00:4ea0:2a27:0:2', 'end': '35bc:ba08:86d2:6b00:4ea0:2a27:ffff:fffe'}], 'gateway_ip': '35bc:ba08:86d2:6b00:4ea0:2a27:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35bc:ba08:86d2:6b00:4ea0:2a27:0:2', 'tags': [], 'project_id': '4b5fe8b3c0dd4afca132cf259af1bcad'}} 2026-01-29 02:33:18,441 - INFO - Created VN ctest-vn4-54320694 2026-01-29 02:33:18,452 - DEBUG - VN ctest-vn4-54320694 UUID is 72eda9ba-430c-4d92-a663-6ad4568644dc 2026-01-29 02:33:18,670 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '72eda9ba-430c-4d92-a663-6ad4568644dc', 'name': 'ctest-vn4-54320694', 'tenant_id': '4b5fe8b3c0dd4afca132cf259af1bcad', 'project_id': '4b5fe8b3c0dd4afca132cf259af1bcad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['762ac7fa-883a-4374-bd2b-3f7948981080', '4a8950c3-9988-4f12-8654-e523599e7260'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58519918', 'ctest-vn4-54320694'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58519918', 'ctest-policy1-78803434']], 'subnet_ipam': [{'subnet_cidr': '32.19.50.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35bc:ba08:86d2:6b00:4ea0:2a27::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 02:33:18,772 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-01-29 02:33:19,074 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-01-29 02:33:19,107 - DEBUG - Requesting: http://10.0.0.23:8082/domain/65230a56-1cf0-4d34-9498-1ad48da04806 2026-01-29 02:33:19,124 - DEBUG - Requesting: http://10.0.0.23:8082/project/4b5fe8b3-c0dd-4afc-a132-cf259af1bcad 2026-01-29 02:33:19,218 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/72eda9ba-430c-4d92-a663-6ad4568644dc 2026-01-29 02:33:19,236 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/72eda9ba-430c-4d92-a663-6ad4568644dc 2026-01-29 02:33:19,249 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/076a9f1c-1eb9-4439-bfd4-3781678cc55b 2026-01-29 02:33:19,257 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/076a9f1c-1eb9-4439-bfd4-3781678cc55b 2026-01-29 02:33:19,265 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/fb5100aa-c231-423c-b6e9-fbdaa215cf03 2026-01-29 02:33:19,272 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 02:33:19,272 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/72eda9ba-430c-4d92-a663-6ad4568644dc 2026-01-29 02:33:19,282 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/076a9f1c-1eb9-4439-bfd4-3781678cc55b 2026-01-29 02:33:19,299 - INFO - Verified VN network id 13 for VN 72eda9ba-430c-4d92-a663-6ad4568644dc 2026-01-29 02:33:19,299 - INFO - Verifications in API Server for VN ctest-vn4-54320694 passed 2026-01-29 02:33:19,299 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/72eda9ba-430c-4d92-a663-6ad4568644dc 2026-01-29 02:33:19,310 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/076a9f1c-1eb9-4439-bfd4-3781678cc55b 2026-01-29 02:33:19,319 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/076a9f1c-1eb9-4439-bfd4-3781678cc55b 2026-01-29 02:33:19,327 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/fb5100aa-c231-423c-b6e9-fbdaa215cf03 2026-01-29 02:33:19,339 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58519918:ctest-vn4-54320694', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-58519918', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8281461907258101138', 'uuid-lslong': '11989544093207643356'}, 'enable': 'true', 'created': '2026-01-29T02:33:17', 'last-modified': '2026-01-29T02:33:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722526'} 2026-01-29 02:33:19,344 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 02:33:19,350 - DEBUG - Control-node 10.0.0.147 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58519918:ctest-vn4-54320694', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-58519918', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8281461907258101138', 'uuid-lslong': '11989544093207643356'}, 'enable': 'true', 'created': '2026-01-29T02:33:17', 'last-modified': '2026-01-29T02:33:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.729209'} 2026-01-29 02:33:19,354 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 02:33:19,360 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58519918:ctest-vn4-54320694', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-58519918', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8281461907258101138', 'uuid-lslong': '11989544093207643356'}, 'enable': 'true', 'created': '2026-01-29T02:33:17', 'last-modified': '2026-01-29T02:33:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.742493'} 2026-01-29 02:33:19,365 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 02:33:19,365 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-54320694 passed 2026-01-29 02:33:19,365 - DEBUG - ====Verifying policy data for ctest-vn4-54320694 in API_Server ====== 2026-01-29 02:33:19,366 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-01-29 02:33:19,372 - DEBUG - Requesting: http://10.0.0.23:8082/domain/65230a56-1cf0-4d34-9498-1ad48da04806 2026-01-29 02:33:19,384 - DEBUG - Requesting: http://10.0.0.23:8082/project/4b5fe8b3-c0dd-4afc-a132-cf259af1bcad 2026-01-29 02:33:19,481 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/72eda9ba-430c-4d92-a663-6ad4568644dc 2026-01-29 02:33:19,490 - DEBUG - ==>Verifying data for policy with id: d1d387f0-1830-4ed2-ab91-bf9705a02695, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58519918', 'ctest-policy1-78803434'] 2026-01-29 02:33:19,490 - INFO - VN ctest-vn4-54320694 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 02:33:19,490 - DEBUG - Verifying the vn in opserver 2026-01-29 02:33:19,491 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58519918:ctest-vn4-54320694 virtual network link through opserver 10.0.0.23 2026-01-29 02:33:19,491 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-29 02:33:19,782 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-29 02:33:19,867 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58519918:ctest-vn4-54320694', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58519918:ctest-vn4-54320694?flat'} 2026-01-29 02:33:19,867 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58519918:ctest-vn4-54320694 virtual network link through opserver 10.0.0.147 2026-01-29 02:33:19,867 - DEBUG - Requesting: http://10.0.0.147:8081/analytics/uves/virtual-networks 2026-01-29 02:33:20,173 - DEBUG - Requesting: http://10.0.0.147:8081/analytics/uves/virtual-networks 2026-01-29 02:33:20,235 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58519918:ctest-vn4-54320694', 'href': 'http://10.0.0.147:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58519918:ctest-vn4-54320694?flat'} 2026-01-29 02:33:20,235 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58519918:ctest-vn4-54320694 virtual network link through opserver 10.0.0.240 2026-01-29 02:33:20,235 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-01-29 02:33:20,536 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-01-29 02:33:20,601 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58519918:ctest-vn4-54320694', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58519918:ctest-vn4-54320694?flat'} 2026-01-29 02:33:20,601 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58519918:ctest-vn4-54320694 is found in opserver 2026-01-29 02:33:20,625 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 02:33:20,638 - DEBUG - VRF ids for VN ctest-vn4-54320694: {} 2026-01-29 02:33:20,639 - DEBUG - ====Verifying data for ctest-policy1-78803434 in API_Server ====== 2026-01-29 02:33:20,639 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-01-29 02:33:20,644 - DEBUG - Requesting: http://10.0.0.23:8082/domain/65230a56-1cf0-4d34-9498-1ad48da04806 2026-01-29 02:33:20,657 - DEBUG - Requesting: http://10.0.0.23:8082/project/4b5fe8b3-c0dd-4afc-a132-cf259af1bcad 2026-01-29 02:33:20,753 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/d1d387f0-1830-4ed2-ab91-bf9705a02695 2026-01-29 02:33:20,764 - INFO - Verified policy ctest-policy1-78803434 in API Server, Result: True 2026-01-29 02:33:20,764 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 02:33:20,776 - INFO - Deleting VN ctest-vn4-54320694 2026-01-29 02:33:20,993 - DEBUG - Response for deleting network () 2026-01-29 02:33:20,993 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/076a9f1c-1eb9-4439-bfd4-3781678cc55b 2026-01-29 02:33:20,998 - DEBUG - Response Code: 404 2026-01-29 02:33:20,998 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-01-29 02:33:21,005 - DEBUG - Requesting: http://10.0.0.23:8082/domain/65230a56-1cf0-4d34-9498-1ad48da04806 2026-01-29 02:33:21,024 - DEBUG - Requesting: http://10.0.0.23:8082/project/4b5fe8b3-c0dd-4afc-a132-cf259af1bcad 2026-01-29 02:33:21,109 - INFO - Validated that VN ctest-vn4-54320694 is not found in API Server 2026-01-29 02:33:21,125 - DEBUG - VN ctest-vn4-54320694 is not present in Agent 10.0.0.49 2026-01-29 02:33:21,142 - DEBUG - VN ctest-vn4-54320694 is not present in Agent 10.0.0.128 2026-01-29 02:33:21,142 - INFO - Validated that VN ctest-vn4-54320694 is not in any agent 2026-01-29 02:33:21,183 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-54320694 info 2026-01-29 02:33:21,227 - INFO - Deleted policy ctest-policy1-78803434 2026-01-29 02:33:21,438 - DEBUG - policy ctest-policy1-78803434 is not found in API Server 2026-01-29 02:33:22,711 - DEBUG - No XMPP flaps were noticed during the test