2025-11-04 22:50:32,368 - INFO - Domain Default found not creating 2025-11-04 22:50:32,512 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-26138093 not found, creating it 2025-11-04 22:50:32,959 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-26138093, ID : bed7f762-0345-4952-b9d6-60c268c8f52a 2025-11-04 22:50:34,329 - INFO - ================================================================================ 2025-11-04 22:50:34,330 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-04 22:50:34,588 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.254': '0'}} with 2025-11-04 22:50:34,588 - INFO - Initial checks done. Running the testcase now 2025-11-04 22:50:34,588 - INFO - 2025-11-04 22:50:34,589 - INFO - ================================================================================ 2025-11-04 22:50:34,589 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-04 22:50:34,589 - 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-04 22:50:34,883 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.254': '0'}} with 2025-11-04 22:50:34,883 - INFO - Initial checks done. Running the testcase now 2025-11-04 22:50:34,883 - INFO - 2025-11-04 22:50:35,263 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26138093:ctest-vn4-16589677, 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-26138093:ctest-vn4-16589677, 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-26138093:ctest-vn4-16589677, 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-26138093:ctest-vn4-16589677, 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-04 22:50:35,764 - DEBUG - Response for create_network : {'network': {'id': 'b6250010-15df-4716-939f-e54d5d21876d', 'name': 'ctest-vn4-16589677', 'tenant_id': 'bed7f76203454952b9d660c268c8f52a', 'project_id': 'bed7f76203454952b9d660c268c8f52a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26138093', 'ctest-vn4-16589677'], 'port_security_enabled': True, 'description': ''}} 2025-11-04 22:50:35,923 - DEBUG - Response for create_subnet : {'subnet': {'id': '4980bf19-926d-4533-9fb9-752cfcaefa3a', 'name': '', 'tenant_id': 'bed7f76203454952b9d660c268c8f52a', 'network_id': 'b6250010-15df-4716-939f-e54d5d21876d', 'ip_version': 4, 'cidr': '87.243.243.0/26', 'allocation_pools': [{'start': '87.243.243.2', 'end': '87.243.243.62'}], 'gateway_ip': '87.243.243.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.243.243.2', 'tags': [], 'project_id': 'bed7f76203454952b9d660c268c8f52a'}} 2025-11-04 22:50:36,069 - DEBUG - Response for create_subnet : {'subnet': {'id': '7596f3bd-aac5-4bef-8c0d-408fb6ed76d2', 'name': '', 'tenant_id': 'bed7f76203454952b9d660c268c8f52a', 'network_id': 'b6250010-15df-4716-939f-e54d5d21876d', 'ip_version': 6, 'cidr': '3db2:d646:9ca0:1e92:1c6e:3dc3::/96', 'allocation_pools': [{'start': '3db2:d646:9ca0:1e92:1c6e:3dc3:0:2', 'end': '3db2:d646:9ca0:1e92:1c6e:3dc3:ffff:fffe'}], 'gateway_ip': '3db2:d646:9ca0:1e92:1c6e:3dc3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3db2:d646:9ca0:1e92:1c6e:3dc3:0:2', 'tags': [], 'project_id': 'bed7f76203454952b9d660c268c8f52a'}} 2025-11-04 22:50:36,143 - INFO - Created VN ctest-vn4-16589677 2025-11-04 22:50:36,195 - DEBUG - VN ctest-vn4-16589677 UUID is b6250010-15df-4716-939f-e54d5d21876d 2025-11-04 22:50:36,370 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b6250010-15df-4716-939f-e54d5d21876d', 'name': 'ctest-vn4-16589677', 'tenant_id': 'bed7f76203454952b9d660c268c8f52a', 'project_id': 'bed7f76203454952b9d660c268c8f52a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4980bf19-926d-4533-9fb9-752cfcaefa3a', '7596f3bd-aac5-4bef-8c0d-408fb6ed76d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26138093', 'ctest-vn4-16589677'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26138093', 'ctest-policy1-87232422']], 'subnet_ipam': [{'subnet_cidr': '87.243.243.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3db2:d646:9ca0:1e92:1c6e:3dc3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-04 22:50:36,523 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-04 22:50:36,811 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-04 22:50:36,835 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1dad466a-c6bf-4009-8f9a-6085e20face1 2025-11-04 22:50:36,848 - DEBUG - Requesting: http://10.0.0.65:8082/project/bed7f762-0345-4952-b9d6-60c268c8f52a 2025-11-04 22:50:36,921 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b6250010-15df-4716-939f-e54d5d21876d 2025-11-04 22:50:36,932 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b6250010-15df-4716-939f-e54d5d21876d 2025-11-04 22:50:36,939 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/472f2f3f-c9d1-4b10-a2cd-6c0c6f1e4a47 2025-11-04 22:50:36,944 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/472f2f3f-c9d1-4b10-a2cd-6c0c6f1e4a47 2025-11-04 22:50:36,950 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/c5935e2c-8f5e-4020-9456-152baffb8428 2025-11-04 22:50:36,954 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-04 22:50:36,954 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b6250010-15df-4716-939f-e54d5d21876d 2025-11-04 22:50:36,962 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/472f2f3f-c9d1-4b10-a2cd-6c0c6f1e4a47 2025-11-04 22:50:36,972 - INFO - Verified VN network id 12 for VN b6250010-15df-4716-939f-e54d5d21876d 2025-11-04 22:50:36,972 - INFO - Verifications in API Server for VN ctest-vn4-16589677 passed 2025-11-04 22:50:36,972 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b6250010-15df-4716-939f-e54d5d21876d 2025-11-04 22:50:36,980 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/472f2f3f-c9d1-4b10-a2cd-6c0c6f1e4a47 2025-11-04 22:50:36,984 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/472f2f3f-c9d1-4b10-a2cd-6c0c6f1e4a47 2025-11-04 22:50:36,989 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/c5935e2c-8f5e-4020-9456-152baffb8428 2025-11-04 22:50:36,998 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26138093:ctest-vn4-16589677', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26138093', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13124896758127609622', 'uuid-lslong': '10637472965310121837'}, 'enable': 'true', 'created': '2025-11-04T22:50:35', 'last-modified': '2025-11-04T22:50:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.649903'} 2025-11-04 22:50:37,003 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-04 22:50:37,003 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-16589677 passed 2025-11-04 22:50:37,004 - DEBUG - ====Verifying policy data for ctest-vn4-16589677 in API_Server ====== 2025-11-04 22:50:37,004 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-04 22:50:37,008 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1dad466a-c6bf-4009-8f9a-6085e20face1 2025-11-04 22:50:37,017 - DEBUG - Requesting: http://10.0.0.65:8082/project/bed7f762-0345-4952-b9d6-60c268c8f52a 2025-11-04 22:50:37,082 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b6250010-15df-4716-939f-e54d5d21876d 2025-11-04 22:50:37,090 - DEBUG - ==>Verifying data for policy with id: 2a125519-338f-4495-ab1b-8808ca8970de, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26138093', 'ctest-policy1-87232422'] 2025-11-04 22:50:37,090 - INFO - VN ctest-vn4-16589677 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-04 22:50:37,090 - DEBUG - Verifying the vn in opserver 2025-11-04 22:50:37,090 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26138093:ctest-vn4-16589677 virtual network link through opserver 10.0.0.65 2025-11-04 22:50:37,090 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-11-04 22:50:37,377 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-11-04 22:50:37,424 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26138093:ctest-vn4-16589677', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26138093:ctest-vn4-16589677?flat'} 2025-11-04 22:50:37,424 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26138093:ctest-vn4-16589677 is found in opserver 2025-11-04 22:50:37,431 - DEBUG - Do not have enough data to verify VN in agent 2025-11-04 22:50:37,435 - DEBUG - VRF ids for VN ctest-vn4-16589677: {} 2025-11-04 22:50:37,436 - DEBUG - ====Verifying data for ctest-policy1-87232422 in API_Server ====== 2025-11-04 22:50:37,436 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-04 22:50:37,440 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1dad466a-c6bf-4009-8f9a-6085e20face1 2025-11-04 22:50:37,449 - DEBUG - Requesting: http://10.0.0.65:8082/project/bed7f762-0345-4952-b9d6-60c268c8f52a 2025-11-04 22:50:37,522 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/2a125519-338f-4495-ab1b-8808ca8970de 2025-11-04 22:50:37,531 - INFO - Verified policy ctest-policy1-87232422 in API Server, Result: True 2025-11-04 22:50:37,531 - INFO - Done with setup and verification, moving onto test .. 2025-11-04 22:50:37,538 - INFO - Deleting VN ctest-vn4-16589677 2025-11-04 22:50:37,642 - DEBUG - Response for deleting network () 2025-11-04 22:50:37,642 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/472f2f3f-c9d1-4b10-a2cd-6c0c6f1e4a47 2025-11-04 22:50:37,646 - DEBUG - Response Code: 404 2025-11-04 22:50:37,646 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-04 22:50:37,650 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1dad466a-c6bf-4009-8f9a-6085e20face1 2025-11-04 22:50:37,699 - DEBUG - Requesting: http://10.0.0.65:8082/project/bed7f762-0345-4952-b9d6-60c268c8f52a 2025-11-04 22:50:37,773 - INFO - Validated that VN ctest-vn4-16589677 is not found in API Server 2025-11-04 22:50:37,782 - DEBUG - VN ctest-vn4-16589677 is not present in Agent 10.0.0.65 2025-11-04 22:50:37,782 - INFO - Validated that VN ctest-vn4-16589677 is not in any agent 2025-11-04 22:50:37,795 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-16589677 info 2025-11-04 22:50:37,816 - INFO - Deleted policy ctest-policy1-87232422 2025-11-04 22:50:37,975 - DEBUG - policy ctest-policy1-87232422 is not found in API Server 2025-11-04 22:50:38,228 - DEBUG - No XMPP flaps were noticed during the test