2025-09-23 05:57:46,933 - INFO - Domain Default found not creating 2025-09-23 05:57:47,071 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-69893808 not found, creating it 2025-09-23 05:57:47,498 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-69893808, ID : 3d022484-090e-41fb-8f1d-de370d1440e3 2025-09-23 05:57:48,921 - INFO - ================================================================================ 2025-09-23 05:57:48,921 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-23 05:57:49,170 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with 2025-09-23 05:57:49,171 - INFO - Initial checks done. Running the testcase now 2025-09-23 05:57:49,171 - INFO - 2025-09-23 05:57:49,171 - INFO - ================================================================================ 2025-09-23 05:57:49,171 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-23 05:57:49,171 - 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-23 05:57:49,462 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with 2025-09-23 05:57:49,462 - INFO - Initial checks done. Running the testcase now 2025-09-23 05:57:49,462 - INFO - 2025-09-23 05:57:49,812 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69893808:ctest-vn4-78451180, 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-69893808:ctest-vn4-78451180, 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-69893808:ctest-vn4-78451180, 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-69893808:ctest-vn4-78451180, 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-23 05:57:50,312 - DEBUG - Response for create_network : {'network': {'id': 'e5013932-0a43-4b27-b85d-31aba567a6f7', 'name': 'ctest-vn4-78451180', 'tenant_id': '3d022484090e41fb8f1dde370d1440e3', 'project_id': '3d022484090e41fb8f1dde370d1440e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69893808', 'ctest-vn4-78451180'], 'port_security_enabled': True, 'description': ''}} 2025-09-23 05:57:50,455 - DEBUG - Response for create_subnet : {'subnet': {'id': '55396575-d309-44cc-907b-3731db3138e9', 'name': '', 'tenant_id': '3d022484090e41fb8f1dde370d1440e3', 'network_id': 'e5013932-0a43-4b27-b85d-31aba567a6f7', 'ip_version': 4, 'cidr': '133.10.136.64/26', 'allocation_pools': [{'start': '133.10.136.66', 'end': '133.10.136.126'}], 'gateway_ip': '133.10.136.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.10.136.66', 'tags': [], 'project_id': '3d022484090e41fb8f1dde370d1440e3'}} 2025-09-23 05:57:50,641 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ff2a696-27d2-46bb-ac13-436d7607f021', 'name': '', 'tenant_id': '3d022484090e41fb8f1dde370d1440e3', 'network_id': 'e5013932-0a43-4b27-b85d-31aba567a6f7', 'ip_version': 6, 'cidr': '2714:b780:986c:afb2:4387:81ea::/96', 'allocation_pools': [{'start': '2714:b780:986c:afb2:4387:81ea:0:2', 'end': '2714:b780:986c:afb2:4387:81ea:ffff:fffe'}], 'gateway_ip': '2714:b780:986c:afb2:4387:81ea:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2714:b780:986c:afb2:4387:81ea:0:2', 'tags': [], 'project_id': '3d022484090e41fb8f1dde370d1440e3'}} 2025-09-23 05:57:50,661 - INFO - Created VN ctest-vn4-78451180 2025-09-23 05:57:50,713 - DEBUG - VN ctest-vn4-78451180 UUID is e5013932-0a43-4b27-b85d-31aba567a6f7 2025-09-23 05:57:50,900 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e5013932-0a43-4b27-b85d-31aba567a6f7', 'name': 'ctest-vn4-78451180', 'tenant_id': '3d022484090e41fb8f1dde370d1440e3', 'project_id': '3d022484090e41fb8f1dde370d1440e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['55396575-d309-44cc-907b-3731db3138e9', '2ff2a696-27d2-46bb-ac13-436d7607f021'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69893808', 'ctest-vn4-78451180'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69893808', 'ctest-policy1-02573150']], 'subnet_ipam': [{'subnet_cidr': '133.10.136.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2714:b780:986c:afb2:4387:81ea::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-23 05:57:51,057 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-23 05:57:51,350 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-23 05:57:51,378 - DEBUG - Requesting: http://10.0.0.49:8082/domain/f691a285-fd0a-404c-a64a-98dbb009cbe3 2025-09-23 05:57:51,389 - DEBUG - Requesting: http://10.0.0.49:8082/project/3d022484-090e-41fb-8f1d-de370d1440e3 2025-09-23 05:57:51,459 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e5013932-0a43-4b27-b85d-31aba567a6f7 2025-09-23 05:57:51,469 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e5013932-0a43-4b27-b85d-31aba567a6f7 2025-09-23 05:57:51,477 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/63c76740-d513-46ef-a83a-a1f3a83037a3 2025-09-23 05:57:51,482 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/63c76740-d513-46ef-a83a-a1f3a83037a3 2025-09-23 05:57:51,487 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/d183974a-5d2d-4b5c-ae5e-538bc71e85ea 2025-09-23 05:57:51,492 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-23 05:57:51,492 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e5013932-0a43-4b27-b85d-31aba567a6f7 2025-09-23 05:57:51,500 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/63c76740-d513-46ef-a83a-a1f3a83037a3 2025-09-23 05:57:51,512 - INFO - Verified VN network id 9 for VN e5013932-0a43-4b27-b85d-31aba567a6f7 2025-09-23 05:57:51,512 - INFO - Verifications in API Server for VN ctest-vn4-78451180 passed 2025-09-23 05:57:51,512 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e5013932-0a43-4b27-b85d-31aba567a6f7 2025-09-23 05:57:51,520 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/63c76740-d513-46ef-a83a-a1f3a83037a3 2025-09-23 05:57:51,525 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/63c76740-d513-46ef-a83a-a1f3a83037a3 2025-09-23 05:57:51,531 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/d183974a-5d2d-4b5c-ae5e-538bc71e85ea 2025-09-23 05:57:51,541 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69893808:ctest-vn4-78451180', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69893808', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16501533396745538343', 'uuid-lslong': '13284829089097033463'}, 'enable': 'true', 'created': '2025-09-23T05:57:50', 'last-modified': '2025-09-23T05:57:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.667331'} 2025-09-23 05:57:51,546 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-23 05:57:51,546 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78451180 passed 2025-09-23 05:57:51,546 - DEBUG - ====Verifying policy data for ctest-vn4-78451180 in API_Server ====== 2025-09-23 05:57:51,546 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-23 05:57:51,550 - DEBUG - Requesting: http://10.0.0.49:8082/domain/f691a285-fd0a-404c-a64a-98dbb009cbe3 2025-09-23 05:57:51,560 - DEBUG - Requesting: http://10.0.0.49:8082/project/3d022484-090e-41fb-8f1d-de370d1440e3 2025-09-23 05:57:51,625 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e5013932-0a43-4b27-b85d-31aba567a6f7 2025-09-23 05:57:51,633 - DEBUG - ==>Verifying data for policy with id: 5f29b343-c2ec-4e7d-b76c-3ab104ea33cb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69893808', 'ctest-policy1-02573150'] 2025-09-23 05:57:51,633 - INFO - VN ctest-vn4-78451180 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-23 05:57:51,634 - DEBUG - Verifying the vn in opserver 2025-09-23 05:57:51,634 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69893808:ctest-vn4-78451180 virtual network link through opserver 10.0.0.49 2025-09-23 05:57:51,634 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-09-23 05:57:51,928 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-09-23 05:57:51,981 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69893808:ctest-vn4-78451180', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69893808:ctest-vn4-78451180?flat'} 2025-09-23 05:57:51,981 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69893808:ctest-vn4-78451180 is found in opserver 2025-09-23 05:57:51,992 - DEBUG - Do not have enough data to verify VN in agent 2025-09-23 05:57:51,997 - DEBUG - VRF ids for VN ctest-vn4-78451180: {} 2025-09-23 05:57:51,997 - DEBUG - ====Verifying data for ctest-policy1-02573150 in API_Server ====== 2025-09-23 05:57:51,997 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-23 05:57:52,002 - DEBUG - Requesting: http://10.0.0.49:8082/domain/f691a285-fd0a-404c-a64a-98dbb009cbe3 2025-09-23 05:57:52,014 - DEBUG - Requesting: http://10.0.0.49:8082/project/3d022484-090e-41fb-8f1d-de370d1440e3 2025-09-23 05:57:52,079 - DEBUG - Requesting: http://10.0.0.49:8082/network-policy/5f29b343-c2ec-4e7d-b76c-3ab104ea33cb 2025-09-23 05:57:52,088 - INFO - Verified policy ctest-policy1-02573150 in API Server, Result: True 2025-09-23 05:57:52,088 - INFO - Done with setup and verification, moving onto test .. 2025-09-23 05:57:52,095 - INFO - Deleting VN ctest-vn4-78451180 2025-09-23 05:57:52,204 - DEBUG - Response for deleting network () 2025-09-23 05:57:52,204 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/63c76740-d513-46ef-a83a-a1f3a83037a3 2025-09-23 05:57:52,209 - DEBUG - Response Code: 404 2025-09-23 05:57:52,210 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-09-23 05:57:52,214 - DEBUG - Requesting: http://10.0.0.49:8082/domain/f691a285-fd0a-404c-a64a-98dbb009cbe3 2025-09-23 05:57:52,266 - DEBUG - Requesting: http://10.0.0.49:8082/project/3d022484-090e-41fb-8f1d-de370d1440e3 2025-09-23 05:57:52,337 - INFO - Validated that VN ctest-vn4-78451180 is not found in API Server 2025-09-23 05:57:52,347 - DEBUG - VN ctest-vn4-78451180 is not present in Agent 10.0.0.49 2025-09-23 05:57:52,347 - INFO - Validated that VN ctest-vn4-78451180 is not in any agent 2025-09-23 05:57:52,360 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78451180 info 2025-09-23 05:57:52,386 - INFO - Deleted policy ctest-policy1-02573150 2025-09-23 05:57:52,545 - DEBUG - policy ctest-policy1-02573150 is not found in API Server 2025-09-23 05:57:52,798 - DEBUG - No XMPP flaps were noticed during the test 2025-09-23 05:57:52,798 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-09-23 05:57:52,798 - INFO - -------------------------------------------------------------------------------- 2025-09-23 05:57:53,087 - DEBUG - No XMPP flaps were noticed during the test 2025-09-23 05:57:53,087 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-09-23 05:57:53,087 - INFO - -------------------------------------------------------------------------------- 2025-09-23 05:57:53,724 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-69893808, ID : 3d022484-090e-41fb-8f1d-de370d1440e3