2025-09-24 08:03:26,290 - INFO - Domain Default found not creating 2025-09-24 08:03:26,413 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-90268035 not found, creating it 2025-09-24 08:03:26,842 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-90268035, ID : 187d4e67-5970-407d-aa3b-36d0ed4116e0 2025-09-24 08:03:28,154 - INFO - ================================================================================ 2025-09-24 08:03:28,154 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-24 08:03:28,410 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with 2025-09-24 08:03:28,411 - INFO - Initial checks done. Running the testcase now 2025-09-24 08:03:28,411 - INFO - 2025-09-24 08:03:28,411 - INFO - ================================================================================ 2025-09-24 08:03:28,411 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-24 08:03:28,411 - 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-24 08:03:28,695 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with 2025-09-24 08:03:28,695 - INFO - Initial checks done. Running the testcase now 2025-09-24 08:03:28,695 - INFO - 2025-09-24 08:03:29,032 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90268035:ctest-vn4-17206019, 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-90268035:ctest-vn4-17206019, 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-90268035:ctest-vn4-17206019, 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-90268035:ctest-vn4-17206019, 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-24 08:03:29,509 - DEBUG - Response for create_network : {'network': {'id': '73330276-422f-4b86-bb1f-e67ed6f294be', 'name': 'ctest-vn4-17206019', 'tenant_id': '187d4e675970407daa3b36d0ed4116e0', 'project_id': '187d4e675970407daa3b36d0ed4116e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90268035', 'ctest-vn4-17206019'], 'port_security_enabled': True, 'description': ''}} 2025-09-24 08:03:29,653 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dcd81e20-0843-473d-977d-a80d178d818b', 'name': '', 'tenant_id': '187d4e675970407daa3b36d0ed4116e0', 'network_id': '73330276-422f-4b86-bb1f-e67ed6f294be', 'ip_version': 4, 'cidr': '129.69.107.0/26', 'allocation_pools': [{'start': '129.69.107.2', 'end': '129.69.107.62'}], 'gateway_ip': '129.69.107.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.69.107.2', 'tags': [], 'project_id': '187d4e675970407daa3b36d0ed4116e0'}} 2025-09-24 08:03:29,848 - DEBUG - Response for create_subnet : {'subnet': {'id': '58f5b98e-f438-4b19-95e4-8fb520dd4f1c', 'name': '', 'tenant_id': '187d4e675970407daa3b36d0ed4116e0', 'network_id': '73330276-422f-4b86-bb1f-e67ed6f294be', 'ip_version': 6, 'cidr': '2b89:3417:b41f:f7d8:36af:a3b1::/96', 'allocation_pools': [{'start': '2b89:3417:b41f:f7d8:36af:a3b1:0:2', 'end': '2b89:3417:b41f:f7d8:36af:a3b1:ffff:fffe'}], 'gateway_ip': '2b89:3417:b41f:f7d8:36af:a3b1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b89:3417:b41f:f7d8:36af:a3b1:0:2', 'tags': [], 'project_id': '187d4e675970407daa3b36d0ed4116e0'}} 2025-09-24 08:03:29,865 - INFO - Created VN ctest-vn4-17206019 2025-09-24 08:03:29,914 - DEBUG - VN ctest-vn4-17206019 UUID is 73330276-422f-4b86-bb1f-e67ed6f294be 2025-09-24 08:03:30,145 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '73330276-422f-4b86-bb1f-e67ed6f294be', 'name': 'ctest-vn4-17206019', 'tenant_id': '187d4e675970407daa3b36d0ed4116e0', 'project_id': '187d4e675970407daa3b36d0ed4116e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dcd81e20-0843-473d-977d-a80d178d818b', '58f5b98e-f438-4b19-95e4-8fb520dd4f1c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90268035', 'ctest-vn4-17206019'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90268035', 'ctest-policy1-64122903']], 'subnet_ipam': [{'subnet_cidr': '129.69.107.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b89:3417:b41f:f7d8:36af:a3b1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-24 08:03:30,298 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-24 08:03:30,587 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-24 08:03:30,610 - DEBUG - Requesting: http://10.0.0.57:8082/domain/0a4b00d9-e494-4d54-aa67-6c8825090cdd 2025-09-24 08:03:30,620 - DEBUG - Requesting: http://10.0.0.57:8082/project/187d4e67-5970-407d-aa3b-36d0ed4116e0 2025-09-24 08:03:30,687 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/73330276-422f-4b86-bb1f-e67ed6f294be 2025-09-24 08:03:30,697 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/73330276-422f-4b86-bb1f-e67ed6f294be 2025-09-24 08:03:30,705 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/aef91b77-c6e1-4783-a96a-e6e7f9ff14c9 2025-09-24 08:03:30,710 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/aef91b77-c6e1-4783-a96a-e6e7f9ff14c9 2025-09-24 08:03:30,715 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/26892e23-c4ea-43b7-929d-e5149bd67321 2025-09-24 08:03:30,720 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-24 08:03:30,720 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/73330276-422f-4b86-bb1f-e67ed6f294be 2025-09-24 08:03:30,727 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/aef91b77-c6e1-4783-a96a-e6e7f9ff14c9 2025-09-24 08:03:30,738 - INFO - Verified VN network id 11 for VN 73330276-422f-4b86-bb1f-e67ed6f294be 2025-09-24 08:03:30,738 - INFO - Verifications in API Server for VN ctest-vn4-17206019 passed 2025-09-24 08:03:30,738 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/73330276-422f-4b86-bb1f-e67ed6f294be 2025-09-24 08:03:30,746 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/aef91b77-c6e1-4783-a96a-e6e7f9ff14c9 2025-09-24 08:03:30,751 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/aef91b77-c6e1-4783-a96a-e6e7f9ff14c9 2025-09-24 08:03:30,756 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/26892e23-c4ea-43b7-929d-e5149bd67321 2025-09-24 08:03:30,766 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90268035:ctest-vn4-17206019', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-90268035', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8300981245113748358', 'uuid-lslong': '13483749241817044158'}, 'enable': 'true', 'created': '2025-09-24T08:03:29', 'last-modified': '2025-09-24T08:03:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.643163'} 2025-09-24 08:03:30,771 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-24 08:03:30,771 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-17206019 passed 2025-09-24 08:03:30,771 - DEBUG - ====Verifying policy data for ctest-vn4-17206019 in API_Server ====== 2025-09-24 08:03:30,771 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-24 08:03:30,776 - DEBUG - Requesting: http://10.0.0.57:8082/domain/0a4b00d9-e494-4d54-aa67-6c8825090cdd 2025-09-24 08:03:30,785 - DEBUG - Requesting: http://10.0.0.57:8082/project/187d4e67-5970-407d-aa3b-36d0ed4116e0 2025-09-24 08:03:30,851 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/73330276-422f-4b86-bb1f-e67ed6f294be 2025-09-24 08:03:30,859 - DEBUG - ==>Verifying data for policy with id: c5126da6-03e2-4dbd-8f6a-2027d0ecdfb3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90268035', 'ctest-policy1-64122903'] 2025-09-24 08:03:30,859 - INFO - VN ctest-vn4-17206019 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-24 08:03:30,859 - DEBUG - Verifying the vn in opserver 2025-09-24 08:03:30,859 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90268035:ctest-vn4-17206019 virtual network link through opserver 10.0.0.57 2025-09-24 08:03:30,859 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-09-24 08:03:31,149 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-09-24 08:03:31,198 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90268035:ctest-vn4-17206019', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90268035:ctest-vn4-17206019?flat'} 2025-09-24 08:03:31,198 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90268035:ctest-vn4-17206019 is found in opserver 2025-09-24 08:03:31,207 - DEBUG - Do not have enough data to verify VN in agent 2025-09-24 08:03:31,211 - DEBUG - VRF ids for VN ctest-vn4-17206019: {} 2025-09-24 08:03:31,211 - DEBUG - ====Verifying data for ctest-policy1-64122903 in API_Server ====== 2025-09-24 08:03:31,211 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-24 08:03:31,216 - DEBUG - Requesting: http://10.0.0.57:8082/domain/0a4b00d9-e494-4d54-aa67-6c8825090cdd 2025-09-24 08:03:31,225 - DEBUG - Requesting: http://10.0.0.57:8082/project/187d4e67-5970-407d-aa3b-36d0ed4116e0 2025-09-24 08:03:31,290 - DEBUG - Requesting: http://10.0.0.57:8082/network-policy/c5126da6-03e2-4dbd-8f6a-2027d0ecdfb3 2025-09-24 08:03:31,298 - INFO - Verified policy ctest-policy1-64122903 in API Server, Result: True 2025-09-24 08:03:31,298 - INFO - Done with setup and verification, moving onto test .. 2025-09-24 08:03:31,304 - INFO - Deleting VN ctest-vn4-17206019 2025-09-24 08:03:31,396 - DEBUG - Response for deleting network () 2025-09-24 08:03:31,397 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/aef91b77-c6e1-4783-a96a-e6e7f9ff14c9 2025-09-24 08:03:31,400 - DEBUG - Response Code: 404 2025-09-24 08:03:31,400 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-24 08:03:31,404 - DEBUG - Requesting: http://10.0.0.57:8082/domain/0a4b00d9-e494-4d54-aa67-6c8825090cdd 2025-09-24 08:03:31,458 - DEBUG - Requesting: http://10.0.0.57:8082/project/187d4e67-5970-407d-aa3b-36d0ed4116e0 2025-09-24 08:03:31,526 - INFO - Validated that VN ctest-vn4-17206019 is not found in API Server 2025-09-24 08:03:31,535 - DEBUG - VN ctest-vn4-17206019 is not present in Agent 10.0.0.57 2025-09-24 08:03:31,535 - INFO - Validated that VN ctest-vn4-17206019 is not in any agent 2025-09-24 08:03:31,546 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-17206019 info 2025-09-24 08:03:31,563 - INFO - Deleted policy ctest-policy1-64122903 2025-09-24 08:03:31,722 - DEBUG - policy ctest-policy1-64122903 is not found in API Server 2025-09-24 08:03:31,975 - DEBUG - No XMPP flaps were noticed during the test
2025-09-24 08:03:31,975 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-09-24 08:03:31,975 - INFO - -------------------------------------------------------------------------------- 2025-09-24 08:03:32,267 - DEBUG - No XMPP flaps were noticed during the test
2025-09-24 08:03:32,267 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-24 08:03:32,267 - INFO - -------------------------------------------------------------------------------- 2025-09-24 08:03:32,906 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-90268035, ID : 187d4e67-5970-407d-aa3b-36d0ed4116e0