2025-09-18 02:20:01,311 - INFO - Domain Default found not creating 2025-09-18 02:20:01,543 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95997479 not found, creating it 2025-09-18 02:20:02,150 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95997479, ID : c764da99-46e5-4c7a-ab9e-e4a153d6427c 2025-09-18 02:20:03,864 - INFO - ================================================================================ 2025-09-18 02:20:03,864 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-18 02:20:05,158 - DEBUG - Nothing to compare xmpp stats {'10.0.0.61': {'10.20.0.17': '0', '10.20.0.25': '0'}, '10.0.0.27': {'10.20.0.17': '0', '10.20.0.25': '0'}} with 2025-09-18 02:20:05,158 - INFO - Initial checks done. Running the testcase now 2025-09-18 02:20:05,159 - INFO - 2025-09-18 02:20:05,159 - INFO - ================================================================================ 2025-09-18 02:20:05,159 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-18 02:20:05,159 - 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-18 02:20:06,430 - DEBUG - Nothing to compare xmpp stats {'10.0.0.61': {'10.20.0.17': '0', '10.20.0.25': '0'}, '10.0.0.27': {'10.20.0.17': '0', '10.20.0.25': '0'}} with 2025-09-18 02:20:06,431 - INFO - Initial checks done. Running the testcase now 2025-09-18 02:20:06,431 - INFO - 2025-09-18 02:20:06,837 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95997479:ctest-vn4-33940298, 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-95997479:ctest-vn4-33940298, 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-95997479:ctest-vn4-33940298, 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-95997479:ctest-vn4-33940298, 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-18 02:20:07,448 - DEBUG - Response for create_network : {'network': {'id': '77b23d01-8ad6-453e-a2dd-13e6ae852997', 'name': 'ctest-vn4-33940298', 'tenant_id': 'c764da9946e54c7aab9ee4a153d6427c', 'project_id': 'c764da9946e54c7aab9ee4a153d6427c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95997479', 'ctest-vn4-33940298'], 'port_security_enabled': True, 'description': ''}} 2025-09-18 02:20:07,758 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e4c5e125-35e0-4f15-815c-b68afc56b107', 'name': '', 'tenant_id': 'c764da9946e54c7aab9ee4a153d6427c', 'network_id': '77b23d01-8ad6-453e-a2dd-13e6ae852997', 'ip_version': 4, 'cidr': '204.230.121.0/26', 'allocation_pools': [{'start': '204.230.121.2', 'end': '204.230.121.62'}], 'gateway_ip': '204.230.121.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.230.121.2', 'tags': [], 'project_id': 'c764da9946e54c7aab9ee4a153d6427c'}} 2025-09-18 02:20:07,957 - DEBUG - Response for create_subnet : {'subnet': {'id': '6deeaf2b-5f54-4a9c-a6e6-98863e5d6de8', 'name': '', 'tenant_id': 'c764da9946e54c7aab9ee4a153d6427c', 'network_id': '77b23d01-8ad6-453e-a2dd-13e6ae852997', 'ip_version': 6, 'cidr': '3c36:bbe3:64df:c1ee:164f:d56b::/96', 'allocation_pools': [{'start': '3c36:bbe3:64df:c1ee:164f:d56b:0:2', 'end': '3c36:bbe3:64df:c1ee:164f:d56b:ffff:fffe'}], 'gateway_ip': '3c36:bbe3:64df:c1ee:164f:d56b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c36:bbe3:64df:c1ee:164f:d56b:0:2', 'tags': [], 'project_id': 'c764da9946e54c7aab9ee4a153d6427c'}} 2025-09-18 02:20:07,984 - INFO - Created VN ctest-vn4-33940298 2025-09-18 02:20:07,997 - DEBUG - VN ctest-vn4-33940298 UUID is 77b23d01-8ad6-453e-a2dd-13e6ae852997 2025-09-18 02:20:08,231 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '77b23d01-8ad6-453e-a2dd-13e6ae852997', 'name': 'ctest-vn4-33940298', 'tenant_id': 'c764da9946e54c7aab9ee4a153d6427c', 'project_id': 'c764da9946e54c7aab9ee4a153d6427c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e4c5e125-35e0-4f15-815c-b68afc56b107', '6deeaf2b-5f54-4a9c-a6e6-98863e5d6de8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95997479', 'ctest-vn4-33940298'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95997479', 'ctest-policy1-28214671']], 'subnet_ipam': [{'subnet_cidr': '204.230.121.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c36:bbe3:64df:c1ee:164f:d56b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-18 02:20:08,338 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-09-18 02:20:08,695 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-09-18 02:20:08,729 - DEBUG - Requesting: http://10.0.0.56:8082/domain/245899c5-19ba-4930-be6a-859f116860e1 2025-09-18 02:20:08,747 - DEBUG - Requesting: http://10.0.0.56:8082/project/c764da99-46e5-4c7a-ab9e-e4a153d6427c 2025-09-18 02:20:08,865 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/77b23d01-8ad6-453e-a2dd-13e6ae852997 2025-09-18 02:20:08,879 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/77b23d01-8ad6-453e-a2dd-13e6ae852997 2025-09-18 02:20:08,890 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/5b00f420-4a30-4d5b-ae45-54881264525f 2025-09-18 02:20:08,899 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/5b00f420-4a30-4d5b-ae45-54881264525f 2025-09-18 02:20:08,908 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/d1fbd6b7-c881-421c-a6c4-efe9ca55e097 2025-09-18 02:20:08,919 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-18 02:20:08,919 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/77b23d01-8ad6-453e-a2dd-13e6ae852997 2025-09-18 02:20:08,933 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/5b00f420-4a30-4d5b-ae45-54881264525f 2025-09-18 02:20:08,953 - INFO - Verified VN network id 12 for VN 77b23d01-8ad6-453e-a2dd-13e6ae852997 2025-09-18 02:20:08,953 - INFO - Verifications in API Server for VN ctest-vn4-33940298 passed 2025-09-18 02:20:08,953 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/77b23d01-8ad6-453e-a2dd-13e6ae852997 2025-09-18 02:20:08,966 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/5b00f420-4a30-4d5b-ae45-54881264525f 2025-09-18 02:20:08,977 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/5b00f420-4a30-4d5b-ae45-54881264525f 2025-09-18 02:20:08,986 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/d1fbd6b7-c881-421c-a6c4-efe9ca55e097 2025-09-18 02:20:09,001 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95997479:ctest-vn4-33940298', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95997479', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8625023313201481022', 'uuid-lslong': '11735558085488748951'}, 'enable': 'true', 'created': '2025-09-18T02:20:07', 'last-modified': '2025-09-18T02:20:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.828853'} 2025-09-18 02:20:09,008 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-18 02:20:09,014 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95997479:ctest-vn4-33940298', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95997479', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8625023313201481022', 'uuid-lslong': '11735558085488748951'}, 'enable': 'true', 'created': '2025-09-18T02:20:07', 'last-modified': '2025-09-18T02:20:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.835374'} 2025-09-18 02:20:09,020 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-18 02:20:09,026 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95997479:ctest-vn4-33940298', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95997479', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8625023313201481022', 'uuid-lslong': '11735558085488748951'}, 'enable': 'true', 'created': '2025-09-18T02:20:07', 'last-modified': '2025-09-18T02:20:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.855296'} 2025-09-18 02:20:09,034 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-18 02:20:09,034 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-33940298 passed 2025-09-18 02:20:09,034 - DEBUG - ====Verifying policy data for ctest-vn4-33940298 in API_Server ====== 2025-09-18 02:20:09,034 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-09-18 02:20:09,042 - DEBUG - Requesting: http://10.0.0.56:8082/domain/245899c5-19ba-4930-be6a-859f116860e1 2025-09-18 02:20:09,055 - DEBUG - Requesting: http://10.0.0.56:8082/project/c764da99-46e5-4c7a-ab9e-e4a153d6427c 2025-09-18 02:20:09,175 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/77b23d01-8ad6-453e-a2dd-13e6ae852997 2025-09-18 02:20:09,191 - DEBUG - ==>Verifying data for policy with id: c85d47a0-c360-44c8-a518-bc4435da5b73, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95997479', 'ctest-policy1-28214671'] 2025-09-18 02:20:09,191 - INFO - VN ctest-vn4-33940298 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-18 02:20:09,191 - DEBUG - Verifying the vn in opserver 2025-09-18 02:20:09,191 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95997479:ctest-vn4-33940298 virtual network link through opserver 10.0.0.56 2025-09-18 02:20:09,191 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-09-18 02:20:09,539 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-09-18 02:20:09,606 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95997479:ctest-vn4-33940298', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95997479:ctest-vn4-33940298?flat'} 2025-09-18 02:20:09,606 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95997479:ctest-vn4-33940298 virtual network link through opserver 10.0.0.22 2025-09-18 02:20:09,606 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-18 02:20:09,951 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-18 02:20:10,016 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95997479:ctest-vn4-33940298', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95997479:ctest-vn4-33940298?flat'} 2025-09-18 02:20:10,016 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95997479:ctest-vn4-33940298 virtual network link through opserver 10.0.0.41 2025-09-18 02:20:10,016 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-09-18 02:20:10,366 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-09-18 02:20:10,439 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95997479:ctest-vn4-33940298', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95997479:ctest-vn4-33940298?flat'} 2025-09-18 02:20:10,439 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95997479:ctest-vn4-33940298 is found in opserver 2025-09-18 02:20:10,462 - DEBUG - Do not have enough data to verify VN in agent 2025-09-18 02:20:10,472 - DEBUG - VRF ids for VN ctest-vn4-33940298: {} 2025-09-18 02:20:10,472 - DEBUG - ====Verifying data for ctest-policy1-28214671 in API_Server ====== 2025-09-18 02:20:10,472 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-09-18 02:20:10,479 - DEBUG - Requesting: http://10.0.0.56:8082/domain/245899c5-19ba-4930-be6a-859f116860e1 2025-09-18 02:20:10,492 - DEBUG - Requesting: http://10.0.0.56:8082/project/c764da99-46e5-4c7a-ab9e-e4a153d6427c 2025-09-18 02:20:10,589 - DEBUG - Requesting: http://10.0.0.56:8082/network-policy/c85d47a0-c360-44c8-a518-bc4435da5b73 2025-09-18 02:20:10,602 - INFO - Verified policy ctest-policy1-28214671 in API Server, Result: True 2025-09-18 02:20:10,602 - INFO - Done with setup and verification, moving onto test .. 2025-09-18 02:20:10,617 - INFO - Deleting VN ctest-vn4-33940298 2025-09-18 02:20:10,889 - DEBUG - Response for deleting network () 2025-09-18 02:20:10,889 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/5b00f420-4a30-4d5b-ae45-54881264525f 2025-09-18 02:20:10,898 - DEBUG - Response Code: 404 2025-09-18 02:20:10,899 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-09-18 02:20:10,906 - DEBUG - Requesting: http://10.0.0.56:8082/domain/245899c5-19ba-4930-be6a-859f116860e1 2025-09-18 02:20:10,918 - DEBUG - Requesting: http://10.0.0.56:8082/project/c764da99-46e5-4c7a-ab9e-e4a153d6427c 2025-09-18 02:20:11,013 - INFO - Validated that VN ctest-vn4-33940298 is not found in API Server 2025-09-18 02:20:11,026 - DEBUG - VN ctest-vn4-33940298 is not present in Agent 10.0.0.61 2025-09-18 02:20:11,036 - DEBUG - VN ctest-vn4-33940298 is not present in Agent 10.0.0.27 2025-09-18 02:20:11,036 - INFO - Validated that VN ctest-vn4-33940298 is not in any agent 2025-09-18 02:20:11,068 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-33940298 info 2025-09-18 02:20:11,106 - INFO - Deleted policy ctest-policy1-28214671 2025-09-18 02:20:11,293 - DEBUG - policy ctest-policy1-28214671 is not found in API Server 2025-09-18 02:20:12,554 - DEBUG - No XMPP flaps were noticed during the test
2025-09-18 02:20:12,554 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2025-09-18 02:20:12,554 - INFO - -------------------------------------------------------------------------------- 2025-09-18 02:20:13,836 - DEBUG - No XMPP flaps were noticed during the test
2025-09-18 02:20:13,836 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2025-09-18 02:20:13,836 - INFO - -------------------------------------------------------------------------------- 2025-09-18 02:20:14,629 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-95997479, ID : c764da99-46e5-4c7a-ab9e-e4a153d6427c