2025-10-21 12:00:57,499 - INFO - Domain Default found not creating 2025-10-21 12:00:57,631 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-88015358 not found, creating it 2025-10-21 12:00:58,070 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-88015358, ID : a199da78-fffb-4a8a-847a-c915f749dfba 2025-10-21 12:00:59,436 - INFO - ================================================================================ 2025-10-21 12:00:59,436 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 12:00:59,690 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-10-21 12:00:59,691 - INFO - Initial checks done. Running the testcase now 2025-10-21 12:00:59,691 - INFO - 2025-10-21 12:00:59,691 - INFO - ================================================================================ 2025-10-21 12:00:59,691 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 12:00:59,691 - 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-21 12:00:59,984 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-10-21 12:00:59,984 - INFO - Initial checks done. Running the testcase now 2025-10-21 12:00:59,984 - INFO - 2025-10-21 12:01:00,327 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88015358:ctest-vn4-91611703, 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-88015358:ctest-vn4-91611703, 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-88015358:ctest-vn4-91611703, 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-88015358:ctest-vn4-91611703, 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-21 12:01:00,827 - DEBUG - Response for create_network : {'network': {'id': '4c6775ca-cb90-417d-8542-8aea413ec063', 'name': 'ctest-vn4-91611703', 'tenant_id': 'a199da78fffb4a8a847ac915f749dfba', 'project_id': 'a199da78fffb4a8a847ac915f749dfba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88015358', 'ctest-vn4-91611703'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 12:01:00,972 - DEBUG - Response for create_subnet : {'subnet': {'id': '7eb3d6b9-6810-4684-82d8-45af891aaae7', 'name': '', 'tenant_id': 'a199da78fffb4a8a847ac915f749dfba', 'network_id': '4c6775ca-cb90-417d-8542-8aea413ec063', 'ip_version': 4, 'cidr': '185.21.156.64/26', 'allocation_pools': [{'start': '185.21.156.66', 'end': '185.21.156.126'}], 'gateway_ip': '185.21.156.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.21.156.66', 'tags': [], 'project_id': 'a199da78fffb4a8a847ac915f749dfba'}} 2025-10-21 12:01:01,107 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a7c71df-a2a0-4c38-8b8b-5d1b267bd591', 'name': '', 'tenant_id': 'a199da78fffb4a8a847ac915f749dfba', 'network_id': '4c6775ca-cb90-417d-8542-8aea413ec063', 'ip_version': 6, 'cidr': '3a6a:cd4c:bc8a:56c5:34d4:8b4a::/96', 'allocation_pools': [{'start': '3a6a:cd4c:bc8a:56c5:34d4:8b4a:0:2', 'end': '3a6a:cd4c:bc8a:56c5:34d4:8b4a:ffff:fffe'}], 'gateway_ip': '3a6a:cd4c:bc8a:56c5:34d4:8b4a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a6a:cd4c:bc8a:56c5:34d4:8b4a:0:2', 'tags': [], 'project_id': 'a199da78fffb4a8a847ac915f749dfba'}} 2025-10-21 12:01:01,126 - INFO - Created VN ctest-vn4-91611703 2025-10-21 12:01:01,182 - DEBUG - VN ctest-vn4-91611703 UUID is 4c6775ca-cb90-417d-8542-8aea413ec063 2025-10-21 12:01:01,388 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c6775ca-cb90-417d-8542-8aea413ec063', 'name': 'ctest-vn4-91611703', 'tenant_id': 'a199da78fffb4a8a847ac915f749dfba', 'project_id': 'a199da78fffb4a8a847ac915f749dfba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7eb3d6b9-6810-4684-82d8-45af891aaae7', '6a7c71df-a2a0-4c38-8b8b-5d1b267bd591'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88015358', 'ctest-vn4-91611703'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88015358', 'ctest-policy1-05185138']], 'subnet_ipam': [{'subnet_cidr': '185.21.156.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a6a:cd4c:bc8a:56c5:34d4:8b4a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-21 12:01:01,550 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-21 12:01:01,839 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-21 12:01:01,867 - DEBUG - Requesting: http://10.0.0.242:8082/domain/bbb890d8-4fdf-4a10-92e6-807a6c4b416f 2025-10-21 12:01:01,882 - DEBUG - Requesting: http://10.0.0.242:8082/project/a199da78-fffb-4a8a-847a-c915f749dfba 2025-10-21 12:01:01,956 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4c6775ca-cb90-417d-8542-8aea413ec063 2025-10-21 12:01:01,969 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4c6775ca-cb90-417d-8542-8aea413ec063 2025-10-21 12:01:01,979 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a1f197d6-5cbd-44b9-abad-f9f6137be1b4 2025-10-21 12:01:01,987 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a1f197d6-5cbd-44b9-abad-f9f6137be1b4 2025-10-21 12:01:01,993 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/c5b03878-8506-411f-ae04-268d2c4da46b 2025-10-21 12:01:01,999 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 12:01:01,999 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4c6775ca-cb90-417d-8542-8aea413ec063 2025-10-21 12:01:02,008 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a1f197d6-5cbd-44b9-abad-f9f6137be1b4 2025-10-21 12:01:02,021 - INFO - Verified VN network id 10 for VN 4c6775ca-cb90-417d-8542-8aea413ec063 2025-10-21 12:01:02,021 - INFO - Verifications in API Server for VN ctest-vn4-91611703 passed 2025-10-21 12:01:02,021 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4c6775ca-cb90-417d-8542-8aea413ec063 2025-10-21 12:01:02,030 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a1f197d6-5cbd-44b9-abad-f9f6137be1b4 2025-10-21 12:01:02,037 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a1f197d6-5cbd-44b9-abad-f9f6137be1b4 2025-10-21 12:01:02,043 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/c5b03878-8506-411f-ae04-268d2c4da46b 2025-10-21 12:01:02,055 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88015358:ctest-vn4-91611703', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88015358', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5505498583342793085', 'uuid-lslong': '9602390094228930659'}, 'enable': 'true', 'created': '2025-10-21T12:01:00', 'last-modified': '2025-10-21T12:01:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.694873'} 2025-10-21 12:01:02,063 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 12:01:02,064 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-91611703 passed 2025-10-21 12:01:02,064 - DEBUG - ====Verifying policy data for ctest-vn4-91611703 in API_Server ====== 2025-10-21 12:01:02,064 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-21 12:01:02,070 - DEBUG - Requesting: http://10.0.0.242:8082/domain/bbb890d8-4fdf-4a10-92e6-807a6c4b416f 2025-10-21 12:01:02,080 - DEBUG - Requesting: http://10.0.0.242:8082/project/a199da78-fffb-4a8a-847a-c915f749dfba 2025-10-21 12:01:02,143 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4c6775ca-cb90-417d-8542-8aea413ec063 2025-10-21 12:01:02,153 - DEBUG - ==>Verifying data for policy with id: de919525-886c-4af1-907e-e3f54656104f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88015358', 'ctest-policy1-05185138'] 2025-10-21 12:01:02,153 - INFO - VN ctest-vn4-91611703 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-21 12:01:02,153 - DEBUG - Verifying the vn in opserver 2025-10-21 12:01:02,153 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88015358:ctest-vn4-91611703 virtual network link through opserver 10.0.0.242 2025-10-21 12:01:02,153 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-21 12:01:02,443 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-21 12:01:02,498 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88015358:ctest-vn4-91611703', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88015358:ctest-vn4-91611703?flat'} 2025-10-21 12:01:02,498 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88015358:ctest-vn4-91611703 is found in opserver 2025-10-21 12:01:02,507 - DEBUG - Do not have enough data to verify VN in agent 2025-10-21 12:01:02,511 - DEBUG - VRF ids for VN ctest-vn4-91611703: {} 2025-10-21 12:01:02,511 - DEBUG - ====Verifying data for ctest-policy1-05185138 in API_Server ====== 2025-10-21 12:01:02,511 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-21 12:01:02,517 - DEBUG - Requesting: http://10.0.0.242:8082/domain/bbb890d8-4fdf-4a10-92e6-807a6c4b416f 2025-10-21 12:01:02,528 - DEBUG - Requesting: http://10.0.0.242:8082/project/a199da78-fffb-4a8a-847a-c915f749dfba 2025-10-21 12:01:02,601 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/de919525-886c-4af1-907e-e3f54656104f 2025-10-21 12:01:02,611 - INFO - Verified policy ctest-policy1-05185138 in API Server, Result: True 2025-10-21 12:01:02,611 - INFO - Done with setup and verification, moving onto test .. 2025-10-21 12:01:02,619 - INFO - Deleting VN ctest-vn4-91611703 2025-10-21 12:01:02,725 - DEBUG - Response for deleting network () 2025-10-21 12:01:02,725 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a1f197d6-5cbd-44b9-abad-f9f6137be1b4 2025-10-21 12:01:02,730 - DEBUG - Response Code: 404 2025-10-21 12:01:02,730 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-21 12:01:02,736 - DEBUG - Requesting: http://10.0.0.242:8082/domain/bbb890d8-4fdf-4a10-92e6-807a6c4b416f 2025-10-21 12:01:02,787 - DEBUG - Requesting: http://10.0.0.242:8082/project/a199da78-fffb-4a8a-847a-c915f749dfba 2025-10-21 12:01:02,856 - INFO - Validated that VN ctest-vn4-91611703 is not found in API Server 2025-10-21 12:01:02,866 - DEBUG - VN ctest-vn4-91611703 is not present in Agent 10.0.0.242 2025-10-21 12:01:02,866 - INFO - Validated that VN ctest-vn4-91611703 is not in any agent 2025-10-21 12:01:02,879 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-91611703 info 2025-10-21 12:01:02,901 - INFO - Deleted policy ctest-policy1-05185138 2025-10-21 12:01:03,058 - DEBUG - policy ctest-policy1-05185138 is not found in API Server 2025-10-21 12:01:03,311 - DEBUG - No XMPP flaps were noticed during the test 2025-10-21 12:01:03,311 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-21 12:01:03,311 - INFO - -------------------------------------------------------------------------------- 2025-10-21 12:01:03,599 - DEBUG - No XMPP flaps were noticed during the test 2025-10-21 12:01:03,599 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-21 12:01:03,599 - INFO - -------------------------------------------------------------------------------- 2025-10-21 12:01:04,249 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-88015358, ID : a199da78-fffb-4a8a-847a-c915f749dfba