2025-09-11 09:12:03,062 - INFO - Domain Default found not creating 2025-09-11 09:12:03,217 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-20768771 not found, creating it 2025-09-11 09:12:03,713 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-20768771, ID : e976e646-d455-4ef5-846e-65d65fc40ac6 2025-09-11 09:12:05,380 - INFO - ================================================================================ 2025-09-11 09:12:05,380 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 09:12:05,645 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-11 09:12:05,645 - INFO - Initial checks done. Running the testcase now 2025-09-11 09:12:05,645 - INFO - 2025-09-11 09:12:05,645 - INFO - ================================================================================ 2025-09-11 09:12:05,645 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 09:12:05,645 - 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-09-11 09:12:05,943 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-11 09:12:05,943 - INFO - Initial checks done. Running the testcase now 2025-09-11 09:12:05,943 - INFO - 2025-09-11 09:12:06,341 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20768771:ctest-vn4-03131311, 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-20768771:ctest-vn4-03131311, 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-20768771:ctest-vn4-03131311, 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-20768771:ctest-vn4-03131311, 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-09-11 09:12:06,881 - DEBUG - Response for create_network : {'network': {'id': 'c4cbc540-5c25-4f9a-b89b-eabe52f96ef3', 'name': 'ctest-vn4-03131311', 'tenant_id': 'e976e646d4554ef5846e65d65fc40ac6', 'project_id': 'e976e646d4554ef5846e65d65fc40ac6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20768771', 'ctest-vn4-03131311'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 09:12:07,074 - DEBUG - Response for create_subnet : {'subnet': {'id': '2865335d-11c1-4dec-aec2-bd71237a6193', 'name': '', 'tenant_id': 'e976e646d4554ef5846e65d65fc40ac6', 'network_id': 'c4cbc540-5c25-4f9a-b89b-eabe52f96ef3', 'ip_version': 4, 'cidr': '52.235.64.0/26', 'allocation_pools': [{'start': '52.235.64.2', 'end': '52.235.64.62'}], 'gateway_ip': '52.235.64.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.235.64.2', 'tags': [], 'project_id': 'e976e646d4554ef5846e65d65fc40ac6'}} 2025-09-11 09:12:07,263 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9284450-40e0-4a87-9d38-70cebdc5dd6c', 'name': '', 'tenant_id': 'e976e646d4554ef5846e65d65fc40ac6', 'network_id': 'c4cbc540-5c25-4f9a-b89b-eabe52f96ef3', 'ip_version': 6, 'cidr': '3b7a:27bb:3ff4:db6a:5304:e4ef::/96', 'allocation_pools': [{'start': '3b7a:27bb:3ff4:db6a:5304:e4ef:0:2', 'end': '3b7a:27bb:3ff4:db6a:5304:e4ef:ffff:fffe'}], 'gateway_ip': '3b7a:27bb:3ff4:db6a:5304:e4ef:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b7a:27bb:3ff4:db6a:5304:e4ef:0:2', 'tags': [], 'project_id': 'e976e646d4554ef5846e65d65fc40ac6'}} 2025-09-11 09:12:07,288 - INFO - Created VN ctest-vn4-03131311 2025-09-11 09:12:07,343 - DEBUG - VN ctest-vn4-03131311 UUID is c4cbc540-5c25-4f9a-b89b-eabe52f96ef3 2025-09-11 09:12:07,567 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c4cbc540-5c25-4f9a-b89b-eabe52f96ef3', 'name': 'ctest-vn4-03131311', 'tenant_id': 'e976e646d4554ef5846e65d65fc40ac6', 'project_id': 'e976e646d4554ef5846e65d65fc40ac6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2865335d-11c1-4dec-aec2-bd71237a6193', 'a9284450-40e0-4a87-9d38-70cebdc5dd6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20768771', 'ctest-vn4-03131311'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20768771', 'ctest-policy1-08642126']], 'subnet_ipam': [{'subnet_cidr': '52.235.64.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b7a:27bb:3ff4:db6a:5304:e4ef::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-11 09:12:07,744 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 09:12:08,078 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 09:12:08,109 - DEBUG - Requesting: http://10.0.0.254:8082/domain/207799dd-8d7a-4852-8f72-f9485edb12f4 2025-09-11 09:12:08,124 - DEBUG - Requesting: http://10.0.0.254:8082/project/e976e646-d455-4ef5-846e-65d65fc40ac6 2025-09-11 09:12:08,205 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c4cbc540-5c25-4f9a-b89b-eabe52f96ef3 2025-09-11 09:12:08,222 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c4cbc540-5c25-4f9a-b89b-eabe52f96ef3 2025-09-11 09:12:08,232 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bff66909-18c5-4c91-a5f9-8299c85c018d 2025-09-11 09:12:08,239 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bff66909-18c5-4c91-a5f9-8299c85c018d 2025-09-11 09:12:08,246 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9ef3cc6a-a132-40a6-bf6b-956347c4fa89 2025-09-11 09:12:08,253 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 09:12:08,253 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c4cbc540-5c25-4f9a-b89b-eabe52f96ef3 2025-09-11 09:12:08,263 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bff66909-18c5-4c91-a5f9-8299c85c018d 2025-09-11 09:12:08,277 - INFO - Verified VN network id 11 for VN c4cbc540-5c25-4f9a-b89b-eabe52f96ef3 2025-09-11 09:12:08,277 - INFO - Verifications in API Server for VN ctest-vn4-03131311 passed 2025-09-11 09:12:08,277 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c4cbc540-5c25-4f9a-b89b-eabe52f96ef3 2025-09-11 09:12:08,287 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bff66909-18c5-4c91-a5f9-8299c85c018d 2025-09-11 09:12:08,294 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bff66909-18c5-4c91-a5f9-8299c85c018d 2025-09-11 09:12:08,302 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9ef3cc6a-a132-40a6-bf6b-956347c4fa89 2025-09-11 09:12:08,316 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20768771:ctest-vn4-03131311', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20768771', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14180644731920666522', 'uuid-lslong': '13302484027525656307'}, 'enable': 'true', 'created': '2025-09-11T09:12:06', 'last-modified': '2025-09-11T09:12:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.791581'} 2025-09-11 09:12:08,323 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 09:12:08,323 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-03131311 passed 2025-09-11 09:12:08,324 - DEBUG - ====Verifying policy data for ctest-vn4-03131311 in API_Server ====== 2025-09-11 09:12:08,324 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 09:12:08,330 - DEBUG - Requesting: http://10.0.0.254:8082/domain/207799dd-8d7a-4852-8f72-f9485edb12f4 2025-09-11 09:12:08,341 - DEBUG - Requesting: http://10.0.0.254:8082/project/e976e646-d455-4ef5-846e-65d65fc40ac6 2025-09-11 09:12:08,414 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c4cbc540-5c25-4f9a-b89b-eabe52f96ef3 2025-09-11 09:12:08,423 - DEBUG - ==>Verifying data for policy with id: a9803482-8cfd-4482-a8b8-360a0d8b3e66, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20768771', 'ctest-policy1-08642126'] 2025-09-11 09:12:08,424 - INFO - VN ctest-vn4-03131311 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-11 09:12:08,424 - DEBUG - Verifying the vn in opserver 2025-09-11 09:12:08,424 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20768771:ctest-vn4-03131311 virtual network link through opserver 10.0.0.254 2025-09-11 09:12:08,424 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-11 09:12:08,758 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-11 09:12:08,817 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20768771:ctest-vn4-03131311', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20768771:ctest-vn4-03131311?flat'} 2025-09-11 09:12:08,817 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20768771:ctest-vn4-03131311 is found in opserver 2025-09-11 09:12:08,827 - DEBUG - Do not have enough data to verify VN in agent 2025-09-11 09:12:08,831 - DEBUG - VRF ids for VN ctest-vn4-03131311: {} 2025-09-11 09:12:08,832 - DEBUG - ====Verifying data for ctest-policy1-08642126 in API_Server ====== 2025-09-11 09:12:08,832 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 09:12:08,838 - DEBUG - Requesting: http://10.0.0.254:8082/domain/207799dd-8d7a-4852-8f72-f9485edb12f4 2025-09-11 09:12:08,850 - DEBUG - Requesting: http://10.0.0.254:8082/project/e976e646-d455-4ef5-846e-65d65fc40ac6 2025-09-11 09:12:08,923 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/a9803482-8cfd-4482-a8b8-360a0d8b3e66 2025-09-11 09:12:08,934 - INFO - Verified policy ctest-policy1-08642126 in API Server, Result: True 2025-09-11 09:12:08,934 - INFO - Done with setup and verification, moving onto test .. 2025-09-11 09:12:08,944 - INFO - Deleting VN ctest-vn4-03131311 2025-09-11 09:12:09,072 - DEBUG - Response for deleting network () 2025-09-11 09:12:09,072 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bff66909-18c5-4c91-a5f9-8299c85c018d 2025-09-11 09:12:09,077 - DEBUG - Response Code: 404 2025-09-11 09:12:09,077 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 09:12:09,083 - DEBUG - Requesting: http://10.0.0.254:8082/domain/207799dd-8d7a-4852-8f72-f9485edb12f4 2025-09-11 09:12:09,137 - DEBUG - Requesting: http://10.0.0.254:8082/project/e976e646-d455-4ef5-846e-65d65fc40ac6 2025-09-11 09:12:09,216 - INFO - Validated that VN ctest-vn4-03131311 is not found in API Server 2025-09-11 09:12:09,226 - DEBUG - VN ctest-vn4-03131311 is not present in Agent 10.0.0.254 2025-09-11 09:12:09,226 - INFO - Validated that VN ctest-vn4-03131311 is not in any agent 2025-09-11 09:12:09,239 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-03131311 info 2025-09-11 09:12:09,262 - INFO - Deleted policy ctest-policy1-08642126 2025-09-11 09:12:09,491 - DEBUG - policy ctest-policy1-08642126 is not found in API Server 2025-09-11 09:12:09,746 - DEBUG - No XMPP flaps were noticed during the test
2025-09-11 09:12:09,746 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-11 09:12:09,746 - INFO - -------------------------------------------------------------------------------- 2025-09-11 09:12:10,032 - DEBUG - No XMPP flaps were noticed during the test
2025-09-11 09:12:10,032 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-09-11 09:12:10,032 - INFO - -------------------------------------------------------------------------------- 2025-09-11 09:12:10,743 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-20768771, ID : e976e646-d455-4ef5-846e-65d65fc40ac6