2025-11-03 14:50:50,414 - INFO - Domain Default found not creating 2025-11-03 14:50:50,911 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-79129590 not found, creating it 2025-11-03 14:50:51,393 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-79129590, ID : e74b0784-d8a7-4cf5-9745-53ed03bd276d 2025-11-03 14:50:52,896 - INFO - ================================================================================ 2025-11-03 14:50:52,896 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-03 14:50:53,152 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with 2025-11-03 14:50:53,152 - INFO - Initial checks done. Running the testcase now 2025-11-03 14:50:53,152 - INFO - 2025-11-03 14:50:53,152 - INFO - ================================================================================ 2025-11-03 14:50:53,152 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-03 14:50:53,152 - 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-11-03 14:50:53,447 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with 2025-11-03 14:50:53,447 - INFO - Initial checks done. Running the testcase now 2025-11-03 14:50:53,447 - INFO - 2025-11-03 14:50:53,800 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79129590:ctest-vn4-23104235, 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-79129590:ctest-vn4-23104235, 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-79129590:ctest-vn4-23104235, 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-79129590:ctest-vn4-23104235, 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-11-03 14:50:54,329 - DEBUG - Response for create_network : {'network': {'id': '6277511e-9609-42e5-9f08-9d9562acc5cf', 'name': 'ctest-vn4-23104235', 'tenant_id': 'e74b0784d8a74cf5974553ed03bd276d', 'project_id': 'e74b0784d8a74cf5974553ed03bd276d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79129590', 'ctest-vn4-23104235'], 'port_security_enabled': True, 'description': ''}} 2025-11-03 14:50:54,522 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f445e8a-f151-4314-8ac0-ef5191163102', 'name': '', 'tenant_id': 'e74b0784d8a74cf5974553ed03bd276d', 'network_id': '6277511e-9609-42e5-9f08-9d9562acc5cf', 'ip_version': 4, 'cidr': '170.63.63.128/26', 'allocation_pools': [{'start': '170.63.63.130', 'end': '170.63.63.190'}], 'gateway_ip': '170.63.63.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.63.63.130', 'tags': [], 'project_id': 'e74b0784d8a74cf5974553ed03bd276d'}} 2025-11-03 14:50:54,680 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fbf274fe-2050-4e7c-9b48-936bcb76b3e7', 'name': '', 'tenant_id': 'e74b0784d8a74cf5974553ed03bd276d', 'network_id': '6277511e-9609-42e5-9f08-9d9562acc5cf', 'ip_version': 6, 'cidr': '2c5e:83b5:3dde:c44f:c947:c049::/96', 'allocation_pools': [{'start': '2c5e:83b5:3dde:c44f:c947:c049:0:2', 'end': '2c5e:83b5:3dde:c44f:c947:c049:ffff:fffe'}], 'gateway_ip': '2c5e:83b5:3dde:c44f:c947:c049:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c5e:83b5:3dde:c44f:c947:c049:0:2', 'tags': [], 'project_id': 'e74b0784d8a74cf5974553ed03bd276d'}} 2025-11-03 14:50:54,702 - INFO - Created VN ctest-vn4-23104235 2025-11-03 14:50:54,754 - DEBUG - VN ctest-vn4-23104235 UUID is 6277511e-9609-42e5-9f08-9d9562acc5cf 2025-11-03 14:50:54,976 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6277511e-9609-42e5-9f08-9d9562acc5cf', 'name': 'ctest-vn4-23104235', 'tenant_id': 'e74b0784d8a74cf5974553ed03bd276d', 'project_id': 'e74b0784d8a74cf5974553ed03bd276d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9f445e8a-f151-4314-8ac0-ef5191163102', 'fbf274fe-2050-4e7c-9b48-936bcb76b3e7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79129590', 'ctest-vn4-23104235'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79129590', 'ctest-policy1-58955345']], 'subnet_ipam': [{'subnet_cidr': '170.63.63.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c5e:83b5:3dde:c44f:c947:c049::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-03 14:50:55,134 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-03 14:50:55,429 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-03 14:50:55,460 - DEBUG - Requesting: http://10.0.0.41:8082/domain/59192770-a1e6-486c-8665-2c08be9016ab 2025-11-03 14:50:55,474 - DEBUG - Requesting: http://10.0.0.41:8082/project/e74b0784-d8a7-4cf5-9745-53ed03bd276d 2025-11-03 14:50:55,549 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6277511e-9609-42e5-9f08-9d9562acc5cf 2025-11-03 14:50:55,562 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6277511e-9609-42e5-9f08-9d9562acc5cf 2025-11-03 14:50:55,574 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/073adce5-9ef1-4b98-b26f-6ff8f717977a 2025-11-03 14:50:55,583 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/073adce5-9ef1-4b98-b26f-6ff8f717977a 2025-11-03 14:50:55,591 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/48c879b7-4a17-49bc-b1da-61f0d32fdd12 2025-11-03 14:50:55,599 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 14:50:55,599 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6277511e-9609-42e5-9f08-9d9562acc5cf 2025-11-03 14:50:55,608 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/073adce5-9ef1-4b98-b26f-6ff8f717977a 2025-11-03 14:50:55,623 - INFO - Verified VN network id 11 for VN 6277511e-9609-42e5-9f08-9d9562acc5cf 2025-11-03 14:50:55,623 - INFO - Verifications in API Server for VN ctest-vn4-23104235 passed 2025-11-03 14:50:55,623 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6277511e-9609-42e5-9f08-9d9562acc5cf 2025-11-03 14:50:55,633 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/073adce5-9ef1-4b98-b26f-6ff8f717977a 2025-11-03 14:50:55,640 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/073adce5-9ef1-4b98-b26f-6ff8f717977a 2025-11-03 14:50:55,648 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/48c879b7-4a17-49bc-b1da-61f0d32fdd12 2025-11-03 14:50:55,661 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79129590:ctest-vn4-23104235', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-79129590', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7095228929753563877', 'uuid-lslong': '11459582516775405007'}, 'enable': 'true', 'created': '2025-11-03T14:50:54', 'last-modified': '2025-11-03T14:50:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722473'} 2025-11-03 14:50:55,668 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 14:50:55,668 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-23104235 passed 2025-11-03 14:50:55,668 - DEBUG - ====Verifying policy data for ctest-vn4-23104235 in API_Server ====== 2025-11-03 14:50:55,668 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-03 14:50:55,673 - DEBUG - Requesting: http://10.0.0.41:8082/domain/59192770-a1e6-486c-8665-2c08be9016ab 2025-11-03 14:50:55,754 - DEBUG - Requesting: http://10.0.0.41:8082/project/e74b0784-d8a7-4cf5-9745-53ed03bd276d 2025-11-03 14:50:55,823 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6277511e-9609-42e5-9f08-9d9562acc5cf 2025-11-03 14:50:55,833 - DEBUG - ==>Verifying data for policy with id: e75e4206-0b03-4615-b6c5-cfb78952e1f5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79129590', 'ctest-policy1-58955345'] 2025-11-03 14:50:55,833 - INFO - VN ctest-vn4-23104235 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-03 14:50:55,833 - DEBUG - Verifying the vn in opserver 2025-11-03 14:50:55,833 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79129590:ctest-vn4-23104235 virtual network link through opserver 10.0.0.41 2025-11-03 14:50:55,833 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-11-03 14:50:56,131 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-11-03 14:50:56,189 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79129590:ctest-vn4-23104235', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79129590:ctest-vn4-23104235?flat'} 2025-11-03 14:50:56,189 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79129590:ctest-vn4-23104235 is found in opserver 2025-11-03 14:50:56,200 - DEBUG - Do not have enough data to verify VN in agent 2025-11-03 14:50:56,205 - DEBUG - VRF ids for VN ctest-vn4-23104235: {} 2025-11-03 14:50:56,206 - DEBUG - ====Verifying data for ctest-policy1-58955345 in API_Server ====== 2025-11-03 14:50:56,206 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-03 14:50:56,211 - DEBUG - Requesting: http://10.0.0.41:8082/domain/59192770-a1e6-486c-8665-2c08be9016ab 2025-11-03 14:50:56,222 - DEBUG - Requesting: http://10.0.0.41:8082/project/e74b0784-d8a7-4cf5-9745-53ed03bd276d 2025-11-03 14:50:56,292 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/e75e4206-0b03-4615-b6c5-cfb78952e1f5 2025-11-03 14:50:56,302 - INFO - Verified policy ctest-policy1-58955345 in API Server, Result: True 2025-11-03 14:50:56,302 - INFO - Done with setup and verification, moving onto test .. 2025-11-03 14:50:56,311 - INFO - Deleting VN ctest-vn4-23104235 2025-11-03 14:50:56,431 - DEBUG - Response for deleting network () 2025-11-03 14:50:56,431 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/073adce5-9ef1-4b98-b26f-6ff8f717977a 2025-11-03 14:50:56,437 - DEBUG - Response Code: 404 2025-11-03 14:50:56,437 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-03 14:50:56,443 - DEBUG - Requesting: http://10.0.0.41:8082/domain/59192770-a1e6-486c-8665-2c08be9016ab 2025-11-03 14:50:56,495 - DEBUG - Requesting: http://10.0.0.41:8082/project/e74b0784-d8a7-4cf5-9745-53ed03bd276d 2025-11-03 14:50:56,576 - INFO - Validated that VN ctest-vn4-23104235 is not found in API Server 2025-11-03 14:50:56,586 - DEBUG - VN ctest-vn4-23104235 is not present in Agent 10.0.0.41 2025-11-03 14:50:56,586 - INFO - Validated that VN ctest-vn4-23104235 is not in any agent 2025-11-03 14:50:56,600 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-23104235 info 2025-11-03 14:50:56,637 - INFO - Deleted policy ctest-policy1-58955345 2025-11-03 14:50:56,806 - DEBUG - policy ctest-policy1-58955345 is not found in API Server 2025-11-03 14:50:57,061 - DEBUG - No XMPP flaps were noticed during the test