2025-08-10 10:58:54,565 - INFO - Domain Default found not creating 2025-08-10 10:58:54,676 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-96889432 not found, creating it 2025-08-10 10:58:55,161 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-96889432, ID : 63b807ba-5205-4101-baf1-f3209ea04c96 2025-08-10 10:58:57,004 - INFO - ================================================================================ 2025-08-10 10:58:57,004 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-10 10:58:57,254 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-08-10 10:58:57,254 - INFO - Initial checks done. Running the testcase now 2025-08-10 10:58:57,254 - INFO - 2025-08-10 10:58:57,254 - INFO - ================================================================================ 2025-08-10 10:58:57,254 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-10 10:58:57,254 - 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-10 10:58:57,537 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-08-10 10:58:57,537 - INFO - Initial checks done. Running the testcase now 2025-08-10 10:58:57,537 - INFO - 2025-08-10 10:58:57,845 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96889432:ctest-vn4-14546076, 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-96889432:ctest-vn4-14546076, 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-96889432:ctest-vn4-14546076, 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-96889432:ctest-vn4-14546076, 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-10 10:58:58,338 - DEBUG - Response for create_network : {'network': {'id': '7058e438-c986-44e5-8103-c4dd21eae18f', 'name': 'ctest-vn4-14546076', 'tenant_id': '63b807ba52054101baf1f3209ea04c96', 'project_id': '63b807ba52054101baf1f3209ea04c96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96889432', 'ctest-vn4-14546076'], 'port_security_enabled': True, 'description': ''}} 2025-08-10 10:58:58,493 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d5ee7ea-0802-47bd-8ee7-78c8bd3bd36b', 'name': '', 'tenant_id': '63b807ba52054101baf1f3209ea04c96', 'network_id': '7058e438-c986-44e5-8103-c4dd21eae18f', 'ip_version': 4, 'cidr': '70.186.165.192/26', 'allocation_pools': [{'start': '70.186.165.194', 'end': '70.186.165.254'}], 'gateway_ip': '70.186.165.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.186.165.194', 'tags': [], 'project_id': '63b807ba52054101baf1f3209ea04c96'}} 2025-08-10 10:58:58,660 - DEBUG - Response for create_subnet : {'subnet': {'id': '6518b0fa-80d6-40f0-8bbc-c0a500117bf6', 'name': '', 'tenant_id': '63b807ba52054101baf1f3209ea04c96', 'network_id': '7058e438-c986-44e5-8103-c4dd21eae18f', 'ip_version': 6, 'cidr': '3011:2fd4:53bc:1895:2bec:8ddd::/96', 'allocation_pools': [{'start': '3011:2fd4:53bc:1895:2bec:8ddd:0:2', 'end': '3011:2fd4:53bc:1895:2bec:8ddd:ffff:fffe'}], 'gateway_ip': '3011:2fd4:53bc:1895:2bec:8ddd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3011:2fd4:53bc:1895:2bec:8ddd:0:2', 'tags': [], 'project_id': '63b807ba52054101baf1f3209ea04c96'}} 2025-08-10 10:58:58,678 - INFO - Created VN ctest-vn4-14546076 2025-08-10 10:58:58,728 - DEBUG - VN ctest-vn4-14546076 UUID is 7058e438-c986-44e5-8103-c4dd21eae18f 2025-08-10 10:58:58,918 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7058e438-c986-44e5-8103-c4dd21eae18f', 'name': 'ctest-vn4-14546076', 'tenant_id': '63b807ba52054101baf1f3209ea04c96', 'project_id': '63b807ba52054101baf1f3209ea04c96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d5ee7ea-0802-47bd-8ee7-78c8bd3bd36b', '6518b0fa-80d6-40f0-8bbc-c0a500117bf6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96889432', 'ctest-vn4-14546076'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96889432', 'ctest-policy1-12473898']], 'subnet_ipam': [{'subnet_cidr': '70.186.165.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3011:2fd4:53bc:1895:2bec:8ddd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-10 10:58:59,080 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-10 10:58:59,367 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-10 10:58:59,394 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6de61825-463e-40c2-9f67-56ee69788113 2025-08-10 10:58:59,406 - DEBUG - Requesting: http://10.0.0.38:8082/project/63b807ba-5205-4101-baf1-f3209ea04c96 2025-08-10 10:58:59,478 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7058e438-c986-44e5-8103-c4dd21eae18f 2025-08-10 10:58:59,489 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7058e438-c986-44e5-8103-c4dd21eae18f 2025-08-10 10:58:59,497 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/83668eca-f2a9-48a0-b92a-0f4071172eca 2025-08-10 10:58:59,504 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/83668eca-f2a9-48a0-b92a-0f4071172eca 2025-08-10 10:58:59,510 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c074ba7f-5218-463c-8185-8d4f6173c7e7 2025-08-10 10:58:59,515 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 10:58:59,515 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7058e438-c986-44e5-8103-c4dd21eae18f 2025-08-10 10:58:59,523 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/83668eca-f2a9-48a0-b92a-0f4071172eca 2025-08-10 10:58:59,535 - INFO - Verified VN network id 11 for VN 7058e438-c986-44e5-8103-c4dd21eae18f 2025-08-10 10:58:59,535 - INFO - Verifications in API Server for VN ctest-vn4-14546076 passed 2025-08-10 10:58:59,535 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7058e438-c986-44e5-8103-c4dd21eae18f 2025-08-10 10:58:59,544 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/83668eca-f2a9-48a0-b92a-0f4071172eca 2025-08-10 10:58:59,549 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/83668eca-f2a9-48a0-b92a-0f4071172eca 2025-08-10 10:58:59,555 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c074ba7f-5218-463c-8185-8d4f6173c7e7 2025-08-10 10:58:59,566 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96889432:ctest-vn4-14546076', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-96889432', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8095471262748787941', 'uuid-lslong': '9296490509858693519'}, 'enable': 'true', 'created': '2025-08-10T10:58:58', 'last-modified': '2025-08-10T10:58:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.681171'} 2025-08-10 10:58:59,572 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 10:58:59,573 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-14546076 passed 2025-08-10 10:58:59,573 - DEBUG - ====Verifying policy data for ctest-vn4-14546076 in API_Server ====== 2025-08-10 10:58:59,573 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-10 10:58:59,582 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6de61825-463e-40c2-9f67-56ee69788113 2025-08-10 10:58:59,592 - DEBUG - Requesting: http://10.0.0.38:8082/project/63b807ba-5205-4101-baf1-f3209ea04c96 2025-08-10 10:58:59,662 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7058e438-c986-44e5-8103-c4dd21eae18f 2025-08-10 10:58:59,671 - DEBUG - ==>Verifying data for policy with id: 35767b54-379f-4f41-9efa-77105002a73c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96889432', 'ctest-policy1-12473898'] 2025-08-10 10:58:59,671 - INFO - VN ctest-vn4-14546076 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-10 10:58:59,671 - DEBUG - Verifying the vn in opserver 2025-08-10 10:58:59,671 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96889432:ctest-vn4-14546076 virtual network link through opserver 10.0.0.38 2025-08-10 10:58:59,672 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-10 10:58:59,957 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-10 10:59:00,002 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96889432:ctest-vn4-14546076', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96889432:ctest-vn4-14546076?flat'} 2025-08-10 10:59:00,003 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96889432:ctest-vn4-14546076 is found in opserver 2025-08-10 10:59:00,013 - DEBUG - Do not have enough data to verify VN in agent 2025-08-10 10:59:00,024 - DEBUG - VRF ids for VN ctest-vn4-14546076: {} 2025-08-10 10:59:00,025 - DEBUG - ====Verifying data for ctest-policy1-12473898 in API_Server ====== 2025-08-10 10:59:00,025 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-10 10:59:00,031 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6de61825-463e-40c2-9f67-56ee69788113 2025-08-10 10:59:00,041 - DEBUG - Requesting: http://10.0.0.38:8082/project/63b807ba-5205-4101-baf1-f3209ea04c96 2025-08-10 10:59:00,112 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/35767b54-379f-4f41-9efa-77105002a73c 2025-08-10 10:59:00,123 - INFO - Verified policy ctest-policy1-12473898 in API Server, Result: True 2025-08-10 10:59:00,123 - INFO - Done with setup and verification, moving onto test .. 2025-08-10 10:59:00,129 - INFO - Deleting VN ctest-vn4-14546076 2025-08-10 10:59:00,241 - DEBUG - Response for deleting network () 2025-08-10 10:59:00,241 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/83668eca-f2a9-48a0-b92a-0f4071172eca 2025-08-10 10:59:00,245 - DEBUG - Response Code: 404 2025-08-10 10:59:00,245 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-10 10:59:00,250 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6de61825-463e-40c2-9f67-56ee69788113 2025-08-10 10:59:00,301 - DEBUG - Requesting: http://10.0.0.38:8082/project/63b807ba-5205-4101-baf1-f3209ea04c96 2025-08-10 10:59:00,368 - INFO - Validated that VN ctest-vn4-14546076 is not found in API Server 2025-08-10 10:59:00,378 - DEBUG - VN ctest-vn4-14546076 is not present in Agent 10.0.0.38 2025-08-10 10:59:00,378 - INFO - Validated that VN ctest-vn4-14546076 is not in any agent 2025-08-10 10:59:00,393 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-14546076 info 2025-08-10 10:59:00,416 - INFO - Deleted policy ctest-policy1-12473898 2025-08-10 10:59:00,580 - DEBUG - policy ctest-policy1-12473898 is not found in API Server 2025-08-10 10:59:00,833 - DEBUG - No XMPP flaps were noticed during the test