2025-09-04 02:07:52,526 - INFO - Domain Default found not creating 2025-09-04 02:07:52,666 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43024478 not found, creating it 2025-09-04 02:07:53,113 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43024478, ID : 8bd69cfa-7209-4b6d-b197-61b694ffdd69 2025-09-04 02:07:54,609 - INFO - ================================================================================ 2025-09-04 02:07:54,610 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-04 02:07:54,865 - DEBUG - Nothing to compare xmpp stats {'10.0.0.61': {'10.20.0.17': '0'}} with 2025-09-04 02:07:54,865 - INFO - Initial checks done. Running the testcase now 2025-09-04 02:07:54,865 - INFO - 2025-09-04 02:07:54,865 - INFO - ================================================================================ 2025-09-04 02:07:54,865 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-04 02:07:54,865 - 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-04 02:07:55,152 - DEBUG - Nothing to compare xmpp stats {'10.0.0.61': {'10.20.0.17': '0'}} with 2025-09-04 02:07:55,152 - INFO - Initial checks done. Running the testcase now 2025-09-04 02:07:55,152 - INFO - 2025-09-04 02:07:55,540 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43024478:ctest-vn4-16146093, 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-43024478:ctest-vn4-16146093, 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-43024478:ctest-vn4-16146093, 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-43024478:ctest-vn4-16146093, 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-04 02:07:56,035 - DEBUG - Response for create_network : {'network': {'id': 'a3c30267-a1dd-451f-a8d8-344e821be507', 'name': 'ctest-vn4-16146093', 'tenant_id': '8bd69cfa72094b6db19761b694ffdd69', 'project_id': '8bd69cfa72094b6db19761b694ffdd69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43024478', 'ctest-vn4-16146093'], 'port_security_enabled': True, 'description': ''}} 2025-09-04 02:07:56,243 - DEBUG - Response for create_subnet : {'subnet': {'id': '3abdc91c-5411-4718-b573-26a2cfaaa2e4', 'name': '', 'tenant_id': '8bd69cfa72094b6db19761b694ffdd69', 'network_id': 'a3c30267-a1dd-451f-a8d8-344e821be507', 'ip_version': 4, 'cidr': '121.103.197.192/26', 'allocation_pools': [{'start': '121.103.197.194', 'end': '121.103.197.254'}], 'gateway_ip': '121.103.197.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.103.197.194', 'tags': [], 'project_id': '8bd69cfa72094b6db19761b694ffdd69'}} 2025-09-04 02:07:56,390 - DEBUG - Response for create_subnet : {'subnet': {'id': '9428c82f-3efc-48ee-b83d-3aff1483985c', 'name': '', 'tenant_id': '8bd69cfa72094b6db19761b694ffdd69', 'network_id': 'a3c30267-a1dd-451f-a8d8-344e821be507', 'ip_version': 6, 'cidr': '2893:e282:7f9c:91e9:5a7e:2829::/96', 'allocation_pools': [{'start': '2893:e282:7f9c:91e9:5a7e:2829:0:2', 'end': '2893:e282:7f9c:91e9:5a7e:2829:ffff:fffe'}], 'gateway_ip': '2893:e282:7f9c:91e9:5a7e:2829:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2893:e282:7f9c:91e9:5a7e:2829:0:2', 'tags': [], 'project_id': '8bd69cfa72094b6db19761b694ffdd69'}} 2025-09-04 02:07:56,409 - INFO - Created VN ctest-vn4-16146093 2025-09-04 02:07:56,459 - DEBUG - VN ctest-vn4-16146093 UUID is a3c30267-a1dd-451f-a8d8-344e821be507 2025-09-04 02:07:56,653 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a3c30267-a1dd-451f-a8d8-344e821be507', 'name': 'ctest-vn4-16146093', 'tenant_id': '8bd69cfa72094b6db19761b694ffdd69', 'project_id': '8bd69cfa72094b6db19761b694ffdd69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3abdc91c-5411-4718-b573-26a2cfaaa2e4', '9428c82f-3efc-48ee-b83d-3aff1483985c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43024478', 'ctest-vn4-16146093'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43024478', 'ctest-policy1-04150479']], 'subnet_ipam': [{'subnet_cidr': '121.103.197.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2893:e282:7f9c:91e9:5a7e:2829::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-04 02:07:56,819 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-09-04 02:07:57,151 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-09-04 02:07:57,179 - DEBUG - Requesting: http://10.0.0.61:8082/domain/47211a9d-5120-4862-ae7f-ed04415f4c09 2025-09-04 02:07:57,189 - DEBUG - Requesting: http://10.0.0.61:8082/project/8bd69cfa-7209-4b6d-b197-61b694ffdd69 2025-09-04 02:07:57,257 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/a3c30267-a1dd-451f-a8d8-344e821be507 2025-09-04 02:07:57,268 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/a3c30267-a1dd-451f-a8d8-344e821be507 2025-09-04 02:07:57,276 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/4d7c9ead-614e-4d56-bc61-070a0e1a08fe 2025-09-04 02:07:57,282 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/4d7c9ead-614e-4d56-bc61-070a0e1a08fe 2025-09-04 02:07:57,288 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/05c265e7-c2b3-49d8-8a82-d6265a6183de 2025-09-04 02:07:57,293 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-04 02:07:57,293 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/a3c30267-a1dd-451f-a8d8-344e821be507 2025-09-04 02:07:57,301 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/4d7c9ead-614e-4d56-bc61-070a0e1a08fe 2025-09-04 02:07:57,314 - INFO - Verified VN network id 11 for VN a3c30267-a1dd-451f-a8d8-344e821be507 2025-09-04 02:07:57,314 - INFO - Verifications in API Server for VN ctest-vn4-16146093 passed 2025-09-04 02:07:57,314 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/a3c30267-a1dd-451f-a8d8-344e821be507 2025-09-04 02:07:57,323 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/4d7c9ead-614e-4d56-bc61-070a0e1a08fe 2025-09-04 02:07:57,328 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/4d7c9ead-614e-4d56-bc61-070a0e1a08fe 2025-09-04 02:07:57,334 - DEBUG - Requesting: http://10.0.0.61:8082/route-target/05c265e7-c2b3-49d8-8a82-d6265a6183de 2025-09-04 02:07:57,344 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43024478:ctest-vn4-16146093', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43024478', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11800278092761351455', 'uuid-lslong': '12166531905136354567'}, 'enable': 'true', 'created': '2025-09-04T02:07:56', 'last-modified': '2025-09-04T02:07:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.725890'} 2025-09-04 02:07:57,349 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-04 02:07:57,350 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-16146093 passed 2025-09-04 02:07:57,350 - DEBUG - ====Verifying policy data for ctest-vn4-16146093 in API_Server ====== 2025-09-04 02:07:57,350 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-09-04 02:07:57,354 - DEBUG - Requesting: http://10.0.0.61:8082/domain/47211a9d-5120-4862-ae7f-ed04415f4c09 2025-09-04 02:07:57,363 - DEBUG - Requesting: http://10.0.0.61:8082/project/8bd69cfa-7209-4b6d-b197-61b694ffdd69 2025-09-04 02:07:57,432 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-network/a3c30267-a1dd-451f-a8d8-344e821be507 2025-09-04 02:07:57,441 - DEBUG - ==>Verifying data for policy with id: 874c3cb7-f8eb-4c96-867c-d325cb267948, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43024478', 'ctest-policy1-04150479'] 2025-09-04 02:07:57,441 - INFO - VN ctest-vn4-16146093 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-04 02:07:57,441 - DEBUG - Verifying the vn in opserver 2025-09-04 02:07:57,441 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43024478:ctest-vn4-16146093 virtual network link through opserver 10.0.0.61 2025-09-04 02:07:57,441 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-09-04 02:07:57,772 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-09-04 02:07:57,828 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43024478:ctest-vn4-16146093', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43024478:ctest-vn4-16146093?flat'} 2025-09-04 02:07:57,828 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43024478:ctest-vn4-16146093 is found in opserver 2025-09-04 02:07:57,837 - DEBUG - Do not have enough data to verify VN in agent 2025-09-04 02:07:57,841 - DEBUG - VRF ids for VN ctest-vn4-16146093: {} 2025-09-04 02:07:57,842 - DEBUG - ====Verifying data for ctest-policy1-04150479 in API_Server ====== 2025-09-04 02:07:57,842 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-09-04 02:07:57,848 - DEBUG - Requesting: http://10.0.0.61:8082/domain/47211a9d-5120-4862-ae7f-ed04415f4c09 2025-09-04 02:07:57,860 - DEBUG - Requesting: http://10.0.0.61:8082/project/8bd69cfa-7209-4b6d-b197-61b694ffdd69 2025-09-04 02:07:57,930 - DEBUG - Requesting: http://10.0.0.61:8082/network-policy/874c3cb7-f8eb-4c96-867c-d325cb267948 2025-09-04 02:07:57,941 - INFO - Verified policy ctest-policy1-04150479 in API Server, Result: True 2025-09-04 02:07:57,941 - INFO - Done with setup and verification, moving onto test .. 2025-09-04 02:07:57,948 - INFO - Deleting VN ctest-vn4-16146093 2025-09-04 02:07:58,083 - DEBUG - Response for deleting network () 2025-09-04 02:07:58,083 - DEBUG - Requesting: http://10.0.0.61:8082/routing-instance/4d7c9ead-614e-4d56-bc61-070a0e1a08fe 2025-09-04 02:07:58,088 - DEBUG - Response Code: 404 2025-09-04 02:07:58,088 - DEBUG - Requesting: http://10.0.0.61:8082/domains 2025-09-04 02:07:58,093 - DEBUG - Requesting: http://10.0.0.61:8082/domain/47211a9d-5120-4862-ae7f-ed04415f4c09 2025-09-04 02:07:58,144 - DEBUG - Requesting: http://10.0.0.61:8082/project/8bd69cfa-7209-4b6d-b197-61b694ffdd69 2025-09-04 02:07:58,218 - INFO - Validated that VN ctest-vn4-16146093 is not found in API Server 2025-09-04 02:07:58,228 - DEBUG - VN ctest-vn4-16146093 is not present in Agent 10.0.0.61 2025-09-04 02:07:58,228 - INFO - Validated that VN ctest-vn4-16146093 is not in any agent 2025-09-04 02:07:58,243 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-16146093 info 2025-09-04 02:07:58,272 - INFO - Deleted policy ctest-policy1-04150479 2025-09-04 02:07:58,443 - DEBUG - policy ctest-policy1-04150479 is not found in API Server 2025-09-04 02:07:58,700 - DEBUG - No XMPP flaps were noticed during the test 2025-09-04 02:07:58,700 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-04 02:07:58,700 - INFO - -------------------------------------------------------------------------------- 2025-09-04 02:07:58,989 - DEBUG - No XMPP flaps were noticed during the test 2025-09-04 02:07:58,989 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-04 02:07:58,990 - INFO - -------------------------------------------------------------------------------- 2025-09-04 02:07:59,683 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-43024478, ID : 8bd69cfa-7209-4b6d-b197-61b694ffdd69