2025-12-15 02:24:50,502 - INFO - Domain Default found not creating 2025-12-15 02:24:50,706 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-42692031 not found, creating it 2025-12-15 02:24:51,221 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-42692031, ID : 0eff3c25-84c2-4a30-994e-6ccaae48e17b 2025-12-15 02:24:53,001 - INFO - ================================================================================ 2025-12-15 02:24:53,001 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-15 02:24:53,276 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.241': '0'}} with 2025-12-15 02:24:53,276 - INFO - Initial checks done. Running the testcase now 2025-12-15 02:24:53,276 - INFO - 2025-12-15 02:24:53,276 - INFO - ================================================================================ 2025-12-15 02:24:53,276 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-15 02:24:53,276 - 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-12-15 02:24:53,564 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.241': '0'}} with 2025-12-15 02:24:53,564 - INFO - Initial checks done. Running the testcase now 2025-12-15 02:24:53,564 - INFO - 2025-12-15 02:24:53,977 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42692031:ctest-vn4-89906262, 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-42692031:ctest-vn4-89906262, 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-42692031:ctest-vn4-89906262, 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-42692031:ctest-vn4-89906262, 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-12-15 02:24:54,538 - DEBUG - Response for create_network : {'network': {'id': 'd0d9a1af-80a5-43af-bfb7-c473c1a9ff10', 'name': 'ctest-vn4-89906262', 'tenant_id': '0eff3c2584c24a30994e6ccaae48e17b', 'project_id': '0eff3c2584c24a30994e6ccaae48e17b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42692031', 'ctest-vn4-89906262'], 'port_security_enabled': True, 'description': ''}} 2025-12-15 02:24:54,740 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d66e2f9-6bc1-49ca-9e7e-33f28d1efcf3', 'name': '', 'tenant_id': '0eff3c2584c24a30994e6ccaae48e17b', 'network_id': 'd0d9a1af-80a5-43af-bfb7-c473c1a9ff10', 'ip_version': 4, 'cidr': '4.8.179.192/26', 'allocation_pools': [{'start': '4.8.179.194', 'end': '4.8.179.254'}], 'gateway_ip': '4.8.179.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.8.179.194', 'tags': [], 'project_id': '0eff3c2584c24a30994e6ccaae48e17b'}} 2025-12-15 02:24:54,958 - DEBUG - Response for create_subnet : {'subnet': {'id': '7056a91f-4f65-4149-a9ad-488ac4c38c76', 'name': '', 'tenant_id': '0eff3c2584c24a30994e6ccaae48e17b', 'network_id': 'd0d9a1af-80a5-43af-bfb7-c473c1a9ff10', 'ip_version': 6, 'cidr': '3231:3a59:9d56:6f5e:e378:cefe::/96', 'allocation_pools': [{'start': '3231:3a59:9d56:6f5e:e378:cefe:0:2', 'end': '3231:3a59:9d56:6f5e:e378:cefe:ffff:fffe'}], 'gateway_ip': '3231:3a59:9d56:6f5e:e378:cefe:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3231:3a59:9d56:6f5e:e378:cefe:0:2', 'tags': [], 'project_id': '0eff3c2584c24a30994e6ccaae48e17b'}} 2025-12-15 02:24:54,985 - INFO - Created VN ctest-vn4-89906262 2025-12-15 02:24:55,038 - DEBUG - VN ctest-vn4-89906262 UUID is d0d9a1af-80a5-43af-bfb7-c473c1a9ff10 2025-12-15 02:24:55,272 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd0d9a1af-80a5-43af-bfb7-c473c1a9ff10', 'name': 'ctest-vn4-89906262', 'tenant_id': '0eff3c2584c24a30994e6ccaae48e17b', 'project_id': '0eff3c2584c24a30994e6ccaae48e17b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d66e2f9-6bc1-49ca-9e7e-33f28d1efcf3', '7056a91f-4f65-4149-a9ad-488ac4c38c76'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42692031', 'ctest-vn4-89906262'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42692031', 'ctest-policy1-48643802']], 'subnet_ipam': [{'subnet_cidr': '4.8.179.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3231:3a59:9d56:6f5e:e378:cefe::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-15 02:24:55,434 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-12-15 02:24:55,783 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-12-15 02:24:55,828 - DEBUG - Requesting: http://10.0.0.73:8082/domain/eda9fdd6-9446-4bbd-9ce2-44fcf4b543ab 2025-12-15 02:24:55,843 - DEBUG - Requesting: http://10.0.0.73:8082/project/0eff3c25-84c2-4a30-994e-6ccaae48e17b 2025-12-15 02:24:55,915 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/d0d9a1af-80a5-43af-bfb7-c473c1a9ff10 2025-12-15 02:24:55,933 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/d0d9a1af-80a5-43af-bfb7-c473c1a9ff10 2025-12-15 02:24:55,946 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/eee399b4-c397-4c53-a261-3611dcc285df 2025-12-15 02:24:55,955 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/eee399b4-c397-4c53-a261-3611dcc285df 2025-12-15 02:24:55,963 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/a9da5288-b141-4c7b-a2bc-75ae4d78e071 2025-12-15 02:24:55,971 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-15 02:24:55,971 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/d0d9a1af-80a5-43af-bfb7-c473c1a9ff10 2025-12-15 02:24:55,983 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/eee399b4-c397-4c53-a261-3611dcc285df 2025-12-15 02:24:56,000 - INFO - Verified VN network id 11 for VN d0d9a1af-80a5-43af-bfb7-c473c1a9ff10 2025-12-15 02:24:56,000 - INFO - Verifications in API Server for VN ctest-vn4-89906262 passed 2025-12-15 02:24:56,000 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/d0d9a1af-80a5-43af-bfb7-c473c1a9ff10 2025-12-15 02:24:56,013 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/eee399b4-c397-4c53-a261-3611dcc285df 2025-12-15 02:24:56,021 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/eee399b4-c397-4c53-a261-3611dcc285df 2025-12-15 02:24:56,030 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/a9da5288-b141-4c7b-a2bc-75ae4d78e071 2025-12-15 02:24:56,043 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42692031:ctest-vn4-89906262', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42692031', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15049237404984886191', 'uuid-lslong': '13814726383431712528'}, 'enable': 'true', 'created': '2025-12-15T02:24:54', 'last-modified': '2025-12-15T02:24:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.807645'} 2025-12-15 02:24:56,050 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-15 02:24:56,050 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-89906262 passed 2025-12-15 02:24:56,051 - DEBUG - ====Verifying policy data for ctest-vn4-89906262 in API_Server ====== 2025-12-15 02:24:56,051 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-12-15 02:24:56,057 - DEBUG - Requesting: http://10.0.0.73:8082/domain/eda9fdd6-9446-4bbd-9ce2-44fcf4b543ab 2025-12-15 02:24:56,069 - DEBUG - Requesting: http://10.0.0.73:8082/project/0eff3c25-84c2-4a30-994e-6ccaae48e17b 2025-12-15 02:24:56,142 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/d0d9a1af-80a5-43af-bfb7-c473c1a9ff10 2025-12-15 02:24:56,155 - DEBUG - ==>Verifying data for policy with id: 9daf1d1c-e91a-4629-8b4c-897adbca5083, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42692031', 'ctest-policy1-48643802'] 2025-12-15 02:24:56,155 - INFO - VN ctest-vn4-89906262 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-15 02:24:56,155 - DEBUG - Verifying the vn in opserver 2025-12-15 02:24:56,155 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42692031:ctest-vn4-89906262 virtual network link through opserver 10.0.0.73 2025-12-15 02:24:56,155 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-12-15 02:24:56,500 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-12-15 02:24:56,588 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42692031:ctest-vn4-89906262', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42692031:ctest-vn4-89906262?flat'} 2025-12-15 02:24:56,588 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42692031:ctest-vn4-89906262 is found in opserver 2025-12-15 02:24:56,599 - DEBUG - Do not have enough data to verify VN in agent 2025-12-15 02:24:56,604 - DEBUG - VRF ids for VN ctest-vn4-89906262: {} 2025-12-15 02:24:56,605 - DEBUG - ====Verifying data for ctest-policy1-48643802 in API_Server ====== 2025-12-15 02:24:56,605 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-12-15 02:24:56,611 - DEBUG - Requesting: http://10.0.0.73:8082/domain/eda9fdd6-9446-4bbd-9ce2-44fcf4b543ab 2025-12-15 02:24:56,625 - DEBUG - Requesting: http://10.0.0.73:8082/project/0eff3c25-84c2-4a30-994e-6ccaae48e17b 2025-12-15 02:24:56,700 - DEBUG - Requesting: http://10.0.0.73:8082/network-policy/9daf1d1c-e91a-4629-8b4c-897adbca5083 2025-12-15 02:24:56,710 - INFO - Verified policy ctest-policy1-48643802 in API Server, Result: True 2025-12-15 02:24:56,711 - INFO - Done with setup and verification, moving onto test .. 2025-12-15 02:24:56,720 - INFO - Deleting VN ctest-vn4-89906262 2025-12-15 02:24:56,863 - DEBUG - Response for deleting network () 2025-12-15 02:24:56,864 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/eee399b4-c397-4c53-a261-3611dcc285df 2025-12-15 02:24:56,872 - DEBUG - Response Code: 404 2025-12-15 02:24:56,873 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-12-15 02:24:56,881 - DEBUG - Requesting: http://10.0.0.73:8082/domain/eda9fdd6-9446-4bbd-9ce2-44fcf4b543ab 2025-12-15 02:24:56,944 - DEBUG - Requesting: http://10.0.0.73:8082/project/0eff3c25-84c2-4a30-994e-6ccaae48e17b 2025-12-15 02:24:57,023 - INFO - Validated that VN ctest-vn4-89906262 is not found in API Server 2025-12-15 02:24:57,034 - DEBUG - VN ctest-vn4-89906262 is not present in Agent 10.0.0.73 2025-12-15 02:24:57,034 - INFO - Validated that VN ctest-vn4-89906262 is not in any agent 2025-12-15 02:24:57,051 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-89906262 info 2025-12-15 02:24:57,090 - INFO - Deleted policy ctest-policy1-48643802 2025-12-15 02:24:57,265 - DEBUG - policy ctest-policy1-48643802 is not found in API Server 2025-12-15 02:24:57,538 - DEBUG - No XMPP flaps were noticed during the test