2025-08-31 06:42:12,534 - INFO - Domain Default found not creating 2025-08-31 06:42:12,675 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-34405762 not found, creating it 2025-08-31 06:42:13,127 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-34405762, ID : 6acee7d5-bdcd-4882-96e7-a2ed408a799e 2025-08-31 06:42:14,550 - INFO - ================================================================================ 2025-08-31 06:42:14,550 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-31 06:42:14,803 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-08-31 06:42:14,803 - INFO - Initial checks done. Running the testcase now 2025-08-31 06:42:14,803 - INFO - 2025-08-31 06:42:14,803 - INFO - ================================================================================ 2025-08-31 06:42:14,803 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-31 06:42:14,803 - 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-31 06:42:15,091 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-08-31 06:42:15,092 - INFO - Initial checks done. Running the testcase now 2025-08-31 06:42:15,092 - INFO - 2025-08-31 06:42:15,439 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34405762:ctest-vn4-87697877, 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-34405762:ctest-vn4-87697877, 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-34405762:ctest-vn4-87697877, 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-34405762:ctest-vn4-87697877, 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-31 06:42:15,960 - DEBUG - Response for create_network : {'network': {'id': '542269ef-cd86-446f-ae77-c5a46f9fbb4f', 'name': 'ctest-vn4-87697877', 'tenant_id': '6acee7d5bdcd488296e7a2ed408a799e', 'project_id': '6acee7d5bdcd488296e7a2ed408a799e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34405762', 'ctest-vn4-87697877'], 'port_security_enabled': True, 'description': ''}} 2025-08-31 06:42:16,149 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c7a8bf63-5c64-429d-a5a3-c4c23b0e9039', 'name': '', 'tenant_id': '6acee7d5bdcd488296e7a2ed408a799e', 'network_id': '542269ef-cd86-446f-ae77-c5a46f9fbb4f', 'ip_version': 4, 'cidr': '43.245.79.192/26', 'allocation_pools': [{'start': '43.245.79.194', 'end': '43.245.79.254'}], 'gateway_ip': '43.245.79.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.245.79.194', 'tags': [], 'project_id': '6acee7d5bdcd488296e7a2ed408a799e'}} 2025-08-31 06:42:16,301 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bd49b9bd-05ed-453a-bdc3-b744a2bbea6d', 'name': '', 'tenant_id': '6acee7d5bdcd488296e7a2ed408a799e', 'network_id': '542269ef-cd86-446f-ae77-c5a46f9fbb4f', 'ip_version': 6, 'cidr': '3a42:ecb0:6fed:2983:937d:43f0::/96', 'allocation_pools': [{'start': '3a42:ecb0:6fed:2983:937d:43f0:0:2', 'end': '3a42:ecb0:6fed:2983:937d:43f0:ffff:fffe'}], 'gateway_ip': '3a42:ecb0:6fed:2983:937d:43f0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a42:ecb0:6fed:2983:937d:43f0:0:2', 'tags': [], 'project_id': '6acee7d5bdcd488296e7a2ed408a799e'}} 2025-08-31 06:42:16,320 - INFO - Created VN ctest-vn4-87697877 2025-08-31 06:42:16,369 - DEBUG - VN ctest-vn4-87697877 UUID is 542269ef-cd86-446f-ae77-c5a46f9fbb4f 2025-08-31 06:42:16,570 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '542269ef-cd86-446f-ae77-c5a46f9fbb4f', 'name': 'ctest-vn4-87697877', 'tenant_id': '6acee7d5bdcd488296e7a2ed408a799e', 'project_id': '6acee7d5bdcd488296e7a2ed408a799e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c7a8bf63-5c64-429d-a5a3-c4c23b0e9039', 'bd49b9bd-05ed-453a-bdc3-b744a2bbea6d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34405762', 'ctest-vn4-87697877'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34405762', 'ctest-policy1-65758599']], 'subnet_ipam': [{'subnet_cidr': '43.245.79.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a42:ecb0:6fed:2983:937d:43f0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-31 06:42:16,733 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-31 06:42:17,026 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-31 06:42:17,055 - DEBUG - Requesting: http://10.0.0.33:8082/domain/63d3f03e-b5fb-422f-8732-e88dce41561a 2025-08-31 06:42:17,068 - DEBUG - Requesting: http://10.0.0.33:8082/project/6acee7d5-bdcd-4882-96e7-a2ed408a799e 2025-08-31 06:42:17,137 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/542269ef-cd86-446f-ae77-c5a46f9fbb4f 2025-08-31 06:42:17,149 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/542269ef-cd86-446f-ae77-c5a46f9fbb4f 2025-08-31 06:42:17,158 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cc579d97-3059-4f7b-909e-e6c60697802d 2025-08-31 06:42:17,165 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cc579d97-3059-4f7b-909e-e6c60697802d 2025-08-31 06:42:17,171 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/13b8b09d-7919-4e33-87e9-f3a884ea1844 2025-08-31 06:42:17,177 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-31 06:42:17,177 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/542269ef-cd86-446f-ae77-c5a46f9fbb4f 2025-08-31 06:42:17,187 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cc579d97-3059-4f7b-909e-e6c60697802d 2025-08-31 06:42:17,200 - INFO - Verified VN network id 9 for VN 542269ef-cd86-446f-ae77-c5a46f9fbb4f 2025-08-31 06:42:17,200 - INFO - Verifications in API Server for VN ctest-vn4-87697877 passed 2025-08-31 06:42:17,200 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/542269ef-cd86-446f-ae77-c5a46f9fbb4f 2025-08-31 06:42:17,210 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cc579d97-3059-4f7b-909e-e6c60697802d 2025-08-31 06:42:17,216 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cc579d97-3059-4f7b-909e-e6c60697802d 2025-08-31 06:42:17,221 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/13b8b09d-7919-4e33-87e9-f3a884ea1844 2025-08-31 06:42:17,232 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34405762:ctest-vn4-87697877', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-34405762', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6062524527060337775', 'uuid-lslong': '12571734194866076495'}, 'enable': 'true', 'created': '2025-08-31T06:42:15', 'last-modified': '2025-08-31T06:42:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.696689'} 2025-08-31 06:42:17,237 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-31 06:42:17,237 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-87697877 passed 2025-08-31 06:42:17,237 - DEBUG - ====Verifying policy data for ctest-vn4-87697877 in API_Server ====== 2025-08-31 06:42:17,237 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-31 06:42:17,242 - DEBUG - Requesting: http://10.0.0.33:8082/domain/63d3f03e-b5fb-422f-8732-e88dce41561a 2025-08-31 06:42:17,253 - DEBUG - Requesting: http://10.0.0.33:8082/project/6acee7d5-bdcd-4882-96e7-a2ed408a799e 2025-08-31 06:42:17,326 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/542269ef-cd86-446f-ae77-c5a46f9fbb4f 2025-08-31 06:42:17,336 - DEBUG - ==>Verifying data for policy with id: a2f8f575-4b30-4ce7-a4ea-e5e5fbeaaa88, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34405762', 'ctest-policy1-65758599'] 2025-08-31 06:42:17,336 - INFO - VN ctest-vn4-87697877 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-31 06:42:17,336 - DEBUG - Verifying the vn in opserver 2025-08-31 06:42:17,336 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34405762:ctest-vn4-87697877 virtual network link through opserver 10.0.0.33 2025-08-31 06:42:17,336 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-31 06:42:17,647 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-31 06:42:17,708 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34405762:ctest-vn4-87697877', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34405762:ctest-vn4-87697877?flat'} 2025-08-31 06:42:17,708 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34405762:ctest-vn4-87697877 is found in opserver 2025-08-31 06:42:17,718 - DEBUG - Do not have enough data to verify VN in agent 2025-08-31 06:42:17,723 - DEBUG - VRF ids for VN ctest-vn4-87697877: {} 2025-08-31 06:42:17,723 - DEBUG - ====Verifying data for ctest-policy1-65758599 in API_Server ====== 2025-08-31 06:42:17,723 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-31 06:42:17,729 - DEBUG - Requesting: http://10.0.0.33:8082/domain/63d3f03e-b5fb-422f-8732-e88dce41561a 2025-08-31 06:42:17,740 - DEBUG - Requesting: http://10.0.0.33:8082/project/6acee7d5-bdcd-4882-96e7-a2ed408a799e 2025-08-31 06:42:17,808 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/a2f8f575-4b30-4ce7-a4ea-e5e5fbeaaa88 2025-08-31 06:42:17,818 - INFO - Verified policy ctest-policy1-65758599 in API Server, Result: True 2025-08-31 06:42:17,818 - INFO - Done with setup and verification, moving onto test .. 2025-08-31 06:42:17,826 - INFO - Deleting VN ctest-vn4-87697877 2025-08-31 06:42:17,940 - DEBUG - Response for deleting network () 2025-08-31 06:42:17,940 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cc579d97-3059-4f7b-909e-e6c60697802d 2025-08-31 06:42:17,945 - DEBUG - Response Code: 404 2025-08-31 06:42:17,946 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-31 06:42:17,951 - DEBUG - Requesting: http://10.0.0.33:8082/domain/63d3f03e-b5fb-422f-8732-e88dce41561a 2025-08-31 06:42:18,002 - DEBUG - Requesting: http://10.0.0.33:8082/project/6acee7d5-bdcd-4882-96e7-a2ed408a799e 2025-08-31 06:42:18,071 - INFO - Validated that VN ctest-vn4-87697877 is not found in API Server 2025-08-31 06:42:18,082 - DEBUG - VN ctest-vn4-87697877 is not present in Agent 10.0.0.33 2025-08-31 06:42:18,082 - INFO - Validated that VN ctest-vn4-87697877 is not in any agent 2025-08-31 06:42:18,095 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-87697877 info 2025-08-31 06:42:18,122 - INFO - Deleted policy ctest-policy1-65758599 2025-08-31 06:42:18,293 - DEBUG - policy ctest-policy1-65758599 is not found in API Server 2025-08-31 06:42:18,547 - DEBUG - No XMPP flaps were noticed during the test