2025-12-08 19:26:03,583 - INFO - Domain Default found not creating 2025-12-08 19:26:03,739 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-69664932 not found, creating it 2025-12-08 19:26:04,207 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-69664932, ID : 8d296720-ef98-4db4-bc3f-d98368f0fe38 2025-12-08 19:26:05,733 - INFO - ================================================================================ 2025-12-08 19:26:05,733 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 19:26:05,997 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2025-12-08 19:26:05,997 - INFO - Initial checks done. Running the testcase now 2025-12-08 19:26:05,997 - INFO - 2025-12-08 19:26:05,997 - INFO - ================================================================================ 2025-12-08 19:26:05,997 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 19:26:05,997 - 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-12-08 19:26:06,286 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2025-12-08 19:26:06,286 - INFO - Initial checks done. Running the testcase now 2025-12-08 19:26:06,286 - INFO - 2025-12-08 19:26:06,641 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69664932:ctest-vn4-32692505, 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-69664932:ctest-vn4-32692505, 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-69664932:ctest-vn4-32692505, 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-69664932:ctest-vn4-32692505, 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-12-08 19:26:07,146 - DEBUG - Response for create_network : {'network': {'id': '734ce517-cc4b-41e7-a912-69812638d33f', 'name': 'ctest-vn4-32692505', 'tenant_id': '8d296720ef984db4bc3fd98368f0fe38', 'project_id': '8d296720ef984db4bc3fd98368f0fe38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69664932', 'ctest-vn4-32692505'], 'port_security_enabled': True, 'description': ''}} 2025-12-08 19:26:07,388 - DEBUG - Response for create_subnet : {'subnet': {'id': '16ad3e93-8681-4fd0-b656-ef81b78a9484', 'name': '', 'tenant_id': '8d296720ef984db4bc3fd98368f0fe38', 'network_id': '734ce517-cc4b-41e7-a912-69812638d33f', 'ip_version': 4, 'cidr': '67.153.211.64/26', 'allocation_pools': [{'start': '67.153.211.66', 'end': '67.153.211.126'}], 'gateway_ip': '67.153.211.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.153.211.66', 'tags': [], 'project_id': '8d296720ef984db4bc3fd98368f0fe38'}} 2025-12-08 19:26:07,581 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3a68232-47b9-42fb-b37d-c5f21ef3b8a1', 'name': '', 'tenant_id': '8d296720ef984db4bc3fd98368f0fe38', 'network_id': '734ce517-cc4b-41e7-a912-69812638d33f', 'ip_version': 6, 'cidr': '3695:19d8:d3b:b4bc:60cf:20a9::/96', 'allocation_pools': [{'start': '3695:19d8:d3b:b4bc:60cf:20a9:0:2', 'end': '3695:19d8:d3b:b4bc:60cf:20a9:ffff:fffe'}], 'gateway_ip': '3695:19d8:d3b:b4bc:60cf:20a9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3695:19d8:d3b:b4bc:60cf:20a9:0:2', 'tags': [], 'project_id': '8d296720ef984db4bc3fd98368f0fe38'}} 2025-12-08 19:26:07,606 - INFO - Created VN ctest-vn4-32692505 2025-12-08 19:26:07,658 - DEBUG - VN ctest-vn4-32692505 UUID is 734ce517-cc4b-41e7-a912-69812638d33f 2025-12-08 19:26:07,870 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '734ce517-cc4b-41e7-a912-69812638d33f', 'name': 'ctest-vn4-32692505', 'tenant_id': '8d296720ef984db4bc3fd98368f0fe38', 'project_id': '8d296720ef984db4bc3fd98368f0fe38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['16ad3e93-8681-4fd0-b656-ef81b78a9484', 'a3a68232-47b9-42fb-b37d-c5f21ef3b8a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69664932', 'ctest-vn4-32692505'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69664932', 'ctest-policy1-45220352']], 'subnet_ipam': [{'subnet_cidr': '67.153.211.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3695:19d8:d3b:b4bc:60cf:20a9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-08 19:26:08,030 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-08 19:26:08,325 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-08 19:26:08,351 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9c656358-8480-48e7-9a0a-01645e62912b 2025-12-08 19:26:08,363 - DEBUG - Requesting: http://10.0.0.33:8082/project/8d296720-ef98-4db4-bc3f-d98368f0fe38 2025-12-08 19:26:08,434 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/734ce517-cc4b-41e7-a912-69812638d33f 2025-12-08 19:26:08,444 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/734ce517-cc4b-41e7-a912-69812638d33f 2025-12-08 19:26:08,454 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1f2ce253-3261-41ce-967a-052a91934750 2025-12-08 19:26:08,461 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1f2ce253-3261-41ce-967a-052a91934750 2025-12-08 19:26:08,467 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6c8cf02c-a3e5-4958-8df5-f0a784a65c5d 2025-12-08 19:26:08,477 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 19:26:08,477 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/734ce517-cc4b-41e7-a912-69812638d33f 2025-12-08 19:26:08,489 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1f2ce253-3261-41ce-967a-052a91934750 2025-12-08 19:26:08,507 - INFO - Verified VN network id 11 for VN 734ce517-cc4b-41e7-a912-69812638d33f 2025-12-08 19:26:08,507 - INFO - Verifications in API Server for VN ctest-vn4-32692505 passed 2025-12-08 19:26:08,507 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/734ce517-cc4b-41e7-a912-69812638d33f 2025-12-08 19:26:08,516 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1f2ce253-3261-41ce-967a-052a91934750 2025-12-08 19:26:08,523 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1f2ce253-3261-41ce-967a-052a91934750 2025-12-08 19:26:08,530 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6c8cf02c-a3e5-4958-8df5-f0a784a65c5d 2025-12-08 19:26:08,542 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69664932:ctest-vn4-32692505', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-69664932', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8308267302966215143', 'uuid-lslong': '12182915945403568959'}, 'enable': 'true', 'created': '2025-12-08T19:26:07', 'last-modified': '2025-12-08T19:26:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.694083'} 2025-12-08 19:26:08,548 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 19:26:08,548 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-32692505 passed 2025-12-08 19:26:08,548 - DEBUG - ====Verifying policy data for ctest-vn4-32692505 in API_Server ====== 2025-12-08 19:26:08,549 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-08 19:26:08,554 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9c656358-8480-48e7-9a0a-01645e62912b 2025-12-08 19:26:08,563 - DEBUG - Requesting: http://10.0.0.33:8082/project/8d296720-ef98-4db4-bc3f-d98368f0fe38 2025-12-08 19:26:08,632 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/734ce517-cc4b-41e7-a912-69812638d33f 2025-12-08 19:26:08,640 - DEBUG - ==>Verifying data for policy with id: 63eeec3e-1634-427b-9c56-4753027c03db, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-69664932', 'ctest-policy1-45220352'] 2025-12-08 19:26:08,640 - INFO - VN ctest-vn4-32692505 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-08 19:26:08,640 - DEBUG - Verifying the vn in opserver 2025-12-08 19:26:08,640 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69664932:ctest-vn4-32692505 virtual network link through opserver 10.0.0.33 2025-12-08 19:26:08,640 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-08 19:26:08,932 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-08 19:26:08,991 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69664932:ctest-vn4-32692505', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69664932:ctest-vn4-32692505?flat'} 2025-12-08 19:26:08,991 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-69664932:ctest-vn4-32692505 is found in opserver 2025-12-08 19:26:09,002 - DEBUG - Do not have enough data to verify VN in agent 2025-12-08 19:26:09,008 - DEBUG - VRF ids for VN ctest-vn4-32692505: {} 2025-12-08 19:26:09,008 - DEBUG - ====Verifying data for ctest-policy1-45220352 in API_Server ====== 2025-12-08 19:26:09,008 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-08 19:26:09,014 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9c656358-8480-48e7-9a0a-01645e62912b 2025-12-08 19:26:09,024 - DEBUG - Requesting: http://10.0.0.33:8082/project/8d296720-ef98-4db4-bc3f-d98368f0fe38 2025-12-08 19:26:09,096 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/63eeec3e-1634-427b-9c56-4753027c03db 2025-12-08 19:26:09,106 - INFO - Verified policy ctest-policy1-45220352 in API Server, Result: True 2025-12-08 19:26:09,106 - INFO - Done with setup and verification, moving onto test .. 2025-12-08 19:26:09,114 - INFO - Deleting VN ctest-vn4-32692505 2025-12-08 19:26:09,236 - DEBUG - Response for deleting network () 2025-12-08 19:26:09,237 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1f2ce253-3261-41ce-967a-052a91934750 2025-12-08 19:26:09,242 - DEBUG - Response Code: 404 2025-12-08 19:26:09,242 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-12-08 19:26:09,247 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9c656358-8480-48e7-9a0a-01645e62912b 2025-12-08 19:26:09,299 - DEBUG - Requesting: http://10.0.0.33:8082/project/8d296720-ef98-4db4-bc3f-d98368f0fe38 2025-12-08 19:26:09,369 - INFO - Validated that VN ctest-vn4-32692505 is not found in API Server 2025-12-08 19:26:09,379 - DEBUG - VN ctest-vn4-32692505 is not present in Agent 10.0.0.33 2025-12-08 19:26:09,379 - INFO - Validated that VN ctest-vn4-32692505 is not in any agent 2025-12-08 19:26:09,393 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-32692505 info 2025-12-08 19:26:09,421 - INFO - Deleted policy ctest-policy1-45220352 2025-12-08 19:26:09,597 - DEBUG - policy ctest-policy1-45220352 is not found in API Server 2025-12-08 19:26:09,854 - DEBUG - No XMPP flaps were noticed during the test