2025-10-10 12:07:47,616 - INFO - Domain Default found not creating 2025-10-10 12:07:47,816 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-49833467 not found, creating it 2025-10-10 12:07:48,323 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-49833467, ID : effaf623-bbdb-4543-a9bd-f70bf10cc9fb 2025-10-10 12:07:49,941 - INFO - ================================================================================ 2025-10-10 12:07:49,941 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-10 12:07:50,071 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with 2025-10-10 12:07:50,072 - INFO - Initial checks done. Running the testcase now 2025-10-10 12:07:50,072 - INFO - 2025-10-10 12:07:50,072 - INFO - ================================================================================ 2025-10-10 12:07:50,072 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-10 12:07:50,072 - 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-10-10 12:07:50,239 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with 2025-10-10 12:07:50,239 - INFO - Initial checks done. Running the testcase now 2025-10-10 12:07:50,239 - INFO - 2025-10-10 12:07:50,623 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49833467:ctest-vn4-88014067, 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-49833467:ctest-vn4-88014067, 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-49833467:ctest-vn4-88014067, 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-49833467:ctest-vn4-88014067, 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-10-10 12:07:51,200 - DEBUG - Response for create_network : {'network': {'id': '781a37f3-0f11-4301-b0c5-e8b680006a8a', 'name': 'ctest-vn4-88014067', 'tenant_id': 'effaf623bbdb4543a9bdf70bf10cc9fb', 'project_id': 'effaf623bbdb4543a9bdf70bf10cc9fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49833467', 'ctest-vn4-88014067'], 'port_security_enabled': True, 'description': ''}} 2025-10-10 12:07:51,384 - DEBUG - Response for create_subnet : {'subnet': {'id': '1a3b0f0e-bcb7-4c1f-80a8-64ef0fa216f1', 'name': '', 'tenant_id': 'effaf623bbdb4543a9bdf70bf10cc9fb', 'network_id': '781a37f3-0f11-4301-b0c5-e8b680006a8a', 'ip_version': 4, 'cidr': '50.140.27.192/26', 'allocation_pools': [{'start': '50.140.27.194', 'end': '50.140.27.254'}], 'gateway_ip': '50.140.27.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.140.27.194', 'tags': [], 'project_id': 'effaf623bbdb4543a9bdf70bf10cc9fb'}} 2025-10-10 12:07:51,589 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1c805c2-a61f-44ae-a880-dcd0ca2a1c07', 'name': '', 'tenant_id': 'effaf623bbdb4543a9bdf70bf10cc9fb', 'network_id': '781a37f3-0f11-4301-b0c5-e8b680006a8a', 'ip_version': 6, 'cidr': '26ca:e774:9f3b:fa92:1bea:1bbc::/96', 'allocation_pools': [{'start': '26ca:e774:9f3b:fa92:1bea:1bbc:0:2', 'end': '26ca:e774:9f3b:fa92:1bea:1bbc:ffff:fffe'}], 'gateway_ip': '26ca:e774:9f3b:fa92:1bea:1bbc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26ca:e774:9f3b:fa92:1bea:1bbc:0:2', 'tags': [], 'project_id': 'effaf623bbdb4543a9bdf70bf10cc9fb'}} 2025-10-10 12:07:51,616 - INFO - Created VN ctest-vn4-88014067 2025-10-10 12:07:51,671 - DEBUG - VN ctest-vn4-88014067 UUID is 781a37f3-0f11-4301-b0c5-e8b680006a8a 2025-10-10 12:07:51,918 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '781a37f3-0f11-4301-b0c5-e8b680006a8a', 'name': 'ctest-vn4-88014067', 'tenant_id': 'effaf623bbdb4543a9bdf70bf10cc9fb', 'project_id': 'effaf623bbdb4543a9bdf70bf10cc9fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1a3b0f0e-bcb7-4c1f-80a8-64ef0fa216f1', 'e1c805c2-a61f-44ae-a880-dcd0ca2a1c07'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49833467', 'ctest-vn4-88014067'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49833467', 'ctest-policy1-84434703']], 'subnet_ipam': [{'subnet_cidr': '50.140.27.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '26ca:e774:9f3b:fa92:1bea:1bbc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-10 12:07:52,095 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-10 12:07:52,418 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-10 12:07:52,460 - DEBUG - Requesting: http://10.0.0.27:8082/domain/9aaeb56d-85ca-447c-89d9-59b0c8370332 2025-10-10 12:07:52,476 - DEBUG - Requesting: http://10.0.0.27:8082/project/effaf623-bbdb-4543-a9bd-f70bf10cc9fb 2025-10-10 12:07:52,557 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/781a37f3-0f11-4301-b0c5-e8b680006a8a 2025-10-10 12:07:52,572 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/781a37f3-0f11-4301-b0c5-e8b680006a8a 2025-10-10 12:07:52,586 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6edc3e00-a0ff-4b87-8bbe-0b177a4ef6fb 2025-10-10 12:07:52,596 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6edc3e00-a0ff-4b87-8bbe-0b177a4ef6fb 2025-10-10 12:07:52,605 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/56ec2ff2-8d70-4223-9e17-76bfe8dc4a67 2025-10-10 12:07:52,614 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-10 12:07:52,614 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/781a37f3-0f11-4301-b0c5-e8b680006a8a 2025-10-10 12:07:52,627 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6edc3e00-a0ff-4b87-8bbe-0b177a4ef6fb 2025-10-10 12:07:52,647 - INFO - Verified VN network id 11 for VN 781a37f3-0f11-4301-b0c5-e8b680006a8a 2025-10-10 12:07:52,647 - INFO - Verifications in API Server for VN ctest-vn4-88014067 passed 2025-10-10 12:07:52,647 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/781a37f3-0f11-4301-b0c5-e8b680006a8a 2025-10-10 12:07:52,659 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6edc3e00-a0ff-4b87-8bbe-0b177a4ef6fb 2025-10-10 12:07:52,667 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6edc3e00-a0ff-4b87-8bbe-0b177a4ef6fb 2025-10-10 12:07:52,676 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/56ec2ff2-8d70-4223-9e17-76bfe8dc4a67 2025-10-10 12:07:52,690 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49833467:ctest-vn4-88014067', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-49833467', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8654291151015199489', 'uuid-lslong': '12737842991616518794'}, 'enable': 'true', 'created': '2025-10-10T12:07:51', 'last-modified': '2025-10-10T12:07:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.805151'} 2025-10-10 12:07:52,696 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-10 12:07:52,697 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88014067 passed 2025-10-10 12:07:52,697 - DEBUG - ====Verifying policy data for ctest-vn4-88014067 in API_Server ====== 2025-10-10 12:07:52,697 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-10 12:07:52,703 - DEBUG - Requesting: http://10.0.0.27:8082/domain/9aaeb56d-85ca-447c-89d9-59b0c8370332 2025-10-10 12:07:52,717 - DEBUG - Requesting: http://10.0.0.27:8082/project/effaf623-bbdb-4543-a9bd-f70bf10cc9fb 2025-10-10 12:07:52,789 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/781a37f3-0f11-4301-b0c5-e8b680006a8a 2025-10-10 12:07:52,800 - DEBUG - ==>Verifying data for policy with id: b7ce8335-e936-430c-af44-0c1fa9c61a30, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49833467', 'ctest-policy1-84434703'] 2025-10-10 12:07:52,800 - INFO - VN ctest-vn4-88014067 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-10 12:07:52,800 - DEBUG - Verifying the vn in opserver 2025-10-10 12:07:52,800 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49833467:ctest-vn4-88014067 virtual network link through opserver 10.0.0.27 2025-10-10 12:07:52,801 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-10 12:07:53,101 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-10 12:07:53,175 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49833467:ctest-vn4-88014067', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49833467:ctest-vn4-88014067?flat'} 2025-10-10 12:07:53,175 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49833467:ctest-vn4-88014067 is found in opserver 2025-10-10 12:07:53,186 - DEBUG - Do not have enough data to verify VN in agent 2025-10-10 12:07:53,192 - DEBUG - VRF ids for VN ctest-vn4-88014067: {} 2025-10-10 12:07:53,193 - DEBUG - ====Verifying data for ctest-policy1-84434703 in API_Server ====== 2025-10-10 12:07:53,193 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-10 12:07:53,200 - DEBUG - Requesting: http://10.0.0.27:8082/domain/9aaeb56d-85ca-447c-89d9-59b0c8370332 2025-10-10 12:07:53,299 - DEBUG - Requesting: http://10.0.0.27:8082/project/effaf623-bbdb-4543-a9bd-f70bf10cc9fb 2025-10-10 12:07:53,378 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/b7ce8335-e936-430c-af44-0c1fa9c61a30 2025-10-10 12:07:53,390 - INFO - Verified policy ctest-policy1-84434703 in API Server, Result: True 2025-10-10 12:07:53,390 - INFO - Done with setup and verification, moving onto test .. 2025-10-10 12:07:53,403 - INFO - Deleting VN ctest-vn4-88014067 2025-10-10 12:07:53,537 - DEBUG - Response for deleting network () 2025-10-10 12:07:53,537 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/6edc3e00-a0ff-4b87-8bbe-0b177a4ef6fb 2025-10-10 12:07:53,544 - DEBUG - Response Code: 404 2025-10-10 12:07:53,544 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-10 12:07:53,551 - DEBUG - Requesting: http://10.0.0.27:8082/domain/9aaeb56d-85ca-447c-89d9-59b0c8370332 2025-10-10 12:07:53,606 - DEBUG - Requesting: http://10.0.0.27:8082/project/effaf623-bbdb-4543-a9bd-f70bf10cc9fb 2025-10-10 12:07:53,688 - INFO - Validated that VN ctest-vn4-88014067 is not found in API Server 2025-10-10 12:07:53,699 - DEBUG - VN ctest-vn4-88014067 is not present in Agent 10.0.0.27 2025-10-10 12:07:53,699 - INFO - Validated that VN ctest-vn4-88014067 is not in any agent 2025-10-10 12:07:53,719 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88014067 info 2025-10-10 12:07:53,754 - INFO - Deleted policy ctest-policy1-84434703 2025-10-10 12:07:53,950 - DEBUG - policy ctest-policy1-84434703 is not found in API Server 2025-10-10 12:07:54,094 - DEBUG - No XMPP flaps were noticed during the test