2025-08-27 07:06:57,343 - INFO - Domain Default found not creating 2025-08-27 07:06:57,477 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-84580066 not found, creating it 2025-08-27 07:06:57,916 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-84580066, ID : 4393d869-59b4-4dae-806c-c6dfa91e13dd 2025-08-27 07:06:59,483 - INFO - ================================================================================ 2025-08-27 07:06:59,484 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-27 07:06:59,742 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-27 07:06:59,742 - INFO - Initial checks done. Running the testcase now 2025-08-27 07:06:59,742 - INFO - 2025-08-27 07:06:59,742 - INFO - ================================================================================ 2025-08-27 07:06:59,742 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-27 07:06:59,742 - 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-27 07:07:00,030 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-27 07:07:00,030 - INFO - Initial checks done. Running the testcase now 2025-08-27 07:07:00,030 - INFO - 2025-08-27 07:07:00,387 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84580066:ctest-vn4-10916633, 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-84580066:ctest-vn4-10916633, 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-84580066:ctest-vn4-10916633, 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-84580066:ctest-vn4-10916633, 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-27 07:07:00,881 - DEBUG - Response for create_network : {'network': {'id': 'b3264ea9-4b66-43c8-a1d3-f07d09edf258', 'name': 'ctest-vn4-10916633', 'tenant_id': '4393d86959b44dae806cc6dfa91e13dd', 'project_id': '4393d86959b44dae806cc6dfa91e13dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84580066', 'ctest-vn4-10916633'], 'port_security_enabled': True, 'description': ''}} 2025-08-27 07:07:01,020 - DEBUG - Response for create_subnet : {'subnet': {'id': '80947a0c-4bd4-41ee-8754-9c13a0821f36', 'name': '', 'tenant_id': '4393d86959b44dae806cc6dfa91e13dd', 'network_id': 'b3264ea9-4b66-43c8-a1d3-f07d09edf258', 'ip_version': 4, 'cidr': '192.114.37.64/26', 'allocation_pools': [{'start': '192.114.37.66', 'end': '192.114.37.126'}], 'gateway_ip': '192.114.37.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.114.37.66', 'tags': [], 'project_id': '4393d86959b44dae806cc6dfa91e13dd'}} 2025-08-27 07:07:01,173 - DEBUG - Response for create_subnet : {'subnet': {'id': '32e61608-67f4-451c-865a-f7b1b0b405df', 'name': '', 'tenant_id': '4393d86959b44dae806cc6dfa91e13dd', 'network_id': 'b3264ea9-4b66-43c8-a1d3-f07d09edf258', 'ip_version': 6, 'cidr': '2631:3e17:941e:1d6f:dc68:f030::/96', 'allocation_pools': [{'start': '2631:3e17:941e:1d6f:dc68:f030:0:2', 'end': '2631:3e17:941e:1d6f:dc68:f030:ffff:fffe'}], 'gateway_ip': '2631:3e17:941e:1d6f:dc68:f030:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2631:3e17:941e:1d6f:dc68:f030:0:2', 'tags': [], 'project_id': '4393d86959b44dae806cc6dfa91e13dd'}} 2025-08-27 07:07:01,190 - INFO - Created VN ctest-vn4-10916633 2025-08-27 07:07:01,242 - DEBUG - VN ctest-vn4-10916633 UUID is b3264ea9-4b66-43c8-a1d3-f07d09edf258 2025-08-27 07:07:01,432 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b3264ea9-4b66-43c8-a1d3-f07d09edf258', 'name': 'ctest-vn4-10916633', 'tenant_id': '4393d86959b44dae806cc6dfa91e13dd', 'project_id': '4393d86959b44dae806cc6dfa91e13dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80947a0c-4bd4-41ee-8754-9c13a0821f36', '32e61608-67f4-451c-865a-f7b1b0b405df'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84580066', 'ctest-vn4-10916633'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84580066', 'ctest-policy1-36410574']], 'subnet_ipam': [{'subnet_cidr': '192.114.37.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2631:3e17:941e:1d6f:dc68:f030::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-27 07:07:01,598 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-27 07:07:01,930 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-27 07:07:01,957 - DEBUG - Requesting: http://10.0.0.254:8082/domain/09fc2920-6fbd-4ef2-be34-5fb3f532294c 2025-08-27 07:07:01,969 - DEBUG - Requesting: http://10.0.0.254:8082/project/4393d869-59b4-4dae-806c-c6dfa91e13dd 2025-08-27 07:07:02,043 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b3264ea9-4b66-43c8-a1d3-f07d09edf258 2025-08-27 07:07:02,054 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b3264ea9-4b66-43c8-a1d3-f07d09edf258 2025-08-27 07:07:02,062 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/82db7593-63ab-4a15-bc48-850a9fc94ac6 2025-08-27 07:07:02,068 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/82db7593-63ab-4a15-bc48-850a9fc94ac6 2025-08-27 07:07:02,074 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a5440967-2721-4025-a68f-0d9cfc617fe6 2025-08-27 07:07:02,079 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-27 07:07:02,079 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b3264ea9-4b66-43c8-a1d3-f07d09edf258 2025-08-27 07:07:02,086 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/82db7593-63ab-4a15-bc48-850a9fc94ac6 2025-08-27 07:07:02,097 - INFO - Verified VN network id 11 for VN b3264ea9-4b66-43c8-a1d3-f07d09edf258 2025-08-27 07:07:02,097 - INFO - Verifications in API Server for VN ctest-vn4-10916633 passed 2025-08-27 07:07:02,097 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b3264ea9-4b66-43c8-a1d3-f07d09edf258 2025-08-27 07:07:02,106 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/82db7593-63ab-4a15-bc48-850a9fc94ac6 2025-08-27 07:07:02,111 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/82db7593-63ab-4a15-bc48-850a9fc94ac6 2025-08-27 07:07:02,116 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a5440967-2721-4025-a68f-0d9cfc617fe6 2025-08-27 07:07:02,126 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84580066:ctest-vn4-10916633', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-84580066', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12909091870925538248', 'uuid-lslong': '11660928280020513368'}, 'enable': 'true', 'created': '2025-08-27T07:07:00', 'last-modified': '2025-08-27T07:07:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.721490'} 2025-08-27 07:07:02,131 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-27 07:07:02,131 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-10916633 passed 2025-08-27 07:07:02,131 - DEBUG - ====Verifying policy data for ctest-vn4-10916633 in API_Server ====== 2025-08-27 07:07:02,131 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-27 07:07:02,136 - DEBUG - Requesting: http://10.0.0.254:8082/domain/09fc2920-6fbd-4ef2-be34-5fb3f532294c 2025-08-27 07:07:02,145 - DEBUG - Requesting: http://10.0.0.254:8082/project/4393d869-59b4-4dae-806c-c6dfa91e13dd 2025-08-27 07:07:02,215 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b3264ea9-4b66-43c8-a1d3-f07d09edf258 2025-08-27 07:07:02,224 - DEBUG - ==>Verifying data for policy with id: 74789ae4-169a-415a-aa1d-6ea5d296d7d0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84580066', 'ctest-policy1-36410574'] 2025-08-27 07:07:02,224 - INFO - VN ctest-vn4-10916633 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-27 07:07:02,224 - DEBUG - Verifying the vn in opserver 2025-08-27 07:07:02,224 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84580066:ctest-vn4-10916633 virtual network link through opserver 10.0.0.254 2025-08-27 07:07:02,224 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-27 07:07:02,556 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-27 07:07:02,608 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84580066:ctest-vn4-10916633', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84580066:ctest-vn4-10916633?flat'} 2025-08-27 07:07:02,608 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84580066:ctest-vn4-10916633 is found in opserver 2025-08-27 07:07:02,617 - DEBUG - Do not have enough data to verify VN in agent 2025-08-27 07:07:02,622 - DEBUG - VRF ids for VN ctest-vn4-10916633: {} 2025-08-27 07:07:02,622 - DEBUG - ====Verifying data for ctest-policy1-36410574 in API_Server ====== 2025-08-27 07:07:02,622 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-27 07:07:02,627 - DEBUG - Requesting: http://10.0.0.254:8082/domain/09fc2920-6fbd-4ef2-be34-5fb3f532294c 2025-08-27 07:07:02,635 - DEBUG - Requesting: http://10.0.0.254:8082/project/4393d869-59b4-4dae-806c-c6dfa91e13dd 2025-08-27 07:07:02,703 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/74789ae4-169a-415a-aa1d-6ea5d296d7d0 2025-08-27 07:07:02,713 - INFO - Verified policy ctest-policy1-36410574 in API Server, Result: True 2025-08-27 07:07:02,713 - INFO - Done with setup and verification, moving onto test .. 2025-08-27 07:07:02,720 - INFO - Deleting VN ctest-vn4-10916633 2025-08-27 07:07:02,833 - DEBUG - Response for deleting network () 2025-08-27 07:07:02,833 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/82db7593-63ab-4a15-bc48-850a9fc94ac6 2025-08-27 07:07:02,837 - DEBUG - Response Code: 404 2025-08-27 07:07:02,837 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-27 07:07:02,842 - DEBUG - Requesting: http://10.0.0.254:8082/domain/09fc2920-6fbd-4ef2-be34-5fb3f532294c 2025-08-27 07:07:02,898 - DEBUG - Requesting: http://10.0.0.254:8082/project/4393d869-59b4-4dae-806c-c6dfa91e13dd 2025-08-27 07:07:02,969 - INFO - Validated that VN ctest-vn4-10916633 is not found in API Server 2025-08-27 07:07:02,978 - DEBUG - VN ctest-vn4-10916633 is not present in Agent 10.0.0.254 2025-08-27 07:07:02,979 - INFO - Validated that VN ctest-vn4-10916633 is not in any agent 2025-08-27 07:07:02,991 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-10916633 info 2025-08-27 07:07:03,015 - INFO - Deleted policy ctest-policy1-36410574 2025-08-27 07:07:03,177 - DEBUG - policy ctest-policy1-36410574 is not found in API Server 2025-08-27 07:07:03,430 - DEBUG - No XMPP flaps were noticed during the test