2025-07-23 15:54:45,122 - INFO - Domain Default found not creating 2025-07-23 15:54:45,287 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-56057131 not found, creating it 2025-07-23 15:54:45,804 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-56057131, ID : 1f6117f9-1310-45c6-893d-6a63ff8e7acd 2025-07-23 15:54:47,248 - INFO - ================================================================================ 2025-07-23 15:54:47,248 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-23 15:54:48,601 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0', '10.20.0.17': '0'}, '10.0.0.130': {'10.20.0.17': '0', '10.20.0.254': '0'}} with 2025-07-23 15:54:48,601 - INFO - Initial checks done. Running the testcase now 2025-07-23 15:54:48,602 - INFO - 2025-07-23 15:54:48,602 - INFO - ================================================================================ 2025-07-23 15:54:48,602 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-23 15:54:48,602 - 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-07-23 15:54:49,950 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0', '10.20.0.17': '0'}, '10.0.0.130': {'10.20.0.17': '0', '10.20.0.254': '0'}} with 2025-07-23 15:54:49,950 - INFO - Initial checks done. Running the testcase now 2025-07-23 15:54:49,950 - INFO - 2025-07-23 15:54:50,338 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56057131:ctest-vn4-45323635, 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-56057131:ctest-vn4-45323635, 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-56057131:ctest-vn4-45323635, 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-56057131:ctest-vn4-45323635, 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-07-23 15:54:50,994 - DEBUG - Response for create_network : {'network': {'id': 'a12c23c7-e9b5-4db0-b5bc-c22cb94abde6', 'name': 'ctest-vn4-45323635', 'tenant_id': '1f6117f9131045c6893d6a63ff8e7acd', 'project_id': '1f6117f9131045c6893d6a63ff8e7acd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56057131', 'ctest-vn4-45323635'], 'port_security_enabled': True, 'description': ''}} 2025-07-23 15:54:51,235 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f64565d9-56bb-44f5-b072-720d44db4ff9', 'name': '', 'tenant_id': '1f6117f9131045c6893d6a63ff8e7acd', 'network_id': 'a12c23c7-e9b5-4db0-b5bc-c22cb94abde6', 'ip_version': 4, 'cidr': '216.183.8.192/26', 'allocation_pools': [{'start': '216.183.8.194', 'end': '216.183.8.254'}], 'gateway_ip': '216.183.8.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.183.8.194', 'tags': [], 'project_id': '1f6117f9131045c6893d6a63ff8e7acd'}} 2025-07-23 15:54:51,464 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0a4fa1c-b56c-4670-b8fd-d0e710a4f4bd', 'name': '', 'tenant_id': '1f6117f9131045c6893d6a63ff8e7acd', 'network_id': 'a12c23c7-e9b5-4db0-b5bc-c22cb94abde6', 'ip_version': 6, 'cidr': '38a2:6091:c613:fe4e:190e:de4b::/96', 'allocation_pools': [{'start': '38a2:6091:c613:fe4e:190e:de4b:0:2', 'end': '38a2:6091:c613:fe4e:190e:de4b:ffff:fffe'}], 'gateway_ip': '38a2:6091:c613:fe4e:190e:de4b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38a2:6091:c613:fe4e:190e:de4b:0:2', 'tags': [], 'project_id': '1f6117f9131045c6893d6a63ff8e7acd'}} 2025-07-23 15:54:51,489 - INFO - Created VN ctest-vn4-45323635 2025-07-23 15:54:51,506 - DEBUG - VN ctest-vn4-45323635 UUID is a12c23c7-e9b5-4db0-b5bc-c22cb94abde6 2025-07-23 15:54:51,772 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a12c23c7-e9b5-4db0-b5bc-c22cb94abde6', 'name': 'ctest-vn4-45323635', 'tenant_id': '1f6117f9131045c6893d6a63ff8e7acd', 'project_id': '1f6117f9131045c6893d6a63ff8e7acd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f64565d9-56bb-44f5-b072-720d44db4ff9', 'd0a4fa1c-b56c-4670-b8fd-d0e710a4f4bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56057131', 'ctest-vn4-45323635'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56057131', 'ctest-policy1-62584351']], 'subnet_ipam': [{'subnet_cidr': '216.183.8.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '38a2:6091:c613:fe4e:190e:de4b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-23 15:54:51,889 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 15:54:52,195 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 15:54:52,223 - DEBUG - Requesting: http://10.0.0.23:8082/domain/85afe8be-97e7-4e27-9667-ee7272dde692 2025-07-23 15:54:52,242 - DEBUG - Requesting: http://10.0.0.23:8082/project/1f6117f9-1310-45c6-893d-6a63ff8e7acd 2025-07-23 15:54:52,346 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a12c23c7-e9b5-4db0-b5bc-c22cb94abde6 2025-07-23 15:54:52,369 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a12c23c7-e9b5-4db0-b5bc-c22cb94abde6 2025-07-23 15:54:52,384 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/3f0bf638-76b7-4925-a146-d2b0b6974459 2025-07-23 15:54:52,394 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/3f0bf638-76b7-4925-a146-d2b0b6974459 2025-07-23 15:54:52,403 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/df923d4c-37bd-4ebb-a674-5332c5da70b1 2025-07-23 15:54:52,412 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 15:54:52,412 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a12c23c7-e9b5-4db0-b5bc-c22cb94abde6 2025-07-23 15:54:52,428 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/3f0bf638-76b7-4925-a146-d2b0b6974459 2025-07-23 15:54:52,449 - INFO - Verified VN network id 12 for VN a12c23c7-e9b5-4db0-b5bc-c22cb94abde6 2025-07-23 15:54:52,449 - INFO - Verifications in API Server for VN ctest-vn4-45323635 passed 2025-07-23 15:54:52,449 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a12c23c7-e9b5-4db0-b5bc-c22cb94abde6 2025-07-23 15:54:52,463 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/3f0bf638-76b7-4925-a146-d2b0b6974459 2025-07-23 15:54:52,471 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/3f0bf638-76b7-4925-a146-d2b0b6974459 2025-07-23 15:54:52,480 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/df923d4c-37bd-4ebb-a674-5332c5da70b1 2025-07-23 15:54:52,497 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56057131:ctest-vn4-45323635', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-56057131', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11613696880608103856', 'uuid-lslong': '13095555313829592550'}, 'enable': 'true', 'created': '2025-07-23T15:54:50', 'last-modified': '2025-07-23T15:54:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.796588'} 2025-07-23 15:54:52,504 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 15:54:52,511 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56057131:ctest-vn4-45323635', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-56057131', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11613696880608103856', 'uuid-lslong': '13095555313829592550'}, 'enable': 'true', 'created': '2025-07-23T15:54:50', 'last-modified': '2025-07-23T15:54:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.817657'} 2025-07-23 15:54:52,519 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 15:54:52,527 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56057131:ctest-vn4-45323635', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-56057131', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11613696880608103856', 'uuid-lslong': '13095555313829592550'}, 'enable': 'true', 'created': '2025-07-23T15:54:50', 'last-modified': '2025-07-23T15:54:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.831676'} 2025-07-23 15:54:52,536 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 15:54:52,536 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-45323635 passed 2025-07-23 15:54:52,536 - DEBUG - ====Verifying policy data for ctest-vn4-45323635 in API_Server ====== 2025-07-23 15:54:52,537 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 15:54:52,545 - DEBUG - Requesting: http://10.0.0.23:8082/domain/85afe8be-97e7-4e27-9667-ee7272dde692 2025-07-23 15:54:52,560 - DEBUG - Requesting: http://10.0.0.23:8082/project/1f6117f9-1310-45c6-893d-6a63ff8e7acd 2025-07-23 15:54:52,667 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a12c23c7-e9b5-4db0-b5bc-c22cb94abde6 2025-07-23 15:54:52,679 - DEBUG - ==>Verifying data for policy with id: 9ec21245-3c46-49fd-b286-1a8dd716bcda, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56057131', 'ctest-policy1-62584351'] 2025-07-23 15:54:52,679 - INFO - VN ctest-vn4-45323635 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-23 15:54:52,679 - DEBUG - Verifying the vn in opserver 2025-07-23 15:54:52,680 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56057131:ctest-vn4-45323635 virtual network link through opserver 10.0.0.23 2025-07-23 15:54:52,680 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-07-23 15:54:52,983 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-07-23 15:54:53,043 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56057131:ctest-vn4-45323635', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56057131:ctest-vn4-45323635?flat'} 2025-07-23 15:54:53,044 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56057131:ctest-vn4-45323635 virtual network link through opserver 10.0.0.249 2025-07-23 15:54:53,044 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-07-23 15:54:53,346 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-07-23 15:54:53,428 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56057131:ctest-vn4-45323635', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56057131:ctest-vn4-45323635?flat'} 2025-07-23 15:54:53,428 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56057131:ctest-vn4-45323635 virtual network link through opserver 10.0.0.73 2025-07-23 15:54:53,428 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-07-23 15:54:53,730 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-07-23 15:54:53,801 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56057131:ctest-vn4-45323635', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56057131:ctest-vn4-45323635?flat'} 2025-07-23 15:54:53,801 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56057131:ctest-vn4-45323635 is found in opserver 2025-07-23 15:54:53,847 - DEBUG - Do not have enough data to verify VN in agent 2025-07-23 15:54:53,867 - DEBUG - VRF ids for VN ctest-vn4-45323635: {} 2025-07-23 15:54:53,867 - DEBUG - ====Verifying data for ctest-policy1-62584351 in API_Server ====== 2025-07-23 15:54:53,867 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 15:54:53,875 - DEBUG - Requesting: http://10.0.0.23:8082/domain/85afe8be-97e7-4e27-9667-ee7272dde692 2025-07-23 15:54:53,890 - DEBUG - Requesting: http://10.0.0.23:8082/project/1f6117f9-1310-45c6-893d-6a63ff8e7acd 2025-07-23 15:54:53,986 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/9ec21245-3c46-49fd-b286-1a8dd716bcda 2025-07-23 15:54:53,996 - INFO - Verified policy ctest-policy1-62584351 in API Server, Result: True 2025-07-23 15:54:53,996 - INFO - Done with setup and verification, moving onto test .. 2025-07-23 15:54:54,009 - INFO - Deleting VN ctest-vn4-45323635 2025-07-23 15:54:54,239 - DEBUG - Response for deleting network () 2025-07-23 15:54:54,239 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/3f0bf638-76b7-4925-a146-d2b0b6974459 2025-07-23 15:54:54,253 - DEBUG - Response Code: 404 2025-07-23 15:54:54,253 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 15:54:54,263 - DEBUG - Requesting: http://10.0.0.23:8082/domain/85afe8be-97e7-4e27-9667-ee7272dde692 2025-07-23 15:54:54,322 - DEBUG - Requesting: http://10.0.0.23:8082/project/1f6117f9-1310-45c6-893d-6a63ff8e7acd 2025-07-23 15:54:54,420 - INFO - Validated that VN ctest-vn4-45323635 is not found in API Server 2025-07-23 15:54:54,450 - DEBUG - VN ctest-vn4-45323635 is not present in Agent 10.0.0.50 2025-07-23 15:54:54,462 - DEBUG - VN ctest-vn4-45323635 is not present in Agent 10.0.0.130 2025-07-23 15:54:54,462 - INFO - Validated that VN ctest-vn4-45323635 is not in any agent 2025-07-23 15:54:54,506 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-45323635 info 2025-07-23 15:54:54,552 - INFO - Deleted policy ctest-policy1-62584351 2025-07-23 15:54:54,739 - DEBUG - policy ctest-policy1-62584351 is not found in API Server 2025-07-23 15:54:56,060 - DEBUG - No XMPP flaps were noticed during the test
2025-07-23 15:54:56,060 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08]
2025-07-23 15:54:56,061 - INFO - -------------------------------------------------------------------------------- 2025-07-23 15:54:57,397 - DEBUG - No XMPP flaps were noticed during the test
2025-07-23 15:54:57,397 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2025-07-23 15:54:57,397 - INFO - -------------------------------------------------------------------------------- 2025-07-23 15:54:58,175 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-56057131, ID : 1f6117f9-1310-45c6-893d-6a63ff8e7acd