2025-10-02 01:56:08,056 - INFO - Domain Default found not creating 2025-10-02 01:56:08,207 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-82876917 not found, creating it 2025-10-02 01:56:08,653 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-82876917, ID : ab993504-7019-4a91-ad08-f64f99ce4a21 2025-10-02 01:56:10,040 - INFO - ================================================================================ 2025-10-02 01:56:10,040 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-02 01:56:10,296 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.18': '0'}} with 2025-10-02 01:56:10,296 - INFO - Initial checks done. Running the testcase now 2025-10-02 01:56:10,296 - INFO - 2025-10-02 01:56:10,296 - INFO - ================================================================================ 2025-10-02 01:56:10,296 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-02 01:56:10,296 - 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-02 01:56:10,582 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.18': '0'}} with 2025-10-02 01:56:10,582 - INFO - Initial checks done. Running the testcase now 2025-10-02 01:56:10,582 - INFO - 2025-10-02 01:56:10,922 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82876917:ctest-vn4-02482503, 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-82876917:ctest-vn4-02482503, 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-82876917:ctest-vn4-02482503, 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-82876917:ctest-vn4-02482503, 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-02 01:56:11,410 - DEBUG - Response for create_network : {'network': {'id': 'd1e3bcda-d5e1-40f7-b05d-0d3a74e13c50', 'name': 'ctest-vn4-02482503', 'tenant_id': 'ab99350470194a91ad08f64f99ce4a21', 'project_id': 'ab99350470194a91ad08f64f99ce4a21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82876917', 'ctest-vn4-02482503'], 'port_security_enabled': True, 'description': ''}} 2025-10-02 01:56:11,614 - DEBUG - Response for create_subnet : {'subnet': {'id': '600caa58-33cd-422b-ae81-c797ed9adaa7', 'name': '', 'tenant_id': 'ab99350470194a91ad08f64f99ce4a21', 'network_id': 'd1e3bcda-d5e1-40f7-b05d-0d3a74e13c50', 'ip_version': 4, 'cidr': '215.9.207.64/26', 'allocation_pools': [{'start': '215.9.207.66', 'end': '215.9.207.126'}], 'gateway_ip': '215.9.207.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.9.207.66', 'tags': [], 'project_id': 'ab99350470194a91ad08f64f99ce4a21'}} 2025-10-02 01:56:11,815 - DEBUG - Response for create_subnet : {'subnet': {'id': '73ceebf5-607b-4604-8b19-c55085c01d83', 'name': '', 'tenant_id': 'ab99350470194a91ad08f64f99ce4a21', 'network_id': 'd1e3bcda-d5e1-40f7-b05d-0d3a74e13c50', 'ip_version': 6, 'cidr': '3dcf:77f8:f97b:f420:45cb:26bb::/96', 'allocation_pools': [{'start': '3dcf:77f8:f97b:f420:45cb:26bb:0:2', 'end': '3dcf:77f8:f97b:f420:45cb:26bb:ffff:fffe'}], 'gateway_ip': '3dcf:77f8:f97b:f420:45cb:26bb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3dcf:77f8:f97b:f420:45cb:26bb:0:2', 'tags': [], 'project_id': 'ab99350470194a91ad08f64f99ce4a21'}} 2025-10-02 01:56:11,833 - INFO - Created VN ctest-vn4-02482503 2025-10-02 01:56:11,882 - DEBUG - VN ctest-vn4-02482503 UUID is d1e3bcda-d5e1-40f7-b05d-0d3a74e13c50 2025-10-02 01:56:12,084 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd1e3bcda-d5e1-40f7-b05d-0d3a74e13c50', 'name': 'ctest-vn4-02482503', 'tenant_id': 'ab99350470194a91ad08f64f99ce4a21', 'project_id': 'ab99350470194a91ad08f64f99ce4a21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['600caa58-33cd-422b-ae81-c797ed9adaa7', '73ceebf5-607b-4604-8b19-c55085c01d83'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82876917', 'ctest-vn4-02482503'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82876917', 'ctest-policy1-59162250']], 'subnet_ipam': [{'subnet_cidr': '215.9.207.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3dcf:77f8:f97b:f420:45cb:26bb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-02 01:56:12,246 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-10-02 01:56:12,539 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-10-02 01:56:12,566 - DEBUG - Requesting: http://10.0.0.131:8082/domain/beb5e39c-6386-493b-8558-63a22034139b 2025-10-02 01:56:12,581 - DEBUG - Requesting: http://10.0.0.131:8082/project/ab993504-7019-4a91-ad08-f64f99ce4a21 2025-10-02 01:56:12,674 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/d1e3bcda-d5e1-40f7-b05d-0d3a74e13c50 2025-10-02 01:56:12,707 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/d1e3bcda-d5e1-40f7-b05d-0d3a74e13c50 2025-10-02 01:56:12,724 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/f27a8f52-b976-45fd-bfd0-e14b7f07d45a 2025-10-02 01:56:12,730 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/f27a8f52-b976-45fd-bfd0-e14b7f07d45a 2025-10-02 01:56:12,739 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/64190bf7-0482-4544-b112-22ec59b66303 2025-10-02 01:56:12,758 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-02 01:56:12,758 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/d1e3bcda-d5e1-40f7-b05d-0d3a74e13c50 2025-10-02 01:56:12,770 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/f27a8f52-b976-45fd-bfd0-e14b7f07d45a 2025-10-02 01:56:12,781 - INFO - Verified VN network id 10 for VN d1e3bcda-d5e1-40f7-b05d-0d3a74e13c50 2025-10-02 01:56:12,781 - INFO - Verifications in API Server for VN ctest-vn4-02482503 passed 2025-10-02 01:56:12,781 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/d1e3bcda-d5e1-40f7-b05d-0d3a74e13c50 2025-10-02 01:56:12,788 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/f27a8f52-b976-45fd-bfd0-e14b7f07d45a 2025-10-02 01:56:12,793 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/f27a8f52-b976-45fd-bfd0-e14b7f07d45a 2025-10-02 01:56:12,800 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/64190bf7-0482-4544-b112-22ec59b66303 2025-10-02 01:56:12,810 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82876917:ctest-vn4-02482503', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-82876917', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15124139621717459191', 'uuid-lslong': '12708328268229590096'}, 'enable': 'true', 'created': '2025-10-02T01:56:11', 'last-modified': '2025-10-02T01:56:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.749149'} 2025-10-02 01:56:12,815 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-02 01:56:12,815 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-02482503 passed 2025-10-02 01:56:12,815 - DEBUG - ====Verifying policy data for ctest-vn4-02482503 in API_Server ====== 2025-10-02 01:56:12,815 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-10-02 01:56:12,825 - DEBUG - Requesting: http://10.0.0.131:8082/domain/beb5e39c-6386-493b-8558-63a22034139b 2025-10-02 01:56:12,842 - DEBUG - Requesting: http://10.0.0.131:8082/project/ab993504-7019-4a91-ad08-f64f99ce4a21 2025-10-02 01:56:12,925 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/d1e3bcda-d5e1-40f7-b05d-0d3a74e13c50 2025-10-02 01:56:12,936 - DEBUG - ==>Verifying data for policy with id: 3a2b27a1-63ed-41eb-aab3-30089ce5f1a9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82876917', 'ctest-policy1-59162250'] 2025-10-02 01:56:12,936 - INFO - VN ctest-vn4-02482503 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-02 01:56:12,937 - DEBUG - Verifying the vn in opserver 2025-10-02 01:56:12,937 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82876917:ctest-vn4-02482503 virtual network link through opserver 10.0.0.131 2025-10-02 01:56:12,937 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-10-02 01:56:13,255 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-10-02 01:56:13,308 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82876917:ctest-vn4-02482503', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82876917:ctest-vn4-02482503?flat'} 2025-10-02 01:56:13,308 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82876917:ctest-vn4-02482503 is found in opserver 2025-10-02 01:56:13,316 - DEBUG - Do not have enough data to verify VN in agent 2025-10-02 01:56:13,321 - DEBUG - VRF ids for VN ctest-vn4-02482503: {} 2025-10-02 01:56:13,321 - DEBUG - ====Verifying data for ctest-policy1-59162250 in API_Server ====== 2025-10-02 01:56:13,321 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-10-02 01:56:13,326 - DEBUG - Requesting: http://10.0.0.131:8082/domain/beb5e39c-6386-493b-8558-63a22034139b 2025-10-02 01:56:13,336 - DEBUG - Requesting: http://10.0.0.131:8082/project/ab993504-7019-4a91-ad08-f64f99ce4a21 2025-10-02 01:56:13,405 - DEBUG - Requesting: http://10.0.0.131:8082/network-policy/3a2b27a1-63ed-41eb-aab3-30089ce5f1a9 2025-10-02 01:56:13,414 - INFO - Verified policy ctest-policy1-59162250 in API Server, Result: True 2025-10-02 01:56:13,414 - INFO - Done with setup and verification, moving onto test .. 2025-10-02 01:56:13,420 - INFO - Deleting VN ctest-vn4-02482503 2025-10-02 01:56:13,581 - DEBUG - Response for deleting network () 2025-10-02 01:56:13,581 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/f27a8f52-b976-45fd-bfd0-e14b7f07d45a 2025-10-02 01:56:13,585 - DEBUG - Response Code: 404 2025-10-02 01:56:13,585 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-10-02 01:56:13,590 - DEBUG - Requesting: http://10.0.0.131:8082/domain/beb5e39c-6386-493b-8558-63a22034139b 2025-10-02 01:56:13,646 - DEBUG - Requesting: http://10.0.0.131:8082/project/ab993504-7019-4a91-ad08-f64f99ce4a21 2025-10-02 01:56:13,713 - INFO - Validated that VN ctest-vn4-02482503 is not found in API Server 2025-10-02 01:56:13,721 - DEBUG - VN ctest-vn4-02482503 is not present in Agent 10.0.0.131 2025-10-02 01:56:13,721 - INFO - Validated that VN ctest-vn4-02482503 is not in any agent 2025-10-02 01:56:13,732 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-02482503 info 2025-10-02 01:56:13,755 - INFO - Deleted policy ctest-policy1-59162250 2025-10-02 01:56:13,918 - DEBUG - policy ctest-policy1-59162250 is not found in API Server 2025-10-02 01:56:14,171 - DEBUG - No XMPP flaps were noticed during the test