2025-08-31 04:50:31,296 - INFO - Domain Default found not creating 2025-08-31 04:50:31,414 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-73453659 not found, creating it 2025-08-31 04:50:31,820 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-73453659, ID : fc9225c6-6fa3-46a2-901e-2747da805a2a 2025-08-31 04:50:33,151 - INFO - ================================================================================ 2025-08-31 04:50:33,151 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-31 04:50:33,410 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-08-31 04:50:33,410 - INFO - Initial checks done. Running the testcase now 2025-08-31 04:50:33,410 - INFO - 2025-08-31 04:50:33,410 - INFO - ================================================================================ 2025-08-31 04:50:33,410 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-31 04:50:33,410 - 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-31 04:50:33,697 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-08-31 04:50:33,697 - INFO - Initial checks done. Running the testcase now 2025-08-31 04:50:33,698 - INFO - 2025-08-31 04:50:34,040 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73453659:ctest-vn4-95726213, 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-73453659:ctest-vn4-95726213, 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-73453659:ctest-vn4-95726213, 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-73453659:ctest-vn4-95726213, 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-31 04:50:34,525 - DEBUG - Response for create_network : {'network': {'id': '23776f08-4856-4580-93f0-58e596836109', 'name': 'ctest-vn4-95726213', 'tenant_id': 'fc9225c66fa346a2901e2747da805a2a', 'project_id': 'fc9225c66fa346a2901e2747da805a2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73453659', 'ctest-vn4-95726213'], 'port_security_enabled': True, 'description': ''}} 2025-08-31 04:50:34,697 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c0c4b23-6f3f-498c-bb5f-5987189d2251', 'name': '', 'tenant_id': 'fc9225c66fa346a2901e2747da805a2a', 'network_id': '23776f08-4856-4580-93f0-58e596836109', 'ip_version': 4, 'cidr': '123.20.118.192/26', 'allocation_pools': [{'start': '123.20.118.194', 'end': '123.20.118.254'}], 'gateway_ip': '123.20.118.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.20.118.194', 'tags': [], 'project_id': 'fc9225c66fa346a2901e2747da805a2a'}} 2025-08-31 04:50:34,837 - DEBUG - Response for create_subnet : {'subnet': {'id': '24016031-6e9c-48e6-b52f-d28d86f48949', 'name': '', 'tenant_id': 'fc9225c66fa346a2901e2747da805a2a', 'network_id': '23776f08-4856-4580-93f0-58e596836109', 'ip_version': 6, 'cidr': '24d9:ffad:6a23:2e5f:df13:dd19::/96', 'allocation_pools': [{'start': '24d9:ffad:6a23:2e5f:df13:dd19:0:2', 'end': '24d9:ffad:6a23:2e5f:df13:dd19:ffff:fffe'}], 'gateway_ip': '24d9:ffad:6a23:2e5f:df13:dd19:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24d9:ffad:6a23:2e5f:df13:dd19:0:2', 'tags': [], 'project_id': 'fc9225c66fa346a2901e2747da805a2a'}} 2025-08-31 04:50:34,854 - INFO - Created VN ctest-vn4-95726213 2025-08-31 04:50:34,905 - DEBUG - VN ctest-vn4-95726213 UUID is 23776f08-4856-4580-93f0-58e596836109 2025-08-31 04:50:35,084 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '23776f08-4856-4580-93f0-58e596836109', 'name': 'ctest-vn4-95726213', 'tenant_id': 'fc9225c66fa346a2901e2747da805a2a', 'project_id': 'fc9225c66fa346a2901e2747da805a2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c0c4b23-6f3f-498c-bb5f-5987189d2251', '24016031-6e9c-48e6-b52f-d28d86f48949'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73453659', 'ctest-vn4-95726213'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73453659', 'ctest-policy1-40077382']], 'subnet_ipam': [{'subnet_cidr': '123.20.118.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '24d9:ffad:6a23:2e5f:df13:dd19::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-31 04:50:35,241 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-31 04:50:35,538 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-31 04:50:35,566 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f35531d7-55d8-4054-8913-bc0315ee7054 2025-08-31 04:50:35,577 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc9225c6-6fa3-46a2-901e-2747da805a2a 2025-08-31 04:50:35,650 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/23776f08-4856-4580-93f0-58e596836109 2025-08-31 04:50:35,660 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/23776f08-4856-4580-93f0-58e596836109 2025-08-31 04:50:35,670 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f7fd68b3-06d5-466c-a3ce-8fdc23224487 2025-08-31 04:50:35,675 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f7fd68b3-06d5-466c-a3ce-8fdc23224487 2025-08-31 04:50:35,681 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4bacaac0-6135-4250-9fe5-a1d9af17d776 2025-08-31 04:50:35,687 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-31 04:50:35,687 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/23776f08-4856-4580-93f0-58e596836109 2025-08-31 04:50:35,696 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f7fd68b3-06d5-466c-a3ce-8fdc23224487 2025-08-31 04:50:35,706 - INFO - Verified VN network id 12 for VN 23776f08-4856-4580-93f0-58e596836109 2025-08-31 04:50:35,706 - INFO - Verifications in API Server for VN ctest-vn4-95726213 passed 2025-08-31 04:50:35,706 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/23776f08-4856-4580-93f0-58e596836109 2025-08-31 04:50:35,715 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f7fd68b3-06d5-466c-a3ce-8fdc23224487 2025-08-31 04:50:35,721 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f7fd68b3-06d5-466c-a3ce-8fdc23224487 2025-08-31 04:50:35,728 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4bacaac0-6135-4250-9fe5-a1d9af17d776 2025-08-31 04:50:35,739 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73453659:ctest-vn4-95726213', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-73453659', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2555633394920080768', 'uuid-lslong': '10660118061081911561'}, 'enable': 'true', 'created': '2025-08-31T04:50:34', 'last-modified': '2025-08-31T04:50:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.679835'} 2025-08-31 04:50:35,745 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-31 04:50:35,745 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-95726213 passed 2025-08-31 04:50:35,745 - DEBUG - ====Verifying policy data for ctest-vn4-95726213 in API_Server ====== 2025-08-31 04:50:35,745 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-31 04:50:35,751 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f35531d7-55d8-4054-8913-bc0315ee7054 2025-08-31 04:50:35,761 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc9225c6-6fa3-46a2-901e-2747da805a2a 2025-08-31 04:50:35,830 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/23776f08-4856-4580-93f0-58e596836109 2025-08-31 04:50:35,839 - DEBUG - ==>Verifying data for policy with id: 38e19899-0bd9-4b88-bf86-1c23d6f75a41, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73453659', 'ctest-policy1-40077382'] 2025-08-31 04:50:35,839 - INFO - VN ctest-vn4-95726213 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-31 04:50:35,839 - DEBUG - Verifying the vn in opserver 2025-08-31 04:50:35,839 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73453659:ctest-vn4-95726213 virtual network link through opserver 10.0.0.50 2025-08-31 04:50:35,839 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-31 04:50:36,127 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-31 04:50:36,174 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73453659:ctest-vn4-95726213', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73453659:ctest-vn4-95726213?flat'} 2025-08-31 04:50:36,174 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73453659:ctest-vn4-95726213 is found in opserver 2025-08-31 04:50:36,184 - DEBUG - Do not have enough data to verify VN in agent 2025-08-31 04:50:36,189 - DEBUG - VRF ids for VN ctest-vn4-95726213: {} 2025-08-31 04:50:36,189 - DEBUG - ====Verifying data for ctest-policy1-40077382 in API_Server ====== 2025-08-31 04:50:36,189 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-31 04:50:36,194 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f35531d7-55d8-4054-8913-bc0315ee7054 2025-08-31 04:50:36,203 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc9225c6-6fa3-46a2-901e-2747da805a2a 2025-08-31 04:50:36,274 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/38e19899-0bd9-4b88-bf86-1c23d6f75a41 2025-08-31 04:50:36,282 - INFO - Verified policy ctest-policy1-40077382 in API Server, Result: True 2025-08-31 04:50:36,282 - INFO - Done with setup and verification, moving onto test .. 2025-08-31 04:50:36,290 - INFO - Deleting VN ctest-vn4-95726213 2025-08-31 04:50:36,392 - DEBUG - Response for deleting network () 2025-08-31 04:50:36,392 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f7fd68b3-06d5-466c-a3ce-8fdc23224487 2025-08-31 04:50:36,396 - DEBUG - Response Code: 404 2025-08-31 04:50:36,396 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-31 04:50:36,400 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f35531d7-55d8-4054-8913-bc0315ee7054 2025-08-31 04:50:36,454 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc9225c6-6fa3-46a2-901e-2747da805a2a 2025-08-31 04:50:36,527 - INFO - Validated that VN ctest-vn4-95726213 is not found in API Server 2025-08-31 04:50:36,536 - DEBUG - VN ctest-vn4-95726213 is not present in Agent 10.0.0.50 2025-08-31 04:50:36,536 - INFO - Validated that VN ctest-vn4-95726213 is not in any agent 2025-08-31 04:50:36,548 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-95726213 info 2025-08-31 04:50:36,575 - INFO - Deleted policy ctest-policy1-40077382 2025-08-31 04:50:36,733 - DEBUG - policy ctest-policy1-40077382 is not found in API Server 2025-08-31 04:50:36,987 - DEBUG - No XMPP flaps were noticed during the test