2025-09-22 19:41:37,186 - INFO - Domain Default found not creating 2025-09-22 19:41:37,323 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93377895 not found, creating it 2025-09-22 19:41:37,759 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93377895, ID : b8f25a15-7b78-4add-bb25-dcf15f89bf83 2025-09-22 19:41:39,191 - INFO - ================================================================================ 2025-09-22 19:41:39,191 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-22 19:41:39,443 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.14': '0'}} with 2025-09-22 19:41:39,443 - INFO - Initial checks done. Running the testcase now 2025-09-22 19:41:39,443 - INFO - 2025-09-22 19:41:39,444 - INFO - ================================================================================ 2025-09-22 19:41:39,444 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-22 19:41:39,444 - 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-22 19:41:39,731 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.14': '0'}} with 2025-09-22 19:41:39,731 - INFO - Initial checks done. Running the testcase now 2025-09-22 19:41:39,731 - INFO - 2025-09-22 19:41:40,074 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93377895:ctest-vn4-22459213, 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-93377895:ctest-vn4-22459213, 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-93377895:ctest-vn4-22459213, 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-93377895:ctest-vn4-22459213, 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-22 19:41:40,588 - DEBUG - Response for create_network : {'network': {'id': 'f5ab88d8-cfa3-47d7-946e-d26651427577', 'name': 'ctest-vn4-22459213', 'tenant_id': 'b8f25a157b784addbb25dcf15f89bf83', 'project_id': 'b8f25a157b784addbb25dcf15f89bf83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93377895', 'ctest-vn4-22459213'], 'port_security_enabled': True, 'description': ''}} 2025-09-22 19:41:40,788 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b53d59c4-ee5c-49fd-bdf5-fe72e74a32d2', 'name': '', 'tenant_id': 'b8f25a157b784addbb25dcf15f89bf83', 'network_id': 'f5ab88d8-cfa3-47d7-946e-d26651427577', 'ip_version': 4, 'cidr': '147.56.71.0/26', 'allocation_pools': [{'start': '147.56.71.2', 'end': '147.56.71.62'}], 'gateway_ip': '147.56.71.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.56.71.2', 'tags': [], 'project_id': 'b8f25a157b784addbb25dcf15f89bf83'}} 2025-09-22 19:41:41,007 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5c12a4c-0340-4d8f-8611-d85e8f8dc7dc', 'name': '', 'tenant_id': 'b8f25a157b784addbb25dcf15f89bf83', 'network_id': 'f5ab88d8-cfa3-47d7-946e-d26651427577', 'ip_version': 6, 'cidr': '2ff2:4221:183e:479c:5ce6:cf4c::/96', 'allocation_pools': [{'start': '2ff2:4221:183e:479c:5ce6:cf4c:0:2', 'end': '2ff2:4221:183e:479c:5ce6:cf4c:ffff:fffe'}], 'gateway_ip': '2ff2:4221:183e:479c:5ce6:cf4c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ff2:4221:183e:479c:5ce6:cf4c:0:2', 'tags': [], 'project_id': 'b8f25a157b784addbb25dcf15f89bf83'}} 2025-09-22 19:41:41,032 - INFO - Created VN ctest-vn4-22459213 2025-09-22 19:41:41,087 - DEBUG - VN ctest-vn4-22459213 UUID is f5ab88d8-cfa3-47d7-946e-d26651427577 2025-09-22 19:41:41,310 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f5ab88d8-cfa3-47d7-946e-d26651427577', 'name': 'ctest-vn4-22459213', 'tenant_id': 'b8f25a157b784addbb25dcf15f89bf83', 'project_id': 'b8f25a157b784addbb25dcf15f89bf83', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b53d59c4-ee5c-49fd-bdf5-fe72e74a32d2', 'c5c12a4c-0340-4d8f-8611-d85e8f8dc7dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93377895', 'ctest-vn4-22459213'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93377895', 'ctest-policy1-35159518']], 'subnet_ipam': [{'subnet_cidr': '147.56.71.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ff2:4221:183e:479c:5ce6:cf4c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-22 19:41:41,479 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-22 19:41:41,775 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-22 19:41:41,801 - DEBUG - Requesting: http://10.0.0.49:8082/domain/68cecb4b-104e-442b-b003-e38ae151ab22 2025-09-22 19:41:41,813 - DEBUG - Requesting: http://10.0.0.49:8082/project/b8f25a15-7b78-4add-bb25-dcf15f89bf83 2025-09-22 19:41:41,881 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f5ab88d8-cfa3-47d7-946e-d26651427577 2025-09-22 19:41:41,892 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f5ab88d8-cfa3-47d7-946e-d26651427577 2025-09-22 19:41:41,901 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/1cf5b5da-f303-434f-93c2-dce8fa7b08f2 2025-09-22 19:41:41,908 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/1cf5b5da-f303-434f-93c2-dce8fa7b08f2 2025-09-22 19:41:41,915 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/677f1421-a415-43ea-9533-4b32aabe7b22 2025-09-22 19:41:41,921 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-22 19:41:41,922 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f5ab88d8-cfa3-47d7-946e-d26651427577 2025-09-22 19:41:41,931 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/1cf5b5da-f303-434f-93c2-dce8fa7b08f2 2025-09-22 19:41:41,946 - INFO - Verified VN network id 10 for VN f5ab88d8-cfa3-47d7-946e-d26651427577 2025-09-22 19:41:41,946 - INFO - Verifications in API Server for VN ctest-vn4-22459213 passed 2025-09-22 19:41:41,946 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f5ab88d8-cfa3-47d7-946e-d26651427577 2025-09-22 19:41:41,955 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/1cf5b5da-f303-434f-93c2-dce8fa7b08f2 2025-09-22 19:41:41,961 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/1cf5b5da-f303-434f-93c2-dce8fa7b08f2 2025-09-22 19:41:41,967 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/677f1421-a415-43ea-9533-4b32aabe7b22 2025-09-22 19:41:41,976 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93377895:ctest-vn4-22459213', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93377895', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17702393225087764439', 'uuid-lslong': '10695717501943313783'}, 'enable': 'true', 'created': '2025-09-22T19:41:40', 'last-modified': '2025-09-22T19:41:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.690035'} 2025-09-22 19:41:41,982 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-22 19:41:41,982 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-22459213 passed 2025-09-22 19:41:41,982 - DEBUG - ====Verifying policy data for ctest-vn4-22459213 in API_Server ====== 2025-09-22 19:41:41,982 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-22 19:41:41,987 - DEBUG - Requesting: http://10.0.0.49:8082/domain/68cecb4b-104e-442b-b003-e38ae151ab22 2025-09-22 19:41:41,996 - DEBUG - Requesting: http://10.0.0.49:8082/project/b8f25a15-7b78-4add-bb25-dcf15f89bf83 2025-09-22 19:41:42,065 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/f5ab88d8-cfa3-47d7-946e-d26651427577 2025-09-22 19:41:42,074 - DEBUG - ==>Verifying data for policy with id: 1fc12bdd-5267-46cb-9d43-9d694e69a10b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93377895', 'ctest-policy1-35159518'] 2025-09-22 19:41:42,074 - INFO - VN ctest-vn4-22459213 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-22 19:41:42,074 - DEBUG - Verifying the vn in opserver 2025-09-22 19:41:42,074 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93377895:ctest-vn4-22459213 virtual network link through opserver 10.0.0.49 2025-09-22 19:41:42,074 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-09-22 19:41:42,375 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-09-22 19:41:42,457 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93377895:ctest-vn4-22459213', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93377895:ctest-vn4-22459213?flat'} 2025-09-22 19:41:42,457 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93377895:ctest-vn4-22459213 is found in opserver 2025-09-22 19:41:42,467 - DEBUG - Do not have enough data to verify VN in agent 2025-09-22 19:41:42,471 - DEBUG - VRF ids for VN ctest-vn4-22459213: {} 2025-09-22 19:41:42,472 - DEBUG - ====Verifying data for ctest-policy1-35159518 in API_Server ====== 2025-09-22 19:41:42,472 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-22 19:41:42,481 - DEBUG - Requesting: http://10.0.0.49:8082/domain/68cecb4b-104e-442b-b003-e38ae151ab22 2025-09-22 19:41:42,524 - DEBUG - Requesting: http://10.0.0.49:8082/project/b8f25a15-7b78-4add-bb25-dcf15f89bf83 2025-09-22 19:41:42,603 - DEBUG - Requesting: http://10.0.0.49:8082/network-policy/1fc12bdd-5267-46cb-9d43-9d694e69a10b 2025-09-22 19:41:42,614 - INFO - Verified policy ctest-policy1-35159518 in API Server, Result: True 2025-09-22 19:41:42,615 - INFO - Done with setup and verification, moving onto test .. 2025-09-22 19:41:42,626 - INFO - Deleting VN ctest-vn4-22459213 2025-09-22 19:41:42,913 - DEBUG - Response for deleting network () 2025-09-22 19:41:42,913 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/1cf5b5da-f303-434f-93c2-dce8fa7b08f2 2025-09-22 19:41:42,922 - DEBUG - Response Code: 404 2025-09-22 19:41:42,923 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-22 19:41:42,930 - DEBUG - Requesting: http://10.0.0.49:8082/domain/68cecb4b-104e-442b-b003-e38ae151ab22 2025-09-22 19:41:42,999 - DEBUG - Requesting: http://10.0.0.49:8082/project/b8f25a15-7b78-4add-bb25-dcf15f89bf83 2025-09-22 19:41:43,075 - INFO - Validated that VN ctest-vn4-22459213 is not found in API Server 2025-09-22 19:41:43,084 - DEBUG - VN ctest-vn4-22459213 is not present in Agent 10.0.0.49 2025-09-22 19:41:43,084 - INFO - Validated that VN ctest-vn4-22459213 is not in any agent 2025-09-22 19:41:43,095 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-22459213 info 2025-09-22 19:41:43,125 - INFO - Deleted policy ctest-policy1-35159518 2025-09-22 19:41:43,283 - DEBUG - policy ctest-policy1-35159518 is not found in API Server 2025-09-22 19:41:43,536 - DEBUG - No XMPP flaps were noticed during the test
2025-09-22 19:41:43,536 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-22 19:41:43,536 - INFO - -------------------------------------------------------------------------------- 2025-09-22 19:41:43,823 - DEBUG - No XMPP flaps were noticed during the test
2025-09-22 19:41:43,823 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-22 19:41:43,823 - INFO - -------------------------------------------------------------------------------- 2025-09-22 19:41:44,479 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-93377895, ID : b8f25a15-7b78-4add-bb25-dcf15f89bf83