2025-10-31 13:06:11,538 - INFO - Domain Default found not creating 2025-10-31 13:06:11,682 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-68168286 not found, creating it 2025-10-31 13:06:12,149 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-68168286, ID : 46a0bb94-fc7b-49bd-bf44-0f93d477e9e4 2025-10-31 13:06:13,544 - INFO - ================================================================================ 2025-10-31 13:06:13,544 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 13:06:13,802 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2025-10-31 13:06:13,803 - INFO - Initial checks done. Running the testcase now 2025-10-31 13:06:13,803 - INFO - 2025-10-31 13:06:13,803 - INFO - ================================================================================ 2025-10-31 13:06:13,803 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 13:06:13,803 - 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-31 13:06:14,089 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2025-10-31 13:06:14,090 - INFO - Initial checks done. Running the testcase now 2025-10-31 13:06:14,090 - INFO - 2025-10-31 13:06:14,719 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68168286:ctest-vn4-12838116, 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-68168286:ctest-vn4-12838116, 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-68168286:ctest-vn4-12838116, 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-68168286:ctest-vn4-12838116, 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-31 13:06:15,267 - DEBUG - Response for create_network : {'network': {'id': '15805157-af2c-418b-bf18-e80eeaf5e135', 'name': 'ctest-vn4-12838116', 'tenant_id': '46a0bb94fc7b49bdbf440f93d477e9e4', 'project_id': '46a0bb94fc7b49bdbf440f93d477e9e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68168286', 'ctest-vn4-12838116'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 13:06:15,487 - DEBUG - Response for create_subnet : {'subnet': {'id': '15bdfe4c-b294-42dd-a49a-f86cc8aa0824', 'name': '', 'tenant_id': '46a0bb94fc7b49bdbf440f93d477e9e4', 'network_id': '15805157-af2c-418b-bf18-e80eeaf5e135', 'ip_version': 4, 'cidr': '73.22.130.192/26', 'allocation_pools': [{'start': '73.22.130.194', 'end': '73.22.130.254'}], 'gateway_ip': '73.22.130.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.22.130.194', 'tags': [], 'project_id': '46a0bb94fc7b49bdbf440f93d477e9e4'}} 2025-10-31 13:06:15,624 - DEBUG - Response for create_subnet : {'subnet': {'id': '5412a247-ab99-4e06-b9b5-d2fa1f621ad4', 'name': '', 'tenant_id': '46a0bb94fc7b49bdbf440f93d477e9e4', 'network_id': '15805157-af2c-418b-bf18-e80eeaf5e135', 'ip_version': 6, 'cidr': '2353:7ff6:9415:2bf6:5a3e:567f::/96', 'allocation_pools': [{'start': '2353:7ff6:9415:2bf6:5a3e:567f:0:2', 'end': '2353:7ff6:9415:2bf6:5a3e:567f:ffff:fffe'}], 'gateway_ip': '2353:7ff6:9415:2bf6:5a3e:567f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2353:7ff6:9415:2bf6:5a3e:567f:0:2', 'tags': [], 'project_id': '46a0bb94fc7b49bdbf440f93d477e9e4'}} 2025-10-31 13:06:15,643 - INFO - Created VN ctest-vn4-12838116 2025-10-31 13:06:15,693 - DEBUG - VN ctest-vn4-12838116 UUID is 15805157-af2c-418b-bf18-e80eeaf5e135 2025-10-31 13:06:15,891 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15805157-af2c-418b-bf18-e80eeaf5e135', 'name': 'ctest-vn4-12838116', 'tenant_id': '46a0bb94fc7b49bdbf440f93d477e9e4', 'project_id': '46a0bb94fc7b49bdbf440f93d477e9e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['15bdfe4c-b294-42dd-a49a-f86cc8aa0824', '5412a247-ab99-4e06-b9b5-d2fa1f621ad4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68168286', 'ctest-vn4-12838116'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68168286', 'ctest-policy1-30728481']], 'subnet_ipam': [{'subnet_cidr': '73.22.130.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2353:7ff6:9415:2bf6:5a3e:567f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 13:06:16,050 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-31 13:06:16,339 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-31 13:06:16,366 - DEBUG - Requesting: http://10.0.0.141:8082/domain/fe54c0ac-74f7-46a6-8e84-77fb181ac49a 2025-10-31 13:06:16,377 - DEBUG - Requesting: http://10.0.0.141:8082/project/46a0bb94-fc7b-49bd-bf44-0f93d477e9e4 2025-10-31 13:06:16,449 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/15805157-af2c-418b-bf18-e80eeaf5e135 2025-10-31 13:06:16,459 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/15805157-af2c-418b-bf18-e80eeaf5e135 2025-10-31 13:06:16,468 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c9193aa3-c0d6-49d7-aafd-d2c09c108682 2025-10-31 13:06:16,474 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c9193aa3-c0d6-49d7-aafd-d2c09c108682 2025-10-31 13:06:16,480 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/a4de3a79-5522-4eaa-890a-4b5a9a7d91c1 2025-10-31 13:06:16,485 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 13:06:16,485 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/15805157-af2c-418b-bf18-e80eeaf5e135 2025-10-31 13:06:16,493 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c9193aa3-c0d6-49d7-aafd-d2c09c108682 2025-10-31 13:06:16,506 - INFO - Verified VN network id 11 for VN 15805157-af2c-418b-bf18-e80eeaf5e135 2025-10-31 13:06:16,507 - INFO - Verifications in API Server for VN ctest-vn4-12838116 passed 2025-10-31 13:06:16,507 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/15805157-af2c-418b-bf18-e80eeaf5e135 2025-10-31 13:06:16,515 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c9193aa3-c0d6-49d7-aafd-d2c09c108682 2025-10-31 13:06:16,521 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c9193aa3-c0d6-49d7-aafd-d2c09c108682 2025-10-31 13:06:16,528 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/a4de3a79-5522-4eaa-890a-4b5a9a7d91c1 2025-10-31 13:06:16,537 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68168286:ctest-vn4-12838116', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68168286', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1549327708858368395', 'uuid-lslong': '13770011011454460213'}, 'enable': 'true', 'created': '2025-10-31T13:06:15', 'last-modified': '2025-10-31T13:06:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.672033'} 2025-10-31 13:06:16,543 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 13:06:16,543 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-12838116 passed 2025-10-31 13:06:16,543 - DEBUG - ====Verifying policy data for ctest-vn4-12838116 in API_Server ====== 2025-10-31 13:06:16,543 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-31 13:06:16,548 - DEBUG - Requesting: http://10.0.0.141:8082/domain/fe54c0ac-74f7-46a6-8e84-77fb181ac49a 2025-10-31 13:06:16,558 - DEBUG - Requesting: http://10.0.0.141:8082/project/46a0bb94-fc7b-49bd-bf44-0f93d477e9e4 2025-10-31 13:06:16,625 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/15805157-af2c-418b-bf18-e80eeaf5e135 2025-10-31 13:06:16,634 - DEBUG - ==>Verifying data for policy with id: c1bc760b-5b67-4389-9229-caa59cee5ee0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68168286', 'ctest-policy1-30728481'] 2025-10-31 13:06:16,634 - INFO - VN ctest-vn4-12838116 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 13:06:16,634 - DEBUG - Verifying the vn in opserver 2025-10-31 13:06:16,634 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68168286:ctest-vn4-12838116 virtual network link through opserver 10.0.0.141 2025-10-31 13:06:16,635 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-31 13:06:16,921 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-31 13:06:16,974 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68168286:ctest-vn4-12838116', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68168286:ctest-vn4-12838116?flat'} 2025-10-31 13:06:16,974 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68168286:ctest-vn4-12838116 is found in opserver 2025-10-31 13:06:16,983 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 13:06:16,987 - DEBUG - VRF ids for VN ctest-vn4-12838116: {} 2025-10-31 13:06:16,988 - DEBUG - ====Verifying data for ctest-policy1-30728481 in API_Server ====== 2025-10-31 13:06:16,988 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-31 13:06:16,992 - DEBUG - Requesting: http://10.0.0.141:8082/domain/fe54c0ac-74f7-46a6-8e84-77fb181ac49a 2025-10-31 13:06:17,003 - DEBUG - Requesting: http://10.0.0.141:8082/project/46a0bb94-fc7b-49bd-bf44-0f93d477e9e4 2025-10-31 13:06:17,071 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/c1bc760b-5b67-4389-9229-caa59cee5ee0 2025-10-31 13:06:17,080 - INFO - Verified policy ctest-policy1-30728481 in API Server, Result: True 2025-10-31 13:06:17,080 - INFO - Done with setup and verification, moving onto test .. 2025-10-31 13:06:17,087 - INFO - Deleting VN ctest-vn4-12838116 2025-10-31 13:06:17,206 - DEBUG - Response for deleting network () 2025-10-31 13:06:17,206 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c9193aa3-c0d6-49d7-aafd-d2c09c108682 2025-10-31 13:06:17,212 - DEBUG - Response Code: 404 2025-10-31 13:06:17,212 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-31 13:06:17,218 - DEBUG - Requesting: http://10.0.0.141:8082/domain/fe54c0ac-74f7-46a6-8e84-77fb181ac49a 2025-10-31 13:06:17,271 - DEBUG - Requesting: http://10.0.0.141:8082/project/46a0bb94-fc7b-49bd-bf44-0f93d477e9e4 2025-10-31 13:06:17,346 - INFO - Validated that VN ctest-vn4-12838116 is not found in API Server 2025-10-31 13:06:17,356 - DEBUG - VN ctest-vn4-12838116 is not present in Agent 10.0.0.141 2025-10-31 13:06:17,356 - INFO - Validated that VN ctest-vn4-12838116 is not in any agent 2025-10-31 13:06:17,370 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-12838116 info 2025-10-31 13:06:17,400 - INFO - Deleted policy ctest-policy1-30728481 2025-10-31 13:06:17,561 - DEBUG - policy ctest-policy1-30728481 is not found in API Server 2025-10-31 13:06:17,819 - DEBUG - No XMPP flaps were noticed during the test