2025-12-09 18:49:40,826 - INFO - Domain Default found not creating 2025-12-09 18:49:41,012 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11999978 not found, creating it 2025-12-09 18:49:41,473 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11999978, ID : 6d02f023-1316-4047-abc0-ab92aea14b04 2025-12-09 18:49:42,926 - INFO - ================================================================================ 2025-12-09 18:49:42,927 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-09 18:49:43,181 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2025-12-09 18:49:43,181 - INFO - Initial checks done. Running the testcase now 2025-12-09 18:49:43,181 - INFO - 2025-12-09 18:49:43,182 - INFO - ================================================================================ 2025-12-09 18:49:43,182 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-09 18:49:43,182 - 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. 2025-12-09 18:49:43,469 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2025-12-09 18:49:43,469 - INFO - Initial checks done. Running the testcase now 2025-12-09 18:49:43,469 - INFO - 2025-12-09 18:49:43,824 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11999978:ctest-vn4-33256314, 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-11999978:ctest-vn4-33256314, 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-11999978:ctest-vn4-33256314, 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-11999978:ctest-vn4-33256314, 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] 2025-12-09 18:49:44,317 - DEBUG - Response for create_network : {'network': {'id': '1fd96b89-b1f4-42fb-bef2-1f98f3bd6ba6', 'name': 'ctest-vn4-33256314', 'tenant_id': '6d02f02313164047abc0ab92aea14b04', 'project_id': '6d02f02313164047abc0ab92aea14b04', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11999978', 'ctest-vn4-33256314'], 'port_security_enabled': True, 'description': ''}} 2025-12-09 18:49:44,468 - DEBUG - Response for create_subnet : {'subnet': {'id': '38ea8efe-0ef5-4eb0-8765-7110ccf14488', 'name': '', 'tenant_id': '6d02f02313164047abc0ab92aea14b04', 'network_id': '1fd96b89-b1f4-42fb-bef2-1f98f3bd6ba6', 'ip_version': 4, 'cidr': '64.227.85.64/26', 'allocation_pools': [{'start': '64.227.85.66', 'end': '64.227.85.126'}], 'gateway_ip': '64.227.85.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.227.85.66', 'tags': [], 'project_id': '6d02f02313164047abc0ab92aea14b04'}} 2025-12-09 18:49:44,617 - DEBUG - Response for create_subnet : {'subnet': {'id': '5167d015-05e5-4f30-b550-c54feb4f6e91', 'name': '', 'tenant_id': '6d02f02313164047abc0ab92aea14b04', 'network_id': '1fd96b89-b1f4-42fb-bef2-1f98f3bd6ba6', 'ip_version': 6, 'cidr': '3dee:86f2:28d5:5f1a:1583:84fb::/96', 'allocation_pools': [{'start': '3dee:86f2:28d5:5f1a:1583:84fb:0:2', 'end': '3dee:86f2:28d5:5f1a:1583:84fb:ffff:fffe'}], 'gateway_ip': '3dee:86f2:28d5:5f1a:1583:84fb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3dee:86f2:28d5:5f1a:1583:84fb:0:2', 'tags': [], 'project_id': '6d02f02313164047abc0ab92aea14b04'}} 2025-12-09 18:49:44,634 - INFO - Created VN ctest-vn4-33256314 2025-12-09 18:49:44,684 - DEBUG - VN ctest-vn4-33256314 UUID is 1fd96b89-b1f4-42fb-bef2-1f98f3bd6ba6 2025-12-09 18:49:44,881 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1fd96b89-b1f4-42fb-bef2-1f98f3bd6ba6', 'name': 'ctest-vn4-33256314', 'tenant_id': '6d02f02313164047abc0ab92aea14b04', 'project_id': '6d02f02313164047abc0ab92aea14b04', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['38ea8efe-0ef5-4eb0-8765-7110ccf14488', '5167d015-05e5-4f30-b550-c54feb4f6e91'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11999978', 'ctest-vn4-33256314'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11999978', 'ctest-policy1-64948982']], 'subnet_ipam': [{'subnet_cidr': '64.227.85.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3dee:86f2:28d5:5f1a:1583:84fb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-09 18:49:45,044 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-09 18:49:45,337 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-09 18:49:45,368 - DEBUG - Requesting: http://10.0.0.19:8082/domain/7a0bf2a8-7088-49df-a9a0-e70874b1a0fe 2025-12-09 18:49:45,379 - DEBUG - Requesting: http://10.0.0.19:8082/project/6d02f023-1316-4047-abc0-ab92aea14b04 2025-12-09 18:49:45,451 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/1fd96b89-b1f4-42fb-bef2-1f98f3bd6ba6 2025-12-09 18:49:45,463 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/1fd96b89-b1f4-42fb-bef2-1f98f3bd6ba6 2025-12-09 18:49:45,471 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/26be64cb-d727-4e2e-8a68-b9d5ce6af25d 2025-12-09 18:49:45,477 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/26be64cb-d727-4e2e-8a68-b9d5ce6af25d 2025-12-09 18:49:45,483 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/d8db8b13-9744-4efa-95b7-b82b57844757 2025-12-09 18:49:45,488 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-09 18:49:45,489 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/1fd96b89-b1f4-42fb-bef2-1f98f3bd6ba6 2025-12-09 18:49:45,496 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/26be64cb-d727-4e2e-8a68-b9d5ce6af25d 2025-12-09 18:49:45,508 - INFO - Verified VN network id 11 for VN 1fd96b89-b1f4-42fb-bef2-1f98f3bd6ba6 2025-12-09 18:49:45,508 - INFO - Verifications in API Server for VN ctest-vn4-33256314 passed 2025-12-09 18:49:45,509 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/1fd96b89-b1f4-42fb-bef2-1f98f3bd6ba6 2025-12-09 18:49:45,517 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/26be64cb-d727-4e2e-8a68-b9d5ce6af25d 2025-12-09 18:49:45,522 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/26be64cb-d727-4e2e-8a68-b9d5ce6af25d 2025-12-09 18:49:45,528 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/d8db8b13-9744-4efa-95b7-b82b57844757 2025-12-09 18:49:45,537 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11999978:ctest-vn4-33256314', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11999978', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2294983724262245115', 'uuid-lslong': '13759094553355053990'}, 'enable': 'true', 'created': '2025-12-09T18:49:44', 'last-modified': '2025-12-09T18:49:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.681673'} 2025-12-09 18:49:45,543 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-09 18:49:45,543 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-33256314 passed 2025-12-09 18:49:45,543 - DEBUG - ====Verifying policy data for ctest-vn4-33256314 in API_Server ====== 2025-12-09 18:49:45,543 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-09 18:49:45,549 - DEBUG - Requesting: http://10.0.0.19:8082/domain/7a0bf2a8-7088-49df-a9a0-e70874b1a0fe 2025-12-09 18:49:45,560 - DEBUG - Requesting: http://10.0.0.19:8082/project/6d02f023-1316-4047-abc0-ab92aea14b04 2025-12-09 18:49:45,632 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/1fd96b89-b1f4-42fb-bef2-1f98f3bd6ba6 2025-12-09 18:49:45,642 - DEBUG - ==>Verifying data for policy with id: 1ee335c3-8ee7-4031-8551-1487426ac2f6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11999978', 'ctest-policy1-64948982'] 2025-12-09 18:49:45,642 - INFO - VN ctest-vn4-33256314 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-09 18:49:45,642 - DEBUG - Verifying the vn in opserver 2025-12-09 18:49:45,642 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11999978:ctest-vn4-33256314 virtual network link through opserver 10.0.0.19 2025-12-09 18:49:45,642 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-12-09 18:49:45,931 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-12-09 18:49:45,985 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11999978:ctest-vn4-33256314', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11999978:ctest-vn4-33256314?flat'} 2025-12-09 18:49:45,985 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11999978:ctest-vn4-33256314 is found in opserver 2025-12-09 18:49:45,994 - DEBUG - Do not have enough data to verify VN in agent 2025-12-09 18:49:45,998 - DEBUG - VRF ids for VN ctest-vn4-33256314: {} 2025-12-09 18:49:45,998 - DEBUG - ====Verifying data for ctest-policy1-64948982 in API_Server ====== 2025-12-09 18:49:45,998 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-09 18:49:46,004 - DEBUG - Requesting: http://10.0.0.19:8082/domain/7a0bf2a8-7088-49df-a9a0-e70874b1a0fe 2025-12-09 18:49:46,015 - DEBUG - Requesting: http://10.0.0.19:8082/project/6d02f023-1316-4047-abc0-ab92aea14b04 2025-12-09 18:49:46,088 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/1ee335c3-8ee7-4031-8551-1487426ac2f6 2025-12-09 18:49:46,096 - INFO - Verified policy ctest-policy1-64948982 in API Server, Result: True 2025-12-09 18:49:46,096 - INFO - Done with setup and verification, moving onto test .. 2025-12-09 18:49:46,104 - INFO - Deleting VN ctest-vn4-33256314 2025-12-09 18:49:46,209 - DEBUG - Response for deleting network () 2025-12-09 18:49:46,210 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/26be64cb-d727-4e2e-8a68-b9d5ce6af25d 2025-12-09 18:49:46,214 - DEBUG - Response Code: 404 2025-12-09 18:49:46,214 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-09 18:49:46,218 - DEBUG - Requesting: http://10.0.0.19:8082/domain/7a0bf2a8-7088-49df-a9a0-e70874b1a0fe 2025-12-09 18:49:46,268 - DEBUG - Requesting: http://10.0.0.19:8082/project/6d02f023-1316-4047-abc0-ab92aea14b04 2025-12-09 18:49:46,340 - INFO - Validated that VN ctest-vn4-33256314 is not found in API Server 2025-12-09 18:49:46,350 - DEBUG - VN ctest-vn4-33256314 is not present in Agent 10.0.0.19 2025-12-09 18:49:46,350 - INFO - Validated that VN ctest-vn4-33256314 is not in any agent 2025-12-09 18:49:46,363 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-33256314 info 2025-12-09 18:49:46,390 - INFO - Deleted policy ctest-policy1-64948982 2025-12-09 18:49:46,552 - DEBUG - policy ctest-policy1-64948982 is not found in API Server 2025-12-09 18:49:46,805 - DEBUG - No XMPP flaps were noticed during the test