2025-10-27 20:32:58,265 - INFO - Domain Default found not creating 2025-10-27 20:32:58,402 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-98992660 not found, creating it 2025-10-27 20:32:58,821 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-98992660, ID : a35b9468-b656-41d3-bedc-8db92fc0eeb2 2025-10-27 20:33:00,195 - INFO - ================================================================================ 2025-10-27 20:33:00,195 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 20:33:00,448 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-27 20:33:00,448 - INFO - Initial checks done. Running the testcase now 2025-10-27 20:33:00,448 - INFO - 2025-10-27 20:33:00,448 - INFO - ================================================================================ 2025-10-27 20:33:00,448 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 20:33:00,448 - 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-27 20:33:00,734 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-27 20:33:00,734 - INFO - Initial checks done. Running the testcase now 2025-10-27 20:33:00,735 - INFO - 2025-10-27 20:33:01,083 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98992660:ctest-vn4-78082969, 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-98992660:ctest-vn4-78082969, 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-98992660:ctest-vn4-78082969, 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-98992660:ctest-vn4-78082969, 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-27 20:33:01,592 - DEBUG - Response for create_network : {'network': {'id': '5e9ef0c3-8910-47c8-87a7-56abe9fc70d9', 'name': 'ctest-vn4-78082969', 'tenant_id': 'a35b9468b65641d3bedc8db92fc0eeb2', 'project_id': 'a35b9468b65641d3bedc8db92fc0eeb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98992660', 'ctest-vn4-78082969'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 20:33:01,772 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de725805-a1f0-4526-836d-33af26d004ab', 'name': '', 'tenant_id': 'a35b9468b65641d3bedc8db92fc0eeb2', 'network_id': '5e9ef0c3-8910-47c8-87a7-56abe9fc70d9', 'ip_version': 4, 'cidr': '149.134.33.128/26', 'allocation_pools': [{'start': '149.134.33.130', 'end': '149.134.33.190'}], 'gateway_ip': '149.134.33.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.134.33.130', 'tags': [], 'project_id': 'a35b9468b65641d3bedc8db92fc0eeb2'}} 2025-10-27 20:33:01,978 - DEBUG - Response for create_subnet : {'subnet': {'id': '3f83051c-cd77-46c6-ad41-fdcbc41bc68b', 'name': '', 'tenant_id': 'a35b9468b65641d3bedc8db92fc0eeb2', 'network_id': '5e9ef0c3-8910-47c8-87a7-56abe9fc70d9', 'ip_version': 6, 'cidr': '297f:a825:ce93:299b:739f:acc0::/96', 'allocation_pools': [{'start': '297f:a825:ce93:299b:739f:acc0:0:2', 'end': '297f:a825:ce93:299b:739f:acc0:ffff:fffe'}], 'gateway_ip': '297f:a825:ce93:299b:739f:acc0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '297f:a825:ce93:299b:739f:acc0:0:2', 'tags': [], 'project_id': 'a35b9468b65641d3bedc8db92fc0eeb2'}} 2025-10-27 20:33:01,998 - INFO - Created VN ctest-vn4-78082969 2025-10-27 20:33:02,050 - DEBUG - VN ctest-vn4-78082969 UUID is 5e9ef0c3-8910-47c8-87a7-56abe9fc70d9 2025-10-27 20:33:02,259 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5e9ef0c3-8910-47c8-87a7-56abe9fc70d9', 'name': 'ctest-vn4-78082969', 'tenant_id': 'a35b9468b65641d3bedc8db92fc0eeb2', 'project_id': 'a35b9468b65641d3bedc8db92fc0eeb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['de725805-a1f0-4526-836d-33af26d004ab', '3f83051c-cd77-46c6-ad41-fdcbc41bc68b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98992660', 'ctest-vn4-78082969'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98992660', 'ctest-policy1-45129861']], 'subnet_ipam': [{'subnet_cidr': '149.134.33.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '297f:a825:ce93:299b:739f:acc0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-27 20:33:02,414 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-27 20:33:02,705 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-27 20:33:02,733 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2e47e640-8f8e-4871-bd9a-90fac508bcd4 2025-10-27 20:33:02,743 - DEBUG - Requesting: http://10.0.0.254:8082/project/a35b9468-b656-41d3-bedc-8db92fc0eeb2 2025-10-27 20:33:02,875 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5e9ef0c3-8910-47c8-87a7-56abe9fc70d9 2025-10-27 20:33:02,886 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5e9ef0c3-8910-47c8-87a7-56abe9fc70d9 2025-10-27 20:33:02,895 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/330e442a-43c1-46a9-8cce-badfa7adf8d1 2025-10-27 20:33:02,902 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/330e442a-43c1-46a9-8cce-badfa7adf8d1 2025-10-27 20:33:02,908 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/28c96f73-722f-462d-a6fb-770391af83d0 2025-10-27 20:33:02,914 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 20:33:02,914 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5e9ef0c3-8910-47c8-87a7-56abe9fc70d9 2025-10-27 20:33:02,923 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/330e442a-43c1-46a9-8cce-badfa7adf8d1 2025-10-27 20:33:02,936 - INFO - Verified VN network id 11 for VN 5e9ef0c3-8910-47c8-87a7-56abe9fc70d9 2025-10-27 20:33:02,936 - INFO - Verifications in API Server for VN ctest-vn4-78082969 passed 2025-10-27 20:33:02,937 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5e9ef0c3-8910-47c8-87a7-56abe9fc70d9 2025-10-27 20:33:02,946 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/330e442a-43c1-46a9-8cce-badfa7adf8d1 2025-10-27 20:33:02,951 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/330e442a-43c1-46a9-8cce-badfa7adf8d1 2025-10-27 20:33:02,957 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/28c96f73-722f-462d-a6fb-770391af83d0 2025-10-27 20:33:02,969 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98992660:ctest-vn4-78082969', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98992660', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6818151608494344136', 'uuid-lslong': '9774876812595982553'}, 'enable': 'true', 'created': '2025-10-27T20:33:01', 'last-modified': '2025-10-27T20:33:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.742719'} 2025-10-27 20:33:02,977 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 20:33:02,977 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78082969 passed 2025-10-27 20:33:02,977 - DEBUG - ====Verifying policy data for ctest-vn4-78082969 in API_Server ====== 2025-10-27 20:33:02,977 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-27 20:33:02,983 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2e47e640-8f8e-4871-bd9a-90fac508bcd4 2025-10-27 20:33:02,994 - DEBUG - Requesting: http://10.0.0.254:8082/project/a35b9468-b656-41d3-bedc-8db92fc0eeb2 2025-10-27 20:33:03,065 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5e9ef0c3-8910-47c8-87a7-56abe9fc70d9 2025-10-27 20:33:03,076 - DEBUG - ==>Verifying data for policy with id: d089ed84-5dea-40d5-8090-cce76fb6f7f7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98992660', 'ctest-policy1-45129861'] 2025-10-27 20:33:03,076 - INFO - VN ctest-vn4-78082969 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-27 20:33:03,076 - DEBUG - Verifying the vn in opserver 2025-10-27 20:33:03,076 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98992660:ctest-vn4-78082969 virtual network link through opserver 10.0.0.254 2025-10-27 20:33:03,076 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-27 20:33:03,366 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-27 20:33:03,417 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98992660:ctest-vn4-78082969', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98992660:ctest-vn4-78082969?flat'} 2025-10-27 20:33:03,417 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98992660:ctest-vn4-78082969 is found in opserver 2025-10-27 20:33:03,425 - DEBUG - Do not have enough data to verify VN in agent 2025-10-27 20:33:03,430 - DEBUG - VRF ids for VN ctest-vn4-78082969: {} 2025-10-27 20:33:03,430 - DEBUG - ====Verifying data for ctest-policy1-45129861 in API_Server ====== 2025-10-27 20:33:03,430 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-27 20:33:03,435 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2e47e640-8f8e-4871-bd9a-90fac508bcd4 2025-10-27 20:33:03,444 - DEBUG - Requesting: http://10.0.0.254:8082/project/a35b9468-b656-41d3-bedc-8db92fc0eeb2 2025-10-27 20:33:03,515 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/d089ed84-5dea-40d5-8090-cce76fb6f7f7 2025-10-27 20:33:03,523 - INFO - Verified policy ctest-policy1-45129861 in API Server, Result: True 2025-10-27 20:33:03,523 - INFO - Done with setup and verification, moving onto test .. 2025-10-27 20:33:03,530 - INFO - Deleting VN ctest-vn4-78082969 2025-10-27 20:33:03,635 - DEBUG - Response for deleting network () 2025-10-27 20:33:03,635 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/330e442a-43c1-46a9-8cce-badfa7adf8d1 2025-10-27 20:33:03,639 - DEBUG - Response Code: 404 2025-10-27 20:33:03,639 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-27 20:33:03,644 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2e47e640-8f8e-4871-bd9a-90fac508bcd4 2025-10-27 20:33:03,694 - DEBUG - Requesting: http://10.0.0.254:8082/project/a35b9468-b656-41d3-bedc-8db92fc0eeb2 2025-10-27 20:33:03,763 - INFO - Validated that VN ctest-vn4-78082969 is not found in API Server 2025-10-27 20:33:03,774 - DEBUG - VN ctest-vn4-78082969 is not present in Agent 10.0.0.254 2025-10-27 20:33:03,774 - INFO - Validated that VN ctest-vn4-78082969 is not in any agent 2025-10-27 20:33:03,788 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78082969 info 2025-10-27 20:33:03,821 - INFO - Deleted policy ctest-policy1-45129861 2025-10-27 20:33:04,033 - DEBUG - policy ctest-policy1-45129861 is not found in API Server 2025-10-27 20:33:04,293 - DEBUG - No XMPP flaps were noticed during the test
2025-10-27 20:33:04,294 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-27 20:33:04,294 - INFO - -------------------------------------------------------------------------------- 2025-10-27 20:33:04,578 - DEBUG - No XMPP flaps were noticed during the test
2025-10-27 20:33:04,579 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-27 20:33:04,579 - INFO - -------------------------------------------------------------------------------- 2025-10-27 20:33:05,235 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-98992660, ID : a35b9468-b656-41d3-bedc-8db92fc0eeb2