2025-08-08 00:38:59,160 - INFO - Domain Default found not creating 2025-08-08 00:38:59,324 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-83946903 not found, creating it 2025-08-08 00:38:59,834 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-83946903, ID : 360211e9-6fea-4235-b2fa-4163b81b1596 2025-08-08 00:39:01,343 - INFO - ================================================================================ 2025-08-08 00:39:01,343 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-08 00:39:01,602 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-08 00:39:01,602 - INFO - Initial checks done. Running the testcase now 2025-08-08 00:39:01,602 - INFO - 2025-08-08 00:39:01,602 - INFO - ================================================================================ 2025-08-08 00:39:01,602 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-08 00:39:01,602 - 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-08 00:39:01,888 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-08 00:39:01,888 - INFO - Initial checks done. Running the testcase now 2025-08-08 00:39:01,888 - INFO - 2025-08-08 00:39:02,296 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83946903:ctest-vn4-62152977, 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-83946903:ctest-vn4-62152977, 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-83946903:ctest-vn4-62152977, 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-83946903:ctest-vn4-62152977, 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-08 00:39:02,842 - DEBUG - Response for create_network : {'network': {'id': 'ea936e98-54f7-43b1-b9c4-673832763b21', 'name': 'ctest-vn4-62152977', 'tenant_id': '360211e96fea4235b2fa4163b81b1596', 'project_id': '360211e96fea4235b2fa4163b81b1596', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83946903', 'ctest-vn4-62152977'], 'port_security_enabled': True, 'description': ''}} 2025-08-08 00:39:03,035 - DEBUG - Response for create_subnet : {'subnet': {'id': '5341b5ef-bbe6-4ca7-b59b-4bd930e0e4f4', 'name': '', 'tenant_id': '360211e96fea4235b2fa4163b81b1596', 'network_id': 'ea936e98-54f7-43b1-b9c4-673832763b21', 'ip_version': 4, 'cidr': '165.49.172.128/26', 'allocation_pools': [{'start': '165.49.172.130', 'end': '165.49.172.190'}], 'gateway_ip': '165.49.172.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.49.172.130', 'tags': [], 'project_id': '360211e96fea4235b2fa4163b81b1596'}} 2025-08-08 00:39:03,198 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd84a0fed-ea73-4f4a-b0cc-988a5384f20d', 'name': '', 'tenant_id': '360211e96fea4235b2fa4163b81b1596', 'network_id': 'ea936e98-54f7-43b1-b9c4-673832763b21', 'ip_version': 6, 'cidr': '352f:ca0f:29e0:40b1:c563:3beb::/96', 'allocation_pools': [{'start': '352f:ca0f:29e0:40b1:c563:3beb:0:2', 'end': '352f:ca0f:29e0:40b1:c563:3beb:ffff:fffe'}], 'gateway_ip': '352f:ca0f:29e0:40b1:c563:3beb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '352f:ca0f:29e0:40b1:c563:3beb:0:2', 'tags': [], 'project_id': '360211e96fea4235b2fa4163b81b1596'}} 2025-08-08 00:39:03,224 - INFO - Created VN ctest-vn4-62152977 2025-08-08 00:39:03,288 - DEBUG - VN ctest-vn4-62152977 UUID is ea936e98-54f7-43b1-b9c4-673832763b21 2025-08-08 00:39:03,559 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ea936e98-54f7-43b1-b9c4-673832763b21', 'name': 'ctest-vn4-62152977', 'tenant_id': '360211e96fea4235b2fa4163b81b1596', 'project_id': '360211e96fea4235b2fa4163b81b1596', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5341b5ef-bbe6-4ca7-b59b-4bd930e0e4f4', 'd84a0fed-ea73-4f4a-b0cc-988a5384f20d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83946903', 'ctest-vn4-62152977'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83946903', 'ctest-policy1-07692188']], 'subnet_ipam': [{'subnet_cidr': '165.49.172.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '352f:ca0f:29e0:40b1:c563:3beb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-08 00:39:03,744 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 00:39:04,173 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 00:39:04,223 - DEBUG - Requesting: http://10.0.0.38:8082/domain/11b3c3e2-ecab-4c49-86bf-fb4cb47311c3 2025-08-08 00:39:04,243 - DEBUG - Requesting: http://10.0.0.38:8082/project/360211e9-6fea-4235-b2fa-4163b81b1596 2025-08-08 00:39:04,323 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea936e98-54f7-43b1-b9c4-673832763b21 2025-08-08 00:39:04,337 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea936e98-54f7-43b1-b9c4-673832763b21 2025-08-08 00:39:04,352 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b14a0729-05b4-43e5-af3a-5537b19903c2 2025-08-08 00:39:04,364 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b14a0729-05b4-43e5-af3a-5537b19903c2 2025-08-08 00:39:04,373 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/abe68b0c-889e-4364-9350-bcd2d355e830 2025-08-08 00:39:04,380 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 00:39:04,380 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea936e98-54f7-43b1-b9c4-673832763b21 2025-08-08 00:39:04,392 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b14a0729-05b4-43e5-af3a-5537b19903c2 2025-08-08 00:39:04,410 - INFO - Verified VN network id 11 for VN ea936e98-54f7-43b1-b9c4-673832763b21 2025-08-08 00:39:04,410 - INFO - Verifications in API Server for VN ctest-vn4-62152977 passed 2025-08-08 00:39:04,410 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea936e98-54f7-43b1-b9c4-673832763b21 2025-08-08 00:39:04,424 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b14a0729-05b4-43e5-af3a-5537b19903c2 2025-08-08 00:39:04,433 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b14a0729-05b4-43e5-af3a-5537b19903c2 2025-08-08 00:39:04,443 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/abe68b0c-889e-4364-9350-bcd2d355e830 2025-08-08 00:39:04,459 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83946903:ctest-vn4-62152977', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-83946903', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16902975426991178673', 'uuid-lslong': '13385937483514395425'}, 'enable': 'true', 'created': '2025-08-08T00:39:02', 'last-modified': '2025-08-08T00:39:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.956516'} 2025-08-08 00:39:04,467 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 00:39:04,467 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62152977 passed 2025-08-08 00:39:04,467 - DEBUG - ====Verifying policy data for ctest-vn4-62152977 in API_Server ====== 2025-08-08 00:39:04,467 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 00:39:04,474 - DEBUG - Requesting: http://10.0.0.38:8082/domain/11b3c3e2-ecab-4c49-86bf-fb4cb47311c3 2025-08-08 00:39:04,489 - DEBUG - Requesting: http://10.0.0.38:8082/project/360211e9-6fea-4235-b2fa-4163b81b1596 2025-08-08 00:39:04,565 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea936e98-54f7-43b1-b9c4-673832763b21 2025-08-08 00:39:04,583 - DEBUG - ==>Verifying data for policy with id: b9858424-35a0-41cc-8a19-22302c7470ca, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83946903', 'ctest-policy1-07692188'] 2025-08-08 00:39:04,583 - INFO - VN ctest-vn4-62152977 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-08 00:39:04,583 - DEBUG - Verifying the vn in opserver 2025-08-08 00:39:04,583 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83946903:ctest-vn4-62152977 virtual network link through opserver 10.0.0.38 2025-08-08 00:39:04,584 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-08 00:39:04,879 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-08 00:39:04,941 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83946903:ctest-vn4-62152977', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83946903:ctest-vn4-62152977?flat'} 2025-08-08 00:39:04,941 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83946903:ctest-vn4-62152977 is found in opserver 2025-08-08 00:39:04,954 - DEBUG - Do not have enough data to verify VN in agent 2025-08-08 00:39:04,960 - DEBUG - VRF ids for VN ctest-vn4-62152977: {} 2025-08-08 00:39:04,961 - DEBUG - ====Verifying data for ctest-policy1-07692188 in API_Server ====== 2025-08-08 00:39:04,961 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 00:39:04,967 - DEBUG - Requesting: http://10.0.0.38:8082/domain/11b3c3e2-ecab-4c49-86bf-fb4cb47311c3 2025-08-08 00:39:04,982 - DEBUG - Requesting: http://10.0.0.38:8082/project/360211e9-6fea-4235-b2fa-4163b81b1596 2025-08-08 00:39:05,061 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/b9858424-35a0-41cc-8a19-22302c7470ca 2025-08-08 00:39:05,079 - INFO - Verified policy ctest-policy1-07692188 in API Server, Result: True 2025-08-08 00:39:05,079 - INFO - Done with setup and verification, moving onto test .. 2025-08-08 00:39:05,089 - INFO - Deleting VN ctest-vn4-62152977 2025-08-08 00:39:05,239 - DEBUG - Response for deleting network () 2025-08-08 00:39:05,239 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b14a0729-05b4-43e5-af3a-5537b19903c2 2025-08-08 00:39:05,245 - DEBUG - Response Code: 404 2025-08-08 00:39:05,245 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-08 00:39:05,254 - DEBUG - Requesting: http://10.0.0.38:8082/domain/11b3c3e2-ecab-4c49-86bf-fb4cb47311c3 2025-08-08 00:39:05,314 - DEBUG - Requesting: http://10.0.0.38:8082/project/360211e9-6fea-4235-b2fa-4163b81b1596 2025-08-08 00:39:05,398 - INFO - Validated that VN ctest-vn4-62152977 is not found in API Server 2025-08-08 00:39:05,410 - DEBUG - VN ctest-vn4-62152977 is not present in Agent 10.0.0.38 2025-08-08 00:39:05,410 - INFO - Validated that VN ctest-vn4-62152977 is not in any agent 2025-08-08 00:39:05,425 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62152977 info 2025-08-08 00:39:05,464 - INFO - Deleted policy ctest-policy1-07692188 2025-08-08 00:39:05,640 - DEBUG - policy ctest-policy1-07692188 is not found in API Server 2025-08-08 00:39:05,898 - DEBUG - No XMPP flaps were noticed during the test
2025-08-08 00:39:05,899 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-08 00:39:05,899 - INFO - -------------------------------------------------------------------------------- 2025-08-08 00:39:06,186 - DEBUG - No XMPP flaps were noticed during the test
2025-08-08 00:39:06,186 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-08-08 00:39:06,186 - INFO - -------------------------------------------------------------------------------- 2025-08-08 00:39:06,890 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-83946903, ID : 360211e9-6fea-4235-b2fa-4163b81b1596