2025-08-11 02:36:36,067 - INFO - Domain Default found not creating 2025-08-11 02:36:36,217 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-20860740 not found, creating it 2025-08-11 02:36:36,742 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-20860740, ID : 66da3823-b79a-4363-bfb5-74181021cb3f 2025-08-11 02:36:38,100 - INFO - ================================================================================ 2025-08-11 02:36:38,100 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 02:36:39,368 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.18': '0', '10.20.0.129': '0'}, '10.0.0.65': {'10.20.0.129': '0', '10.20.0.25': '0'}} with 2025-08-11 02:36:39,368 - INFO - Initial checks done. Running the testcase now 2025-08-11 02:36:39,368 - INFO - 2025-08-11 02:36:39,368 - INFO - ================================================================================ 2025-08-11 02:36:39,368 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 02:36:39,368 - 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-08-11 02:36:40,629 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.18': '0', '10.20.0.129': '0'}, '10.0.0.65': {'10.20.0.129': '0', '10.20.0.25': '0'}} with 2025-08-11 02:36:40,629 - INFO - Initial checks done. Running the testcase now 2025-08-11 02:36:40,629 - INFO - 2025-08-11 02:36:40,986 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20860740:ctest-vn4-42864724, 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-20860740:ctest-vn4-42864724, 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-20860740:ctest-vn4-42864724, 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-20860740:ctest-vn4-42864724, 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-08-11 02:36:41,681 - DEBUG - Response for create_network : {'network': {'id': '69e1f7fd-c2ce-4e6f-9f99-0b2984394628', 'name': 'ctest-vn4-42864724', 'tenant_id': '66da3823b79a4363bfb574181021cb3f', 'project_id': '66da3823b79a4363bfb574181021cb3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20860740', 'ctest-vn4-42864724'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 02:36:41,979 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe6559b5-293b-4cd2-8e0e-44a2dfe1ac9d', 'name': '', 'tenant_id': '66da3823b79a4363bfb574181021cb3f', 'network_id': '69e1f7fd-c2ce-4e6f-9f99-0b2984394628', 'ip_version': 4, 'cidr': '116.22.230.64/26', 'allocation_pools': [{'start': '116.22.230.66', 'end': '116.22.230.126'}], 'gateway_ip': '116.22.230.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.22.230.66', 'tags': [], 'project_id': '66da3823b79a4363bfb574181021cb3f'}} 2025-08-11 02:36:42,282 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e01af2c5-c645-4f37-aef6-9c99d143f6fe', 'name': '', 'tenant_id': '66da3823b79a4363bfb574181021cb3f', 'network_id': '69e1f7fd-c2ce-4e6f-9f99-0b2984394628', 'ip_version': 6, 'cidr': '3530:ecb:b0a9:bb62:7cce:7c7a::/96', 'allocation_pools': [{'start': '3530:ecb:b0a9:bb62:7cce:7c7a:0:2', 'end': '3530:ecb:b0a9:bb62:7cce:7c7a:ffff:fffe'}], 'gateway_ip': '3530:ecb:b0a9:bb62:7cce:7c7a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3530:ecb:b0a9:bb62:7cce:7c7a:0:2', 'tags': [], 'project_id': '66da3823b79a4363bfb574181021cb3f'}} 2025-08-11 02:36:42,307 - INFO - Created VN ctest-vn4-42864724 2025-08-11 02:36:42,323 - DEBUG - VN ctest-vn4-42864724 UUID is 69e1f7fd-c2ce-4e6f-9f99-0b2984394628 2025-08-11 02:36:42,546 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '69e1f7fd-c2ce-4e6f-9f99-0b2984394628', 'name': 'ctest-vn4-42864724', 'tenant_id': '66da3823b79a4363bfb574181021cb3f', 'project_id': '66da3823b79a4363bfb574181021cb3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fe6559b5-293b-4cd2-8e0e-44a2dfe1ac9d', 'e01af2c5-c645-4f37-aef6-9c99d143f6fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20860740', 'ctest-vn4-42864724'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20860740', 'ctest-policy1-17824273']], 'subnet_ipam': [{'subnet_cidr': '116.22.230.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3530:ecb:b0a9:bb62:7cce:7c7a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 02:36:42,647 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-11 02:36:42,953 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-11 02:36:42,983 - DEBUG - Requesting: http://10.0.0.23:8082/domain/e652ea40-e608-445e-8759-8973ddbd3f22 2025-08-11 02:36:43,000 - DEBUG - Requesting: http://10.0.0.23:8082/project/66da3823-b79a-4363-bfb5-74181021cb3f 2025-08-11 02:36:43,097 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/69e1f7fd-c2ce-4e6f-9f99-0b2984394628 2025-08-11 02:36:43,117 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/69e1f7fd-c2ce-4e6f-9f99-0b2984394628 2025-08-11 02:36:43,128 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1f0ab291-46b7-4a28-ad81-b58a9f07e2e5 2025-08-11 02:36:43,138 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1f0ab291-46b7-4a28-ad81-b58a9f07e2e5 2025-08-11 02:36:43,145 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/634c34d7-d76d-4e0a-aae0-21ac1f3be0a8 2025-08-11 02:36:43,153 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 02:36:43,153 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/69e1f7fd-c2ce-4e6f-9f99-0b2984394628 2025-08-11 02:36:43,163 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1f0ab291-46b7-4a28-ad81-b58a9f07e2e5 2025-08-11 02:36:43,179 - INFO - Verified VN network id 12 for VN 69e1f7fd-c2ce-4e6f-9f99-0b2984394628 2025-08-11 02:36:43,179 - INFO - Verifications in API Server for VN ctest-vn4-42864724 passed 2025-08-11 02:36:43,180 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/69e1f7fd-c2ce-4e6f-9f99-0b2984394628 2025-08-11 02:36:43,190 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1f0ab291-46b7-4a28-ad81-b58a9f07e2e5 2025-08-11 02:36:43,197 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1f0ab291-46b7-4a28-ad81-b58a9f07e2e5 2025-08-11 02:36:43,204 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/634c34d7-d76d-4e0a-aae0-21ac1f3be0a8 2025-08-11 02:36:43,218 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20860740:ctest-vn4-42864724', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20860740', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7629651913009417839', 'uuid-lslong': '11500235396407182888'}, 'enable': 'true', 'created': '2025-08-11T02:36:41', 'last-modified': '2025-08-11T02:36:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.716316'} 2025-08-11 02:36:43,224 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 02:36:43,236 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20860740:ctest-vn4-42864724', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20860740', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7629651913009417839', 'uuid-lslong': '11500235396407182888'}, 'enable': 'true', 'created': '2025-08-11T02:36:41', 'last-modified': '2025-08-11T02:36:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.728730'} 2025-08-11 02:36:43,243 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 02:36:43,249 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20860740:ctest-vn4-42864724', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20860740', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7629651913009417839', 'uuid-lslong': '11500235396407182888'}, 'enable': 'true', 'created': '2025-08-11T02:36:41', 'last-modified': '2025-08-11T02:36:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.753921'} 2025-08-11 02:36:43,256 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 02:36:43,256 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42864724 passed 2025-08-11 02:36:43,256 - DEBUG - ====Verifying policy data for ctest-vn4-42864724 in API_Server ====== 2025-08-11 02:36:43,256 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-11 02:36:43,265 - DEBUG - Requesting: http://10.0.0.23:8082/domain/e652ea40-e608-445e-8759-8973ddbd3f22 2025-08-11 02:36:43,276 - DEBUG - Requesting: http://10.0.0.23:8082/project/66da3823-b79a-4363-bfb5-74181021cb3f 2025-08-11 02:36:43,375 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/69e1f7fd-c2ce-4e6f-9f99-0b2984394628 2025-08-11 02:36:43,394 - DEBUG - ==>Verifying data for policy with id: 8d61fe5b-5150-4969-9334-231f804c781c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20860740', 'ctest-policy1-17824273'] 2025-08-11 02:36:43,394 - INFO - VN ctest-vn4-42864724 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 02:36:43,394 - DEBUG - Verifying the vn in opserver 2025-08-11 02:36:43,394 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20860740:ctest-vn4-42864724 virtual network link through opserver 10.0.0.23 2025-08-11 02:36:43,395 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-11 02:36:43,709 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-11 02:36:43,788 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20860740:ctest-vn4-42864724', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20860740:ctest-vn4-42864724?flat'} 2025-08-11 02:36:43,788 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20860740:ctest-vn4-42864724 virtual network link through opserver 10.0.0.38 2025-08-11 02:36:43,788 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 02:36:44,139 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 02:36:44,204 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20860740:ctest-vn4-42864724', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20860740:ctest-vn4-42864724?flat'} 2025-08-11 02:36:44,204 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20860740:ctest-vn4-42864724 virtual network link through opserver 10.0.0.141 2025-08-11 02:36:44,204 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-08-11 02:36:44,496 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-08-11 02:36:44,549 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20860740:ctest-vn4-42864724', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20860740:ctest-vn4-42864724?flat'} 2025-08-11 02:36:44,549 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20860740:ctest-vn4-42864724 is found in opserver 2025-08-11 02:36:44,573 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 02:36:44,584 - DEBUG - VRF ids for VN ctest-vn4-42864724: {} 2025-08-11 02:36:44,584 - DEBUG - ====Verifying data for ctest-policy1-17824273 in API_Server ====== 2025-08-11 02:36:44,584 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-11 02:36:44,594 - DEBUG - Requesting: http://10.0.0.23:8082/domain/e652ea40-e608-445e-8759-8973ddbd3f22 2025-08-11 02:36:44,614 - DEBUG - Requesting: http://10.0.0.23:8082/project/66da3823-b79a-4363-bfb5-74181021cb3f 2025-08-11 02:36:44,739 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/8d61fe5b-5150-4969-9334-231f804c781c 2025-08-11 02:36:44,752 - INFO - Verified policy ctest-policy1-17824273 in API Server, Result: True 2025-08-11 02:36:44,752 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 02:36:44,762 - INFO - Deleting VN ctest-vn4-42864724 2025-08-11 02:36:44,940 - DEBUG - Response for deleting network () 2025-08-11 02:36:44,940 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1f0ab291-46b7-4a28-ad81-b58a9f07e2e5 2025-08-11 02:36:44,948 - DEBUG - Response Code: 404 2025-08-11 02:36:44,948 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-11 02:36:44,954 - DEBUG - Requesting: http://10.0.0.23:8082/domain/e652ea40-e608-445e-8759-8973ddbd3f22 2025-08-11 02:36:44,978 - DEBUG - Requesting: http://10.0.0.23:8082/project/66da3823-b79a-4363-bfb5-74181021cb3f 2025-08-11 02:36:45,108 - INFO - Validated that VN ctest-vn4-42864724 is not found in API Server 2025-08-11 02:36:45,120 - DEBUG - VN ctest-vn4-42864724 is not present in Agent 10.0.0.57 2025-08-11 02:36:45,137 - DEBUG - VN ctest-vn4-42864724 is not present in Agent 10.0.0.65 2025-08-11 02:36:45,137 - INFO - Validated that VN ctest-vn4-42864724 is not in any agent 2025-08-11 02:36:45,172 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42864724 info 2025-08-11 02:36:45,213 - INFO - Deleted policy ctest-policy1-17824273 2025-08-11 02:36:45,395 - DEBUG - policy ctest-policy1-17824273 is not found in API Server 2025-08-11 02:36:46,665 - DEBUG - No XMPP flaps were noticed during the test