2025-07-22 16:04:01,057 - INFO - Domain Default found not creating 2025-07-22 16:04:01,196 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-50391395 not found, creating it 2025-07-22 16:04:01,755 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-50391395, ID : c32e529c-f7bb-4abc-8375-d3f859ef49d8 2025-07-22 16:04:03,250 - INFO - ================================================================================ 2025-07-22 16:04:03,250 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-22 16:04:04,559 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0', '10.20.0.17': '0'}, '10.0.0.27': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2025-07-22 16:04:04,559 - INFO - Initial checks done. Running the testcase now 2025-07-22 16:04:04,559 - INFO - 2025-07-22 16:04:04,559 - INFO - ================================================================================ 2025-07-22 16:04:04,559 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-22 16:04:04,559 - 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-07-22 16:04:05,843 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0', '10.20.0.17': '0'}, '10.0.0.27': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2025-07-22 16:04:05,843 - INFO - Initial checks done. Running the testcase now 2025-07-22 16:04:05,843 - INFO - 2025-07-22 16:04:06,229 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50391395:ctest-vn4-50584502, 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-50391395:ctest-vn4-50584502, 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-50391395:ctest-vn4-50584502, 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-50391395:ctest-vn4-50584502, 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-07-22 16:04:06,861 - DEBUG - Response for create_network : {'network': {'id': 'a875aba8-39f3-405e-a91a-3428e1d89b07', 'name': 'ctest-vn4-50584502', 'tenant_id': 'c32e529cf7bb4abc8375d3f859ef49d8', 'project_id': 'c32e529cf7bb4abc8375d3f859ef49d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50391395', 'ctest-vn4-50584502'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 16:04:07,124 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da86ddb9-40ef-448a-8231-f8cac883fff9', 'name': '', 'tenant_id': 'c32e529cf7bb4abc8375d3f859ef49d8', 'network_id': 'a875aba8-39f3-405e-a91a-3428e1d89b07', 'ip_version': 4, 'cidr': '214.162.97.0/26', 'allocation_pools': [{'start': '214.162.97.2', 'end': '214.162.97.62'}], 'gateway_ip': '214.162.97.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.162.97.2', 'tags': [], 'project_id': 'c32e529cf7bb4abc8375d3f859ef49d8'}} 2025-07-22 16:04:07,328 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c836f569-5a1d-4848-af6b-1eb8a9e48c26', 'name': '', 'tenant_id': 'c32e529cf7bb4abc8375d3f859ef49d8', 'network_id': 'a875aba8-39f3-405e-a91a-3428e1d89b07', 'ip_version': 6, 'cidr': '3c3f:67d9:a6f4:ed0a:8306:1179::/96', 'allocation_pools': [{'start': '3c3f:67d9:a6f4:ed0a:8306:1179:0:2', 'end': '3c3f:67d9:a6f4:ed0a:8306:1179:ffff:fffe'}], 'gateway_ip': '3c3f:67d9:a6f4:ed0a:8306:1179:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c3f:67d9:a6f4:ed0a:8306:1179:0:2', 'tags': [], 'project_id': 'c32e529cf7bb4abc8375d3f859ef49d8'}} 2025-07-22 16:04:07,356 - INFO - Created VN ctest-vn4-50584502 2025-07-22 16:04:07,369 - DEBUG - VN ctest-vn4-50584502 UUID is a875aba8-39f3-405e-a91a-3428e1d89b07 2025-07-22 16:04:07,631 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a875aba8-39f3-405e-a91a-3428e1d89b07', 'name': 'ctest-vn4-50584502', 'tenant_id': 'c32e529cf7bb4abc8375d3f859ef49d8', 'project_id': 'c32e529cf7bb4abc8375d3f859ef49d8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['da86ddb9-40ef-448a-8231-f8cac883fff9', 'c836f569-5a1d-4848-af6b-1eb8a9e48c26'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50391395', 'ctest-vn4-50584502'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50391395', 'ctest-policy1-28949156']], 'subnet_ipam': [{'subnet_cidr': '214.162.97.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c3f:67d9:a6f4:ed0a:8306:1179::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-22 16:04:07,749 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 16:04:08,039 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 16:04:08,068 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6830e6da-995f-41aa-841e-c47f32c16910 2025-07-22 16:04:08,088 - DEBUG - Requesting: http://10.0.0.254:8082/project/c32e529c-f7bb-4abc-8375-d3f859ef49d8 2025-07-22 16:04:08,186 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a875aba8-39f3-405e-a91a-3428e1d89b07 2025-07-22 16:04:08,202 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a875aba8-39f3-405e-a91a-3428e1d89b07 2025-07-22 16:04:08,213 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7c45c007-a72b-4471-90c1-850e2ae7ec2e 2025-07-22 16:04:08,221 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7c45c007-a72b-4471-90c1-850e2ae7ec2e 2025-07-22 16:04:08,229 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5e19fccc-9630-4ab5-8903-546175f155dd 2025-07-22 16:04:08,238 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 16:04:08,238 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a875aba8-39f3-405e-a91a-3428e1d89b07 2025-07-22 16:04:08,250 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7c45c007-a72b-4471-90c1-850e2ae7ec2e 2025-07-22 16:04:08,270 - INFO - Verified VN network id 12 for VN a875aba8-39f3-405e-a91a-3428e1d89b07 2025-07-22 16:04:08,270 - INFO - Verifications in API Server for VN ctest-vn4-50584502 passed 2025-07-22 16:04:08,270 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a875aba8-39f3-405e-a91a-3428e1d89b07 2025-07-22 16:04:08,281 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7c45c007-a72b-4471-90c1-850e2ae7ec2e 2025-07-22 16:04:08,290 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7c45c007-a72b-4471-90c1-850e2ae7ec2e 2025-07-22 16:04:08,298 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5e19fccc-9630-4ab5-8903-546175f155dd 2025-07-22 16:04:08,311 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50391395:ctest-vn4-50584502', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-50391395', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12138797109662138462', 'uuid-lslong': '12185109091996703495'}, 'enable': 'true', 'created': '2025-07-22T16:04:06', 'last-modified': '2025-07-22T16:04:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.731856'} 2025-07-22 16:04:08,318 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 16:04:08,324 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50391395:ctest-vn4-50584502', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-50391395', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12138797109662138462', 'uuid-lslong': '12185109091996703495'}, 'enable': 'true', 'created': '2025-07-22T16:04:06', 'last-modified': '2025-07-22T16:04:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.738666'} 2025-07-22 16:04:08,331 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 16:04:08,338 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50391395:ctest-vn4-50584502', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-50391395', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12138797109662138462', 'uuid-lslong': '12185109091996703495'}, 'enable': 'true', 'created': '2025-07-22T16:04:06', 'last-modified': '2025-07-22T16:04:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.757372'} 2025-07-22 16:04:08,345 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 16:04:08,345 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-50584502 passed 2025-07-22 16:04:08,345 - DEBUG - ====Verifying policy data for ctest-vn4-50584502 in API_Server ====== 2025-07-22 16:04:08,345 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 16:04:08,352 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6830e6da-995f-41aa-841e-c47f32c16910 2025-07-22 16:04:08,366 - DEBUG - Requesting: http://10.0.0.254:8082/project/c32e529c-f7bb-4abc-8375-d3f859ef49d8 2025-07-22 16:04:08,471 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a875aba8-39f3-405e-a91a-3428e1d89b07 2025-07-22 16:04:08,483 - DEBUG - ==>Verifying data for policy with id: 1e69e123-3ea9-4808-81b7-eb0d0ee99b1a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50391395', 'ctest-policy1-28949156'] 2025-07-22 16:04:08,483 - INFO - VN ctest-vn4-50584502 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-22 16:04:08,483 - DEBUG - Verifying the vn in opserver 2025-07-22 16:04:08,483 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50391395:ctest-vn4-50584502 virtual network link through opserver 10.0.0.254 2025-07-22 16:04:08,484 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-22 16:04:08,785 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-22 16:04:08,844 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50391395:ctest-vn4-50584502', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50391395:ctest-vn4-50584502?flat'} 2025-07-22 16:04:08,844 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50391395:ctest-vn4-50584502 virtual network link through opserver 10.0.0.50 2025-07-22 16:04:08,844 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-22 16:04:09,145 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-22 16:04:09,217 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50391395:ctest-vn4-50584502', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50391395:ctest-vn4-50584502?flat'} 2025-07-22 16:04:09,217 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50391395:ctest-vn4-50584502 virtual network link through opserver 10.0.0.23 2025-07-22 16:04:09,217 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-07-22 16:04:09,525 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-07-22 16:04:09,592 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50391395:ctest-vn4-50584502', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50391395:ctest-vn4-50584502?flat'} 2025-07-22 16:04:09,592 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50391395:ctest-vn4-50584502 is found in opserver 2025-07-22 16:04:09,621 - DEBUG - Do not have enough data to verify VN in agent 2025-07-22 16:04:09,634 - DEBUG - VRF ids for VN ctest-vn4-50584502: {} 2025-07-22 16:04:09,634 - DEBUG - ====Verifying data for ctest-policy1-28949156 in API_Server ====== 2025-07-22 16:04:09,634 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 16:04:09,641 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6830e6da-995f-41aa-841e-c47f32c16910 2025-07-22 16:04:09,657 - DEBUG - Requesting: http://10.0.0.254:8082/project/c32e529c-f7bb-4abc-8375-d3f859ef49d8 2025-07-22 16:04:09,766 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/1e69e123-3ea9-4808-81b7-eb0d0ee99b1a 2025-07-22 16:04:09,776 - INFO - Verified policy ctest-policy1-28949156 in API Server, Result: True 2025-07-22 16:04:09,777 - INFO - Done with setup and verification, moving onto test .. 2025-07-22 16:04:09,791 - INFO - Deleting VN ctest-vn4-50584502 2025-07-22 16:04:10,051 - DEBUG - Response for deleting network () 2025-07-22 16:04:10,051 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7c45c007-a72b-4471-90c1-850e2ae7ec2e 2025-07-22 16:04:10,058 - DEBUG - Response Code: 404 2025-07-22 16:04:10,058 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-22 16:04:10,065 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6830e6da-995f-41aa-841e-c47f32c16910 2025-07-22 16:04:10,080 - DEBUG - Requesting: http://10.0.0.254:8082/project/c32e529c-f7bb-4abc-8375-d3f859ef49d8 2025-07-22 16:04:10,174 - INFO - Validated that VN ctest-vn4-50584502 is not found in API Server 2025-07-22 16:04:10,188 - DEBUG - VN ctest-vn4-50584502 is not present in Agent 10.0.0.19 2025-07-22 16:04:10,202 - DEBUG - VN ctest-vn4-50584502 is not present in Agent 10.0.0.27 2025-07-22 16:04:10,202 - INFO - Validated that VN ctest-vn4-50584502 is not in any agent 2025-07-22 16:04:10,240 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-50584502 info 2025-07-22 16:04:10,288 - INFO - Deleted policy ctest-policy1-28949156 2025-07-22 16:04:10,492 - DEBUG - policy ctest-policy1-28949156 is not found in API Server 2025-07-22 16:04:11,755 - DEBUG - No XMPP flaps were noticed during the test