2025-10-07 18:21:08,898 - INFO - Domain Default found not creating 2025-10-07 18:21:09,236 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-61570257 not found, creating it 2025-10-07 18:21:09,931 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-61570257, ID : 2f5c96fb-cbe6-451d-8f9d-02e35acd5718 2025-10-07 18:21:12,073 - INFO - ================================================================================ 2025-10-07 18:21:12,074 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-07 18:21:12,390 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.17': '0'}} with 2025-10-07 18:21:12,390 - INFO - Initial checks done. Running the testcase now 2025-10-07 18:21:12,390 - INFO - 2025-10-07 18:21:12,391 - INFO - ================================================================================ 2025-10-07 18:21:12,391 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-07 18:21:12,391 - 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-07 18:21:12,722 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.17': '0'}} with 2025-10-07 18:21:12,722 - INFO - Initial checks done. Running the testcase now 2025-10-07 18:21:12,722 - INFO - 2025-10-07 18:21:13,105 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61570257:ctest-vn4-27276877, 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-61570257:ctest-vn4-27276877, 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-61570257:ctest-vn4-27276877, 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-61570257:ctest-vn4-27276877, 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-07 18:21:13,860 - DEBUG - Response for create_network : {'network': {'id': 'a10222d2-55da-4ee3-8015-7da3743e4920', 'name': 'ctest-vn4-27276877', 'tenant_id': '2f5c96fbcbe6451d8f9d02e35acd5718', 'project_id': '2f5c96fbcbe6451d8f9d02e35acd5718', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61570257', 'ctest-vn4-27276877'], 'port_security_enabled': True, 'description': ''}} 2025-10-07 18:21:14,031 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a1524ba5-e862-4ac8-88b1-87482471b513', 'name': '', 'tenant_id': '2f5c96fbcbe6451d8f9d02e35acd5718', 'network_id': 'a10222d2-55da-4ee3-8015-7da3743e4920', 'ip_version': 4, 'cidr': '42.247.236.128/26', 'allocation_pools': [{'start': '42.247.236.130', 'end': '42.247.236.190'}], 'gateway_ip': '42.247.236.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.247.236.130', 'tags': [], 'project_id': '2f5c96fbcbe6451d8f9d02e35acd5718'}} 2025-10-07 18:21:14,252 - DEBUG - Response for create_subnet : {'subnet': {'id': '5895f1f0-978d-4fc9-bd78-a938e4550fe7', 'name': '', 'tenant_id': '2f5c96fbcbe6451d8f9d02e35acd5718', 'network_id': 'a10222d2-55da-4ee3-8015-7da3743e4920', 'ip_version': 6, 'cidr': '3fd9:c633:b859:4783:4e4d:f1d9::/96', 'allocation_pools': [{'start': '3fd9:c633:b859:4783:4e4d:f1d9:0:2', 'end': '3fd9:c633:b859:4783:4e4d:f1d9:ffff:fffe'}], 'gateway_ip': '3fd9:c633:b859:4783:4e4d:f1d9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3fd9:c633:b859:4783:4e4d:f1d9:0:2', 'tags': [], 'project_id': '2f5c96fbcbe6451d8f9d02e35acd5718'}} 2025-10-07 18:21:14,275 - INFO - Created VN ctest-vn4-27276877 2025-10-07 18:21:14,340 - DEBUG - VN ctest-vn4-27276877 UUID is a10222d2-55da-4ee3-8015-7da3743e4920 2025-10-07 18:21:14,660 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a10222d2-55da-4ee3-8015-7da3743e4920', 'name': 'ctest-vn4-27276877', 'tenant_id': '2f5c96fbcbe6451d8f9d02e35acd5718', 'project_id': '2f5c96fbcbe6451d8f9d02e35acd5718', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a1524ba5-e862-4ac8-88b1-87482471b513', '5895f1f0-978d-4fc9-bd78-a938e4550fe7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61570257', 'ctest-vn4-27276877'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61570257', 'ctest-policy1-85102130']], 'subnet_ipam': [{'subnet_cidr': '42.247.236.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3fd9:c633:b859:4783:4e4d:f1d9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-07 18:21:14,856 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-07 18:21:15,229 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-07 18:21:15,304 - DEBUG - Requesting: http://10.0.0.56:8082/domain/f9a991f7-7a37-44d4-ac84-09c5e60bfb8a 2025-10-07 18:21:15,334 - DEBUG - Requesting: http://10.0.0.56:8082/project/2f5c96fb-cbe6-451d-8f9d-02e35acd5718 2025-10-07 18:21:15,431 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a10222d2-55da-4ee3-8015-7da3743e4920 2025-10-07 18:21:15,451 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a10222d2-55da-4ee3-8015-7da3743e4920 2025-10-07 18:21:15,467 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/46661cee-9cc4-4140-8c95-1b997029d1c8 2025-10-07 18:21:15,481 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/46661cee-9cc4-4140-8c95-1b997029d1c8 2025-10-07 18:21:15,493 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/086d9d38-b4da-47be-bc36-256de326f17f 2025-10-07 18:21:15,506 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-07 18:21:15,506 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a10222d2-55da-4ee3-8015-7da3743e4920 2025-10-07 18:21:15,525 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/46661cee-9cc4-4140-8c95-1b997029d1c8 2025-10-07 18:21:15,554 - INFO - Verified VN network id 11 for VN a10222d2-55da-4ee3-8015-7da3743e4920 2025-10-07 18:21:15,555 - INFO - Verifications in API Server for VN ctest-vn4-27276877 passed 2025-10-07 18:21:15,555 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a10222d2-55da-4ee3-8015-7da3743e4920 2025-10-07 18:21:15,580 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/46661cee-9cc4-4140-8c95-1b997029d1c8 2025-10-07 18:21:15,598 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/46661cee-9cc4-4140-8c95-1b997029d1c8 2025-10-07 18:21:15,616 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/086d9d38-b4da-47be-bc36-256de326f17f 2025-10-07 18:21:15,641 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61570257:ctest-vn4-27276877', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-61570257', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11601873876838665955', 'uuid-lslong': '9229421152349079840'}, 'enable': 'true', 'created': '2025-10-07T18:21:13', 'last-modified': '2025-10-07T18:21:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030615'} 2025-10-07 18:21:15,653 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-07 18:21:15,654 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27276877 passed 2025-10-07 18:21:15,654 - DEBUG - ====Verifying policy data for ctest-vn4-27276877 in API_Server ====== 2025-10-07 18:21:15,654 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-07 18:21:15,665 - DEBUG - Requesting: http://10.0.0.56:8082/domain/f9a991f7-7a37-44d4-ac84-09c5e60bfb8a 2025-10-07 18:21:15,692 - DEBUG - Requesting: http://10.0.0.56:8082/project/2f5c96fb-cbe6-451d-8f9d-02e35acd5718 2025-10-07 18:21:15,805 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a10222d2-55da-4ee3-8015-7da3743e4920 2025-10-07 18:21:15,831 - DEBUG - ==>Verifying data for policy with id: aee10035-e5ec-4769-9026-75ab94b44d01, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61570257', 'ctest-policy1-85102130'] 2025-10-07 18:21:15,831 - INFO - VN ctest-vn4-27276877 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-07 18:21:15,831 - DEBUG - Verifying the vn in opserver 2025-10-07 18:21:15,831 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61570257:ctest-vn4-27276877 virtual network link through opserver 10.0.0.56 2025-10-07 18:21:15,832 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-10-07 18:21:16,170 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-10-07 18:21:16,286 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61570257:ctest-vn4-27276877', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61570257:ctest-vn4-27276877?flat'} 2025-10-07 18:21:16,286 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61570257:ctest-vn4-27276877 is found in opserver 2025-10-07 18:21:16,321 - DEBUG - Do not have enough data to verify VN in agent 2025-10-07 18:21:16,335 - DEBUG - VRF ids for VN ctest-vn4-27276877: {} 2025-10-07 18:21:16,336 - DEBUG - ====Verifying data for ctest-policy1-85102130 in API_Server ====== 2025-10-07 18:21:16,336 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-07 18:21:16,350 - DEBUG - Requesting: http://10.0.0.56:8082/domain/f9a991f7-7a37-44d4-ac84-09c5e60bfb8a 2025-10-07 18:21:16,383 - DEBUG - Requesting: http://10.0.0.56:8082/project/2f5c96fb-cbe6-451d-8f9d-02e35acd5718 2025-10-07 18:21:16,492 - DEBUG - Requesting: http://10.0.0.56:8082/network-policy/aee10035-e5ec-4769-9026-75ab94b44d01 2025-10-07 18:21:16,509 - INFO - Verified policy ctest-policy1-85102130 in API Server, Result: True 2025-10-07 18:21:16,509 - INFO - Done with setup and verification, moving onto test .. 2025-10-07 18:21:16,524 - INFO - Deleting VN ctest-vn4-27276877 2025-10-07 18:21:16,747 - DEBUG - Response for deleting network () 2025-10-07 18:21:16,748 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/46661cee-9cc4-4140-8c95-1b997029d1c8 2025-10-07 18:21:16,770 - DEBUG - Response Code: 404 2025-10-07 18:21:16,770 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-07 18:21:16,783 - DEBUG - Requesting: http://10.0.0.56:8082/domain/f9a991f7-7a37-44d4-ac84-09c5e60bfb8a 2025-10-07 18:21:16,866 - DEBUG - Requesting: http://10.0.0.56:8082/project/2f5c96fb-cbe6-451d-8f9d-02e35acd5718 2025-10-07 18:21:16,964 - INFO - Validated that VN ctest-vn4-27276877 is not found in API Server 2025-10-07 18:21:16,972 - DEBUG - VN ctest-vn4-27276877 is not present in Agent 10.0.0.56 2025-10-07 18:21:16,972 - INFO - Validated that VN ctest-vn4-27276877 is not in any agent 2025-10-07 18:21:16,994 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27276877 info 2025-10-07 18:21:17,031 - INFO - Deleted policy ctest-policy1-85102130 2025-10-07 18:21:17,231 - DEBUG - policy ctest-policy1-85102130 is not found in API Server 2025-10-07 18:21:17,504 - DEBUG - No XMPP flaps were noticed during the test 2025-10-07 18:21:17,505 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-07 18:21:17,505 - INFO - -------------------------------------------------------------------------------- 2025-10-07 18:21:17,829 - DEBUG - No XMPP flaps were noticed during the test 2025-10-07 18:21:17,829 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-10-07 18:21:17,830 - INFO - -------------------------------------------------------------------------------- 2025-10-07 18:21:18,766 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-61570257, ID : 2f5c96fb-cbe6-451d-8f9d-02e35acd5718