2025-10-27 02:34:45,611 - INFO - Domain Default found not creating 2025-10-27 02:34:45,784 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-01452423 not found, creating it 2025-10-27 02:34:46,399 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-01452423, ID : 183d9562-20fe-4c05-a45f-7c136d914044 2025-10-27 02:34:47,876 - INFO - ================================================================================ 2025-10-27 02:34:47,876 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 02:34:49,152 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.131': {'10.20.0.17': '0', '10.20.0.14': '0'}} with 2025-10-27 02:34:49,152 - INFO - Initial checks done. Running the testcase now 2025-10-27 02:34:49,152 - INFO - 2025-10-27 02:34:49,152 - INFO - ================================================================================ 2025-10-27 02:34:49,152 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 02:34:49,152 - 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-27 02:34:50,429 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.131': {'10.20.0.17': '0', '10.20.0.14': '0'}} with 2025-10-27 02:34:50,429 - INFO - Initial checks done. Running the testcase now 2025-10-27 02:34:50,429 - INFO - 2025-10-27 02:34:50,817 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01452423:ctest-vn4-74497268, 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-01452423:ctest-vn4-74497268, 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-01452423:ctest-vn4-74497268, 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-01452423:ctest-vn4-74497268, 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-27 02:34:51,475 - DEBUG - Response for create_network : {'network': {'id': '48ba9665-5572-460b-95ad-e86913c0d76f', 'name': 'ctest-vn4-74497268', 'tenant_id': '183d956220fe4c05a45f7c136d914044', 'project_id': '183d956220fe4c05a45f7c136d914044', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01452423', 'ctest-vn4-74497268'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 02:34:51,773 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c51a477-203d-4eec-ac26-ec9d57ecaaab', 'name': '', 'tenant_id': '183d956220fe4c05a45f7c136d914044', 'network_id': '48ba9665-5572-460b-95ad-e86913c0d76f', 'ip_version': 4, 'cidr': '164.7.25.192/26', 'allocation_pools': [{'start': '164.7.25.194', 'end': '164.7.25.254'}], 'gateway_ip': '164.7.25.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.7.25.194', 'tags': [], 'project_id': '183d956220fe4c05a45f7c136d914044'}} 2025-10-27 02:34:51,990 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e04bbc74-2520-499b-b41d-faa187821d73', 'name': '', 'tenant_id': '183d956220fe4c05a45f7c136d914044', 'network_id': '48ba9665-5572-460b-95ad-e86913c0d76f', 'ip_version': 6, 'cidr': '2907:b065:1357:34c5:ea6:c4c7::/96', 'allocation_pools': [{'start': '2907:b065:1357:34c5:ea6:c4c7:0:2', 'end': '2907:b065:1357:34c5:ea6:c4c7:ffff:fffe'}], 'gateway_ip': '2907:b065:1357:34c5:ea6:c4c7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2907:b065:1357:34c5:ea6:c4c7:0:2', 'tags': [], 'project_id': '183d956220fe4c05a45f7c136d914044'}} 2025-10-27 02:34:52,014 - INFO - Created VN ctest-vn4-74497268 2025-10-27 02:34:52,025 - DEBUG - VN ctest-vn4-74497268 UUID is 48ba9665-5572-460b-95ad-e86913c0d76f 2025-10-27 02:34:52,275 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '48ba9665-5572-460b-95ad-e86913c0d76f', 'name': 'ctest-vn4-74497268', 'tenant_id': '183d956220fe4c05a45f7c136d914044', 'project_id': '183d956220fe4c05a45f7c136d914044', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c51a477-203d-4eec-ac26-ec9d57ecaaab', 'e04bbc74-2520-499b-b41d-faa187821d73'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01452423', 'ctest-vn4-74497268'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01452423', 'ctest-policy1-20462227']], 'subnet_ipam': [{'subnet_cidr': '164.7.25.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2907:b065:1357:34c5:ea6:c4c7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-27 02:34:52,375 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-27 02:34:52,677 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-27 02:34:52,706 - DEBUG - Requesting: http://10.0.0.249:8082/domain/8213efff-6224-4943-8f79-85cc33013f73 2025-10-27 02:34:52,724 - DEBUG - Requesting: http://10.0.0.249:8082/project/183d9562-20fe-4c05-a45f-7c136d914044 2025-10-27 02:34:52,825 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/48ba9665-5572-460b-95ad-e86913c0d76f 2025-10-27 02:34:52,838 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/48ba9665-5572-460b-95ad-e86913c0d76f 2025-10-27 02:34:52,848 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ea205656-4cb5-4bb3-af7c-17c3b1d2fddf 2025-10-27 02:34:52,857 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ea205656-4cb5-4bb3-af7c-17c3b1d2fddf 2025-10-27 02:34:52,865 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/24fe11d0-868f-4967-b7c0-680f4c4c3a59 2025-10-27 02:34:52,875 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 02:34:52,875 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/48ba9665-5572-460b-95ad-e86913c0d76f 2025-10-27 02:34:52,886 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ea205656-4cb5-4bb3-af7c-17c3b1d2fddf 2025-10-27 02:34:52,903 - INFO - Verified VN network id 15 for VN 48ba9665-5572-460b-95ad-e86913c0d76f 2025-10-27 02:34:52,903 - INFO - Verifications in API Server for VN ctest-vn4-74497268 passed 2025-10-27 02:34:52,904 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/48ba9665-5572-460b-95ad-e86913c0d76f 2025-10-27 02:34:52,917 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ea205656-4cb5-4bb3-af7c-17c3b1d2fddf 2025-10-27 02:34:52,926 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ea205656-4cb5-4bb3-af7c-17c3b1d2fddf 2025-10-27 02:34:52,934 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/24fe11d0-868f-4967-b7c0-680f4c4c3a59 2025-10-27 02:34:52,951 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01452423:ctest-vn4-74497268', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-01452423', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5240666478368409099', 'uuid-lslong': '10785532220622821231'}, 'enable': 'true', 'created': '2025-10-27T02:34:51', 'last-modified': '2025-10-27T02:34:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.732825'} 2025-10-27 02:34:52,959 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 02:34:52,964 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01452423:ctest-vn4-74497268', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-01452423', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5240666478368409099', 'uuid-lslong': '10785532220622821231'}, 'enable': 'true', 'created': '2025-10-27T02:34:51', 'last-modified': '2025-10-27T02:34:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.756430'} 2025-10-27 02:34:52,971 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 02:34:52,976 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01452423:ctest-vn4-74497268', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-01452423', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5240666478368409099', 'uuid-lslong': '10785532220622821231'}, 'enable': 'true', 'created': '2025-10-27T02:34:51', 'last-modified': '2025-10-27T02:34:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.767706'} 2025-10-27 02:34:52,981 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 02:34:52,981 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-74497268 passed 2025-10-27 02:34:52,982 - DEBUG - ====Verifying policy data for ctest-vn4-74497268 in API_Server ====== 2025-10-27 02:34:52,982 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-27 02:34:52,988 - DEBUG - Requesting: http://10.0.0.249:8082/domain/8213efff-6224-4943-8f79-85cc33013f73 2025-10-27 02:34:53,002 - DEBUG - Requesting: http://10.0.0.249:8082/project/183d9562-20fe-4c05-a45f-7c136d914044 2025-10-27 02:34:53,117 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/48ba9665-5572-460b-95ad-e86913c0d76f 2025-10-27 02:34:53,133 - DEBUG - ==>Verifying data for policy with id: 67de37ac-8b33-4270-ac7f-e0af08e35a6d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01452423', 'ctest-policy1-20462227'] 2025-10-27 02:34:53,133 - INFO - VN ctest-vn4-74497268 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-27 02:34:53,134 - DEBUG - Verifying the vn in opserver 2025-10-27 02:34:53,134 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01452423:ctest-vn4-74497268 virtual network link through opserver 10.0.0.249 2025-10-27 02:34:53,134 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-27 02:34:53,433 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-27 02:34:53,509 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01452423:ctest-vn4-74497268', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01452423:ctest-vn4-74497268?flat'} 2025-10-27 02:34:53,509 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01452423:ctest-vn4-74497268 virtual network link through opserver 10.0.0.33 2025-10-27 02:34:53,509 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-27 02:34:53,818 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-27 02:34:53,908 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01452423:ctest-vn4-74497268', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01452423:ctest-vn4-74497268?flat'} 2025-10-27 02:34:53,908 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01452423:ctest-vn4-74497268 virtual network link through opserver 10.0.0.129 2025-10-27 02:34:53,908 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-10-27 02:34:54,368 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-10-27 02:34:54,429 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01452423:ctest-vn4-74497268', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01452423:ctest-vn4-74497268?flat'} 2025-10-27 02:34:54,429 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01452423:ctest-vn4-74497268 is found in opserver 2025-10-27 02:34:54,450 - DEBUG - Do not have enough data to verify VN in agent 2025-10-27 02:34:54,460 - DEBUG - VRF ids for VN ctest-vn4-74497268: {} 2025-10-27 02:34:54,461 - DEBUG - ====Verifying data for ctest-policy1-20462227 in API_Server ====== 2025-10-27 02:34:54,461 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-27 02:34:54,467 - DEBUG - Requesting: http://10.0.0.249:8082/domain/8213efff-6224-4943-8f79-85cc33013f73 2025-10-27 02:34:54,481 - DEBUG - Requesting: http://10.0.0.249:8082/project/183d9562-20fe-4c05-a45f-7c136d914044 2025-10-27 02:34:54,569 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/67de37ac-8b33-4270-ac7f-e0af08e35a6d 2025-10-27 02:34:54,582 - INFO - Verified policy ctest-policy1-20462227 in API Server, Result: True 2025-10-27 02:34:54,582 - INFO - Done with setup and verification, moving onto test .. 2025-10-27 02:34:54,592 - INFO - Deleting VN ctest-vn4-74497268 2025-10-27 02:34:54,806 - DEBUG - Response for deleting network () 2025-10-27 02:34:54,807 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ea205656-4cb5-4bb3-af7c-17c3b1d2fddf 2025-10-27 02:34:54,813 - DEBUG - Response Code: 404 2025-10-27 02:34:54,813 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-27 02:34:54,822 - DEBUG - Requesting: http://10.0.0.249:8082/domain/8213efff-6224-4943-8f79-85cc33013f73 2025-10-27 02:34:54,883 - DEBUG - Requesting: http://10.0.0.249:8082/project/183d9562-20fe-4c05-a45f-7c136d914044 2025-10-27 02:34:54,994 - INFO - Validated that VN ctest-vn4-74497268 is not found in API Server 2025-10-27 02:34:55,007 - DEBUG - VN ctest-vn4-74497268 is not present in Agent 10.0.0.130 2025-10-27 02:34:55,019 - DEBUG - VN ctest-vn4-74497268 is not present in Agent 10.0.0.131 2025-10-27 02:34:55,019 - INFO - Validated that VN ctest-vn4-74497268 is not in any agent 2025-10-27 02:34:55,057 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-74497268 info 2025-10-27 02:34:55,113 - INFO - Deleted policy ctest-policy1-20462227 2025-10-27 02:34:55,314 - DEBUG - policy ctest-policy1-20462227 is not found in API Server 2025-10-27 02:34:56,595 - DEBUG - No XMPP flaps were noticed during the test 2025-10-27 02:34:56,595 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2025-10-27 02:34:56,596 - INFO - -------------------------------------------------------------------------------- 2025-10-27 02:34:57,862 - DEBUG - No XMPP flaps were noticed during the test 2025-10-27 02:34:57,862 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2025-10-27 02:34:57,862 - INFO - -------------------------------------------------------------------------------- 2025-10-27 02:34:58,620 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-01452423, ID : 183d9562-20fe-4c05-a45f-7c136d914044