2026-03-05 02:27:30,575 - INFO - Domain Default found not creating 2026-03-05 02:27:30,754 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87438254 not found, creating it 2026-03-05 02:27:31,244 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87438254, ID : 7ab91110-3590-462a-8a04-c71e5d38b4d5 2026-03-05 02:27:32,729 - INFO - ================================================================================ 2026-03-05 02:27:32,730 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-05 02:27:34,010 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0', '10.20.0.14': '0'}, '10.0.0.73': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2026-03-05 02:27:34,010 - INFO - Initial checks done. Running the testcase now 2026-03-05 02:27:34,010 - INFO - 2026-03-05 02:27:34,010 - INFO - ================================================================================ 2026-03-05 02:27:34,010 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-05 02:27:34,010 - 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-03-05 02:27:35,279 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0', '10.20.0.14': '0'}, '10.0.0.73': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2026-03-05 02:27:35,279 - INFO - Initial checks done. Running the testcase now 2026-03-05 02:27:35,279 - INFO - 2026-03-05 02:27:35,641 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87438254:ctest-vn4-55494034, 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-87438254:ctest-vn4-55494034, 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-87438254:ctest-vn4-55494034, 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-87438254:ctest-vn4-55494034, 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-03-05 02:27:36,244 - DEBUG - Response for create_network : {'network': {'id': '1805e6af-9e2c-4719-8c27-9dd79df73ba0', 'name': 'ctest-vn4-55494034', 'tenant_id': '7ab911103590462a8a04c71e5d38b4d5', 'project_id': '7ab911103590462a8a04c71e5d38b4d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87438254', 'ctest-vn4-55494034'], 'port_security_enabled': True, 'description': ''}} 2026-03-05 02:27:36,545 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad6c0d19-df22-4484-a5de-81d943feaf3a', 'name': '', 'tenant_id': '7ab911103590462a8a04c71e5d38b4d5', 'network_id': '1805e6af-9e2c-4719-8c27-9dd79df73ba0', 'ip_version': 4, 'cidr': '80.242.153.192/26', 'allocation_pools': [{'start': '80.242.153.194', 'end': '80.242.153.254'}], 'gateway_ip': '80.242.153.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.242.153.194', 'tags': [], 'project_id': '7ab911103590462a8a04c71e5d38b4d5'}} 2026-03-05 02:27:36,733 - DEBUG - Response for create_subnet : {'subnet': {'id': '29073d72-058d-48d5-b393-011db026def2', 'name': '', 'tenant_id': '7ab911103590462a8a04c71e5d38b4d5', 'network_id': '1805e6af-9e2c-4719-8c27-9dd79df73ba0', 'ip_version': 6, 'cidr': '2290:561b:7907:f321:ddca:a390::/96', 'allocation_pools': [{'start': '2290:561b:7907:f321:ddca:a390:0:2', 'end': '2290:561b:7907:f321:ddca:a390:ffff:fffe'}], 'gateway_ip': '2290:561b:7907:f321:ddca:a390:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2290:561b:7907:f321:ddca:a390:0:2', 'tags': [], 'project_id': '7ab911103590462a8a04c71e5d38b4d5'}} 2026-03-05 02:27:36,758 - INFO - Created VN ctest-vn4-55494034 2026-03-05 02:27:36,768 - DEBUG - VN ctest-vn4-55494034 UUID is 1805e6af-9e2c-4719-8c27-9dd79df73ba0 2026-03-05 02:27:36,980 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1805e6af-9e2c-4719-8c27-9dd79df73ba0', 'name': 'ctest-vn4-55494034', 'tenant_id': '7ab911103590462a8a04c71e5d38b4d5', 'project_id': '7ab911103590462a8a04c71e5d38b4d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad6c0d19-df22-4484-a5de-81d943feaf3a', '29073d72-058d-48d5-b393-011db026def2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87438254', 'ctest-vn4-55494034'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87438254', 'ctest-policy1-53240648']], 'subnet_ipam': [{'subnet_cidr': '80.242.153.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2290:561b:7907:f321:ddca:a390::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-05 02:27:37,087 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-03-05 02:27:37,384 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-03-05 02:27:37,417 - DEBUG - Requesting: http://10.0.0.65:8082/domain/8ec23053-61d3-4e86-b71e-e24c9bc5c983 2026-03-05 02:27:37,435 - DEBUG - Requesting: http://10.0.0.65:8082/project/7ab91110-3590-462a-8a04-c71e5d38b4d5 2026-03-05 02:27:37,531 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1805e6af-9e2c-4719-8c27-9dd79df73ba0 2026-03-05 02:27:37,544 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1805e6af-9e2c-4719-8c27-9dd79df73ba0 2026-03-05 02:27:37,554 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dbd31070-2182-42a4-a6ac-abe6ea05d2ce 2026-03-05 02:27:37,561 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dbd31070-2182-42a4-a6ac-abe6ea05d2ce 2026-03-05 02:27:37,569 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/43544300-9d9f-44dc-bfeb-f14bf2ab6043 2026-03-05 02:27:37,576 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 02:27:37,576 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1805e6af-9e2c-4719-8c27-9dd79df73ba0 2026-03-05 02:27:37,585 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dbd31070-2182-42a4-a6ac-abe6ea05d2ce 2026-03-05 02:27:37,598 - INFO - Verified VN network id 16 for VN 1805e6af-9e2c-4719-8c27-9dd79df73ba0 2026-03-05 02:27:37,598 - INFO - Verifications in API Server for VN ctest-vn4-55494034 passed 2026-03-05 02:27:37,599 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1805e6af-9e2c-4719-8c27-9dd79df73ba0 2026-03-05 02:27:37,610 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dbd31070-2182-42a4-a6ac-abe6ea05d2ce 2026-03-05 02:27:37,620 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dbd31070-2182-42a4-a6ac-abe6ea05d2ce 2026-03-05 02:27:37,628 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/43544300-9d9f-44dc-bfeb-f14bf2ab6043 2026-03-05 02:27:37,641 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87438254:ctest-vn4-55494034', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87438254', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1731043273741190937', 'uuid-lslong': '10099214238795381664'}, 'enable': 'true', 'created': '2026-03-05T02:27:36', 'last-modified': '2026-03-05T02:27:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722383'} 2026-03-05 02:27:37,647 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 02:27:37,653 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87438254:ctest-vn4-55494034', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87438254', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1731043273741190937', 'uuid-lslong': '10099214238795381664'}, 'enable': 'true', 'created': '2026-03-05T02:27:36', 'last-modified': '2026-03-05T02:27:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.735427'} 2026-03-05 02:27:37,659 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 02:27:37,664 - DEBUG - Control-node 10.0.0.133 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87438254:ctest-vn4-55494034', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87438254', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1731043273741190937', 'uuid-lslong': '10099214238795381664'}, 'enable': 'true', 'created': '2026-03-05T02:27:36', 'last-modified': '2026-03-05T02:27:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.745448'} 2026-03-05 02:27:37,671 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 02:27:37,671 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55494034 passed 2026-03-05 02:27:37,671 - DEBUG - ====Verifying policy data for ctest-vn4-55494034 in API_Server ====== 2026-03-05 02:27:37,671 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-03-05 02:27:37,676 - DEBUG - Requesting: http://10.0.0.65:8082/domain/8ec23053-61d3-4e86-b71e-e24c9bc5c983 2026-03-05 02:27:37,686 - DEBUG - Requesting: http://10.0.0.65:8082/project/7ab91110-3590-462a-8a04-c71e5d38b4d5 2026-03-05 02:27:37,778 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1805e6af-9e2c-4719-8c27-9dd79df73ba0 2026-03-05 02:27:37,792 - DEBUG - ==>Verifying data for policy with id: 889c703d-45d3-48da-90eb-fdd15c774999, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87438254', 'ctest-policy1-53240648'] 2026-03-05 02:27:37,792 - INFO - VN ctest-vn4-55494034 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-05 02:27:37,792 - DEBUG - Verifying the vn in opserver 2026-03-05 02:27:37,792 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87438254:ctest-vn4-55494034 virtual network link through opserver 10.0.0.65 2026-03-05 02:27:37,792 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-03-05 02:27:38,097 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-03-05 02:27:38,171 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87438254:ctest-vn4-55494034', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87438254:ctest-vn4-55494034?flat'} 2026-03-05 02:27:38,171 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87438254:ctest-vn4-55494034 virtual network link through opserver 10.0.0.33 2026-03-05 02:27:38,171 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-05 02:27:38,470 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-05 02:27:38,529 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87438254:ctest-vn4-55494034', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87438254:ctest-vn4-55494034?flat'} 2026-03-05 02:27:38,529 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87438254:ctest-vn4-55494034 virtual network link through opserver 10.0.0.133 2026-03-05 02:27:38,530 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks 2026-03-05 02:27:38,825 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks 2026-03-05 02:27:38,891 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87438254:ctest-vn4-55494034', 'href': 'http://10.0.0.133:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87438254:ctest-vn4-55494034?flat'} 2026-03-05 02:27:38,892 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87438254:ctest-vn4-55494034 is found in opserver 2026-03-05 02:27:38,913 - DEBUG - Do not have enough data to verify VN in agent 2026-03-05 02:27:38,922 - DEBUG - VRF ids for VN ctest-vn4-55494034: {} 2026-03-05 02:27:38,922 - DEBUG - ====Verifying data for ctest-policy1-53240648 in API_Server ====== 2026-03-05 02:27:38,922 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-03-05 02:27:38,942 - DEBUG - Requesting: http://10.0.0.65:8082/domain/8ec23053-61d3-4e86-b71e-e24c9bc5c983 2026-03-05 02:27:38,952 - DEBUG - Requesting: http://10.0.0.65:8082/project/7ab91110-3590-462a-8a04-c71e5d38b4d5 2026-03-05 02:27:39,046 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/889c703d-45d3-48da-90eb-fdd15c774999 2026-03-05 02:27:39,054 - INFO - Verified policy ctest-policy1-53240648 in API Server, Result: True 2026-03-05 02:27:39,054 - INFO - Done with setup and verification, moving onto test .. 2026-03-05 02:27:39,063 - INFO - Deleting VN ctest-vn4-55494034 2026-03-05 02:27:39,280 - DEBUG - Response for deleting network () 2026-03-05 02:27:39,280 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dbd31070-2182-42a4-a6ac-abe6ea05d2ce 2026-03-05 02:27:39,290 - DEBUG - Response Code: 404 2026-03-05 02:27:39,290 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-03-05 02:27:39,298 - DEBUG - Requesting: http://10.0.0.65:8082/domain/8ec23053-61d3-4e86-b71e-e24c9bc5c983 2026-03-05 02:27:39,351 - DEBUG - Requesting: http://10.0.0.65:8082/project/7ab91110-3590-462a-8a04-c71e5d38b4d5 2026-03-05 02:27:39,442 - INFO - Validated that VN ctest-vn4-55494034 is not found in API Server 2026-03-05 02:27:39,453 - DEBUG - VN ctest-vn4-55494034 is not present in Agent 10.0.0.141 2026-03-05 02:27:39,465 - DEBUG - VN ctest-vn4-55494034 is not present in Agent 10.0.0.73 2026-03-05 02:27:39,465 - INFO - Validated that VN ctest-vn4-55494034 is not in any agent 2026-03-05 02:27:39,498 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55494034 info 2026-03-05 02:27:39,544 - INFO - Deleted policy ctest-policy1-53240648 2026-03-05 02:27:39,737 - DEBUG - policy ctest-policy1-53240648 is not found in API Server 2026-03-05 02:27:41,009 - DEBUG - No XMPP flaps were noticed during the test