2025-09-25 22:21:53,147 - INFO - Domain Default found not creating 2025-09-25 22:21:53,268 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-56438164 not found, creating it 2025-09-25 22:21:53,763 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-56438164, ID : a60c7863-8c39-4bdf-a574-36f512c7d51c 2025-09-25 22:21:55,076 - INFO - ================================================================================ 2025-09-25 22:21:55,076 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-25 22:21:55,332 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-25 22:21:55,332 - INFO - Initial checks done. Running the testcase now 2025-09-25 22:21:55,333 - INFO - 2025-09-25 22:21:55,333 - INFO - ================================================================================ 2025-09-25 22:21:55,333 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-25 22:21:55,333 - 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-25 22:21:55,623 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-25 22:21:55,623 - INFO - Initial checks done. Running the testcase now 2025-09-25 22:21:55,623 - INFO - 2025-09-25 22:21:55,960 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56438164:ctest-vn4-14954618, 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-56438164:ctest-vn4-14954618, 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-56438164:ctest-vn4-14954618, 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-56438164:ctest-vn4-14954618, 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-25 22:21:56,431 - DEBUG - Response for create_network : {'network': {'id': '01a98c56-ee76-48fe-899a-695514bc8b03', 'name': 'ctest-vn4-14954618', 'tenant_id': 'a60c78638c394bdfa57436f512c7d51c', 'project_id': 'a60c78638c394bdfa57436f512c7d51c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56438164', 'ctest-vn4-14954618'], 'port_security_enabled': True, 'description': ''}} 2025-09-25 22:21:56,558 - DEBUG - Response for create_subnet : {'subnet': {'id': '73434654-3c86-4d96-8960-90c5a9635981', 'name': '', 'tenant_id': 'a60c78638c394bdfa57436f512c7d51c', 'network_id': '01a98c56-ee76-48fe-899a-695514bc8b03', 'ip_version': 4, 'cidr': '121.47.101.64/26', 'allocation_pools': [{'start': '121.47.101.66', 'end': '121.47.101.126'}], 'gateway_ip': '121.47.101.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.47.101.66', 'tags': [], 'project_id': 'a60c78638c394bdfa57436f512c7d51c'}} 2025-09-25 22:21:56,753 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5d46e1a-ba5b-40a9-b019-c9d01f9de083', 'name': '', 'tenant_id': 'a60c78638c394bdfa57436f512c7d51c', 'network_id': '01a98c56-ee76-48fe-899a-695514bc8b03', 'ip_version': 6, 'cidr': '2fda:a5f7:e0eb:6fea:e177:a6e::/96', 'allocation_pools': [{'start': '2fda:a5f7:e0eb:6fea:e177:a6e:0:2', 'end': '2fda:a5f7:e0eb:6fea:e177:a6e:ffff:fffe'}], 'gateway_ip': '2fda:a5f7:e0eb:6fea:e177:a6e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2fda:a5f7:e0eb:6fea:e177:a6e:0:2', 'tags': [], 'project_id': 'a60c78638c394bdfa57436f512c7d51c'}} 2025-09-25 22:21:56,820 - INFO - Created VN ctest-vn4-14954618 2025-09-25 22:21:56,871 - DEBUG - VN ctest-vn4-14954618 UUID is 01a98c56-ee76-48fe-899a-695514bc8b03 2025-09-25 22:21:57,038 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '01a98c56-ee76-48fe-899a-695514bc8b03', 'name': 'ctest-vn4-14954618', 'tenant_id': 'a60c78638c394bdfa57436f512c7d51c', 'project_id': 'a60c78638c394bdfa57436f512c7d51c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['73434654-3c86-4d96-8960-90c5a9635981', 'd5d46e1a-ba5b-40a9-b019-c9d01f9de083'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56438164', 'ctest-vn4-14954618'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56438164', 'ctest-policy1-24488716']], 'subnet_ipam': [{'subnet_cidr': '121.47.101.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2fda:a5f7:e0eb:6fea:e177:a6e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-25 22:21:57,203 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-25 22:21:57,491 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-25 22:21:57,519 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2753c674-c893-4dc2-88a0-ad302d5bff2b 2025-09-25 22:21:57,530 - DEBUG - Requesting: http://10.0.0.38:8082/project/a60c7863-8c39-4bdf-a574-36f512c7d51c 2025-09-25 22:21:57,596 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/01a98c56-ee76-48fe-899a-695514bc8b03 2025-09-25 22:21:57,609 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/01a98c56-ee76-48fe-899a-695514bc8b03 2025-09-25 22:21:57,619 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aed890f8-a858-4de8-944f-e48c1351bdb2 2025-09-25 22:21:57,625 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aed890f8-a858-4de8-944f-e48c1351bdb2 2025-09-25 22:21:57,631 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ed7f845b-fb55-47d3-9373-8050eebeb548 2025-09-25 22:21:57,637 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-25 22:21:57,637 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/01a98c56-ee76-48fe-899a-695514bc8b03 2025-09-25 22:21:57,646 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aed890f8-a858-4de8-944f-e48c1351bdb2 2025-09-25 22:21:57,659 - INFO - Verified VN network id 12 for VN 01a98c56-ee76-48fe-899a-695514bc8b03 2025-09-25 22:21:57,659 - INFO - Verifications in API Server for VN ctest-vn4-14954618 passed 2025-09-25 22:21:57,659 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/01a98c56-ee76-48fe-899a-695514bc8b03 2025-09-25 22:21:57,667 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aed890f8-a858-4de8-944f-e48c1351bdb2 2025-09-25 22:21:57,672 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aed890f8-a858-4de8-944f-e48c1351bdb2 2025-09-25 22:21:57,677 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ed7f845b-fb55-47d3-9373-8050eebeb548 2025-09-25 22:21:57,686 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56438164:ctest-vn4-14954618', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-56438164', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '119781170097834238', 'uuid-lslong': '9915353343750605571'}, 'enable': 'true', 'created': '2025-09-25T22:21:56', 'last-modified': '2025-09-25T22:21:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.668112'} 2025-09-25 22:21:57,691 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-25 22:21:57,691 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-14954618 passed 2025-09-25 22:21:57,691 - DEBUG - ====Verifying policy data for ctest-vn4-14954618 in API_Server ====== 2025-09-25 22:21:57,691 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-25 22:21:57,696 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2753c674-c893-4dc2-88a0-ad302d5bff2b 2025-09-25 22:21:57,704 - DEBUG - Requesting: http://10.0.0.38:8082/project/a60c7863-8c39-4bdf-a574-36f512c7d51c 2025-09-25 22:21:57,773 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/01a98c56-ee76-48fe-899a-695514bc8b03 2025-09-25 22:21:57,781 - DEBUG - ==>Verifying data for policy with id: 8e1fdfed-71d6-4a5d-ab1c-aca0aeb59073, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56438164', 'ctest-policy1-24488716'] 2025-09-25 22:21:57,781 - INFO - VN ctest-vn4-14954618 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-25 22:21:57,781 - DEBUG - Verifying the vn in opserver 2025-09-25 22:21:57,781 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56438164:ctest-vn4-14954618 virtual network link through opserver 10.0.0.38 2025-09-25 22:21:57,781 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-25 22:21:58,068 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-25 22:21:58,115 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56438164:ctest-vn4-14954618', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56438164:ctest-vn4-14954618?flat'} 2025-09-25 22:21:58,115 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56438164:ctest-vn4-14954618 is found in opserver 2025-09-25 22:21:58,123 - DEBUG - Do not have enough data to verify VN in agent 2025-09-25 22:21:58,126 - DEBUG - VRF ids for VN ctest-vn4-14954618: {} 2025-09-25 22:21:58,126 - DEBUG - ====Verifying data for ctest-policy1-24488716 in API_Server ====== 2025-09-25 22:21:58,127 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-25 22:21:58,131 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2753c674-c893-4dc2-88a0-ad302d5bff2b 2025-09-25 22:21:58,139 - DEBUG - Requesting: http://10.0.0.38:8082/project/a60c7863-8c39-4bdf-a574-36f512c7d51c 2025-09-25 22:21:58,206 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/8e1fdfed-71d6-4a5d-ab1c-aca0aeb59073 2025-09-25 22:21:58,214 - INFO - Verified policy ctest-policy1-24488716 in API Server, Result: True 2025-09-25 22:21:58,214 - INFO - Done with setup and verification, moving onto test .. 2025-09-25 22:21:58,221 - INFO - Deleting VN ctest-vn4-14954618 2025-09-25 22:21:58,317 - DEBUG - Response for deleting network () 2025-09-25 22:21:58,318 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aed890f8-a858-4de8-944f-e48c1351bdb2 2025-09-25 22:21:58,322 - DEBUG - Response Code: 404 2025-09-25 22:21:58,322 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-25 22:21:58,326 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2753c674-c893-4dc2-88a0-ad302d5bff2b 2025-09-25 22:21:58,375 - DEBUG - Requesting: http://10.0.0.38:8082/project/a60c7863-8c39-4bdf-a574-36f512c7d51c 2025-09-25 22:21:58,441 - INFO - Validated that VN ctest-vn4-14954618 is not found in API Server 2025-09-25 22:21:58,448 - DEBUG - VN ctest-vn4-14954618 is not present in Agent 10.0.0.38 2025-09-25 22:21:58,448 - INFO - Validated that VN ctest-vn4-14954618 is not in any agent 2025-09-25 22:21:58,460 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-14954618 info 2025-09-25 22:21:58,480 - INFO - Deleted policy ctest-policy1-24488716 2025-09-25 22:21:58,647 - DEBUG - policy ctest-policy1-24488716 is not found in API Server 2025-09-25 22:21:58,904 - DEBUG - No XMPP flaps were noticed during the test
2025-09-25 22:21:58,904 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-09-25 22:21:58,904 - INFO - -------------------------------------------------------------------------------- 2025-09-25 22:21:59,191 - DEBUG - No XMPP flaps were noticed during the test
2025-09-25 22:21:59,191 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-25 22:21:59,191 - INFO - -------------------------------------------------------------------------------- 2025-09-25 22:21:59,829 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-56438164, ID : a60c7863-8c39-4bdf-a574-36f512c7d51c