2025-10-13 12:32:58,620 - INFO - Domain Default found not creating 2025-10-13 12:32:58,797 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-39957213 not found, creating it 2025-10-13 12:32:59,310 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-39957213, ID : c37ba58b-1998-435b-9999-9d02a174e2f5 2025-10-13 12:33:00,817 - INFO - ================================================================================ 2025-10-13 12:33:00,817 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-13 12:33:01,071 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-10-13 12:33:01,071 - INFO - Initial checks done. Running the testcase now 2025-10-13 12:33:01,071 - INFO - 2025-10-13 12:33:01,071 - INFO - ================================================================================ 2025-10-13 12:33:01,071 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-13 12:33:01,071 - 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-10-13 12:33:01,362 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-10-13 12:33:01,362 - INFO - Initial checks done. Running the testcase now 2025-10-13 12:33:01,362 - INFO - 2025-10-13 12:33:01,707 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39957213:ctest-vn4-55500005, 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-39957213:ctest-vn4-55500005, 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-39957213:ctest-vn4-55500005, 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-39957213:ctest-vn4-55500005, 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-10-13 12:33:02,228 - DEBUG - Response for create_network : {'network': {'id': '4a276474-6f17-4592-9803-0641ecd877ad', 'name': 'ctest-vn4-55500005', 'tenant_id': 'c37ba58b1998435b99999d02a174e2f5', 'project_id': 'c37ba58b1998435b99999d02a174e2f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39957213', 'ctest-vn4-55500005'], 'port_security_enabled': True, 'description': ''}} 2025-10-13 12:33:02,454 - DEBUG - Response for create_subnet : {'subnet': {'id': '15df7294-98f2-41c0-bab0-cfc88e5259cf', 'name': '', 'tenant_id': 'c37ba58b1998435b99999d02a174e2f5', 'network_id': '4a276474-6f17-4592-9803-0641ecd877ad', 'ip_version': 4, 'cidr': '28.124.52.0/26', 'allocation_pools': [{'start': '28.124.52.2', 'end': '28.124.52.62'}], 'gateway_ip': '28.124.52.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.124.52.2', 'tags': [], 'project_id': 'c37ba58b1998435b99999d02a174e2f5'}} 2025-10-13 12:33:02,629 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e6b86757-b4fc-4682-b475-dbf254bf7c5b', 'name': '', 'tenant_id': 'c37ba58b1998435b99999d02a174e2f5', 'network_id': '4a276474-6f17-4592-9803-0641ecd877ad', 'ip_version': 6, 'cidr': '3ed1:647:110f:bd10:e60a:8ac::/96', 'allocation_pools': [{'start': '3ed1:647:110f:bd10:e60a:8ac:0:2', 'end': '3ed1:647:110f:bd10:e60a:8ac:ffff:fffe'}], 'gateway_ip': '3ed1:647:110f:bd10:e60a:8ac:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ed1:647:110f:bd10:e60a:8ac:0:2', 'tags': [], 'project_id': 'c37ba58b1998435b99999d02a174e2f5'}} 2025-10-13 12:33:02,649 - INFO - Created VN ctest-vn4-55500005 2025-10-13 12:33:02,701 - DEBUG - VN ctest-vn4-55500005 UUID is 4a276474-6f17-4592-9803-0641ecd877ad 2025-10-13 12:33:02,971 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a276474-6f17-4592-9803-0641ecd877ad', 'name': 'ctest-vn4-55500005', 'tenant_id': 'c37ba58b1998435b99999d02a174e2f5', 'project_id': 'c37ba58b1998435b99999d02a174e2f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['15df7294-98f2-41c0-bab0-cfc88e5259cf', 'e6b86757-b4fc-4682-b475-dbf254bf7c5b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39957213', 'ctest-vn4-55500005'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39957213', 'ctest-policy1-59144324']], 'subnet_ipam': [{'subnet_cidr': '28.124.52.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ed1:647:110f:bd10:e60a:8ac::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-13 12:33:03,133 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-13 12:33:03,423 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-13 12:33:03,450 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b9181f91-8211-48fc-91a1-ec11ad6c708d 2025-10-13 12:33:03,462 - DEBUG - Requesting: http://10.0.0.249:8082/project/c37ba58b-1998-435b-9999-9d02a174e2f5 2025-10-13 12:33:03,535 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4a276474-6f17-4592-9803-0641ecd877ad 2025-10-13 12:33:03,547 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4a276474-6f17-4592-9803-0641ecd877ad 2025-10-13 12:33:03,556 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/223bc79a-f9ff-4338-8709-abbdffe9e058 2025-10-13 12:33:03,562 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/223bc79a-f9ff-4338-8709-abbdffe9e058 2025-10-13 12:33:03,568 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/be920788-1391-42ee-9b59-4ac5da8ff495 2025-10-13 12:33:03,574 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 12:33:03,574 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4a276474-6f17-4592-9803-0641ecd877ad 2025-10-13 12:33:03,585 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/223bc79a-f9ff-4338-8709-abbdffe9e058 2025-10-13 12:33:03,600 - INFO - Verified VN network id 11 for VN 4a276474-6f17-4592-9803-0641ecd877ad 2025-10-13 12:33:03,600 - INFO - Verifications in API Server for VN ctest-vn4-55500005 passed 2025-10-13 12:33:03,600 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4a276474-6f17-4592-9803-0641ecd877ad 2025-10-13 12:33:03,610 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/223bc79a-f9ff-4338-8709-abbdffe9e058 2025-10-13 12:33:03,617 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/223bc79a-f9ff-4338-8709-abbdffe9e058 2025-10-13 12:33:03,624 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/be920788-1391-42ee-9b59-4ac5da8ff495 2025-10-13 12:33:03,636 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39957213:ctest-vn4-55500005', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-39957213', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5343349934141162898', 'uuid-lslong': '10953605598911428525'}, 'enable': 'true', 'created': '2025-10-13T12:33:02', 'last-modified': '2025-10-13T12:33:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.681838'} 2025-10-13 12:33:03,643 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 12:33:03,643 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55500005 passed 2025-10-13 12:33:03,644 - DEBUG - ====Verifying policy data for ctest-vn4-55500005 in API_Server ====== 2025-10-13 12:33:03,644 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-13 12:33:03,649 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b9181f91-8211-48fc-91a1-ec11ad6c708d 2025-10-13 12:33:03,658 - DEBUG - Requesting: http://10.0.0.249:8082/project/c37ba58b-1998-435b-9999-9d02a174e2f5 2025-10-13 12:33:03,732 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4a276474-6f17-4592-9803-0641ecd877ad 2025-10-13 12:33:03,743 - DEBUG - ==>Verifying data for policy with id: c118c4e0-73b7-4e95-8b8f-de33db15ecc5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39957213', 'ctest-policy1-59144324'] 2025-10-13 12:33:03,743 - INFO - VN ctest-vn4-55500005 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-13 12:33:03,743 - DEBUG - Verifying the vn in opserver 2025-10-13 12:33:03,743 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39957213:ctest-vn4-55500005 virtual network link through opserver 10.0.0.249 2025-10-13 12:33:03,743 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-13 12:33:04,035 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-13 12:33:04,094 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39957213:ctest-vn4-55500005', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39957213:ctest-vn4-55500005?flat'} 2025-10-13 12:33:04,094 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39957213:ctest-vn4-55500005 is found in opserver 2025-10-13 12:33:04,104 - DEBUG - Do not have enough data to verify VN in agent 2025-10-13 12:33:04,109 - DEBUG - VRF ids for VN ctest-vn4-55500005: {} 2025-10-13 12:33:04,109 - DEBUG - ====Verifying data for ctest-policy1-59144324 in API_Server ====== 2025-10-13 12:33:04,109 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-13 12:33:04,115 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b9181f91-8211-48fc-91a1-ec11ad6c708d 2025-10-13 12:33:04,126 - DEBUG - Requesting: http://10.0.0.249:8082/project/c37ba58b-1998-435b-9999-9d02a174e2f5 2025-10-13 12:33:04,197 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/c118c4e0-73b7-4e95-8b8f-de33db15ecc5 2025-10-13 12:33:04,207 - INFO - Verified policy ctest-policy1-59144324 in API Server, Result: True 2025-10-13 12:33:04,207 - INFO - Done with setup and verification, moving onto test .. 2025-10-13 12:33:04,217 - INFO - Deleting VN ctest-vn4-55500005 2025-10-13 12:33:04,355 - DEBUG - Response for deleting network () 2025-10-13 12:33:04,355 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/223bc79a-f9ff-4338-8709-abbdffe9e058 2025-10-13 12:33:04,360 - DEBUG - Response Code: 404 2025-10-13 12:33:04,361 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-13 12:33:04,367 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b9181f91-8211-48fc-91a1-ec11ad6c708d 2025-10-13 12:33:04,418 - DEBUG - Requesting: http://10.0.0.249:8082/project/c37ba58b-1998-435b-9999-9d02a174e2f5 2025-10-13 12:33:04,485 - INFO - Validated that VN ctest-vn4-55500005 is not found in API Server 2025-10-13 12:33:04,495 - DEBUG - VN ctest-vn4-55500005 is not present in Agent 10.0.0.249 2025-10-13 12:33:04,495 - INFO - Validated that VN ctest-vn4-55500005 is not in any agent 2025-10-13 12:33:04,507 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55500005 info 2025-10-13 12:33:04,530 - INFO - Deleted policy ctest-policy1-59144324 2025-10-13 12:33:04,693 - DEBUG - policy ctest-policy1-59144324 is not found in API Server 2025-10-13 12:33:04,946 - DEBUG - No XMPP flaps were noticed during the test