2026-04-20 01:51:56,175 - INFO - Reading existing Domain with UUID 44568180-4456-4d24-a723-60c17b729be7 2026-04-20 01:51:56,188 - INFO - Using existing domain ['admin_domain'](44568180-4456-4d24-a723-60c17b729be7) 2026-04-20 01:51:56,423 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-57757222 not found, creating it 2026-04-20 01:51:56,949 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-57757222, ID : dca7c0d5-4c76-4618-90f3-614c59da1878 2026-04-20 01:51:58,867 - INFO - ================================================================================ 2026-04-20 01:51:58,867 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-20 01:51:59,263 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2026-04-20 01:51:59,263 - INFO - Initial checks done. Running the testcase now 2026-04-20 01:51:59,263 - INFO - 2026-04-20 01:51:59,263 - INFO - ================================================================================ 2026-04-20 01:51:59,263 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-20 01:51:59,263 - 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-20 01:51:59,670 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2026-04-20 01:51:59,670 - INFO - Initial checks done. Running the testcase now 2026-04-20 01:51:59,671 - INFO - 2026-04-20 01:52:00,090 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-57757222:ctest-vn4-57809670, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-57757222:ctest-vn4-57809670, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-57757222:ctest-vn4-57809670, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-57757222:ctest-vn4-57809670, 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-20 01:52:00,902 - DEBUG - Response for create_network : {'network': {'id': 'c5d5d96a-7730-4a14-a02d-7348aaece2e5', 'name': 'ctest-vn4-57809670', 'tenant_id': 'dca7c0d54c76461890f3614c59da1878', 'project_id': 'dca7c0d54c76461890f3614c59da1878', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57757222', 'ctest-vn4-57809670'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-04-20 01:52:01,118 - DEBUG - Response for create_subnet : {'subnet': {'id': '3ce0bbb0-13e2-4525-b6ef-118196c11fbc', 'name': '', 'tenant_id': 'dca7c0d54c76461890f3614c59da1878', 'network_id': 'c5d5d96a-7730-4a14-a02d-7348aaece2e5', 'ip_version': 4, 'cidr': '72.225.154.64/26', 'allocation_pools': [{'start': '72.225.154.66', 'end': '72.225.154.126'}], 'gateway_ip': '72.225.154.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-04-20T01:52:01.010851', 'updated_at': '2026-04-20T01:52:01.010851', 'dns_server_address': '72.225.154.66', 'tags': [], 'project_id': 'dca7c0d54c76461890f3614c59da1878'}} 2026-04-20 01:52:01,356 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b835b751-4e69-45aa-a02e-66ab774d69ea', 'name': '', 'tenant_id': 'dca7c0d54c76461890f3614c59da1878', 'network_id': 'c5d5d96a-7730-4a14-a02d-7348aaece2e5', 'ip_version': 6, 'cidr': '3d15:49dc:8a5e:eda3:d7c2:f3b1::/96', 'allocation_pools': [{'start': '3d15:49dc:8a5e:eda3:d7c2:f3b1:0:2', 'end': '3d15:49dc:8a5e:eda3:d7c2:f3b1:ffff:fffe'}], 'gateway_ip': '3d15:49dc:8a5e:eda3:d7c2:f3b1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-04-20T01:52:01.232996', 'updated_at': '2026-04-20T01:52:01.232996', 'dns_server_address': '3d15:49dc:8a5e:eda3:d7c2:f3b1:0:2', 'tags': [], 'project_id': 'dca7c0d54c76461890f3614c59da1878'}} 2026-04-20 01:52:01,428 - INFO - Created VN ctest-vn4-57809670 2026-04-20 01:52:01,485 - DEBUG - VN ctest-vn4-57809670 UUID is c5d5d96a-7730-4a14-a02d-7348aaece2e5 2026-04-20 01:52:01,982 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c5d5d96a-7730-4a14-a02d-7348aaece2e5', 'name': 'ctest-vn4-57809670', 'tenant_id': 'dca7c0d54c76461890f3614c59da1878', 'project_id': 'dca7c0d54c76461890f3614c59da1878', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3ce0bbb0-13e2-4525-b6ef-118196c11fbc', 'b835b751-4e69-45aa-a02e-66ab774d69ea'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57757222', 'ctest-vn4-57809670'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57757222', 'ctest-policy1-54952849']], 'subnet_ipam': [{'subnet_cidr': '72.225.154.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d15:49dc:8a5e:eda3:d7c2:f3b1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-04-20T01:52:00.810670', 'updated_at': '2026-04-20T01:52:01.255323'}} 2026-04-20 01:52:02,173 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-04-20 01:52:02,542 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-04-20 01:52:02,630 - DEBUG - Requesting: https://10.0.0.129:8082/domain/44568180-4456-4d24-a723-60c17b729be7 2026-04-20 01:52:02,691 - DEBUG - Requesting: https://10.0.0.129:8082/project/dca7c0d5-4c76-4618-90f3-614c59da1878 2026-04-20 01:52:02,779 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/c5d5d96a-7730-4a14-a02d-7348aaece2e5 2026-04-20 01:52:02,843 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/c5d5d96a-7730-4a14-a02d-7348aaece2e5 2026-04-20 01:52:02,900 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/a052b00b-31a8-49ee-913e-a0838ff4be57 2026-04-20 01:52:02,958 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/a052b00b-31a8-49ee-913e-a0838ff4be57 2026-04-20 01:52:03,014 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/a10c072f-b595-4519-932d-0abe0c1c9a3c 2026-04-20 01:52:03,067 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 01:52:03,067 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/c5d5d96a-7730-4a14-a02d-7348aaece2e5 2026-04-20 01:52:03,128 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/a052b00b-31a8-49ee-913e-a0838ff4be57 2026-04-20 01:52:03,193 - INFO - Verified VN network id 11 for VN c5d5d96a-7730-4a14-a02d-7348aaece2e5 2026-04-20 01:52:03,193 - INFO - Verifications in API Server for VN ctest-vn4-57809670 passed 2026-04-20 01:52:03,193 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/c5d5d96a-7730-4a14-a02d-7348aaece2e5 2026-04-20 01:52:03,251 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/a052b00b-31a8-49ee-913e-a0838ff4be57 2026-04-20 01:52:03,307 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/a052b00b-31a8-49ee-913e-a0838ff4be57 2026-04-20 01:52:03,367 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/a10c072f-b595-4519-932d-0abe0c1c9a3c 2026-04-20 01:52:03,475 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-57757222:ctest-vn4-57809670', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-57757222', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14255539246800587284', 'uuid-lslong': '11542008175962940133'}, 'enable': 'true', 'created': '2026-04-20T01:52:00', 'last-modified': '2026-04-20T01:52:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.532222'} 2026-04-20 01:52:03,527 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 01:52:03,528 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-57809670 passed 2026-04-20 01:52:03,528 - DEBUG - ====Verifying policy data for ctest-vn4-57809670 in API_Server ====== 2026-04-20 01:52:03,528 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-04-20 01:52:03,582 - DEBUG - Requesting: https://10.0.0.129:8082/domain/44568180-4456-4d24-a723-60c17b729be7 2026-04-20 01:52:03,646 - DEBUG - Requesting: https://10.0.0.129:8082/project/dca7c0d5-4c76-4618-90f3-614c59da1878 2026-04-20 01:52:03,731 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/c5d5d96a-7730-4a14-a02d-7348aaece2e5 2026-04-20 01:52:03,792 - DEBUG - ==>Verifying data for policy with id: 2f4020b6-77fd-44c9-b99a-e7e53235db33, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57757222', 'ctest-policy1-54952849'] 2026-04-20 01:52:03,792 - INFO - VN ctest-vn4-57809670 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-20 01:52:03,792 - DEBUG - Verifying the vn in opserver 2026-04-20 01:52:03,792 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-57757222:ctest-vn4-57809670 virtual network link through opserver 10.0.0.129 2026-04-20 01:52:03,792 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2026-04-20 01:52:04,151 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2026-04-20 01:52:04,291 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-57757222:ctest-vn4-57809670', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-57757222:ctest-vn4-57809670?flat'} 2026-04-20 01:52:04,291 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-57757222:ctest-vn4-57809670 is found in opserver 2026-04-20 01:52:04,398 - DEBUG - Do not have enough data to verify VN in agent 2026-04-20 01:52:04,450 - DEBUG - VRF ids for VN ctest-vn4-57809670: {} 2026-04-20 01:52:04,451 - DEBUG - ====Verifying data for ctest-policy1-54952849 in API_Server ====== 2026-04-20 01:52:04,451 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-04-20 01:52:04,506 - DEBUG - Requesting: https://10.0.0.129:8082/domain/44568180-4456-4d24-a723-60c17b729be7 2026-04-20 01:52:04,571 - DEBUG - Requesting: https://10.0.0.129:8082/project/dca7c0d5-4c76-4618-90f3-614c59da1878 2026-04-20 01:52:04,666 - DEBUG - Requesting: https://10.0.0.129:8082/network-policy/2f4020b6-77fd-44c9-b99a-e7e53235db33 2026-04-20 01:52:04,724 - INFO - Verified policy ctest-policy1-54952849 in API Server, Result: True 2026-04-20 01:52:04,725 - INFO - Done with setup and verification, moving onto test .. 2026-04-20 01:52:04,738 - INFO - Deleting VN ctest-vn4-57809670 2026-04-20 01:52:04,967 - DEBUG - Response for deleting network () 2026-04-20 01:52:04,967 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/a052b00b-31a8-49ee-913e-a0838ff4be57 2026-04-20 01:52:05,025 - DEBUG - Response Code: 404 2026-04-20 01:52:05,026 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-04-20 01:52:05,082 - DEBUG - Requesting: https://10.0.0.129:8082/domain/44568180-4456-4d24-a723-60c17b729be7 2026-04-20 01:52:05,142 - DEBUG - Requesting: https://10.0.0.129:8082/project/dca7c0d5-4c76-4618-90f3-614c59da1878 2026-04-20 01:52:05,226 - INFO - Validated that VN ctest-vn4-57809670 is not found in API Server 2026-04-20 01:52:05,330 - DEBUG - VN ctest-vn4-57809670 is not present in Agent 10.0.0.129 2026-04-20 01:52:05,330 - INFO - Validated that VN ctest-vn4-57809670 is not in any agent 2026-04-20 01:52:05,486 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-57809670 info 2026-04-20 01:52:05,522 - INFO - Deleted policy ctest-policy1-54952849 2026-04-20 01:52:05,713 - DEBUG - policy ctest-policy1-54952849 is not found in API Server 2026-04-20 01:52:06,123 - DEBUG - No XMPP flaps were noticed during the test
2026-04-20 01:52:06,123 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-04-20 01:52:06,123 - INFO - -------------------------------------------------------------------------------- 2026-04-20 01:52:06,519 - DEBUG - No XMPP flaps were noticed during the test
2026-04-20 01:52:06,519 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08]
2026-04-20 01:52:06,519 - INFO - -------------------------------------------------------------------------------- 2026-04-20 01:52:07,273 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-57757222, ID : dca7c0d5-4c76-4618-90f3-614c59da1878