2025-12-04 02:46:00,226 - INFO - Domain Default found not creating 2025-12-04 02:46:00,420 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95416425 not found, creating it 2025-12-04 02:46:00,992 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95416425, ID : 61ab0f8e-88c5-4edc-97e4-4705590de0e2 2025-12-04 02:46:02,679 - INFO - ================================================================================ 2025-12-04 02:46:02,680 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-04 02:46:03,973 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.209': '0', '10.20.0.254': '0'}, '10.0.0.130': {'10.20.0.192': '0', '10.20.0.209': '0'}} with 2025-12-04 02:46:03,974 - INFO - Initial checks done. Running the testcase now 2025-12-04 02:46:03,974 - INFO - 2025-12-04 02:46:03,974 - INFO - ================================================================================ 2025-12-04 02:46:03,974 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-04 02:46:03,974 - 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-12-04 02:46:05,269 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.209': '0', '10.20.0.254': '0'}, '10.0.0.130': {'10.20.0.192': '0', '10.20.0.209': '0'}} with 2025-12-04 02:46:05,269 - INFO - Initial checks done. Running the testcase now 2025-12-04 02:46:05,269 - INFO - 2025-12-04 02:46:05,671 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95416425:ctest-vn4-81632420, 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-95416425:ctest-vn4-81632420, 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-95416425:ctest-vn4-81632420, 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-95416425:ctest-vn4-81632420, 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-12-04 02:46:06,317 - DEBUG - Response for create_network : {'network': {'id': 'fcc2a6fd-fa5f-4144-855a-37df5b0fd018', 'name': 'ctest-vn4-81632420', 'tenant_id': '61ab0f8e88c54edc97e44705590de0e2', 'project_id': '61ab0f8e88c54edc97e44705590de0e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95416425', 'ctest-vn4-81632420'], 'port_security_enabled': True, 'description': ''}} 2025-12-04 02:46:06,646 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ff123c2-f8ec-4e54-9d18-3e27a8ae70f8', 'name': '', 'tenant_id': '61ab0f8e88c54edc97e44705590de0e2', 'network_id': 'fcc2a6fd-fa5f-4144-855a-37df5b0fd018', 'ip_version': 4, 'cidr': '43.57.103.128/26', 'allocation_pools': [{'start': '43.57.103.130', 'end': '43.57.103.190'}], 'gateway_ip': '43.57.103.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.57.103.130', 'tags': [], 'project_id': '61ab0f8e88c54edc97e44705590de0e2'}} 2025-12-04 02:46:06,920 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ded3fbd7-c15b-4385-8b75-822cd5002400', 'name': '', 'tenant_id': '61ab0f8e88c54edc97e44705590de0e2', 'network_id': 'fcc2a6fd-fa5f-4144-855a-37df5b0fd018', 'ip_version': 6, 'cidr': '2e78:68c5:6de6:b233:5755:fac1::/96', 'allocation_pools': [{'start': '2e78:68c5:6de6:b233:5755:fac1:0:2', 'end': '2e78:68c5:6de6:b233:5755:fac1:ffff:fffe'}], 'gateway_ip': '2e78:68c5:6de6:b233:5755:fac1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e78:68c5:6de6:b233:5755:fac1:0:2', 'tags': [], 'project_id': '61ab0f8e88c54edc97e44705590de0e2'}} 2025-12-04 02:46:06,949 - INFO - Created VN ctest-vn4-81632420 2025-12-04 02:46:06,961 - DEBUG - VN ctest-vn4-81632420 UUID is fcc2a6fd-fa5f-4144-855a-37df5b0fd018 2025-12-04 02:46:07,220 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fcc2a6fd-fa5f-4144-855a-37df5b0fd018', 'name': 'ctest-vn4-81632420', 'tenant_id': '61ab0f8e88c54edc97e44705590de0e2', 'project_id': '61ab0f8e88c54edc97e44705590de0e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ff123c2-f8ec-4e54-9d18-3e27a8ae70f8', 'ded3fbd7-c15b-4385-8b75-822cd5002400'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95416425', 'ctest-vn4-81632420'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95416425', 'ctest-policy1-62921163']], 'subnet_ipam': [{'subnet_cidr': '43.57.103.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e78:68c5:6de6:b233:5755:fac1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-04 02:46:07,330 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-04 02:46:07,661 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-04 02:46:07,700 - DEBUG - Requesting: http://10.0.0.27:8082/domain/77f3106b-db9e-49b5-893e-09cac574b890 2025-12-04 02:46:07,721 - DEBUG - Requesting: http://10.0.0.27:8082/project/61ab0f8e-88c5-4edc-97e4-4705590de0e2 2025-12-04 02:46:07,834 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fcc2a6fd-fa5f-4144-855a-37df5b0fd018 2025-12-04 02:46:07,850 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fcc2a6fd-fa5f-4144-855a-37df5b0fd018 2025-12-04 02:46:07,862 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5942f81d-f965-4c55-a8cb-65a77fc4f913 2025-12-04 02:46:07,871 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5942f81d-f965-4c55-a8cb-65a77fc4f913 2025-12-04 02:46:07,880 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/7ea8fbdb-ac27-4d1b-b9bc-6c26b61a1f16 2025-12-04 02:46:07,908 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-04 02:46:07,908 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fcc2a6fd-fa5f-4144-855a-37df5b0fd018 2025-12-04 02:46:07,921 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5942f81d-f965-4c55-a8cb-65a77fc4f913 2025-12-04 02:46:07,939 - INFO - Verified VN network id 13 for VN fcc2a6fd-fa5f-4144-855a-37df5b0fd018 2025-12-04 02:46:07,939 - INFO - Verifications in API Server for VN ctest-vn4-81632420 passed 2025-12-04 02:46:07,940 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fcc2a6fd-fa5f-4144-855a-37df5b0fd018 2025-12-04 02:46:07,952 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5942f81d-f965-4c55-a8cb-65a77fc4f913 2025-12-04 02:46:07,961 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5942f81d-f965-4c55-a8cb-65a77fc4f913 2025-12-04 02:46:07,969 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/7ea8fbdb-ac27-4d1b-b9bc-6c26b61a1f16 2025-12-04 02:46:07,984 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95416425:ctest-vn4-81632420', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95416425', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18213303452797190468', 'uuid-lslong': '9609054187393372184'}, 'enable': 'true', 'created': '2025-12-04T02:46:06', 'last-modified': '2025-12-04T02:46:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.823881'} 2025-12-04 02:46:07,992 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-04 02:46:07,997 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95416425:ctest-vn4-81632420', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95416425', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18213303452797190468', 'uuid-lslong': '9609054187393372184'}, 'enable': 'true', 'created': '2025-12-04T02:46:06', 'last-modified': '2025-12-04T02:46:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.836386'} 2025-12-04 02:46:08,004 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-04 02:46:08,010 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95416425:ctest-vn4-81632420', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95416425', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18213303452797190468', 'uuid-lslong': '9609054187393372184'}, 'enable': 'true', 'created': '2025-12-04T02:46:06', 'last-modified': '2025-12-04T02:46:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.845022'} 2025-12-04 02:46:08,016 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-04 02:46:08,017 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-81632420 passed 2025-12-04 02:46:08,017 - DEBUG - ====Verifying policy data for ctest-vn4-81632420 in API_Server ====== 2025-12-04 02:46:08,017 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-04 02:46:08,023 - DEBUG - Requesting: http://10.0.0.27:8082/domain/77f3106b-db9e-49b5-893e-09cac574b890 2025-12-04 02:46:08,037 - DEBUG - Requesting: http://10.0.0.27:8082/project/61ab0f8e-88c5-4edc-97e4-4705590de0e2 2025-12-04 02:46:08,153 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/fcc2a6fd-fa5f-4144-855a-37df5b0fd018 2025-12-04 02:46:08,166 - DEBUG - ==>Verifying data for policy with id: 625df853-d92d-4a27-a70f-b005792ae34e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95416425', 'ctest-policy1-62921163'] 2025-12-04 02:46:08,166 - INFO - VN ctest-vn4-81632420 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-04 02:46:08,166 - DEBUG - Verifying the vn in opserver 2025-12-04 02:46:08,167 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95416425:ctest-vn4-81632420 virtual network link through opserver 10.0.0.27 2025-12-04 02:46:08,167 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-04 02:46:08,485 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-04 02:46:08,561 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95416425:ctest-vn4-81632420', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95416425:ctest-vn4-81632420?flat'} 2025-12-04 02:46:08,561 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95416425:ctest-vn4-81632420 virtual network link through opserver 10.0.0.33 2025-12-04 02:46:08,561 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-04 02:46:08,892 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-04 02:46:08,981 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95416425:ctest-vn4-81632420', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95416425:ctest-vn4-81632420?flat'} 2025-12-04 02:46:08,981 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95416425:ctest-vn4-81632420 virtual network link through opserver 10.0.0.23 2025-12-04 02:46:08,981 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-04 02:46:09,299 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-04 02:46:09,372 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95416425:ctest-vn4-81632420', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95416425:ctest-vn4-81632420?flat'} 2025-12-04 02:46:09,372 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95416425:ctest-vn4-81632420 is found in opserver 2025-12-04 02:46:09,395 - DEBUG - Do not have enough data to verify VN in agent 2025-12-04 02:46:09,406 - DEBUG - VRF ids for VN ctest-vn4-81632420: {} 2025-12-04 02:46:09,406 - DEBUG - ====Verifying data for ctest-policy1-62921163 in API_Server ====== 2025-12-04 02:46:09,406 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-04 02:46:09,412 - DEBUG - Requesting: http://10.0.0.27:8082/domain/77f3106b-db9e-49b5-893e-09cac574b890 2025-12-04 02:46:09,424 - DEBUG - Requesting: http://10.0.0.27:8082/project/61ab0f8e-88c5-4edc-97e4-4705590de0e2 2025-12-04 02:46:09,526 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/625df853-d92d-4a27-a70f-b005792ae34e 2025-12-04 02:46:09,541 - INFO - Verified policy ctest-policy1-62921163 in API Server, Result: True 2025-12-04 02:46:09,541 - INFO - Done with setup and verification, moving onto test .. 2025-12-04 02:46:09,552 - INFO - Deleting VN ctest-vn4-81632420 2025-12-04 02:46:09,756 - DEBUG - Response for deleting network () 2025-12-04 02:46:09,757 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5942f81d-f965-4c55-a8cb-65a77fc4f913 2025-12-04 02:46:09,773 - DEBUG - Response Code: 404 2025-12-04 02:46:09,774 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-04 02:46:09,782 - DEBUG - Requesting: http://10.0.0.27:8082/domain/77f3106b-db9e-49b5-893e-09cac574b890 2025-12-04 02:46:09,835 - DEBUG - Requesting: http://10.0.0.27:8082/project/61ab0f8e-88c5-4edc-97e4-4705590de0e2 2025-12-04 02:46:09,940 - INFO - Validated that VN ctest-vn4-81632420 is not found in API Server 2025-12-04 02:46:09,951 - DEBUG - VN ctest-vn4-81632420 is not present in Agent 10.0.0.22 2025-12-04 02:46:09,962 - DEBUG - VN ctest-vn4-81632420 is not present in Agent 10.0.0.130 2025-12-04 02:46:09,962 - INFO - Validated that VN ctest-vn4-81632420 is not in any agent 2025-12-04 02:46:09,999 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-81632420 info 2025-12-04 02:46:10,046 - INFO - Deleted policy ctest-policy1-62921163 2025-12-04 02:46:10,245 - DEBUG - policy ctest-policy1-62921163 is not found in API Server 2025-12-04 02:46:11,563 - DEBUG - No XMPP flaps were noticed during the test
2025-12-04 02:46:11,563 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08]
2025-12-04 02:46:11,563 - INFO - -------------------------------------------------------------------------------- 2025-12-04 02:46:12,845 - DEBUG - No XMPP flaps were noticed during the test
2025-12-04 02:46:12,845 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2025-12-04 02:46:12,845 - INFO - -------------------------------------------------------------------------------- 2025-12-04 02:46:13,625 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-95416425, ID : 61ab0f8e-88c5-4edc-97e4-4705590de0e2