2025-08-14 14:37:19,439 - INFO - Domain Default found not creating 2025-08-14 14:37:19,574 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-89424960 not found, creating it 2025-08-14 14:37:20,023 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-89424960, ID : 015be70c-a84d-49b6-8682-ef45b505120f 2025-08-14 14:37:21,523 - INFO - ================================================================================ 2025-08-14 14:37:21,523 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-14 14:37:21,783 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-08-14 14:37:21,783 - INFO - Initial checks done. Running the testcase now 2025-08-14 14:37:21,783 - INFO - 2025-08-14 14:37:21,783 - INFO - ================================================================================ 2025-08-14 14:37:21,784 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-14 14:37:21,784 - 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-14 14:37:22,079 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-08-14 14:37:22,079 - INFO - Initial checks done. Running the testcase now 2025-08-14 14:37:22,079 - INFO - 2025-08-14 14:37:22,464 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89424960:ctest-vn4-38233776, 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-89424960:ctest-vn4-38233776, 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-89424960:ctest-vn4-38233776, 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-89424960:ctest-vn4-38233776, 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-14 14:37:22,988 - DEBUG - Response for create_network : {'network': {'id': '9cbb1d1c-21e8-4b61-93d6-1bf5e3b54601', 'name': 'ctest-vn4-38233776', 'tenant_id': '015be70ca84d49b68682ef45b505120f', 'project_id': '015be70ca84d49b68682ef45b505120f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89424960', 'ctest-vn4-38233776'], 'port_security_enabled': True, 'description': ''}} 2025-08-14 14:37:23,171 - DEBUG - Response for create_subnet : {'subnet': {'id': '53770745-96fe-4fab-9c64-7cb37e725fad', 'name': '', 'tenant_id': '015be70ca84d49b68682ef45b505120f', 'network_id': '9cbb1d1c-21e8-4b61-93d6-1bf5e3b54601', 'ip_version': 4, 'cidr': '13.95.149.64/26', 'allocation_pools': [{'start': '13.95.149.66', 'end': '13.95.149.126'}], 'gateway_ip': '13.95.149.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.95.149.66', 'tags': [], 'project_id': '015be70ca84d49b68682ef45b505120f'}} 2025-08-14 14:37:23,328 - DEBUG - Response for create_subnet : {'subnet': {'id': '881d8484-259c-4af9-a310-894bb53214b2', 'name': '', 'tenant_id': '015be70ca84d49b68682ef45b505120f', 'network_id': '9cbb1d1c-21e8-4b61-93d6-1bf5e3b54601', 'ip_version': 6, 'cidr': '2bc8:f95a:2bf9:8c21:dd57:77c2::/96', 'allocation_pools': [{'start': '2bc8:f95a:2bf9:8c21:dd57:77c2:0:2', 'end': '2bc8:f95a:2bf9:8c21:dd57:77c2:ffff:fffe'}], 'gateway_ip': '2bc8:f95a:2bf9:8c21:dd57:77c2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2bc8:f95a:2bf9:8c21:dd57:77c2:0:2', 'tags': [], 'project_id': '015be70ca84d49b68682ef45b505120f'}} 2025-08-14 14:37:23,346 - INFO - Created VN ctest-vn4-38233776 2025-08-14 14:37:23,398 - DEBUG - VN ctest-vn4-38233776 UUID is 9cbb1d1c-21e8-4b61-93d6-1bf5e3b54601 2025-08-14 14:37:23,714 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9cbb1d1c-21e8-4b61-93d6-1bf5e3b54601', 'name': 'ctest-vn4-38233776', 'tenant_id': '015be70ca84d49b68682ef45b505120f', 'project_id': '015be70ca84d49b68682ef45b505120f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['53770745-96fe-4fab-9c64-7cb37e725fad', '881d8484-259c-4af9-a310-894bb53214b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89424960', 'ctest-vn4-38233776'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89424960', 'ctest-policy1-83267063']], 'subnet_ipam': [{'subnet_cidr': '13.95.149.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2bc8:f95a:2bf9:8c21:dd57:77c2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-14 14:37:23,930 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-14 14:37:24,280 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-14 14:37:24,307 - DEBUG - Requesting: http://10.0.0.33:8082/domain/65c209a9-cf1f-4458-a393-add632cbff53 2025-08-14 14:37:24,319 - DEBUG - Requesting: http://10.0.0.33:8082/project/015be70c-a84d-49b6-8682-ef45b505120f 2025-08-14 14:37:24,397 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9cbb1d1c-21e8-4b61-93d6-1bf5e3b54601 2025-08-14 14:37:24,408 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9cbb1d1c-21e8-4b61-93d6-1bf5e3b54601 2025-08-14 14:37:24,416 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ac19097c-91eb-43a8-bdc9-2d114c391529 2025-08-14 14:37:24,422 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ac19097c-91eb-43a8-bdc9-2d114c391529 2025-08-14 14:37:24,427 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4966bb81-1969-4f7c-a9e0-7b3353e116e5 2025-08-14 14:37:24,433 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-14 14:37:24,433 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9cbb1d1c-21e8-4b61-93d6-1bf5e3b54601 2025-08-14 14:37:24,441 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ac19097c-91eb-43a8-bdc9-2d114c391529 2025-08-14 14:37:24,453 - INFO - Verified VN network id 12 for VN 9cbb1d1c-21e8-4b61-93d6-1bf5e3b54601 2025-08-14 14:37:24,453 - INFO - Verifications in API Server for VN ctest-vn4-38233776 passed 2025-08-14 14:37:24,453 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9cbb1d1c-21e8-4b61-93d6-1bf5e3b54601 2025-08-14 14:37:24,461 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ac19097c-91eb-43a8-bdc9-2d114c391529 2025-08-14 14:37:24,467 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ac19097c-91eb-43a8-bdc9-2d114c391529 2025-08-14 14:37:24,472 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4966bb81-1969-4f7c-a9e0-7b3353e116e5 2025-08-14 14:37:24,482 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89424960:ctest-vn4-38233776', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-89424960', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11293652497226812257', 'uuid-lslong': '10652732711492732417'}, 'enable': 'true', 'created': '2025-08-14T14:37:22', 'last-modified': '2025-08-14T14:37:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.834208'} 2025-08-14 14:37:24,488 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-14 14:37:24,488 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-38233776 passed 2025-08-14 14:37:24,488 - DEBUG - ====Verifying policy data for ctest-vn4-38233776 in API_Server ====== 2025-08-14 14:37:24,488 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-14 14:37:24,492 - DEBUG - Requesting: http://10.0.0.33:8082/domain/65c209a9-cf1f-4458-a393-add632cbff53 2025-08-14 14:37:24,505 - DEBUG - Requesting: http://10.0.0.33:8082/project/015be70c-a84d-49b6-8682-ef45b505120f 2025-08-14 14:37:24,578 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9cbb1d1c-21e8-4b61-93d6-1bf5e3b54601 2025-08-14 14:37:24,589 - DEBUG - ==>Verifying data for policy with id: e2336e60-9a7b-44df-94fc-e7510b7137dd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89424960', 'ctest-policy1-83267063'] 2025-08-14 14:37:24,590 - INFO - VN ctest-vn4-38233776 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-14 14:37:24,590 - DEBUG - Verifying the vn in opserver 2025-08-14 14:37:24,590 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89424960:ctest-vn4-38233776 virtual network link through opserver 10.0.0.33 2025-08-14 14:37:24,590 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-14 14:37:24,920 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-14 14:37:24,973 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89424960:ctest-vn4-38233776', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89424960:ctest-vn4-38233776?flat'} 2025-08-14 14:37:24,973 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89424960:ctest-vn4-38233776 is found in opserver 2025-08-14 14:37:24,983 - DEBUG - Do not have enough data to verify VN in agent 2025-08-14 14:37:24,988 - DEBUG - VRF ids for VN ctest-vn4-38233776: {} 2025-08-14 14:37:24,988 - DEBUG - ====Verifying data for ctest-policy1-83267063 in API_Server ====== 2025-08-14 14:37:24,989 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-14 14:37:24,994 - DEBUG - Requesting: http://10.0.0.33:8082/domain/65c209a9-cf1f-4458-a393-add632cbff53 2025-08-14 14:37:25,005 - DEBUG - Requesting: http://10.0.0.33:8082/project/015be70c-a84d-49b6-8682-ef45b505120f 2025-08-14 14:37:25,074 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/e2336e60-9a7b-44df-94fc-e7510b7137dd 2025-08-14 14:37:25,083 - INFO - Verified policy ctest-policy1-83267063 in API Server, Result: True 2025-08-14 14:37:25,083 - INFO - Done with setup and verification, moving onto test .. 2025-08-14 14:37:25,090 - INFO - Deleting VN ctest-vn4-38233776 2025-08-14 14:37:25,230 - DEBUG - Response for deleting network () 2025-08-14 14:37:25,230 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ac19097c-91eb-43a8-bdc9-2d114c391529 2025-08-14 14:37:25,235 - DEBUG - Response Code: 404 2025-08-14 14:37:25,235 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-14 14:37:25,240 - DEBUG - Requesting: http://10.0.0.33:8082/domain/65c209a9-cf1f-4458-a393-add632cbff53 2025-08-14 14:37:25,290 - DEBUG - Requesting: http://10.0.0.33:8082/project/015be70c-a84d-49b6-8682-ef45b505120f 2025-08-14 14:37:25,361 - INFO - Validated that VN ctest-vn4-38233776 is not found in API Server 2025-08-14 14:37:25,371 - DEBUG - VN ctest-vn4-38233776 is not present in Agent 10.0.0.33 2025-08-14 14:37:25,371 - INFO - Validated that VN ctest-vn4-38233776 is not in any agent 2025-08-14 14:37:25,386 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-38233776 info 2025-08-14 14:37:25,409 - INFO - Deleted policy ctest-policy1-83267063 2025-08-14 14:37:25,569 - DEBUG - policy ctest-policy1-83267063 is not found in API Server 2025-08-14 14:37:25,823 - DEBUG - No XMPP flaps were noticed during the test