2025-08-12 14:11:26,712 - INFO - Domain Default found not creating 2025-08-12 14:11:26,836 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-81732772 not found, creating it 2025-08-12 14:11:27,317 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-81732772, ID : 286dec14-e436-4fd3-82b8-e39d03c8a9ed 2025-08-12 14:11:28,623 - INFO - ================================================================================ 2025-08-12 14:11:28,623 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-12 14:11:28,876 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-12 14:11:28,876 - INFO - Initial checks done. Running the testcase now 2025-08-12 14:11:28,876 - INFO - 2025-08-12 14:11:28,876 - INFO - ================================================================================ 2025-08-12 14:11:28,876 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-12 14:11:28,876 - 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-12 14:11:29,164 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-12 14:11:29,164 - INFO - Initial checks done. Running the testcase now 2025-08-12 14:11:29,164 - INFO - 2025-08-12 14:11:29,501 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81732772:ctest-vn4-85224589, 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-81732772:ctest-vn4-85224589, 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-81732772:ctest-vn4-85224589, 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-81732772:ctest-vn4-85224589, 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-12 14:11:29,990 - DEBUG - Response for create_network : {'network': {'id': 'ca9c3395-e9e4-43c2-8ca1-eeb08e2cae8a', 'name': 'ctest-vn4-85224589', 'tenant_id': '286dec14e4364fd382b8e39d03c8a9ed', 'project_id': '286dec14e4364fd382b8e39d03c8a9ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81732772', 'ctest-vn4-85224589'], 'port_security_enabled': True, 'description': ''}} 2025-08-12 14:11:30,199 - DEBUG - Response for create_subnet : {'subnet': {'id': '34c68fec-b79f-43b4-a6b8-cd7b60147d02', 'name': '', 'tenant_id': '286dec14e4364fd382b8e39d03c8a9ed', 'network_id': 'ca9c3395-e9e4-43c2-8ca1-eeb08e2cae8a', 'ip_version': 4, 'cidr': '13.125.141.192/26', 'allocation_pools': [{'start': '13.125.141.194', 'end': '13.125.141.254'}], 'gateway_ip': '13.125.141.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.125.141.194', 'tags': [], 'project_id': '286dec14e4364fd382b8e39d03c8a9ed'}} 2025-08-12 14:11:30,393 - DEBUG - Response for create_subnet : {'subnet': {'id': '5cc42732-f653-4b3d-ac87-0ac2285e4bff', 'name': '', 'tenant_id': '286dec14e4364fd382b8e39d03c8a9ed', 'network_id': 'ca9c3395-e9e4-43c2-8ca1-eeb08e2cae8a', 'ip_version': 6, 'cidr': '22f9:502:e5eb:a85e:a0d5:50b7::/96', 'allocation_pools': [{'start': '22f9:502:e5eb:a85e:a0d5:50b7:0:2', 'end': '22f9:502:e5eb:a85e:a0d5:50b7:ffff:fffe'}], 'gateway_ip': '22f9:502:e5eb:a85e:a0d5:50b7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22f9:502:e5eb:a85e:a0d5:50b7:0:2', 'tags': [], 'project_id': '286dec14e4364fd382b8e39d03c8a9ed'}} 2025-08-12 14:11:30,418 - INFO - Created VN ctest-vn4-85224589 2025-08-12 14:11:30,471 - DEBUG - VN ctest-vn4-85224589 UUID is ca9c3395-e9e4-43c2-8ca1-eeb08e2cae8a 2025-08-12 14:11:30,643 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ca9c3395-e9e4-43c2-8ca1-eeb08e2cae8a', 'name': 'ctest-vn4-85224589', 'tenant_id': '286dec14e4364fd382b8e39d03c8a9ed', 'project_id': '286dec14e4364fd382b8e39d03c8a9ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['34c68fec-b79f-43b4-a6b8-cd7b60147d02', '5cc42732-f653-4b3d-ac87-0ac2285e4bff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81732772', 'ctest-vn4-85224589'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81732772', 'ctest-policy1-76328727']], 'subnet_ipam': [{'subnet_cidr': '13.125.141.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '22f9:502:e5eb:a85e:a0d5:50b7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-12 14:11:30,803 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-12 14:11:31,091 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-12 14:11:31,118 - DEBUG - Requesting: http://10.0.0.254:8082/domain/75e2896a-e40f-49ff-86de-27b30e8a0235 2025-08-12 14:11:31,130 - DEBUG - Requesting: http://10.0.0.254:8082/project/286dec14-e436-4fd3-82b8-e39d03c8a9ed 2025-08-12 14:11:31,199 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca9c3395-e9e4-43c2-8ca1-eeb08e2cae8a 2025-08-12 14:11:31,211 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca9c3395-e9e4-43c2-8ca1-eeb08e2cae8a 2025-08-12 14:11:31,221 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8b74cea2-06ce-4c57-b336-00e63aebb201 2025-08-12 14:11:31,227 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8b74cea2-06ce-4c57-b336-00e63aebb201 2025-08-12 14:11:31,233 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/456d8af9-762b-4878-8468-530a83739527 2025-08-12 14:11:31,238 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-12 14:11:31,238 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca9c3395-e9e4-43c2-8ca1-eeb08e2cae8a 2025-08-12 14:11:31,247 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8b74cea2-06ce-4c57-b336-00e63aebb201 2025-08-12 14:11:31,259 - INFO - Verified VN network id 12 for VN ca9c3395-e9e4-43c2-8ca1-eeb08e2cae8a 2025-08-12 14:11:31,259 - INFO - Verifications in API Server for VN ctest-vn4-85224589 passed 2025-08-12 14:11:31,259 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca9c3395-e9e4-43c2-8ca1-eeb08e2cae8a 2025-08-12 14:11:31,268 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8b74cea2-06ce-4c57-b336-00e63aebb201 2025-08-12 14:11:31,274 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8b74cea2-06ce-4c57-b336-00e63aebb201 2025-08-12 14:11:31,279 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/456d8af9-762b-4878-8468-530a83739527 2025-08-12 14:11:31,290 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81732772:ctest-vn4-85224589', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-81732772', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14599600810995499970', 'uuid-lslong': '10133643078627274378'}, 'enable': 'true', 'created': '2025-08-12T14:11:29', 'last-modified': '2025-08-12T14:11:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.667616'} 2025-08-12 14:11:31,296 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-12 14:11:31,296 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-85224589 passed 2025-08-12 14:11:31,296 - DEBUG - ====Verifying policy data for ctest-vn4-85224589 in API_Server ====== 2025-08-12 14:11:31,296 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-12 14:11:31,300 - DEBUG - Requesting: http://10.0.0.254:8082/domain/75e2896a-e40f-49ff-86de-27b30e8a0235 2025-08-12 14:11:31,310 - DEBUG - Requesting: http://10.0.0.254:8082/project/286dec14-e436-4fd3-82b8-e39d03c8a9ed 2025-08-12 14:11:31,380 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca9c3395-e9e4-43c2-8ca1-eeb08e2cae8a 2025-08-12 14:11:31,390 - DEBUG - ==>Verifying data for policy with id: 23ac0e7f-2097-4b42-8829-36cdca219bde, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81732772', 'ctest-policy1-76328727'] 2025-08-12 14:11:31,390 - INFO - VN ctest-vn4-85224589 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-12 14:11:31,390 - DEBUG - Verifying the vn in opserver 2025-08-12 14:11:31,390 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81732772:ctest-vn4-85224589 virtual network link through opserver 10.0.0.254 2025-08-12 14:11:31,390 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-12 14:11:31,677 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-12 14:11:31,723 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81732772:ctest-vn4-85224589', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81732772:ctest-vn4-85224589?flat'} 2025-08-12 14:11:31,723 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81732772:ctest-vn4-85224589 is found in opserver 2025-08-12 14:11:31,733 - DEBUG - Do not have enough data to verify VN in agent 2025-08-12 14:11:31,737 - DEBUG - VRF ids for VN ctest-vn4-85224589: {} 2025-08-12 14:11:31,738 - DEBUG - ====Verifying data for ctest-policy1-76328727 in API_Server ====== 2025-08-12 14:11:31,738 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-12 14:11:31,743 - DEBUG - Requesting: http://10.0.0.254:8082/domain/75e2896a-e40f-49ff-86de-27b30e8a0235 2025-08-12 14:11:31,753 - DEBUG - Requesting: http://10.0.0.254:8082/project/286dec14-e436-4fd3-82b8-e39d03c8a9ed 2025-08-12 14:11:31,820 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/23ac0e7f-2097-4b42-8829-36cdca219bde 2025-08-12 14:11:31,830 - INFO - Verified policy ctest-policy1-76328727 in API Server, Result: True 2025-08-12 14:11:31,830 - INFO - Done with setup and verification, moving onto test .. 2025-08-12 14:11:31,837 - INFO - Deleting VN ctest-vn4-85224589 2025-08-12 14:11:31,944 - DEBUG - Response for deleting network () 2025-08-12 14:11:31,944 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8b74cea2-06ce-4c57-b336-00e63aebb201 2025-08-12 14:11:31,949 - DEBUG - Response Code: 404 2025-08-12 14:11:31,949 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-12 14:11:31,953 - DEBUG - Requesting: http://10.0.0.254:8082/domain/75e2896a-e40f-49ff-86de-27b30e8a0235 2025-08-12 14:11:32,003 - DEBUG - Requesting: http://10.0.0.254:8082/project/286dec14-e436-4fd3-82b8-e39d03c8a9ed 2025-08-12 14:11:32,073 - INFO - Validated that VN ctest-vn4-85224589 is not found in API Server 2025-08-12 14:11:32,084 - DEBUG - VN ctest-vn4-85224589 is not present in Agent 10.0.0.254 2025-08-12 14:11:32,084 - INFO - Validated that VN ctest-vn4-85224589 is not in any agent 2025-08-12 14:11:32,098 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-85224589 info 2025-08-12 14:11:32,123 - INFO - Deleted policy ctest-policy1-76328727 2025-08-12 14:11:32,282 - DEBUG - policy ctest-policy1-76328727 is not found in API Server 2025-08-12 14:11:32,539 - DEBUG - No XMPP flaps were noticed during the test
2025-08-12 14:11:32,539 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-12 14:11:32,539 - INFO - -------------------------------------------------------------------------------- 2025-08-12 14:11:32,827 - DEBUG - No XMPP flaps were noticed during the test
2025-08-12 14:11:32,827 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-12 14:11:32,828 - INFO - -------------------------------------------------------------------------------- 2025-08-12 14:11:33,482 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-81732772, ID : 286dec14-e436-4fd3-82b8-e39d03c8a9ed