2025-11-25 12:41:31,200 - INFO - Domain Default found not creating 2025-11-25 12:41:31,457 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-59612719 not found, creating it 2025-11-25 12:41:31,980 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-59612719, ID : 925a19b2-93d2-4404-997c-9709eb2233c1 2025-11-25 12:41:33,851 - INFO - ================================================================================ 2025-11-25 12:41:33,851 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-25 12:41:34,142 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-11-25 12:41:34,142 - INFO - Initial checks done. Running the testcase now 2025-11-25 12:41:34,142 - INFO - 2025-11-25 12:41:34,142 - INFO - ================================================================================ 2025-11-25 12:41:34,142 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-25 12:41:34,142 - 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-11-25 12:41:34,475 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-11-25 12:41:34,475 - INFO - Initial checks done. Running the testcase now 2025-11-25 12:41:34,476 - INFO - 2025-11-25 12:41:34,888 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59612719:ctest-vn4-28319287, 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-59612719:ctest-vn4-28319287, 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-59612719:ctest-vn4-28319287, 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-59612719:ctest-vn4-28319287, 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-11-25 12:41:35,447 - DEBUG - Response for create_network : {'network': {'id': '87c00852-e6e3-457b-8f2a-d08a1be15279', 'name': 'ctest-vn4-28319287', 'tenant_id': '925a19b293d24404997c9709eb2233c1', 'project_id': '925a19b293d24404997c9709eb2233c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59612719', 'ctest-vn4-28319287'], 'port_security_enabled': True, 'description': ''}} 2025-11-25 12:41:35,716 - DEBUG - Response for create_subnet : {'subnet': {'id': '23e4eee2-16f4-4b6c-8b00-5841d0dda518', 'name': '', 'tenant_id': '925a19b293d24404997c9709eb2233c1', 'network_id': '87c00852-e6e3-457b-8f2a-d08a1be15279', 'ip_version': 4, 'cidr': '167.221.111.192/26', 'allocation_pools': [{'start': '167.221.111.194', 'end': '167.221.111.254'}], 'gateway_ip': '167.221.111.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.221.111.194', 'tags': [], 'project_id': '925a19b293d24404997c9709eb2233c1'}} 2025-11-25 12:41:35,989 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc99cf8f-6807-455a-8806-9b86bcc9f441', 'name': '', 'tenant_id': '925a19b293d24404997c9709eb2233c1', 'network_id': '87c00852-e6e3-457b-8f2a-d08a1be15279', 'ip_version': 6, 'cidr': '3894:ad36:efc8:4ebe:3a67:dad3::/96', 'allocation_pools': [{'start': '3894:ad36:efc8:4ebe:3a67:dad3:0:2', 'end': '3894:ad36:efc8:4ebe:3a67:dad3:ffff:fffe'}], 'gateway_ip': '3894:ad36:efc8:4ebe:3a67:dad3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3894:ad36:efc8:4ebe:3a67:dad3:0:2', 'tags': [], 'project_id': '925a19b293d24404997c9709eb2233c1'}} 2025-11-25 12:41:36,014 - INFO - Created VN ctest-vn4-28319287 2025-11-25 12:41:36,067 - DEBUG - VN ctest-vn4-28319287 UUID is 87c00852-e6e3-457b-8f2a-d08a1be15279 2025-11-25 12:41:36,306 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '87c00852-e6e3-457b-8f2a-d08a1be15279', 'name': 'ctest-vn4-28319287', 'tenant_id': '925a19b293d24404997c9709eb2233c1', 'project_id': '925a19b293d24404997c9709eb2233c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['23e4eee2-16f4-4b6c-8b00-5841d0dda518', 'cc99cf8f-6807-455a-8806-9b86bcc9f441'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59612719', 'ctest-vn4-28319287'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59612719', 'ctest-policy1-36525080']], 'subnet_ipam': [{'subnet_cidr': '167.221.111.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3894:ad36:efc8:4ebe:3a67:dad3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-25 12:41:36,463 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-25 12:41:36,761 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-25 12:41:36,797 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4ac658d7-507b-4f87-bf05-211afa50c252 2025-11-25 12:41:36,813 - DEBUG - Requesting: http://10.0.0.38:8082/project/925a19b2-93d2-4404-997c-9709eb2233c1 2025-11-25 12:41:36,899 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/87c00852-e6e3-457b-8f2a-d08a1be15279 2025-11-25 12:41:36,918 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/87c00852-e6e3-457b-8f2a-d08a1be15279 2025-11-25 12:41:36,930 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0c4eda05-fdb7-4103-a3f0-7709a80c28bd 2025-11-25 12:41:36,938 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0c4eda05-fdb7-4103-a3f0-7709a80c28bd 2025-11-25 12:41:36,947 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/652e276a-c746-4348-8988-9eb1e2e0164e 2025-11-25 12:41:36,955 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-25 12:41:36,955 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/87c00852-e6e3-457b-8f2a-d08a1be15279 2025-11-25 12:41:36,969 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0c4eda05-fdb7-4103-a3f0-7709a80c28bd 2025-11-25 12:41:36,984 - INFO - Verified VN network id 11 for VN 87c00852-e6e3-457b-8f2a-d08a1be15279 2025-11-25 12:41:36,985 - INFO - Verifications in API Server for VN ctest-vn4-28319287 passed 2025-11-25 12:41:36,985 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/87c00852-e6e3-457b-8f2a-d08a1be15279 2025-11-25 12:41:37,002 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0c4eda05-fdb7-4103-a3f0-7709a80c28bd 2025-11-25 12:41:37,012 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0c4eda05-fdb7-4103-a3f0-7709a80c28bd 2025-11-25 12:41:37,022 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/652e276a-c746-4348-8988-9eb1e2e0164e 2025-11-25 12:41:37,043 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59612719:ctest-vn4-28319287', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-59612719', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9781827542802711931', 'uuid-lslong': '10316287188037358201'}, 'enable': 'true', 'created': '2025-11-25T12:41:35', 'last-modified': '2025-11-25T12:41:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.773474'} 2025-11-25 12:41:37,053 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-25 12:41:37,053 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-28319287 passed 2025-11-25 12:41:37,053 - DEBUG - ====Verifying policy data for ctest-vn4-28319287 in API_Server ====== 2025-11-25 12:41:37,054 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-25 12:41:37,063 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4ac658d7-507b-4f87-bf05-211afa50c252 2025-11-25 12:41:37,082 - DEBUG - Requesting: http://10.0.0.38:8082/project/925a19b2-93d2-4404-997c-9709eb2233c1 2025-11-25 12:41:37,183 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/87c00852-e6e3-457b-8f2a-d08a1be15279 2025-11-25 12:41:37,197 - DEBUG - ==>Verifying data for policy with id: 0f3b012f-4451-4545-b557-25239c55d27e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59612719', 'ctest-policy1-36525080'] 2025-11-25 12:41:37,197 - INFO - VN ctest-vn4-28319287 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-25 12:41:37,197 - DEBUG - Verifying the vn in opserver 2025-11-25 12:41:37,197 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59612719:ctest-vn4-28319287 virtual network link through opserver 10.0.0.38 2025-11-25 12:41:37,197 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-25 12:41:37,529 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-25 12:41:37,609 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59612719:ctest-vn4-28319287', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59612719:ctest-vn4-28319287?flat'} 2025-11-25 12:41:37,609 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59612719:ctest-vn4-28319287 is found in opserver 2025-11-25 12:41:37,623 - DEBUG - Do not have enough data to verify VN in agent 2025-11-25 12:41:37,632 - DEBUG - VRF ids for VN ctest-vn4-28319287: {} 2025-11-25 12:41:37,633 - DEBUG - ====Verifying data for ctest-policy1-36525080 in API_Server ====== 2025-11-25 12:41:37,633 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-25 12:41:37,642 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4ac658d7-507b-4f87-bf05-211afa50c252 2025-11-25 12:41:37,668 - DEBUG - Requesting: http://10.0.0.38:8082/project/925a19b2-93d2-4404-997c-9709eb2233c1 2025-11-25 12:41:37,750 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/0f3b012f-4451-4545-b557-25239c55d27e 2025-11-25 12:41:37,762 - INFO - Verified policy ctest-policy1-36525080 in API Server, Result: True 2025-11-25 12:41:37,762 - INFO - Done with setup and verification, moving onto test .. 2025-11-25 12:41:37,772 - INFO - Deleting VN ctest-vn4-28319287 2025-11-25 12:41:37,914 - DEBUG - Response for deleting network () 2025-11-25 12:41:37,915 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0c4eda05-fdb7-4103-a3f0-7709a80c28bd 2025-11-25 12:41:37,920 - DEBUG - Response Code: 404 2025-11-25 12:41:37,921 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-25 12:41:37,927 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4ac658d7-507b-4f87-bf05-211afa50c252 2025-11-25 12:41:37,980 - DEBUG - Requesting: http://10.0.0.38:8082/project/925a19b2-93d2-4404-997c-9709eb2233c1 2025-11-25 12:41:38,063 - INFO - Validated that VN ctest-vn4-28319287 is not found in API Server 2025-11-25 12:41:38,075 - DEBUG - VN ctest-vn4-28319287 is not present in Agent 10.0.0.38 2025-11-25 12:41:38,075 - INFO - Validated that VN ctest-vn4-28319287 is not in any agent 2025-11-25 12:41:38,096 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-28319287 info 2025-11-25 12:41:38,125 - INFO - Deleted policy ctest-policy1-36525080 2025-11-25 12:41:38,298 - DEBUG - policy ctest-policy1-36525080 is not found in API Server 2025-11-25 12:41:38,577 - DEBUG - No XMPP flaps were noticed during the test 2025-11-25 12:41:38,577 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-25 12:41:38,577 - INFO - -------------------------------------------------------------------------------- 2025-11-25 12:41:38,889 - DEBUG - No XMPP flaps were noticed during the test 2025-11-25 12:41:38,889 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-11-25 12:41:38,890 - INFO - -------------------------------------------------------------------------------- 2025-11-25 12:41:39,660 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-59612719, ID : 925a19b2-93d2-4404-997c-9709eb2233c1