2025-08-11 21:34:13,039 - INFO - Domain Default found not creating 2025-08-11 21:34:13,159 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-78224491 not found, creating it 2025-08-11 21:34:13,633 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-78224491, ID : c6d73dea-d018-4d62-b946-02104379d6ac 2025-08-11 21:34:14,919 - INFO - ================================================================================ 2025-08-11 21:34:14,919 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 21:34:15,171 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-11 21:34:15,171 - INFO - Initial checks done. Running the testcase now 2025-08-11 21:34:15,171 - INFO - 2025-08-11 21:34:15,171 - INFO - ================================================================================ 2025-08-11 21:34:15,171 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 21:34:15,172 - 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-11 21:34:15,459 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-11 21:34:15,459 - INFO - Initial checks done. Running the testcase now 2025-08-11 21:34:15,459 - INFO - 2025-08-11 21:34:15,792 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78224491:ctest-vn4-24341163, 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-78224491:ctest-vn4-24341163, 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-78224491:ctest-vn4-24341163, 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-78224491:ctest-vn4-24341163, 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-11 21:34:16,270 - DEBUG - Response for create_network : {'network': {'id': 'eb2a8f6b-97e2-4665-84d2-5d63a63cd3d4', 'name': 'ctest-vn4-24341163', 'tenant_id': 'c6d73dead0184d62b94602104379d6ac', 'project_id': 'c6d73dead0184d62b94602104379d6ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78224491', 'ctest-vn4-24341163'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 21:34:16,477 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c78a278d-6055-4088-8a47-82de02f8614d', 'name': '', 'tenant_id': 'c6d73dead0184d62b94602104379d6ac', 'network_id': 'eb2a8f6b-97e2-4665-84d2-5d63a63cd3d4', 'ip_version': 4, 'cidr': '223.197.93.192/26', 'allocation_pools': [{'start': '223.197.93.194', 'end': '223.197.93.254'}], 'gateway_ip': '223.197.93.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.197.93.194', 'tags': [], 'project_id': 'c6d73dead0184d62b94602104379d6ac'}} 2025-08-11 21:34:16,649 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d19782b-07e3-4156-adba-e9d274a9c026', 'name': '', 'tenant_id': 'c6d73dead0184d62b94602104379d6ac', 'network_id': 'eb2a8f6b-97e2-4665-84d2-5d63a63cd3d4', 'ip_version': 6, 'cidr': '31f6:d157:a01d:bdb4:3551:a098::/96', 'allocation_pools': [{'start': '31f6:d157:a01d:bdb4:3551:a098:0:2', 'end': '31f6:d157:a01d:bdb4:3551:a098:ffff:fffe'}], 'gateway_ip': '31f6:d157:a01d:bdb4:3551:a098:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31f6:d157:a01d:bdb4:3551:a098:0:2', 'tags': [], 'project_id': 'c6d73dead0184d62b94602104379d6ac'}} 2025-08-11 21:34:16,666 - INFO - Created VN ctest-vn4-24341163 2025-08-11 21:34:16,718 - DEBUG - VN ctest-vn4-24341163 UUID is eb2a8f6b-97e2-4665-84d2-5d63a63cd3d4 2025-08-11 21:34:16,902 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb2a8f6b-97e2-4665-84d2-5d63a63cd3d4', 'name': 'ctest-vn4-24341163', 'tenant_id': 'c6d73dead0184d62b94602104379d6ac', 'project_id': 'c6d73dead0184d62b94602104379d6ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c78a278d-6055-4088-8a47-82de02f8614d', '5d19782b-07e3-4156-adba-e9d274a9c026'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78224491', 'ctest-vn4-24341163'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78224491', 'ctest-policy1-63418109']], 'subnet_ipam': [{'subnet_cidr': '223.197.93.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31f6:d157:a01d:bdb4:3551:a098::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 21:34:17,062 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-11 21:34:17,349 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-11 21:34:17,374 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bac6c050-28c2-4648-b2b0-3ea97e2c40c5 2025-08-11 21:34:17,386 - DEBUG - Requesting: http://10.0.0.254:8082/project/c6d73dea-d018-4d62-b946-02104379d6ac 2025-08-11 21:34:17,457 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb2a8f6b-97e2-4665-84d2-5d63a63cd3d4 2025-08-11 21:34:17,472 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb2a8f6b-97e2-4665-84d2-5d63a63cd3d4 2025-08-11 21:34:17,486 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0eb7138f-839d-4ce5-b9fc-f8ad4371331a 2025-08-11 21:34:17,494 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0eb7138f-839d-4ce5-b9fc-f8ad4371331a 2025-08-11 21:34:17,502 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3e1217ad-dd1a-4dfc-86af-603d64bfdc1c 2025-08-11 21:34:17,510 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 21:34:17,510 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb2a8f6b-97e2-4665-84d2-5d63a63cd3d4 2025-08-11 21:34:17,523 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0eb7138f-839d-4ce5-b9fc-f8ad4371331a 2025-08-11 21:34:17,538 - INFO - Verified VN network id 11 for VN eb2a8f6b-97e2-4665-84d2-5d63a63cd3d4 2025-08-11 21:34:17,538 - INFO - Verifications in API Server for VN ctest-vn4-24341163 passed 2025-08-11 21:34:17,538 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb2a8f6b-97e2-4665-84d2-5d63a63cd3d4 2025-08-11 21:34:17,551 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0eb7138f-839d-4ce5-b9fc-f8ad4371331a 2025-08-11 21:34:17,561 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0eb7138f-839d-4ce5-b9fc-f8ad4371331a 2025-08-11 21:34:17,569 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3e1217ad-dd1a-4dfc-86af-603d64bfdc1c 2025-08-11 21:34:17,582 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78224491:ctest-vn4-24341163', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-78224491', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16945514240207373925', 'uuid-lslong': '9570814840687875028'}, 'enable': 'true', 'created': '2025-08-11T21:34:16', 'last-modified': '2025-08-11T21:34:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711586'} 2025-08-11 21:34:17,588 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 21:34:17,588 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-24341163 passed 2025-08-11 21:34:17,588 - DEBUG - ====Verifying policy data for ctest-vn4-24341163 in API_Server ====== 2025-08-11 21:34:17,588 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-11 21:34:17,593 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bac6c050-28c2-4648-b2b0-3ea97e2c40c5 2025-08-11 21:34:17,605 - DEBUG - Requesting: http://10.0.0.254:8082/project/c6d73dea-d018-4d62-b946-02104379d6ac 2025-08-11 21:34:17,676 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb2a8f6b-97e2-4665-84d2-5d63a63cd3d4 2025-08-11 21:34:17,689 - DEBUG - ==>Verifying data for policy with id: 79b1753e-fe7f-4054-a8f1-f426b1b7fc35, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78224491', 'ctest-policy1-63418109'] 2025-08-11 21:34:17,689 - INFO - VN ctest-vn4-24341163 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 21:34:17,690 - DEBUG - Verifying the vn in opserver 2025-08-11 21:34:17,690 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78224491:ctest-vn4-24341163 virtual network link through opserver 10.0.0.254 2025-08-11 21:34:17,690 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-11 21:34:17,978 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-11 21:34:18,025 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78224491:ctest-vn4-24341163', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78224491:ctest-vn4-24341163?flat'} 2025-08-11 21:34:18,025 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78224491:ctest-vn4-24341163 is found in opserver 2025-08-11 21:34:18,036 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 21:34:18,042 - DEBUG - VRF ids for VN ctest-vn4-24341163: {} 2025-08-11 21:34:18,042 - DEBUG - ====Verifying data for ctest-policy1-63418109 in API_Server ====== 2025-08-11 21:34:18,042 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-11 21:34:18,047 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bac6c050-28c2-4648-b2b0-3ea97e2c40c5 2025-08-11 21:34:18,056 - DEBUG - Requesting: http://10.0.0.254:8082/project/c6d73dea-d018-4d62-b946-02104379d6ac 2025-08-11 21:34:18,127 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/79b1753e-fe7f-4054-a8f1-f426b1b7fc35 2025-08-11 21:34:18,136 - INFO - Verified policy ctest-policy1-63418109 in API Server, Result: True 2025-08-11 21:34:18,136 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 21:34:18,143 - INFO - Deleting VN ctest-vn4-24341163 2025-08-11 21:34:18,250 - DEBUG - Response for deleting network () 2025-08-11 21:34:18,250 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0eb7138f-839d-4ce5-b9fc-f8ad4371331a 2025-08-11 21:34:18,255 - DEBUG - Response Code: 404 2025-08-11 21:34:18,256 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-11 21:34:18,261 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bac6c050-28c2-4648-b2b0-3ea97e2c40c5 2025-08-11 21:34:18,318 - DEBUG - Requesting: http://10.0.0.254:8082/project/c6d73dea-d018-4d62-b946-02104379d6ac 2025-08-11 21:34:18,385 - INFO - Validated that VN ctest-vn4-24341163 is not found in API Server 2025-08-11 21:34:18,395 - DEBUG - VN ctest-vn4-24341163 is not present in Agent 10.0.0.254 2025-08-11 21:34:18,395 - INFO - Validated that VN ctest-vn4-24341163 is not in any agent 2025-08-11 21:34:18,410 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-24341163 info 2025-08-11 21:34:18,432 - INFO - Deleted policy ctest-policy1-63418109 2025-08-11 21:34:18,589 - DEBUG - policy ctest-policy1-63418109 is not found in API Server 2025-08-11 21:34:18,839 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 21:34:18,839 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-08-11 21:34:18,839 - INFO - -------------------------------------------------------------------------------- 2025-08-11 21:34:19,127 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 21:34:19,127 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-08-11 21:34:19,128 - INFO - -------------------------------------------------------------------------------- 2025-08-11 21:34:19,765 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-78224491, ID : c6d73dea-d018-4d62-b946-02104379d6ac