2025-09-23 15:58:05,655 - INFO - Domain Default found not creating 2025-09-23 15:58:05,781 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-94897310 not found, creating it 2025-09-23 15:58:06,204 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-94897310, ID : f504941b-a0a9-4de6-bcd8-d24340b01277 2025-09-23 15:58:07,554 - INFO - ================================================================================ 2025-09-23 15:58:07,554 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-23 15:58:07,810 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-09-23 15:58:07,810 - INFO - Initial checks done. Running the testcase now 2025-09-23 15:58:07,810 - INFO - 2025-09-23 15:58:07,810 - INFO - ================================================================================ 2025-09-23 15:58:07,810 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-23 15:58:07,810 - 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-09-23 15:58:08,098 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-09-23 15:58:08,098 - INFO - Initial checks done. Running the testcase now 2025-09-23 15:58:08,098 - INFO - 2025-09-23 15:58:08,435 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94897310:ctest-vn4-20534364, 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-94897310:ctest-vn4-20534364, 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-94897310:ctest-vn4-20534364, 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-94897310:ctest-vn4-20534364, 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-09-23 15:58:08,914 - DEBUG - Response for create_network : {'network': {'id': 'ce93392e-df68-4ae7-af96-e1aef576706e', 'name': 'ctest-vn4-20534364', 'tenant_id': 'f504941ba0a94de6bcd8d24340b01277', 'project_id': 'f504941ba0a94de6bcd8d24340b01277', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94897310', 'ctest-vn4-20534364'], 'port_security_enabled': True, 'description': ''}} 2025-09-23 15:58:09,097 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd4d18abb-5c70-4283-83f4-e8e8d6aebf18', 'name': '', 'tenant_id': 'f504941ba0a94de6bcd8d24340b01277', 'network_id': 'ce93392e-df68-4ae7-af96-e1aef576706e', 'ip_version': 4, 'cidr': '19.138.184.192/26', 'allocation_pools': [{'start': '19.138.184.194', 'end': '19.138.184.254'}], 'gateway_ip': '19.138.184.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.138.184.194', 'tags': [], 'project_id': 'f504941ba0a94de6bcd8d24340b01277'}} 2025-09-23 15:58:09,250 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe8da5d3-800a-4f4c-93d2-0c5fc5426d02', 'name': '', 'tenant_id': 'f504941ba0a94de6bcd8d24340b01277', 'network_id': 'ce93392e-df68-4ae7-af96-e1aef576706e', 'ip_version': 6, 'cidr': '2ca8:3cf7:7d60:f2c6:a1c8:ad96::/96', 'allocation_pools': [{'start': '2ca8:3cf7:7d60:f2c6:a1c8:ad96:0:2', 'end': '2ca8:3cf7:7d60:f2c6:a1c8:ad96:ffff:fffe'}], 'gateway_ip': '2ca8:3cf7:7d60:f2c6:a1c8:ad96:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ca8:3cf7:7d60:f2c6:a1c8:ad96:0:2', 'tags': [], 'project_id': 'f504941ba0a94de6bcd8d24340b01277'}} 2025-09-23 15:58:09,269 - INFO - Created VN ctest-vn4-20534364 2025-09-23 15:58:09,321 - DEBUG - VN ctest-vn4-20534364 UUID is ce93392e-df68-4ae7-af96-e1aef576706e 2025-09-23 15:58:09,490 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce93392e-df68-4ae7-af96-e1aef576706e', 'name': 'ctest-vn4-20534364', 'tenant_id': 'f504941ba0a94de6bcd8d24340b01277', 'project_id': 'f504941ba0a94de6bcd8d24340b01277', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d4d18abb-5c70-4283-83f4-e8e8d6aebf18', 'fe8da5d3-800a-4f4c-93d2-0c5fc5426d02'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94897310', 'ctest-vn4-20534364'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94897310', 'ctest-policy1-02607807']], 'subnet_ipam': [{'subnet_cidr': '19.138.184.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ca8:3cf7:7d60:f2c6:a1c8:ad96::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-23 15:58:09,645 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-23 15:58:09,932 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-23 15:58:09,957 - DEBUG - Requesting: http://10.0.0.48:8082/domain/ced9a593-cd75-4c5a-87f7-52b7dc7e9516 2025-09-23 15:58:09,968 - DEBUG - Requesting: http://10.0.0.48:8082/project/f504941b-a0a9-4de6-bcd8-d24340b01277 2025-09-23 15:58:10,042 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/ce93392e-df68-4ae7-af96-e1aef576706e 2025-09-23 15:58:10,053 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/ce93392e-df68-4ae7-af96-e1aef576706e 2025-09-23 15:58:10,061 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ad6837a7-e0f7-4d6c-bf93-40bca6372c1c 2025-09-23 15:58:10,067 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ad6837a7-e0f7-4d6c-bf93-40bca6372c1c 2025-09-23 15:58:10,072 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/7ea9fabb-35f4-4e03-bac3-e7d4ed67a8eb 2025-09-23 15:58:10,077 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-23 15:58:10,077 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/ce93392e-df68-4ae7-af96-e1aef576706e 2025-09-23 15:58:10,085 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ad6837a7-e0f7-4d6c-bf93-40bca6372c1c 2025-09-23 15:58:10,096 - INFO - Verified VN network id 9 for VN ce93392e-df68-4ae7-af96-e1aef576706e 2025-09-23 15:58:10,097 - INFO - Verifications in API Server for VN ctest-vn4-20534364 passed 2025-09-23 15:58:10,097 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/ce93392e-df68-4ae7-af96-e1aef576706e 2025-09-23 15:58:10,104 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ad6837a7-e0f7-4d6c-bf93-40bca6372c1c 2025-09-23 15:58:10,110 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ad6837a7-e0f7-4d6c-bf93-40bca6372c1c 2025-09-23 15:58:10,115 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/7ea9fabb-35f4-4e03-bac3-e7d4ed67a8eb 2025-09-23 15:58:10,124 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94897310:ctest-vn4-20534364', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94897310', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14885304066869054183', 'uuid-lslong': '12652548344702726254'}, 'enable': 'true', 'created': '2025-09-23T15:58:08', 'last-modified': '2025-09-23T15:58:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.653391'} 2025-09-23 15:58:10,129 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-23 15:58:10,129 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-20534364 passed 2025-09-23 15:58:10,129 - DEBUG - ====Verifying policy data for ctest-vn4-20534364 in API_Server ====== 2025-09-23 15:58:10,129 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-23 15:58:10,133 - DEBUG - Requesting: http://10.0.0.48:8082/domain/ced9a593-cd75-4c5a-87f7-52b7dc7e9516 2025-09-23 15:58:10,141 - DEBUG - Requesting: http://10.0.0.48:8082/project/f504941b-a0a9-4de6-bcd8-d24340b01277 2025-09-23 15:58:10,208 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/ce93392e-df68-4ae7-af96-e1aef576706e 2025-09-23 15:58:10,217 - DEBUG - ==>Verifying data for policy with id: ea2575bc-76e0-4e81-b2b4-b93de5ef32db, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94897310', 'ctest-policy1-02607807'] 2025-09-23 15:58:10,217 - INFO - VN ctest-vn4-20534364 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-23 15:58:10,217 - DEBUG - Verifying the vn in opserver 2025-09-23 15:58:10,217 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94897310:ctest-vn4-20534364 virtual network link through opserver 10.0.0.48 2025-09-23 15:58:10,217 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-09-23 15:58:10,506 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-09-23 15:58:10,553 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94897310:ctest-vn4-20534364', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94897310:ctest-vn4-20534364?flat'} 2025-09-23 15:58:10,553 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94897310:ctest-vn4-20534364 is found in opserver 2025-09-23 15:58:10,561 - DEBUG - Do not have enough data to verify VN in agent 2025-09-23 15:58:10,565 - DEBUG - VRF ids for VN ctest-vn4-20534364: {} 2025-09-23 15:58:10,565 - DEBUG - ====Verifying data for ctest-policy1-02607807 in API_Server ====== 2025-09-23 15:58:10,566 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-23 15:58:10,570 - DEBUG - Requesting: http://10.0.0.48:8082/domain/ced9a593-cd75-4c5a-87f7-52b7dc7e9516 2025-09-23 15:58:10,580 - DEBUG - Requesting: http://10.0.0.48:8082/project/f504941b-a0a9-4de6-bcd8-d24340b01277 2025-09-23 15:58:10,646 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/ea2575bc-76e0-4e81-b2b4-b93de5ef32db 2025-09-23 15:58:10,653 - INFO - Verified policy ctest-policy1-02607807 in API Server, Result: True 2025-09-23 15:58:10,654 - INFO - Done with setup and verification, moving onto test .. 2025-09-23 15:58:10,659 - INFO - Deleting VN ctest-vn4-20534364 2025-09-23 15:58:10,754 - DEBUG - Response for deleting network () 2025-09-23 15:58:10,754 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ad6837a7-e0f7-4d6c-bf93-40bca6372c1c 2025-09-23 15:58:10,758 - DEBUG - Response Code: 404 2025-09-23 15:58:10,759 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-23 15:58:10,763 - DEBUG - Requesting: http://10.0.0.48:8082/domain/ced9a593-cd75-4c5a-87f7-52b7dc7e9516 2025-09-23 15:58:10,818 - DEBUG - Requesting: http://10.0.0.48:8082/project/f504941b-a0a9-4de6-bcd8-d24340b01277 2025-09-23 15:58:10,885 - INFO - Validated that VN ctest-vn4-20534364 is not found in API Server 2025-09-23 15:58:10,893 - DEBUG - VN ctest-vn4-20534364 is not present in Agent 10.0.0.48 2025-09-23 15:58:10,894 - INFO - Validated that VN ctest-vn4-20534364 is not in any agent 2025-09-23 15:58:10,905 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-20534364 info 2025-09-23 15:58:10,931 - INFO - Deleted policy ctest-policy1-02607807 2025-09-23 15:58:11,089 - DEBUG - policy ctest-policy1-02607807 is not found in API Server 2025-09-23 15:58:11,349 - DEBUG - No XMPP flaps were noticed during the test