2025-08-18 15:38:20,963 - INFO - Domain Default found not creating 2025-08-18 15:38:21,108 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36066365 not found, creating it 2025-08-18 15:38:21,588 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36066365, ID : 01da0cf1-8948-4d7e-aa00-08264a1f6ab6 2025-08-18 15:38:23,099 - INFO - ================================================================================ 2025-08-18 15:38:23,100 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-18 15:38:23,354 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-08-18 15:38:23,354 - INFO - Initial checks done. Running the testcase now 2025-08-18 15:38:23,354 - INFO - 2025-08-18 15:38:23,355 - INFO - ================================================================================ 2025-08-18 15:38:23,355 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-18 15:38:23,355 - 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-18 15:38:23,646 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-08-18 15:38:23,646 - INFO - Initial checks done. Running the testcase now 2025-08-18 15:38:23,646 - INFO - 2025-08-18 15:38:24,038 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36066365:ctest-vn4-07584322, 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-36066365:ctest-vn4-07584322, 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-36066365:ctest-vn4-07584322, 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-36066365:ctest-vn4-07584322, 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-18 15:38:24,573 - DEBUG - Response for create_network : {'network': {'id': '1a580e81-5465-47aa-8afe-d4c087a1a8a9', 'name': 'ctest-vn4-07584322', 'tenant_id': '01da0cf189484d7eaa0008264a1f6ab6', 'project_id': '01da0cf189484d7eaa0008264a1f6ab6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36066365', 'ctest-vn4-07584322'], 'port_security_enabled': True, 'description': ''}} 2025-08-18 15:38:24,797 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b23fe3e9-831f-4d08-9ef8-f8f52c7c5f39', 'name': '', 'tenant_id': '01da0cf189484d7eaa0008264a1f6ab6', 'network_id': '1a580e81-5465-47aa-8afe-d4c087a1a8a9', 'ip_version': 4, 'cidr': '63.40.82.0/26', 'allocation_pools': [{'start': '63.40.82.2', 'end': '63.40.82.62'}], 'gateway_ip': '63.40.82.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.40.82.2', 'tags': [], 'project_id': '01da0cf189484d7eaa0008264a1f6ab6'}} 2025-08-18 15:38:24,990 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a1d325d8-8c35-45c5-b12a-2946a8d8332b', 'name': '', 'tenant_id': '01da0cf189484d7eaa0008264a1f6ab6', 'network_id': '1a580e81-5465-47aa-8afe-d4c087a1a8a9', 'ip_version': 6, 'cidr': '3006:b03c:a210:611b:9241:8c0f::/96', 'allocation_pools': [{'start': '3006:b03c:a210:611b:9241:8c0f:0:2', 'end': '3006:b03c:a210:611b:9241:8c0f:ffff:fffe'}], 'gateway_ip': '3006:b03c:a210:611b:9241:8c0f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3006:b03c:a210:611b:9241:8c0f:0:2', 'tags': [], 'project_id': '01da0cf189484d7eaa0008264a1f6ab6'}} 2025-08-18 15:38:25,008 - INFO - Created VN ctest-vn4-07584322 2025-08-18 15:38:25,062 - DEBUG - VN ctest-vn4-07584322 UUID is 1a580e81-5465-47aa-8afe-d4c087a1a8a9 2025-08-18 15:38:25,263 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1a580e81-5465-47aa-8afe-d4c087a1a8a9', 'name': 'ctest-vn4-07584322', 'tenant_id': '01da0cf189484d7eaa0008264a1f6ab6', 'project_id': '01da0cf189484d7eaa0008264a1f6ab6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b23fe3e9-831f-4d08-9ef8-f8f52c7c5f39', 'a1d325d8-8c35-45c5-b12a-2946a8d8332b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36066365', 'ctest-vn4-07584322'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36066365', 'ctest-policy1-88945384']], 'subnet_ipam': [{'subnet_cidr': '63.40.82.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3006:b03c:a210:611b:9241:8c0f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-18 15:38:25,426 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-18 15:38:25,756 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-18 15:38:25,783 - DEBUG - Requesting: http://10.0.0.254:8082/domain/67a90816-2578-402f-949d-5a9c19611215 2025-08-18 15:38:25,794 - DEBUG - Requesting: http://10.0.0.254:8082/project/01da0cf1-8948-4d7e-aa00-08264a1f6ab6 2025-08-18 15:38:25,865 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1a580e81-5465-47aa-8afe-d4c087a1a8a9 2025-08-18 15:38:25,876 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1a580e81-5465-47aa-8afe-d4c087a1a8a9 2025-08-18 15:38:25,886 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/88753f69-390d-44c3-ae0f-662433528db2 2025-08-18 15:38:25,892 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/88753f69-390d-44c3-ae0f-662433528db2 2025-08-18 15:38:25,899 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e8e60d3a-a3da-4224-8ecc-8a8241dd82bd 2025-08-18 15:38:25,905 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 15:38:25,905 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1a580e81-5465-47aa-8afe-d4c087a1a8a9 2025-08-18 15:38:25,913 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/88753f69-390d-44c3-ae0f-662433528db2 2025-08-18 15:38:25,924 - INFO - Verified VN network id 11 for VN 1a580e81-5465-47aa-8afe-d4c087a1a8a9 2025-08-18 15:38:25,924 - INFO - Verifications in API Server for VN ctest-vn4-07584322 passed 2025-08-18 15:38:25,924 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1a580e81-5465-47aa-8afe-d4c087a1a8a9 2025-08-18 15:38:25,933 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/88753f69-390d-44c3-ae0f-662433528db2 2025-08-18 15:38:25,939 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/88753f69-390d-44c3-ae0f-662433528db2 2025-08-18 15:38:25,945 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e8e60d3a-a3da-4224-8ecc-8a8241dd82bd 2025-08-18 15:38:25,956 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36066365:ctest-vn4-07584322', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36066365', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1898283191566157738', 'uuid-lslong': '10015676544692889769'}, 'enable': 'true', 'created': '2025-08-18T15:38:24', 'last-modified': '2025-08-18T15:38:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.732069'} 2025-08-18 15:38:25,962 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 15:38:25,962 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-07584322 passed 2025-08-18 15:38:25,962 - DEBUG - ====Verifying policy data for ctest-vn4-07584322 in API_Server ====== 2025-08-18 15:38:25,964 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-18 15:38:25,968 - DEBUG - Requesting: http://10.0.0.254:8082/domain/67a90816-2578-402f-949d-5a9c19611215 2025-08-18 15:38:25,977 - DEBUG - Requesting: http://10.0.0.254:8082/project/01da0cf1-8948-4d7e-aa00-08264a1f6ab6 2025-08-18 15:38:26,050 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1a580e81-5465-47aa-8afe-d4c087a1a8a9 2025-08-18 15:38:26,060 - DEBUG - ==>Verifying data for policy with id: 4a45d9bf-f543-439a-aef1-2d34c9f5e755, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36066365', 'ctest-policy1-88945384'] 2025-08-18 15:38:26,060 - INFO - VN ctest-vn4-07584322 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-18 15:38:26,060 - DEBUG - Verifying the vn in opserver 2025-08-18 15:38:26,060 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36066365:ctest-vn4-07584322 virtual network link through opserver 10.0.0.254 2025-08-18 15:38:26,061 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-18 15:38:26,393 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-18 15:38:26,450 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36066365:ctest-vn4-07584322', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36066365:ctest-vn4-07584322?flat'} 2025-08-18 15:38:26,450 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36066365:ctest-vn4-07584322 is found in opserver 2025-08-18 15:38:26,459 - DEBUG - Do not have enough data to verify VN in agent 2025-08-18 15:38:26,463 - DEBUG - VRF ids for VN ctest-vn4-07584322: {} 2025-08-18 15:38:26,464 - DEBUG - ====Verifying data for ctest-policy1-88945384 in API_Server ====== 2025-08-18 15:38:26,464 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-18 15:38:26,476 - DEBUG - Requesting: http://10.0.0.254:8082/domain/67a90816-2578-402f-949d-5a9c19611215 2025-08-18 15:38:26,488 - DEBUG - Requesting: http://10.0.0.254:8082/project/01da0cf1-8948-4d7e-aa00-08264a1f6ab6 2025-08-18 15:38:26,573 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/4a45d9bf-f543-439a-aef1-2d34c9f5e755 2025-08-18 15:38:26,582 - INFO - Verified policy ctest-policy1-88945384 in API Server, Result: True 2025-08-18 15:38:26,582 - INFO - Done with setup and verification, moving onto test .. 2025-08-18 15:38:26,591 - INFO - Deleting VN ctest-vn4-07584322 2025-08-18 15:38:26,722 - DEBUG - Response for deleting network () 2025-08-18 15:38:26,722 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/88753f69-390d-44c3-ae0f-662433528db2 2025-08-18 15:38:26,726 - DEBUG - Response Code: 404 2025-08-18 15:38:26,726 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-18 15:38:26,730 - DEBUG - Requesting: http://10.0.0.254:8082/domain/67a90816-2578-402f-949d-5a9c19611215 2025-08-18 15:38:26,786 - DEBUG - Requesting: http://10.0.0.254:8082/project/01da0cf1-8948-4d7e-aa00-08264a1f6ab6 2025-08-18 15:38:26,870 - INFO - Validated that VN ctest-vn4-07584322 is not found in API Server 2025-08-18 15:38:26,880 - DEBUG - VN ctest-vn4-07584322 is not present in Agent 10.0.0.254 2025-08-18 15:38:26,880 - INFO - Validated that VN ctest-vn4-07584322 is not in any agent 2025-08-18 15:38:26,893 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-07584322 info 2025-08-18 15:38:26,915 - INFO - Deleted policy ctest-policy1-88945384 2025-08-18 15:38:27,085 - DEBUG - policy ctest-policy1-88945384 is not found in API Server 2025-08-18 15:38:27,338 - DEBUG - No XMPP flaps were noticed during the test