2025-12-09 03:49:44,398 - INFO - Domain Default found not creating 2025-12-09 03:49:44,571 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87357225 not found, creating it 2025-12-09 03:49:45,046 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87357225, ID : a737d2f4-8b7c-4daa-b8f9-44b21aa8b392 2025-12-09 03:49:46,657 - INFO - ================================================================================ 2025-12-09 03:49:46,657 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-09 03:49:46,922 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2025-12-09 03:49:46,922 - INFO - Initial checks done. Running the testcase now 2025-12-09 03:49:46,922 - INFO - 2025-12-09 03:49:46,922 - INFO - ================================================================================ 2025-12-09 03:49:46,922 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-09 03:49:46,922 - 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-12-09 03:49:47,219 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2025-12-09 03:49:47,219 - INFO - Initial checks done. Running the testcase now 2025-12-09 03:49:47,219 - INFO - 2025-12-09 03:49:47,615 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87357225:ctest-vn4-92847188, 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-87357225:ctest-vn4-92847188, 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-87357225:ctest-vn4-92847188, 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-87357225:ctest-vn4-92847188, 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-12-09 03:49:48,136 - DEBUG - Response for create_network : {'network': {'id': '01d9d4f6-8d54-4f02-959e-acbe32da0838', 'name': 'ctest-vn4-92847188', 'tenant_id': 'a737d2f48b7c4daab8f944b21aa8b392', 'project_id': 'a737d2f48b7c4daab8f944b21aa8b392', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87357225', 'ctest-vn4-92847188'], 'port_security_enabled': True, 'description': ''}} 2025-12-09 03:49:48,344 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7b51fcd-349c-498b-be2c-2037ad4f2643', 'name': '', 'tenant_id': 'a737d2f48b7c4daab8f944b21aa8b392', 'network_id': '01d9d4f6-8d54-4f02-959e-acbe32da0838', 'ip_version': 4, 'cidr': '135.129.138.192/26', 'allocation_pools': [{'start': '135.129.138.194', 'end': '135.129.138.254'}], 'gateway_ip': '135.129.138.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.129.138.194', 'tags': [], 'project_id': 'a737d2f48b7c4daab8f944b21aa8b392'}} 2025-12-09 03:49:48,521 - DEBUG - Response for create_subnet : {'subnet': {'id': '58d8bea5-b459-4432-95bf-350001521a2a', 'name': '', 'tenant_id': 'a737d2f48b7c4daab8f944b21aa8b392', 'network_id': '01d9d4f6-8d54-4f02-959e-acbe32da0838', 'ip_version': 6, 'cidr': '3320:8354:45a1:263f:c256:25ca::/96', 'allocation_pools': [{'start': '3320:8354:45a1:263f:c256:25ca:0:2', 'end': '3320:8354:45a1:263f:c256:25ca:ffff:fffe'}], 'gateway_ip': '3320:8354:45a1:263f:c256:25ca:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3320:8354:45a1:263f:c256:25ca:0:2', 'tags': [], 'project_id': 'a737d2f48b7c4daab8f944b21aa8b392'}} 2025-12-09 03:49:48,543 - INFO - Created VN ctest-vn4-92847188 2025-12-09 03:49:48,597 - DEBUG - VN ctest-vn4-92847188 UUID is 01d9d4f6-8d54-4f02-959e-acbe32da0838 2025-12-09 03:49:48,798 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '01d9d4f6-8d54-4f02-959e-acbe32da0838', 'name': 'ctest-vn4-92847188', 'tenant_id': 'a737d2f48b7c4daab8f944b21aa8b392', 'project_id': 'a737d2f48b7c4daab8f944b21aa8b392', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7b51fcd-349c-498b-be2c-2037ad4f2643', '58d8bea5-b459-4432-95bf-350001521a2a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87357225', 'ctest-vn4-92847188'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87357225', 'ctest-policy1-93726273']], 'subnet_ipam': [{'subnet_cidr': '135.129.138.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3320:8354:45a1:263f:c256:25ca::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-09 03:49:48,965 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-09 03:49:49,298 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-09 03:49:49,336 - DEBUG - Requesting: http://10.0.0.38:8082/domain/81c8a87e-64b8-4b78-9ee7-bfb590435b78 2025-12-09 03:49:49,352 - DEBUG - Requesting: http://10.0.0.38:8082/project/a737d2f4-8b7c-4daa-b8f9-44b21aa8b392 2025-12-09 03:49:49,428 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/01d9d4f6-8d54-4f02-959e-acbe32da0838 2025-12-09 03:49:49,440 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/01d9d4f6-8d54-4f02-959e-acbe32da0838 2025-12-09 03:49:49,452 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/095e6827-5ec9-4a3f-90d5-716ab2cc620d 2025-12-09 03:49:49,458 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/095e6827-5ec9-4a3f-90d5-716ab2cc620d 2025-12-09 03:49:49,465 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fd6aea3b-7020-479f-8a10-5323af9dfd47 2025-12-09 03:49:49,471 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-09 03:49:49,471 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/01d9d4f6-8d54-4f02-959e-acbe32da0838 2025-12-09 03:49:49,480 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/095e6827-5ec9-4a3f-90d5-716ab2cc620d 2025-12-09 03:49:49,493 - INFO - Verified VN network id 11 for VN 01d9d4f6-8d54-4f02-959e-acbe32da0838 2025-12-09 03:49:49,493 - INFO - Verifications in API Server for VN ctest-vn4-92847188 passed 2025-12-09 03:49:49,493 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/01d9d4f6-8d54-4f02-959e-acbe32da0838 2025-12-09 03:49:49,502 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/095e6827-5ec9-4a3f-90d5-716ab2cc620d 2025-12-09 03:49:49,509 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/095e6827-5ec9-4a3f-90d5-716ab2cc620d 2025-12-09 03:49:49,516 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fd6aea3b-7020-479f-8a10-5323af9dfd47 2025-12-09 03:49:49,530 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87357225:ctest-vn4-92847188', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87357225', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '133371819382296322', 'uuid-lslong': '10781244490868459576'}, 'enable': 'true', 'created': '2025-12-09T03:49:48', 'last-modified': '2025-12-09T03:49:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.755970'} 2025-12-09 03:49:49,538 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-09 03:49:49,538 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-92847188 passed 2025-12-09 03:49:49,538 - DEBUG - ====Verifying policy data for ctest-vn4-92847188 in API_Server ====== 2025-12-09 03:49:49,538 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-09 03:49:49,544 - DEBUG - Requesting: http://10.0.0.38:8082/domain/81c8a87e-64b8-4b78-9ee7-bfb590435b78 2025-12-09 03:49:49,558 - DEBUG - Requesting: http://10.0.0.38:8082/project/a737d2f4-8b7c-4daa-b8f9-44b21aa8b392 2025-12-09 03:49:49,628 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/01d9d4f6-8d54-4f02-959e-acbe32da0838 2025-12-09 03:49:49,639 - DEBUG - ==>Verifying data for policy with id: 33c7a2b0-569e-48cc-8585-50a0b4612740, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87357225', 'ctest-policy1-93726273'] 2025-12-09 03:49:49,639 - INFO - VN ctest-vn4-92847188 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-09 03:49:49,639 - DEBUG - Verifying the vn in opserver 2025-12-09 03:49:49,639 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87357225:ctest-vn4-92847188 virtual network link through opserver 10.0.0.38 2025-12-09 03:49:49,639 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-09 03:49:49,977 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-09 03:49:50,044 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87357225:ctest-vn4-92847188', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87357225:ctest-vn4-92847188?flat'} 2025-12-09 03:49:50,045 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87357225:ctest-vn4-92847188 is found in opserver 2025-12-09 03:49:50,054 - DEBUG - Do not have enough data to verify VN in agent 2025-12-09 03:49:50,059 - DEBUG - VRF ids for VN ctest-vn4-92847188: {} 2025-12-09 03:49:50,059 - DEBUG - ====Verifying data for ctest-policy1-93726273 in API_Server ====== 2025-12-09 03:49:50,059 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-09 03:49:50,065 - DEBUG - Requesting: http://10.0.0.38:8082/domain/81c8a87e-64b8-4b78-9ee7-bfb590435b78 2025-12-09 03:49:50,076 - DEBUG - Requesting: http://10.0.0.38:8082/project/a737d2f4-8b7c-4daa-b8f9-44b21aa8b392 2025-12-09 03:49:50,146 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/33c7a2b0-569e-48cc-8585-50a0b4612740 2025-12-09 03:49:50,155 - INFO - Verified policy ctest-policy1-93726273 in API Server, Result: True 2025-12-09 03:49:50,155 - INFO - Done with setup and verification, moving onto test .. 2025-12-09 03:49:50,162 - INFO - Deleting VN ctest-vn4-92847188 2025-12-09 03:49:50,277 - DEBUG - Response for deleting network () 2025-12-09 03:49:50,277 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/095e6827-5ec9-4a3f-90d5-716ab2cc620d 2025-12-09 03:49:50,282 - DEBUG - Response Code: 404 2025-12-09 03:49:50,282 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-09 03:49:50,287 - DEBUG - Requesting: http://10.0.0.38:8082/domain/81c8a87e-64b8-4b78-9ee7-bfb590435b78 2025-12-09 03:49:50,337 - DEBUG - Requesting: http://10.0.0.38:8082/project/a737d2f4-8b7c-4daa-b8f9-44b21aa8b392 2025-12-09 03:49:50,405 - INFO - Validated that VN ctest-vn4-92847188 is not found in API Server 2025-12-09 03:49:50,417 - DEBUG - VN ctest-vn4-92847188 is not present in Agent 10.0.0.38 2025-12-09 03:49:50,417 - INFO - Validated that VN ctest-vn4-92847188 is not in any agent 2025-12-09 03:49:50,432 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-92847188 info 2025-12-09 03:49:50,455 - INFO - Deleted policy ctest-policy1-93726273 2025-12-09 03:49:50,617 - DEBUG - policy ctest-policy1-93726273 is not found in API Server 2025-12-09 03:49:50,874 - DEBUG - No XMPP flaps were noticed during the test 2025-12-09 03:49:50,874 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-09 03:49:50,874 - INFO - -------------------------------------------------------------------------------- 2025-12-09 03:49:51,163 - DEBUG - No XMPP flaps were noticed during the test 2025-12-09 03:49:51,163 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-12-09 03:49:51,163 - INFO - -------------------------------------------------------------------------------- 2025-12-09 03:49:51,862 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-87357225, ID : a737d2f4-8b7c-4daa-b8f9-44b21aa8b392