2025-10-09 20:26:42,448 - INFO - Domain Default found not creating 2025-10-09 20:26:42,803 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-84719037 not found, creating it 2025-10-09 20:26:43,593 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-84719037, ID : 693b1593-308e-4064-8053-fa4f051e5805 2025-10-09 20:26:45,574 - INFO - ================================================================================ 2025-10-09 20:26:45,574 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 20:26:45,900 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2025-10-09 20:26:45,900 - INFO - Initial checks done. Running the testcase now 2025-10-09 20:26:45,900 - INFO - 2025-10-09 20:26:45,901 - INFO - ================================================================================ 2025-10-09 20:26:45,901 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 20:26:45,901 - 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-09 20:26:46,243 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2025-10-09 20:26:46,244 - INFO - Initial checks done. Running the testcase now 2025-10-09 20:26:46,244 - INFO - 2025-10-09 20:26:46,691 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84719037:ctest-vn4-88561750, 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-84719037:ctest-vn4-88561750, 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-84719037:ctest-vn4-88561750, 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-84719037:ctest-vn4-88561750, 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-09 20:26:47,479 - DEBUG - Response for create_network : {'network': {'id': 'f9a0e91b-c30a-4890-acc0-15b28312437d', 'name': 'ctest-vn4-88561750', 'tenant_id': '693b1593308e40648053fa4f051e5805', 'project_id': '693b1593308e40648053fa4f051e5805', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84719037', 'ctest-vn4-88561750'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 20:26:47,760 - DEBUG - Response for create_subnet : {'subnet': {'id': '34ffeedb-217f-4dd6-8b8a-b4e0b60b63f9', 'name': '', 'tenant_id': '693b1593308e40648053fa4f051e5805', 'network_id': 'f9a0e91b-c30a-4890-acc0-15b28312437d', 'ip_version': 4, 'cidr': '14.98.22.192/26', 'allocation_pools': [{'start': '14.98.22.194', 'end': '14.98.22.254'}], 'gateway_ip': '14.98.22.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.98.22.194', 'tags': [], 'project_id': '693b1593308e40648053fa4f051e5805'}} 2025-10-09 20:26:48,049 - DEBUG - Response for create_subnet : {'subnet': {'id': '07a22cbf-eaa8-4a4c-95d2-b8529eae4236', 'name': '', 'tenant_id': '693b1593308e40648053fa4f051e5805', 'network_id': 'f9a0e91b-c30a-4890-acc0-15b28312437d', 'ip_version': 6, 'cidr': '3df7:bb99:1b09:1b7:476e:b776::/96', 'allocation_pools': [{'start': '3df7:bb99:1b09:1b7:476e:b776:0:2', 'end': '3df7:bb99:1b09:1b7:476e:b776:ffff:fffe'}], 'gateway_ip': '3df7:bb99:1b09:1b7:476e:b776:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3df7:bb99:1b09:1b7:476e:b776:0:2', 'tags': [], 'project_id': '693b1593308e40648053fa4f051e5805'}} 2025-10-09 20:26:48,099 - INFO - Created VN ctest-vn4-88561750 2025-10-09 20:26:48,172 - DEBUG - VN ctest-vn4-88561750 UUID is f9a0e91b-c30a-4890-acc0-15b28312437d 2025-10-09 20:26:48,470 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f9a0e91b-c30a-4890-acc0-15b28312437d', 'name': 'ctest-vn4-88561750', 'tenant_id': '693b1593308e40648053fa4f051e5805', 'project_id': '693b1593308e40648053fa4f051e5805', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['34ffeedb-217f-4dd6-8b8a-b4e0b60b63f9', '07a22cbf-eaa8-4a4c-95d2-b8529eae4236'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84719037', 'ctest-vn4-88561750'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84719037', 'ctest-policy1-55812732']], 'subnet_ipam': [{'subnet_cidr': '14.98.22.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3df7:bb99:1b09:1b7:476e:b776::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 20:26:48,632 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-09 20:26:48,938 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-09 20:26:49,002 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e372c072-a4ce-454c-9307-a8f198aca4b5 2025-10-09 20:26:49,026 - DEBUG - Requesting: http://10.0.0.19:8082/project/693b1593-308e-4064-8053-fa4f051e5805 2025-10-09 20:26:49,120 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f9a0e91b-c30a-4890-acc0-15b28312437d 2025-10-09 20:26:49,134 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f9a0e91b-c30a-4890-acc0-15b28312437d 2025-10-09 20:26:49,147 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3a636ab5-8e29-4501-af91-817a1152b74a 2025-10-09 20:26:49,156 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3a636ab5-8e29-4501-af91-817a1152b74a 2025-10-09 20:26:49,164 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/2bd9f5f0-a1a6-4c7f-b6c6-d97c4c7cf954 2025-10-09 20:26:49,171 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 20:26:49,171 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f9a0e91b-c30a-4890-acc0-15b28312437d 2025-10-09 20:26:49,184 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3a636ab5-8e29-4501-af91-817a1152b74a 2025-10-09 20:26:49,202 - INFO - Verified VN network id 11 for VN f9a0e91b-c30a-4890-acc0-15b28312437d 2025-10-09 20:26:49,203 - INFO - Verifications in API Server for VN ctest-vn4-88561750 passed 2025-10-09 20:26:49,203 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f9a0e91b-c30a-4890-acc0-15b28312437d 2025-10-09 20:26:49,217 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3a636ab5-8e29-4501-af91-817a1152b74a 2025-10-09 20:26:49,227 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3a636ab5-8e29-4501-af91-817a1152b74a 2025-10-09 20:26:49,238 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/2bd9f5f0-a1a6-4c7f-b6c6-d97c4c7cf954 2025-10-09 20:26:49,255 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84719037:ctest-vn4-88561750', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-84719037', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17987633217163380880', 'uuid-lslong': '12447973226499425149'}, 'enable': 'true', 'created': '2025-10-09T20:26:47', 'last-modified': '2025-10-09T20:26:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.823105'} 2025-10-09 20:26:49,266 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 20:26:49,266 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88561750 passed 2025-10-09 20:26:49,266 - DEBUG - ====Verifying policy data for ctest-vn4-88561750 in API_Server ====== 2025-10-09 20:26:49,266 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-09 20:26:49,273 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e372c072-a4ce-454c-9307-a8f198aca4b5 2025-10-09 20:26:49,288 - DEBUG - Requesting: http://10.0.0.19:8082/project/693b1593-308e-4064-8053-fa4f051e5805 2025-10-09 20:26:49,397 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f9a0e91b-c30a-4890-acc0-15b28312437d 2025-10-09 20:26:49,418 - DEBUG - ==>Verifying data for policy with id: 7a76bd2b-039b-4900-bc6e-c3065b1835be, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84719037', 'ctest-policy1-55812732'] 2025-10-09 20:26:49,418 - INFO - VN ctest-vn4-88561750 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 20:26:49,418 - DEBUG - Verifying the vn in opserver 2025-10-09 20:26:49,418 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84719037:ctest-vn4-88561750 virtual network link through opserver 10.0.0.19 2025-10-09 20:26:49,419 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-09 20:26:49,725 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-09 20:26:49,808 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84719037:ctest-vn4-88561750', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84719037:ctest-vn4-88561750?flat'} 2025-10-09 20:26:49,808 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84719037:ctest-vn4-88561750 is found in opserver 2025-10-09 20:26:49,833 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 20:26:49,844 - DEBUG - VRF ids for VN ctest-vn4-88561750: {} 2025-10-09 20:26:49,845 - DEBUG - ====Verifying data for ctest-policy1-55812732 in API_Server ====== 2025-10-09 20:26:49,845 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-09 20:26:49,854 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e372c072-a4ce-454c-9307-a8f198aca4b5 2025-10-09 20:26:49,877 - DEBUG - Requesting: http://10.0.0.19:8082/project/693b1593-308e-4064-8053-fa4f051e5805 2025-10-09 20:26:49,975 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/7a76bd2b-039b-4900-bc6e-c3065b1835be 2025-10-09 20:26:49,990 - INFO - Verified policy ctest-policy1-55812732 in API Server, Result: True 2025-10-09 20:26:49,990 - INFO - Done with setup and verification, moving onto test .. 2025-10-09 20:26:49,999 - INFO - Deleting VN ctest-vn4-88561750 2025-10-09 20:26:50,137 - DEBUG - Response for deleting network () 2025-10-09 20:26:50,137 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3a636ab5-8e29-4501-af91-817a1152b74a 2025-10-09 20:26:50,142 - DEBUG - Response Code: 404 2025-10-09 20:26:50,143 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-09 20:26:50,149 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e372c072-a4ce-454c-9307-a8f198aca4b5 2025-10-09 20:26:50,200 - DEBUG - Requesting: http://10.0.0.19:8082/project/693b1593-308e-4064-8053-fa4f051e5805 2025-10-09 20:26:50,288 - INFO - Validated that VN ctest-vn4-88561750 is not found in API Server 2025-10-09 20:26:50,306 - DEBUG - VN ctest-vn4-88561750 is not present in Agent 10.0.0.19 2025-10-09 20:26:50,306 - INFO - Validated that VN ctest-vn4-88561750 is not in any agent 2025-10-09 20:26:50,331 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88561750 info 2025-10-09 20:26:50,369 - INFO - Deleted policy ctest-policy1-55812732 2025-10-09 20:26:50,571 - DEBUG - policy ctest-policy1-55812732 is not found in API Server 2025-10-09 20:26:50,877 - DEBUG - No XMPP flaps were noticed during the test