2025-10-10 01:26:10,472 - INFO - Domain Default found not creating 2025-10-10 01:26:10,616 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-27814507 not found, creating it 2025-10-10 01:26:11,122 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-27814507, ID : a3531983-730e-4be1-9b26-83f5799e7497 2025-10-10 01:26:12,727 - INFO - ================================================================================ 2025-10-10 01:26:12,727 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-10 01:26:12,986 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-10 01:26:12,986 - INFO - Initial checks done. Running the testcase now 2025-10-10 01:26:12,986 - INFO - 2025-10-10 01:26:12,986 - INFO - ================================================================================ 2025-10-10 01:26:12,986 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-10 01:26:12,987 - 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-10 01:26:13,274 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-10 01:26:13,274 - INFO - Initial checks done. Running the testcase now 2025-10-10 01:26:13,274 - INFO - 2025-10-10 01:26:13,664 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27814507:ctest-vn4-38568422, 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-27814507:ctest-vn4-38568422, 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-27814507:ctest-vn4-38568422, 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-27814507:ctest-vn4-38568422, 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-10 01:26:14,184 - DEBUG - Response for create_network : {'network': {'id': '9963a383-3ff0-40d1-9072-a160a76d54ab', 'name': 'ctest-vn4-38568422', 'tenant_id': 'a3531983730e4be19b2683f5799e7497', 'project_id': 'a3531983730e4be19b2683f5799e7497', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27814507', 'ctest-vn4-38568422'], 'port_security_enabled': True, 'description': ''}} 2025-10-10 01:26:14,381 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e6e0479a-ac6f-46e6-a441-5781db9c4291', 'name': '', 'tenant_id': 'a3531983730e4be19b2683f5799e7497', 'network_id': '9963a383-3ff0-40d1-9072-a160a76d54ab', 'ip_version': 4, 'cidr': '207.143.108.128/26', 'allocation_pools': [{'start': '207.143.108.130', 'end': '207.143.108.190'}], 'gateway_ip': '207.143.108.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.143.108.130', 'tags': [], 'project_id': 'a3531983730e4be19b2683f5799e7497'}} 2025-10-10 01:26:14,521 - DEBUG - Response for create_subnet : {'subnet': {'id': '80f89903-3ec8-486b-ae4c-43583950f37e', 'name': '', 'tenant_id': 'a3531983730e4be19b2683f5799e7497', 'network_id': '9963a383-3ff0-40d1-9072-a160a76d54ab', 'ip_version': 6, 'cidr': '3c5b:bb16:5e58:fda5:e045:21d::/96', 'allocation_pools': [{'start': '3c5b:bb16:5e58:fda5:e045:21d:0:2', 'end': '3c5b:bb16:5e58:fda5:e045:21d:ffff:fffe'}], 'gateway_ip': '3c5b:bb16:5e58:fda5:e045:21d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c5b:bb16:5e58:fda5:e045:21d:0:2', 'tags': [], 'project_id': 'a3531983730e4be19b2683f5799e7497'}} 2025-10-10 01:26:14,540 - INFO - Created VN ctest-vn4-38568422 2025-10-10 01:26:14,593 - DEBUG - VN ctest-vn4-38568422 UUID is 9963a383-3ff0-40d1-9072-a160a76d54ab 2025-10-10 01:26:14,795 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9963a383-3ff0-40d1-9072-a160a76d54ab', 'name': 'ctest-vn4-38568422', 'tenant_id': 'a3531983730e4be19b2683f5799e7497', 'project_id': 'a3531983730e4be19b2683f5799e7497', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e6e0479a-ac6f-46e6-a441-5781db9c4291', '80f89903-3ec8-486b-ae4c-43583950f37e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27814507', 'ctest-vn4-38568422'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27814507', 'ctest-policy1-45854635']], 'subnet_ipam': [{'subnet_cidr': '207.143.108.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c5b:bb16:5e58:fda5:e045:21d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-10 01:26:14,961 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-10 01:26:15,292 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-10 01:26:15,320 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e6eb3e86-5672-4f38-9f87-8e029c6b1bdc 2025-10-10 01:26:15,331 - DEBUG - Requesting: http://10.0.0.254:8082/project/a3531983-730e-4be1-9b26-83f5799e7497 2025-10-10 01:26:15,400 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9963a383-3ff0-40d1-9072-a160a76d54ab 2025-10-10 01:26:15,411 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9963a383-3ff0-40d1-9072-a160a76d54ab 2025-10-10 01:26:15,420 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7ce2fdd7-add7-45ff-afc6-a5809a0cf779 2025-10-10 01:26:15,426 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7ce2fdd7-add7-45ff-afc6-a5809a0cf779 2025-10-10 01:26:15,432 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e26ca804-34ec-4633-b782-f497cc5f2242 2025-10-10 01:26:15,437 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-10 01:26:15,438 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9963a383-3ff0-40d1-9072-a160a76d54ab 2025-10-10 01:26:15,447 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7ce2fdd7-add7-45ff-afc6-a5809a0cf779 2025-10-10 01:26:15,459 - INFO - Verified VN network id 11 for VN 9963a383-3ff0-40d1-9072-a160a76d54ab 2025-10-10 01:26:15,459 - INFO - Verifications in API Server for VN ctest-vn4-38568422 passed 2025-10-10 01:26:15,459 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9963a383-3ff0-40d1-9072-a160a76d54ab 2025-10-10 01:26:15,468 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7ce2fdd7-add7-45ff-afc6-a5809a0cf779 2025-10-10 01:26:15,473 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7ce2fdd7-add7-45ff-afc6-a5809a0cf779 2025-10-10 01:26:15,479 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e26ca804-34ec-4633-b782-f497cc5f2242 2025-10-10 01:26:15,489 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27814507:ctest-vn4-38568422', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-27814507', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11052857694606082257', 'uuid-lslong': '10408559125304530091'}, 'enable': 'true', 'created': '2025-10-10T01:26:14', 'last-modified': '2025-10-10T01:26:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.724224'} 2025-10-10 01:26:15,494 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-10 01:26:15,494 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-38568422 passed 2025-10-10 01:26:15,495 - DEBUG - ====Verifying policy data for ctest-vn4-38568422 in API_Server ====== 2025-10-10 01:26:15,495 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-10 01:26:15,499 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e6eb3e86-5672-4f38-9f87-8e029c6b1bdc 2025-10-10 01:26:15,509 - DEBUG - Requesting: http://10.0.0.254:8082/project/a3531983-730e-4be1-9b26-83f5799e7497 2025-10-10 01:26:15,581 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9963a383-3ff0-40d1-9072-a160a76d54ab 2025-10-10 01:26:15,590 - DEBUG - ==>Verifying data for policy with id: 668cefc7-7a7d-4c39-8677-8d06fccd474f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27814507', 'ctest-policy1-45854635'] 2025-10-10 01:26:15,590 - INFO - VN ctest-vn4-38568422 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-10 01:26:15,590 - DEBUG - Verifying the vn in opserver 2025-10-10 01:26:15,590 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27814507:ctest-vn4-38568422 virtual network link through opserver 10.0.0.254 2025-10-10 01:26:15,590 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-10 01:26:15,924 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-10 01:26:15,980 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27814507:ctest-vn4-38568422', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27814507:ctest-vn4-38568422?flat'} 2025-10-10 01:26:15,980 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27814507:ctest-vn4-38568422 is found in opserver 2025-10-10 01:26:15,993 - DEBUG - Do not have enough data to verify VN in agent 2025-10-10 01:26:15,997 - DEBUG - VRF ids for VN ctest-vn4-38568422: {} 2025-10-10 01:26:15,998 - DEBUG - ====Verifying data for ctest-policy1-45854635 in API_Server ====== 2025-10-10 01:26:15,998 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-10 01:26:16,003 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e6eb3e86-5672-4f38-9f87-8e029c6b1bdc 2025-10-10 01:26:16,014 - DEBUG - Requesting: http://10.0.0.254:8082/project/a3531983-730e-4be1-9b26-83f5799e7497 2025-10-10 01:26:16,086 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/668cefc7-7a7d-4c39-8677-8d06fccd474f 2025-10-10 01:26:16,095 - INFO - Verified policy ctest-policy1-45854635 in API Server, Result: True 2025-10-10 01:26:16,095 - INFO - Done with setup and verification, moving onto test .. 2025-10-10 01:26:16,103 - INFO - Deleting VN ctest-vn4-38568422 2025-10-10 01:26:16,246 - DEBUG - Response for deleting network () 2025-10-10 01:26:16,247 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7ce2fdd7-add7-45ff-afc6-a5809a0cf779 2025-10-10 01:26:16,251 - DEBUG - Response Code: 404 2025-10-10 01:26:16,251 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-10 01:26:16,263 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e6eb3e86-5672-4f38-9f87-8e029c6b1bdc 2025-10-10 01:26:16,318 - DEBUG - Requesting: http://10.0.0.254:8082/project/a3531983-730e-4be1-9b26-83f5799e7497 2025-10-10 01:26:16,388 - INFO - Validated that VN ctest-vn4-38568422 is not found in API Server 2025-10-10 01:26:16,399 - DEBUG - VN ctest-vn4-38568422 is not present in Agent 10.0.0.254 2025-10-10 01:26:16,399 - INFO - Validated that VN ctest-vn4-38568422 is not in any agent 2025-10-10 01:26:16,413 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-38568422 info 2025-10-10 01:26:16,442 - INFO - Deleted policy ctest-policy1-45854635 2025-10-10 01:26:16,609 - DEBUG - policy ctest-policy1-45854635 is not found in API Server 2025-10-10 01:26:16,875 - DEBUG - No XMPP flaps were noticed during the test