2025-10-08 22:11:41,297 - INFO - Domain Default found not creating 2025-10-08 22:11:41,445 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-20111959 not found, creating it 2025-10-08 22:11:41,905 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-20111959, ID : 335f08cd-8282-4bc9-b539-0c3317e32577 2025-10-08 22:11:43,305 - INFO - ================================================================================ 2025-10-08 22:11:43,305 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-08 22:11:43,563 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2025-10-08 22:11:43,563 - INFO - Initial checks done. Running the testcase now 2025-10-08 22:11:43,563 - INFO - 2025-10-08 22:11:43,563 - INFO - ================================================================================ 2025-10-08 22:11:43,563 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-08 22:11:43,563 - 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-08 22:11:43,849 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2025-10-08 22:11:43,849 - INFO - Initial checks done. Running the testcase now 2025-10-08 22:11:43,849 - INFO - 2025-10-08 22:11:44,195 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20111959:ctest-vn4-22760362, 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-20111959:ctest-vn4-22760362, 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-20111959:ctest-vn4-22760362, 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-20111959:ctest-vn4-22760362, 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-08 22:11:44,697 - DEBUG - Response for create_network : {'network': {'id': '7e2309f4-063d-4b6a-afe9-3f38d9b9cb58', 'name': 'ctest-vn4-22760362', 'tenant_id': '335f08cd82824bc9b5390c3317e32577', 'project_id': '335f08cd82824bc9b5390c3317e32577', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20111959', 'ctest-vn4-22760362'], 'port_security_enabled': True, 'description': ''}} 2025-10-08 22:11:44,907 - DEBUG - Response for create_subnet : {'subnet': {'id': '2279aae6-a4a7-435e-9ad6-9b5c1857c581', 'name': '', 'tenant_id': '335f08cd82824bc9b5390c3317e32577', 'network_id': '7e2309f4-063d-4b6a-afe9-3f38d9b9cb58', 'ip_version': 4, 'cidr': '101.26.128.192/26', 'allocation_pools': [{'start': '101.26.128.194', 'end': '101.26.128.254'}], 'gateway_ip': '101.26.128.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.26.128.194', 'tags': [], 'project_id': '335f08cd82824bc9b5390c3317e32577'}} 2025-10-08 22:11:45,084 - DEBUG - Response for create_subnet : {'subnet': {'id': '54047050-fb2b-454f-b780-beb52c3a51e6', 'name': '', 'tenant_id': '335f08cd82824bc9b5390c3317e32577', 'network_id': '7e2309f4-063d-4b6a-afe9-3f38d9b9cb58', 'ip_version': 6, 'cidr': '3c70:d95b:dc7a:b387:8a8:45c0::/96', 'allocation_pools': [{'start': '3c70:d95b:dc7a:b387:8a8:45c0:0:2', 'end': '3c70:d95b:dc7a:b387:8a8:45c0:ffff:fffe'}], 'gateway_ip': '3c70:d95b:dc7a:b387:8a8:45c0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c70:d95b:dc7a:b387:8a8:45c0:0:2', 'tags': [], 'project_id': '335f08cd82824bc9b5390c3317e32577'}} 2025-10-08 22:11:45,103 - INFO - Created VN ctest-vn4-22760362 2025-10-08 22:11:45,156 - DEBUG - VN ctest-vn4-22760362 UUID is 7e2309f4-063d-4b6a-afe9-3f38d9b9cb58 2025-10-08 22:11:45,424 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7e2309f4-063d-4b6a-afe9-3f38d9b9cb58', 'name': 'ctest-vn4-22760362', 'tenant_id': '335f08cd82824bc9b5390c3317e32577', 'project_id': '335f08cd82824bc9b5390c3317e32577', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2279aae6-a4a7-435e-9ad6-9b5c1857c581', '54047050-fb2b-454f-b780-beb52c3a51e6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20111959', 'ctest-vn4-22760362'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20111959', 'ctest-policy1-64188589']], 'subnet_ipam': [{'subnet_cidr': '101.26.128.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c70:d95b:dc7a:b387:8a8:45c0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-08 22:11:45,584 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-08 22:11:45,877 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-08 22:11:45,903 - DEBUG - Requesting: http://10.0.0.27:8082/domain/191a2e31-4b3f-45d7-8827-24503f837416 2025-10-08 22:11:45,915 - DEBUG - Requesting: http://10.0.0.27:8082/project/335f08cd-8282-4bc9-b539-0c3317e32577 2025-10-08 22:11:46,014 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7e2309f4-063d-4b6a-afe9-3f38d9b9cb58 2025-10-08 22:11:46,027 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7e2309f4-063d-4b6a-afe9-3f38d9b9cb58 2025-10-08 22:11:46,036 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/cc5da4cb-8253-4912-b30d-49ada2825158 2025-10-08 22:11:46,043 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/cc5da4cb-8253-4912-b30d-49ada2825158 2025-10-08 22:11:46,049 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/98464ed1-4df9-4147-b7ff-b20487b23ccc 2025-10-08 22:11:46,057 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 22:11:46,057 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7e2309f4-063d-4b6a-afe9-3f38d9b9cb58 2025-10-08 22:11:46,067 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/cc5da4cb-8253-4912-b30d-49ada2825158 2025-10-08 22:11:46,081 - INFO - Verified VN network id 11 for VN 7e2309f4-063d-4b6a-afe9-3f38d9b9cb58 2025-10-08 22:11:46,081 - INFO - Verifications in API Server for VN ctest-vn4-22760362 passed 2025-10-08 22:11:46,081 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7e2309f4-063d-4b6a-afe9-3f38d9b9cb58 2025-10-08 22:11:46,091 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/cc5da4cb-8253-4912-b30d-49ada2825158 2025-10-08 22:11:46,097 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/cc5da4cb-8253-4912-b30d-49ada2825158 2025-10-08 22:11:46,102 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/98464ed1-4df9-4147-b7ff-b20487b23ccc 2025-10-08 22:11:46,113 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20111959:ctest-vn4-22760362', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20111959', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9089119416645143402', 'uuid-lslong': '12675732139614522200'}, 'enable': 'true', 'created': '2025-10-08T22:11:44', 'last-modified': '2025-10-08T22:11:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711354'} 2025-10-08 22:11:46,119 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 22:11:46,119 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-22760362 passed 2025-10-08 22:11:46,119 - DEBUG - ====Verifying policy data for ctest-vn4-22760362 in API_Server ====== 2025-10-08 22:11:46,119 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-08 22:11:46,125 - DEBUG - Requesting: http://10.0.0.27:8082/domain/191a2e31-4b3f-45d7-8827-24503f837416 2025-10-08 22:11:46,135 - DEBUG - Requesting: http://10.0.0.27:8082/project/335f08cd-8282-4bc9-b539-0c3317e32577 2025-10-08 22:11:46,203 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7e2309f4-063d-4b6a-afe9-3f38d9b9cb58 2025-10-08 22:11:46,212 - DEBUG - ==>Verifying data for policy with id: 9d747cd6-85d7-4d7a-a4ed-6c082cb4f184, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20111959', 'ctest-policy1-64188589'] 2025-10-08 22:11:46,212 - INFO - VN ctest-vn4-22760362 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-08 22:11:46,212 - DEBUG - Verifying the vn in opserver 2025-10-08 22:11:46,212 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20111959:ctest-vn4-22760362 virtual network link through opserver 10.0.0.27 2025-10-08 22:11:46,212 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-08 22:11:46,510 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-08 22:11:46,563 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20111959:ctest-vn4-22760362', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20111959:ctest-vn4-22760362?flat'} 2025-10-08 22:11:46,563 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20111959:ctest-vn4-22760362 is found in opserver 2025-10-08 22:11:46,571 - DEBUG - Do not have enough data to verify VN in agent 2025-10-08 22:11:46,575 - DEBUG - VRF ids for VN ctest-vn4-22760362: {} 2025-10-08 22:11:46,575 - DEBUG - ====Verifying data for ctest-policy1-64188589 in API_Server ====== 2025-10-08 22:11:46,575 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-08 22:11:46,580 - DEBUG - Requesting: http://10.0.0.27:8082/domain/191a2e31-4b3f-45d7-8827-24503f837416 2025-10-08 22:11:46,589 - DEBUG - Requesting: http://10.0.0.27:8082/project/335f08cd-8282-4bc9-b539-0c3317e32577 2025-10-08 22:11:46,659 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/9d747cd6-85d7-4d7a-a4ed-6c082cb4f184 2025-10-08 22:11:46,669 - INFO - Verified policy ctest-policy1-64188589 in API Server, Result: True 2025-10-08 22:11:46,669 - INFO - Done with setup and verification, moving onto test .. 2025-10-08 22:11:46,677 - INFO - Deleting VN ctest-vn4-22760362 2025-10-08 22:11:46,793 - DEBUG - Response for deleting network () 2025-10-08 22:11:46,793 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/cc5da4cb-8253-4912-b30d-49ada2825158 2025-10-08 22:11:46,798 - DEBUG - Response Code: 404 2025-10-08 22:11:46,798 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-08 22:11:46,803 - DEBUG - Requesting: http://10.0.0.27:8082/domain/191a2e31-4b3f-45d7-8827-24503f837416 2025-10-08 22:11:46,862 - DEBUG - Requesting: http://10.0.0.27:8082/project/335f08cd-8282-4bc9-b539-0c3317e32577 2025-10-08 22:11:46,958 - INFO - Validated that VN ctest-vn4-22760362 is not found in API Server 2025-10-08 22:11:46,967 - DEBUG - VN ctest-vn4-22760362 is not present in Agent 10.0.0.27 2025-10-08 22:11:46,967 - INFO - Validated that VN ctest-vn4-22760362 is not in any agent 2025-10-08 22:11:46,981 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-22760362 info 2025-10-08 22:11:47,037 - INFO - Deleted policy ctest-policy1-64188589 2025-10-08 22:11:47,276 - DEBUG - policy ctest-policy1-64188589 is not found in API Server 2025-10-08 22:11:47,534 - DEBUG - No XMPP flaps were noticed during the test
2025-10-08 22:11:47,534 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-08 22:11:47,534 - INFO - -------------------------------------------------------------------------------- 2025-10-08 22:11:47,825 - DEBUG - No XMPP flaps were noticed during the test
2025-10-08 22:11:47,825 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-08 22:11:47,826 - INFO - -------------------------------------------------------------------------------- 2025-10-08 22:11:48,485 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-20111959, ID : 335f08cd-8282-4bc9-b539-0c3317e32577