2025-08-07 22:19:00,575 - INFO - Domain Default found not creating 2025-08-07 22:19:00,748 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-98999333 not found, creating it 2025-08-07 22:19:01,219 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-98999333, ID : ce993cb1-0919-4131-b10a-38ef09cc8cdb 2025-08-07 22:19:02,714 - INFO - ================================================================================ 2025-08-07 22:19:02,714 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-07 22:19:02,971 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-07 22:19:02,971 - INFO - Initial checks done. Running the testcase now 2025-08-07 22:19:02,971 - INFO - 2025-08-07 22:19:02,971 - INFO - ================================================================================ 2025-08-07 22:19:02,971 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-07 22:19:02,971 - 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-08-07 22:19:03,272 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-07 22:19:03,272 - INFO - Initial checks done. Running the testcase now 2025-08-07 22:19:03,272 - INFO - 2025-08-07 22:19:03,654 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98999333:ctest-vn4-43128136, 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-98999333:ctest-vn4-43128136, 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-98999333:ctest-vn4-43128136, 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-98999333:ctest-vn4-43128136, 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-08-07 22:19:04,219 - DEBUG - Response for create_network : {'network': {'id': '5949127d-3d03-4ad3-9de3-73abd82bca0c', 'name': 'ctest-vn4-43128136', 'tenant_id': 'ce993cb109194131b10a38ef09cc8cdb', 'project_id': 'ce993cb109194131b10a38ef09cc8cdb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98999333', 'ctest-vn4-43128136'], 'port_security_enabled': True, 'description': ''}} 2025-08-07 22:19:04,430 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4c7026b-7a03-462f-ae7f-ad8440317737', 'name': '', 'tenant_id': 'ce993cb109194131b10a38ef09cc8cdb', 'network_id': '5949127d-3d03-4ad3-9de3-73abd82bca0c', 'ip_version': 4, 'cidr': '159.234.194.0/26', 'allocation_pools': [{'start': '159.234.194.2', 'end': '159.234.194.62'}], 'gateway_ip': '159.234.194.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.234.194.2', 'tags': [], 'project_id': 'ce993cb109194131b10a38ef09cc8cdb'}} 2025-08-07 22:19:04,633 - DEBUG - Response for create_subnet : {'subnet': {'id': '468499e9-3275-4abf-9359-ec41dec1d809', 'name': '', 'tenant_id': 'ce993cb109194131b10a38ef09cc8cdb', 'network_id': '5949127d-3d03-4ad3-9de3-73abd82bca0c', 'ip_version': 6, 'cidr': '34b9:e81:df9:42a3:149b:7210::/96', 'allocation_pools': [{'start': '34b9:e81:df9:42a3:149b:7210:0:2', 'end': '34b9:e81:df9:42a3:149b:7210:ffff:fffe'}], 'gateway_ip': '34b9:e81:df9:42a3:149b:7210:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34b9:e81:df9:42a3:149b:7210:0:2', 'tags': [], 'project_id': 'ce993cb109194131b10a38ef09cc8cdb'}} 2025-08-07 22:19:04,657 - INFO - Created VN ctest-vn4-43128136 2025-08-07 22:19:04,712 - DEBUG - VN ctest-vn4-43128136 UUID is 5949127d-3d03-4ad3-9de3-73abd82bca0c 2025-08-07 22:19:04,933 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5949127d-3d03-4ad3-9de3-73abd82bca0c', 'name': 'ctest-vn4-43128136', 'tenant_id': 'ce993cb109194131b10a38ef09cc8cdb', 'project_id': 'ce993cb109194131b10a38ef09cc8cdb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4c7026b-7a03-462f-ae7f-ad8440317737', '468499e9-3275-4abf-9359-ec41dec1d809'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98999333', 'ctest-vn4-43128136'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98999333', 'ctest-policy1-14724893']], 'subnet_ipam': [{'subnet_cidr': '159.234.194.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34b9:e81:df9:42a3:149b:7210::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-07 22:19:05,104 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-07 22:19:05,399 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-07 22:19:05,435 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aebc2d96-63bf-48dc-bca9-469ddaa7b56c 2025-08-07 22:19:05,451 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce993cb1-0919-4131-b10a-38ef09cc8cdb 2025-08-07 22:19:05,529 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5949127d-3d03-4ad3-9de3-73abd82bca0c 2025-08-07 22:19:05,543 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5949127d-3d03-4ad3-9de3-73abd82bca0c 2025-08-07 22:19:05,556 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31e5659a-0b1c-4d32-9132-444dc4121288 2025-08-07 22:19:05,563 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31e5659a-0b1c-4d32-9132-444dc4121288 2025-08-07 22:19:05,570 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ea104f40-45b0-4d98-9842-4ab24665a446 2025-08-07 22:19:05,578 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 22:19:05,578 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5949127d-3d03-4ad3-9de3-73abd82bca0c 2025-08-07 22:19:05,589 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31e5659a-0b1c-4d32-9132-444dc4121288 2025-08-07 22:19:05,604 - INFO - Verified VN network id 11 for VN 5949127d-3d03-4ad3-9de3-73abd82bca0c 2025-08-07 22:19:05,604 - INFO - Verifications in API Server for VN ctest-vn4-43128136 passed 2025-08-07 22:19:05,604 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5949127d-3d03-4ad3-9de3-73abd82bca0c 2025-08-07 22:19:05,615 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31e5659a-0b1c-4d32-9132-444dc4121288 2025-08-07 22:19:05,624 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31e5659a-0b1c-4d32-9132-444dc4121288 2025-08-07 22:19:05,632 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ea104f40-45b0-4d98-9842-4ab24665a446 2025-08-07 22:19:05,646 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98999333:ctest-vn4-43128136', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98999333', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6433693871779302099', 'uuid-lslong': '11377064265571355148'}, 'enable': 'true', 'created': '2025-08-07T22:19:04', 'last-modified': '2025-08-07T22:19:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.747073'} 2025-08-07 22:19:05,653 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 22:19:05,653 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43128136 passed 2025-08-07 22:19:05,653 - DEBUG - ====Verifying policy data for ctest-vn4-43128136 in API_Server ====== 2025-08-07 22:19:05,653 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-07 22:19:05,660 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aebc2d96-63bf-48dc-bca9-469ddaa7b56c 2025-08-07 22:19:05,674 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce993cb1-0919-4131-b10a-38ef09cc8cdb 2025-08-07 22:19:05,748 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5949127d-3d03-4ad3-9de3-73abd82bca0c 2025-08-07 22:19:05,760 - DEBUG - ==>Verifying data for policy with id: 15428e68-322f-452e-91f7-50388e7faba5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98999333', 'ctest-policy1-14724893'] 2025-08-07 22:19:05,760 - INFO - VN ctest-vn4-43128136 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-07 22:19:05,760 - DEBUG - Verifying the vn in opserver 2025-08-07 22:19:05,760 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98999333:ctest-vn4-43128136 virtual network link through opserver 10.0.0.38 2025-08-07 22:19:05,760 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-07 22:19:06,052 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-07 22:19:06,113 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98999333:ctest-vn4-43128136', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98999333:ctest-vn4-43128136?flat'} 2025-08-07 22:19:06,113 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98999333:ctest-vn4-43128136 is found in opserver 2025-08-07 22:19:06,125 - DEBUG - Do not have enough data to verify VN in agent 2025-08-07 22:19:06,131 - DEBUG - VRF ids for VN ctest-vn4-43128136: {} 2025-08-07 22:19:06,131 - DEBUG - ====Verifying data for ctest-policy1-14724893 in API_Server ====== 2025-08-07 22:19:06,131 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-07 22:19:06,138 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aebc2d96-63bf-48dc-bca9-469ddaa7b56c 2025-08-07 22:19:06,150 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce993cb1-0919-4131-b10a-38ef09cc8cdb 2025-08-07 22:19:06,225 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/15428e68-322f-452e-91f7-50388e7faba5 2025-08-07 22:19:06,236 - INFO - Verified policy ctest-policy1-14724893 in API Server, Result: True 2025-08-07 22:19:06,236 - INFO - Done with setup and verification, moving onto test .. 2025-08-07 22:19:06,244 - INFO - Deleting VN ctest-vn4-43128136 2025-08-07 22:19:06,369 - DEBUG - Response for deleting network () 2025-08-07 22:19:06,369 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31e5659a-0b1c-4d32-9132-444dc4121288 2025-08-07 22:19:06,377 - DEBUG - Response Code: 404 2025-08-07 22:19:06,377 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-07 22:19:06,384 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aebc2d96-63bf-48dc-bca9-469ddaa7b56c 2025-08-07 22:19:06,437 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce993cb1-0919-4131-b10a-38ef09cc8cdb 2025-08-07 22:19:06,519 - INFO - Validated that VN ctest-vn4-43128136 is not found in API Server 2025-08-07 22:19:06,532 - DEBUG - VN ctest-vn4-43128136 is not present in Agent 10.0.0.38 2025-08-07 22:19:06,532 - INFO - Validated that VN ctest-vn4-43128136 is not in any agent 2025-08-07 22:19:06,550 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43128136 info 2025-08-07 22:19:06,577 - INFO - Deleted policy ctest-policy1-14724893 2025-08-07 22:19:06,744 - DEBUG - policy ctest-policy1-14724893 is not found in API Server 2025-08-07 22:19:07,009 - DEBUG - No XMPP flaps were noticed during the test 2025-08-07 22:19:07,009 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-08-07 22:19:07,009 - INFO - -------------------------------------------------------------------------------- 2025-08-07 22:19:07,298 - DEBUG - No XMPP flaps were noticed during the test 2025-08-07 22:19:07,298 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-08-07 22:19:07,298 - INFO - -------------------------------------------------------------------------------- 2025-08-07 22:19:07,975 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-98999333, ID : ce993cb1-0919-4131-b10a-38ef09cc8cdb