2025-09-13 16:57:39,725 - INFO - Domain Default found not creating 2025-09-13 16:57:39,927 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-68213663 not found, creating it 2025-09-13 16:57:40,393 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-68213663, ID : 6bfa29f1-e9ca-4ce7-be1a-7a11874ad2e2 2025-09-13 16:57:41,904 - INFO - ================================================================================ 2025-09-13 16:57:41,905 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-13 16:57:42,160 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-13 16:57:42,160 - INFO - Initial checks done. Running the testcase now 2025-09-13 16:57:42,160 - INFO - 2025-09-13 16:57:42,160 - INFO - ================================================================================ 2025-09-13 16:57:42,160 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-13 16:57:42,160 - 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-13 16:57:42,449 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-13 16:57:42,449 - INFO - Initial checks done. Running the testcase now 2025-09-13 16:57:42,449 - INFO - 2025-09-13 16:57:42,798 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68213663:ctest-vn4-22021968, 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-68213663:ctest-vn4-22021968, 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-68213663:ctest-vn4-22021968, 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-68213663:ctest-vn4-22021968, 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-13 16:57:43,342 - DEBUG - Response for create_network : {'network': {'id': 'aeab56bb-6c36-4484-924f-0d94ac75aa50', 'name': 'ctest-vn4-22021968', 'tenant_id': '6bfa29f1e9ca4ce7be1a7a11874ad2e2', 'project_id': '6bfa29f1e9ca4ce7be1a7a11874ad2e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68213663', 'ctest-vn4-22021968'], 'port_security_enabled': True, 'description': ''}} 2025-09-13 16:57:43,585 - DEBUG - Response for create_subnet : {'subnet': {'id': '9de45149-d0ce-49e6-ba4b-884b94088ba5', 'name': '', 'tenant_id': '6bfa29f1e9ca4ce7be1a7a11874ad2e2', 'network_id': 'aeab56bb-6c36-4484-924f-0d94ac75aa50', 'ip_version': 4, 'cidr': '190.252.215.0/26', 'allocation_pools': [{'start': '190.252.215.2', 'end': '190.252.215.62'}], 'gateway_ip': '190.252.215.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.252.215.2', 'tags': [], 'project_id': '6bfa29f1e9ca4ce7be1a7a11874ad2e2'}} 2025-09-13 16:57:43,825 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c8828b0-a39a-4fe4-9e72-e964ff20829c', 'name': '', 'tenant_id': '6bfa29f1e9ca4ce7be1a7a11874ad2e2', 'network_id': 'aeab56bb-6c36-4484-924f-0d94ac75aa50', 'ip_version': 6, 'cidr': '240b:a2a2:a709:e88e:60af:8307::/96', 'allocation_pools': [{'start': '240b:a2a2:a709:e88e:60af:8307:0:2', 'end': '240b:a2a2:a709:e88e:60af:8307:ffff:fffe'}], 'gateway_ip': '240b:a2a2:a709:e88e:60af:8307:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '240b:a2a2:a709:e88e:60af:8307:0:2', 'tags': [], 'project_id': '6bfa29f1e9ca4ce7be1a7a11874ad2e2'}} 2025-09-13 16:57:43,849 - INFO - Created VN ctest-vn4-22021968 2025-09-13 16:57:43,903 - DEBUG - VN ctest-vn4-22021968 UUID is aeab56bb-6c36-4484-924f-0d94ac75aa50 2025-09-13 16:57:44,118 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aeab56bb-6c36-4484-924f-0d94ac75aa50', 'name': 'ctest-vn4-22021968', 'tenant_id': '6bfa29f1e9ca4ce7be1a7a11874ad2e2', 'project_id': '6bfa29f1e9ca4ce7be1a7a11874ad2e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9de45149-d0ce-49e6-ba4b-884b94088ba5', '1c8828b0-a39a-4fe4-9e72-e964ff20829c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68213663', 'ctest-vn4-22021968'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68213663', 'ctest-policy1-26835725']], 'subnet_ipam': [{'subnet_cidr': '190.252.215.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '240b:a2a2:a709:e88e:60af:8307::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-13 16:57:44,291 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-13 16:57:44,598 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-13 16:57:44,628 - DEBUG - Requesting: http://10.0.0.254:8082/domain/02c7b8f7-aa1a-4f7e-970a-3488eb6611ee 2025-09-13 16:57:44,640 - DEBUG - Requesting: http://10.0.0.254:8082/project/6bfa29f1-e9ca-4ce7-be1a-7a11874ad2e2 2025-09-13 16:57:44,711 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aeab56bb-6c36-4484-924f-0d94ac75aa50 2025-09-13 16:57:44,722 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aeab56bb-6c36-4484-924f-0d94ac75aa50 2025-09-13 16:57:44,731 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/159e009c-544c-4993-ba1b-b27516ba264b 2025-09-13 16:57:44,738 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/159e009c-544c-4993-ba1b-b27516ba264b 2025-09-13 16:57:44,744 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dc30db4d-54eb-45fb-88b9-f125c3d57ece 2025-09-13 16:57:44,750 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-13 16:57:44,750 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aeab56bb-6c36-4484-924f-0d94ac75aa50 2025-09-13 16:57:44,761 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/159e009c-544c-4993-ba1b-b27516ba264b 2025-09-13 16:57:44,778 - INFO - Verified VN network id 11 for VN aeab56bb-6c36-4484-924f-0d94ac75aa50 2025-09-13 16:57:44,778 - INFO - Verifications in API Server for VN ctest-vn4-22021968 passed 2025-09-13 16:57:44,778 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aeab56bb-6c36-4484-924f-0d94ac75aa50 2025-09-13 16:57:44,787 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/159e009c-544c-4993-ba1b-b27516ba264b 2025-09-13 16:57:44,793 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/159e009c-544c-4993-ba1b-b27516ba264b 2025-09-13 16:57:44,799 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dc30db4d-54eb-45fb-88b9-f125c3d57ece 2025-09-13 16:57:44,811 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68213663:ctest-vn4-22021968', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68213663', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12586248946591351940', 'uuid-lslong': '10542660184897333840'}, 'enable': 'true', 'created': '2025-09-13T16:57:43', 'last-modified': '2025-09-13T16:57:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722114'} 2025-09-13 16:57:44,817 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-13 16:57:44,817 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-22021968 passed 2025-09-13 16:57:44,817 - DEBUG - ====Verifying policy data for ctest-vn4-22021968 in API_Server ====== 2025-09-13 16:57:44,817 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-13 16:57:44,822 - DEBUG - Requesting: http://10.0.0.254:8082/domain/02c7b8f7-aa1a-4f7e-970a-3488eb6611ee 2025-09-13 16:57:44,832 - DEBUG - Requesting: http://10.0.0.254:8082/project/6bfa29f1-e9ca-4ce7-be1a-7a11874ad2e2 2025-09-13 16:57:44,901 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/aeab56bb-6c36-4484-924f-0d94ac75aa50 2025-09-13 16:57:44,909 - DEBUG - ==>Verifying data for policy with id: 50560ebb-7754-4fb4-91ab-d7c9606f701c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68213663', 'ctest-policy1-26835725'] 2025-09-13 16:57:44,909 - INFO - VN ctest-vn4-22021968 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-13 16:57:44,910 - DEBUG - Verifying the vn in opserver 2025-09-13 16:57:44,910 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68213663:ctest-vn4-22021968 virtual network link through opserver 10.0.0.254 2025-09-13 16:57:44,910 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-13 16:57:45,222 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-13 16:57:45,284 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68213663:ctest-vn4-22021968', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68213663:ctest-vn4-22021968?flat'} 2025-09-13 16:57:45,284 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68213663:ctest-vn4-22021968 is found in opserver 2025-09-13 16:57:45,293 - DEBUG - Do not have enough data to verify VN in agent 2025-09-13 16:57:45,298 - DEBUG - VRF ids for VN ctest-vn4-22021968: {} 2025-09-13 16:57:45,298 - DEBUG - ====Verifying data for ctest-policy1-26835725 in API_Server ====== 2025-09-13 16:57:45,298 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-13 16:57:45,304 - DEBUG - Requesting: http://10.0.0.254:8082/domain/02c7b8f7-aa1a-4f7e-970a-3488eb6611ee 2025-09-13 16:57:45,314 - DEBUG - Requesting: http://10.0.0.254:8082/project/6bfa29f1-e9ca-4ce7-be1a-7a11874ad2e2 2025-09-13 16:57:45,390 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/50560ebb-7754-4fb4-91ab-d7c9606f701c 2025-09-13 16:57:45,400 - INFO - Verified policy ctest-policy1-26835725 in API Server, Result: True 2025-09-13 16:57:45,400 - INFO - Done with setup and verification, moving onto test .. 2025-09-13 16:57:45,408 - INFO - Deleting VN ctest-vn4-22021968 2025-09-13 16:57:45,563 - DEBUG - Response for deleting network () 2025-09-13 16:57:45,564 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/159e009c-544c-4993-ba1b-b27516ba264b 2025-09-13 16:57:45,569 - DEBUG - Response Code: 404 2025-09-13 16:57:45,569 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-13 16:57:45,574 - DEBUG - Requesting: http://10.0.0.254:8082/domain/02c7b8f7-aa1a-4f7e-970a-3488eb6611ee 2025-09-13 16:57:45,628 - DEBUG - Requesting: http://10.0.0.254:8082/project/6bfa29f1-e9ca-4ce7-be1a-7a11874ad2e2 2025-09-13 16:57:45,697 - INFO - Validated that VN ctest-vn4-22021968 is not found in API Server 2025-09-13 16:57:45,706 - DEBUG - VN ctest-vn4-22021968 is not present in Agent 10.0.0.254 2025-09-13 16:57:45,706 - INFO - Validated that VN ctest-vn4-22021968 is not in any agent 2025-09-13 16:57:45,718 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-22021968 info 2025-09-13 16:57:45,744 - INFO - Deleted policy ctest-policy1-26835725 2025-09-13 16:57:45,915 - DEBUG - policy ctest-policy1-26835725 is not found in API Server 2025-09-13 16:57:46,180 - DEBUG - No XMPP flaps were noticed during the test