2025-09-05 12:45:00,508 - INFO - Domain Default found not creating 2025-09-05 12:45:00,677 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-73852084 not found, creating it 2025-09-05 12:45:01,138 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-73852084, ID : a6fc19ad-cc65-4d5f-a074-c05b5238e71c 2025-09-05 12:45:02,719 - INFO - ================================================================================ 2025-09-05 12:45:02,719 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-05 12:45:02,985 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-05 12:45:02,985 - INFO - Initial checks done. Running the testcase now 2025-09-05 12:45:02,985 - INFO - 2025-09-05 12:45:02,985 - INFO - ================================================================================ 2025-09-05 12:45:02,985 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-05 12:45:02,985 - 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-05 12:45:03,270 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-05 12:45:03,270 - INFO - Initial checks done. Running the testcase now 2025-09-05 12:45:03,270 - INFO - 2025-09-05 12:45:03,659 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73852084:ctest-vn4-10046875, 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-73852084:ctest-vn4-10046875, 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-73852084:ctest-vn4-10046875, 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-73852084:ctest-vn4-10046875, 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-05 12:45:04,172 - DEBUG - Response for create_network : {'network': {'id': '72ada5e4-ff5d-434e-95a9-3f3432a83d63', 'name': 'ctest-vn4-10046875', 'tenant_id': 'a6fc19adcc654d5fa074c05b5238e71c', 'project_id': 'a6fc19adcc654d5fa074c05b5238e71c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73852084', 'ctest-vn4-10046875'], 'port_security_enabled': True, 'description': ''}} 2025-09-05 12:45:04,393 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c169097-c513-4c73-ade6-47c5d3fd4ed7', 'name': '', 'tenant_id': 'a6fc19adcc654d5fa074c05b5238e71c', 'network_id': '72ada5e4-ff5d-434e-95a9-3f3432a83d63', 'ip_version': 4, 'cidr': '1.184.186.128/26', 'allocation_pools': [{'start': '1.184.186.130', 'end': '1.184.186.190'}], 'gateway_ip': '1.184.186.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.184.186.130', 'tags': [], 'project_id': 'a6fc19adcc654d5fa074c05b5238e71c'}} 2025-09-05 12:45:04,590 - DEBUG - Response for create_subnet : {'subnet': {'id': '50d42305-ed57-495c-8db0-c7d0ac885d20', 'name': '', 'tenant_id': 'a6fc19adcc654d5fa074c05b5238e71c', 'network_id': '72ada5e4-ff5d-434e-95a9-3f3432a83d63', 'ip_version': 6, 'cidr': '37ee:307e:f07b:407a:e593:ddd2::/96', 'allocation_pools': [{'start': '37ee:307e:f07b:407a:e593:ddd2:0:2', 'end': '37ee:307e:f07b:407a:e593:ddd2:ffff:fffe'}], 'gateway_ip': '37ee:307e:f07b:407a:e593:ddd2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37ee:307e:f07b:407a:e593:ddd2:0:2', 'tags': [], 'project_id': 'a6fc19adcc654d5fa074c05b5238e71c'}} 2025-09-05 12:45:04,610 - INFO - Created VN ctest-vn4-10046875 2025-09-05 12:45:04,661 - DEBUG - VN ctest-vn4-10046875 UUID is 72ada5e4-ff5d-434e-95a9-3f3432a83d63 2025-09-05 12:45:04,850 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '72ada5e4-ff5d-434e-95a9-3f3432a83d63', 'name': 'ctest-vn4-10046875', 'tenant_id': 'a6fc19adcc654d5fa074c05b5238e71c', 'project_id': 'a6fc19adcc654d5fa074c05b5238e71c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4c169097-c513-4c73-ade6-47c5d3fd4ed7', '50d42305-ed57-495c-8db0-c7d0ac885d20'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73852084', 'ctest-vn4-10046875'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73852084', 'ctest-policy1-78142406']], 'subnet_ipam': [{'subnet_cidr': '1.184.186.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '37ee:307e:f07b:407a:e593:ddd2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-05 12:45:05,017 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-05 12:45:05,351 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-05 12:45:05,380 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8ba1e9cd-aad8-4b47-b9ca-29524b86436a 2025-09-05 12:45:05,393 - DEBUG - Requesting: http://10.0.0.254:8082/project/a6fc19ad-cc65-4d5f-a074-c05b5238e71c 2025-09-05 12:45:05,462 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/72ada5e4-ff5d-434e-95a9-3f3432a83d63 2025-09-05 12:45:05,475 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/72ada5e4-ff5d-434e-95a9-3f3432a83d63 2025-09-05 12:45:05,485 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/02a357ee-5ca6-48f1-99d5-20a168b8636f 2025-09-05 12:45:05,492 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/02a357ee-5ca6-48f1-99d5-20a168b8636f 2025-09-05 12:45:05,499 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9140885a-c5fb-4963-b01b-916df721777c 2025-09-05 12:45:05,509 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-05 12:45:05,509 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/72ada5e4-ff5d-434e-95a9-3f3432a83d63 2025-09-05 12:45:05,520 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/02a357ee-5ca6-48f1-99d5-20a168b8636f 2025-09-05 12:45:05,534 - INFO - Verified VN network id 12 for VN 72ada5e4-ff5d-434e-95a9-3f3432a83d63 2025-09-05 12:45:05,534 - INFO - Verifications in API Server for VN ctest-vn4-10046875 passed 2025-09-05 12:45:05,534 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/72ada5e4-ff5d-434e-95a9-3f3432a83d63 2025-09-05 12:45:05,545 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/02a357ee-5ca6-48f1-99d5-20a168b8636f 2025-09-05 12:45:05,553 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/02a357ee-5ca6-48f1-99d5-20a168b8636f 2025-09-05 12:45:05,560 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9140885a-c5fb-4963-b01b-916df721777c 2025-09-05 12:45:05,574 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73852084:ctest-vn4-10046875', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-73852084', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8263443294250156878', 'uuid-lslong': '10784220276136099171'}, 'enable': 'true', 'created': '2025-09-05T12:45:04', 'last-modified': '2025-09-05T12:45:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.748607'} 2025-09-05 12:45:05,582 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-05 12:45:05,582 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-10046875 passed 2025-09-05 12:45:05,582 - DEBUG - ====Verifying policy data for ctest-vn4-10046875 in API_Server ====== 2025-09-05 12:45:05,582 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-05 12:45:05,589 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8ba1e9cd-aad8-4b47-b9ca-29524b86436a 2025-09-05 12:45:05,600 - DEBUG - Requesting: http://10.0.0.254:8082/project/a6fc19ad-cc65-4d5f-a074-c05b5238e71c 2025-09-05 12:45:05,674 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/72ada5e4-ff5d-434e-95a9-3f3432a83d63 2025-09-05 12:45:05,685 - DEBUG - ==>Verifying data for policy with id: 75ea4769-ccfb-47a3-95c7-16bdc9985d94, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73852084', 'ctest-policy1-78142406'] 2025-09-05 12:45:05,685 - INFO - VN ctest-vn4-10046875 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-05 12:45:05,685 - DEBUG - Verifying the vn in opserver 2025-09-05 12:45:05,685 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73852084:ctest-vn4-10046875 virtual network link through opserver 10.0.0.254 2025-09-05 12:45:05,685 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-05 12:45:06,022 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-05 12:45:06,080 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73852084:ctest-vn4-10046875', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73852084:ctest-vn4-10046875?flat'} 2025-09-05 12:45:06,080 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73852084:ctest-vn4-10046875 is found in opserver 2025-09-05 12:45:06,089 - DEBUG - Do not have enough data to verify VN in agent 2025-09-05 12:45:06,093 - DEBUG - VRF ids for VN ctest-vn4-10046875: {} 2025-09-05 12:45:06,094 - DEBUG - ====Verifying data for ctest-policy1-78142406 in API_Server ====== 2025-09-05 12:45:06,094 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-05 12:45:06,098 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8ba1e9cd-aad8-4b47-b9ca-29524b86436a 2025-09-05 12:45:06,108 - DEBUG - Requesting: http://10.0.0.254:8082/project/a6fc19ad-cc65-4d5f-a074-c05b5238e71c 2025-09-05 12:45:06,183 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/75ea4769-ccfb-47a3-95c7-16bdc9985d94 2025-09-05 12:45:06,193 - INFO - Verified policy ctest-policy1-78142406 in API Server, Result: True 2025-09-05 12:45:06,193 - INFO - Done with setup and verification, moving onto test .. 2025-09-05 12:45:06,201 - INFO - Deleting VN ctest-vn4-10046875 2025-09-05 12:45:06,331 - DEBUG - Response for deleting network () 2025-09-05 12:45:06,331 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/02a357ee-5ca6-48f1-99d5-20a168b8636f 2025-09-05 12:45:06,336 - DEBUG - Response Code: 404 2025-09-05 12:45:06,336 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-05 12:45:06,341 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8ba1e9cd-aad8-4b47-b9ca-29524b86436a 2025-09-05 12:45:06,394 - DEBUG - Requesting: http://10.0.0.254:8082/project/a6fc19ad-cc65-4d5f-a074-c05b5238e71c 2025-09-05 12:45:06,472 - INFO - Validated that VN ctest-vn4-10046875 is not found in API Server 2025-09-05 12:45:06,483 - DEBUG - VN ctest-vn4-10046875 is not present in Agent 10.0.0.254 2025-09-05 12:45:06,483 - INFO - Validated that VN ctest-vn4-10046875 is not in any agent 2025-09-05 12:45:06,500 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-10046875 info 2025-09-05 12:45:06,529 - INFO - Deleted policy ctest-policy1-78142406 2025-09-05 12:45:06,697 - DEBUG - policy ctest-policy1-78142406 is not found in API Server 2025-09-05 12:45:06,961 - DEBUG - No XMPP flaps were noticed during the test 2025-09-05 12:45:06,961 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-05 12:45:06,961 - INFO - -------------------------------------------------------------------------------- 2025-09-05 12:45:07,246 - DEBUG - No XMPP flaps were noticed during the test 2025-09-05 12:45:07,246 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-09-05 12:45:07,247 - INFO - -------------------------------------------------------------------------------- 2025-09-05 12:45:07,975 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-73852084, ID : a6fc19ad-cc65-4d5f-a074-c05b5238e71c