2025-11-24 02:24:38,988 - INFO - Domain Default found not creating 2025-11-24 02:24:39,162 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-69098988 not found, creating it 2025-11-24 02:24:39,733 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-69098988, ID : 17772896-8192-4c6b-a7cc-7df3d5e562e8 2025-11-24 02:24:41,361 - INFO - ================================================================================ 2025-11-24 02:24:41,362 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-24 02:24:42,664 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.25': '0', '10.20.0.193': '0'}, '10.0.0.56': {'10.20.0.193': '0', '10.20.0.25': '0'}} with 2025-11-24 02:24:42,664 - INFO - Initial checks done. Running the testcase now 2025-11-24 02:24:42,664 - INFO - 2025-11-24 02:24:42,664 - INFO - ================================================================================ 2025-11-24 02:24:42,664 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-24 02:24:42,664 - 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-11-24 02:24:43,959 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.25': '0', '10.20.0.193': '0'}, '10.0.0.56': {'10.20.0.193': '0', '10.20.0.25': '0'}} with 2025-11-24 02:24:43,959 - INFO - Initial checks done. Running the testcase now 2025-11-24 02:24:43,959 - INFO - 2025-11-24 02:24:44,336 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69098988:ctest-vn4-91697369, 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-69098988:ctest-vn4-91697369, 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-69098988:ctest-vn4-91697369, 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-69098988:ctest-vn4-91697369, 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-11-24 02:24:45,010 - DEBUG - Response for create_network : {'network': {'id': '828a6925-acbc-4f0a-8a7a-1d1afddb1c3c', 'name': 'ctest-vn4-91697369', 'tenant_id': '1777289681924c6ba7cc7df3d5e562e8', 'project_id': '1777289681924c6ba7cc7df3d5e562e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69098988', 'ctest-vn4-91697369'], 'port_security_enabled': True, 'description': ''}} 2025-11-24 02:24:45,310 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b76a6e35-33a2-4fec-9196-1d10d4328dc0', 'name': '', 'tenant_id': '1777289681924c6ba7cc7df3d5e562e8', 'network_id': '828a6925-acbc-4f0a-8a7a-1d1afddb1c3c', 'ip_version': 4, 'cidr': '19.103.154.0/26', 'allocation_pools': [{'start': '19.103.154.2', 'end': '19.103.154.62'}], 'gateway_ip': '19.103.154.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.103.154.2', 'tags': [], 'project_id': '1777289681924c6ba7cc7df3d5e562e8'}} 2025-11-24 02:24:45,534 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc9e1af6-1f85-449f-af21-3cf57f792e59', 'name': '', 'tenant_id': '1777289681924c6ba7cc7df3d5e562e8', 'network_id': '828a6925-acbc-4f0a-8a7a-1d1afddb1c3c', 'ip_version': 6, 'cidr': '3c2c:c8eb:cfa4:dde:ca9d:439b::/96', 'allocation_pools': [{'start': '3c2c:c8eb:cfa4:dde:ca9d:439b:0:2', 'end': '3c2c:c8eb:cfa4:dde:ca9d:439b:ffff:fffe'}], 'gateway_ip': '3c2c:c8eb:cfa4:dde:ca9d:439b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c2c:c8eb:cfa4:dde:ca9d:439b:0:2', 'tags': [], 'project_id': '1777289681924c6ba7cc7df3d5e562e8'}} 2025-11-24 02:24:45,562 - INFO - Created VN ctest-vn4-91697369 2025-11-24 02:24:45,579 - DEBUG - VN ctest-vn4-91697369 UUID is 828a6925-acbc-4f0a-8a7a-1d1afddb1c3c 2025-11-24 02:24:45,823 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '828a6925-acbc-4f0a-8a7a-1d1afddb1c3c', 'name': 'ctest-vn4-91697369', 'tenant_id': '1777289681924c6ba7cc7df3d5e562e8', 'project_id': '1777289681924c6ba7cc7df3d5e562e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b76a6e35-33a2-4fec-9196-1d10d4328dc0', 'cc9e1af6-1f85-449f-af21-3cf57f792e59'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69098988', 'ctest-vn4-91697369'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69098988', 'ctest-policy1-69713412']], 'subnet_ipam': [{'subnet_cidr': '19.103.154.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c2c:c8eb:cfa4:dde:ca9d:439b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-24 02:24:45,929 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-24 02:24:46,260 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-24 02:24:46,308 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9a9efa54-edd3-449b-89f6-47a8074a2fba 2025-11-24 02:24:46,329 - DEBUG - Requesting: http://10.0.0.41:8082/project/17772896-8192-4c6b-a7cc-7df3d5e562e8 2025-11-24 02:24:46,424 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/828a6925-acbc-4f0a-8a7a-1d1afddb1c3c 2025-11-24 02:24:46,443 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/828a6925-acbc-4f0a-8a7a-1d1afddb1c3c 2025-11-24 02:24:46,455 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/743da5e2-eb4f-4602-a9e8-d2dc1d619f3e 2025-11-24 02:24:46,465 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/743da5e2-eb4f-4602-a9e8-d2dc1d619f3e 2025-11-24 02:24:46,475 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/a39d8f12-9912-4dac-8067-948ba078ced2 2025-11-24 02:24:46,484 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 02:24:46,484 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/828a6925-acbc-4f0a-8a7a-1d1afddb1c3c 2025-11-24 02:24:46,497 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/743da5e2-eb4f-4602-a9e8-d2dc1d619f3e 2025-11-24 02:24:46,517 - INFO - Verified VN network id 11 for VN 828a6925-acbc-4f0a-8a7a-1d1afddb1c3c 2025-11-24 02:24:46,518 - INFO - Verifications in API Server for VN ctest-vn4-91697369 passed 2025-11-24 02:24:46,518 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/828a6925-acbc-4f0a-8a7a-1d1afddb1c3c 2025-11-24 02:24:46,530 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/743da5e2-eb4f-4602-a9e8-d2dc1d619f3e 2025-11-24 02:24:46,538 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/743da5e2-eb4f-4602-a9e8-d2dc1d619f3e 2025-11-24 02:24:46,545 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/a39d8f12-9912-4dac-8067-948ba078ced2 2025-11-24 02:24:46,559 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69098988:ctest-vn4-91697369', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69098988', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9406446382249430794', 'uuid-lslong': '9978319926158105660'}, 'enable': 'true', 'created': '2025-11-24T02:24:44', 'last-modified': '2025-11-24T02:24:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.766019'} 2025-11-24 02:24:46,568 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 02:24:46,575 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69098988:ctest-vn4-91697369', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69098988', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9406446382249430794', 'uuid-lslong': '9978319926158105660'}, 'enable': 'true', 'created': '2025-11-24T02:24:44', 'last-modified': '2025-11-24T02:24:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.783270'} 2025-11-24 02:24:46,582 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 02:24:46,587 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69098988:ctest-vn4-91697369', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69098988', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9406446382249430794', 'uuid-lslong': '9978319926158105660'}, 'enable': 'true', 'created': '2025-11-24T02:24:44', 'last-modified': '2025-11-24T02:24:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.796724'} 2025-11-24 02:24:46,594 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 02:24:46,594 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-91697369 passed 2025-11-24 02:24:46,594 - DEBUG - ====Verifying policy data for ctest-vn4-91697369 in API_Server ====== 2025-11-24 02:24:46,594 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-24 02:24:46,601 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9a9efa54-edd3-449b-89f6-47a8074a2fba 2025-11-24 02:24:46,615 - DEBUG - Requesting: http://10.0.0.41:8082/project/17772896-8192-4c6b-a7cc-7df3d5e562e8 2025-11-24 02:24:46,729 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/828a6925-acbc-4f0a-8a7a-1d1afddb1c3c 2025-11-24 02:24:46,742 - DEBUG - ==>Verifying data for policy with id: 0715a1cb-ecf6-4477-a8f0-bff7f065827d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69098988', 'ctest-policy1-69713412'] 2025-11-24 02:24:46,743 - INFO - VN ctest-vn4-91697369 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-24 02:24:46,743 - DEBUG - Verifying the vn in opserver 2025-11-24 02:24:46,743 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69098988:ctest-vn4-91697369 virtual network link through opserver 10.0.0.41 2025-11-24 02:24:46,743 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-11-24 02:24:47,055 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-11-24 02:24:47,124 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69098988:ctest-vn4-91697369', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69098988:ctest-vn4-91697369?flat'} 2025-11-24 02:24:47,124 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69098988:ctest-vn4-91697369 virtual network link through opserver 10.0.0.50 2025-11-24 02:24:47,124 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-24 02:24:47,439 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-24 02:24:47,528 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69098988:ctest-vn4-91697369', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69098988:ctest-vn4-91697369?flat'} 2025-11-24 02:24:47,528 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69098988:ctest-vn4-91697369 virtual network link through opserver 10.0.0.27 2025-11-24 02:24:47,528 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-11-24 02:24:47,848 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-11-24 02:24:47,920 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69098988:ctest-vn4-91697369', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69098988:ctest-vn4-91697369?flat'} 2025-11-24 02:24:47,920 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69098988:ctest-vn4-91697369 is found in opserver 2025-11-24 02:24:47,942 - DEBUG - Do not have enough data to verify VN in agent 2025-11-24 02:24:47,951 - DEBUG - VRF ids for VN ctest-vn4-91697369: {} 2025-11-24 02:24:47,951 - DEBUG - ====Verifying data for ctest-policy1-69713412 in API_Server ====== 2025-11-24 02:24:47,951 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-24 02:24:47,958 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9a9efa54-edd3-449b-89f6-47a8074a2fba 2025-11-24 02:24:47,971 - DEBUG - Requesting: http://10.0.0.41:8082/project/17772896-8192-4c6b-a7cc-7df3d5e562e8 2025-11-24 02:24:48,075 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/0715a1cb-ecf6-4477-a8f0-bff7f065827d 2025-11-24 02:24:48,087 - INFO - Verified policy ctest-policy1-69713412 in API Server, Result: True 2025-11-24 02:24:48,087 - INFO - Done with setup and verification, moving onto test .. 2025-11-24 02:24:48,099 - INFO - Deleting VN ctest-vn4-91697369 2025-11-24 02:24:48,332 - DEBUG - Response for deleting network () 2025-11-24 02:24:48,333 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/743da5e2-eb4f-4602-a9e8-d2dc1d619f3e 2025-11-24 02:24:48,339 - DEBUG - Response Code: 404 2025-11-24 02:24:48,339 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-24 02:24:48,345 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9a9efa54-edd3-449b-89f6-47a8074a2fba 2025-11-24 02:24:48,357 - DEBUG - Requesting: http://10.0.0.41:8082/project/17772896-8192-4c6b-a7cc-7df3d5e562e8 2025-11-24 02:24:48,457 - INFO - Validated that VN ctest-vn4-91697369 is not found in API Server 2025-11-24 02:24:48,474 - DEBUG - VN ctest-vn4-91697369 is not present in Agent 10.0.0.57 2025-11-24 02:24:48,486 - DEBUG - VN ctest-vn4-91697369 is not present in Agent 10.0.0.56 2025-11-24 02:24:48,486 - INFO - Validated that VN ctest-vn4-91697369 is not in any agent 2025-11-24 02:24:48,521 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-91697369 info 2025-11-24 02:24:48,565 - INFO - Deleted policy ctest-policy1-69713412 2025-11-24 02:24:48,754 - DEBUG - policy ctest-policy1-69713412 is not found in API Server 2025-11-24 02:24:50,037 - DEBUG - No XMPP flaps were noticed during the test 2025-11-24 02:24:50,037 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2025-11-24 02:24:50,037 - INFO - -------------------------------------------------------------------------------- 2025-11-24 02:24:51,309 - DEBUG - No XMPP flaps were noticed during the test 2025-11-24 02:24:51,309 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2025-11-24 02:24:51,309 - INFO - -------------------------------------------------------------------------------- 2025-11-24 02:24:52,080 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-69098988, ID : 17772896-8192-4c6b-a7cc-7df3d5e562e8