2025-11-01 03:43:44,352 - INFO - Domain Default found not creating 2025-11-01 03:43:44,482 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-30239857 not found, creating it 2025-11-01 03:43:44,953 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-30239857, ID : 5f3ef7f2-22f1-47a3-9b9b-78c90929de3c 2025-11-01 03:43:46,286 - INFO - ================================================================================ 2025-11-01 03:43:46,286 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-01 03:43:46,544 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-11-01 03:43:46,544 - INFO - Initial checks done. Running the testcase now 2025-11-01 03:43:46,544 - INFO - 2025-11-01 03:43:46,544 - INFO - ================================================================================ 2025-11-01 03:43:46,544 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-01 03:43:46,544 - 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-11-01 03:43:46,829 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-11-01 03:43:46,830 - INFO - Initial checks done. Running the testcase now 2025-11-01 03:43:46,830 - INFO - 2025-11-01 03:43:47,169 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30239857:ctest-vn4-03052138, 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-30239857:ctest-vn4-03052138, 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-30239857:ctest-vn4-03052138, 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-30239857:ctest-vn4-03052138, 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-11-01 03:43:47,670 - DEBUG - Response for create_network : {'network': {'id': 'a797591f-c976-4e78-b4be-5a6023ca7c77', 'name': 'ctest-vn4-03052138', 'tenant_id': '5f3ef7f222f147a39b9b78c90929de3c', 'project_id': '5f3ef7f222f147a39b9b78c90929de3c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30239857', 'ctest-vn4-03052138'], 'port_security_enabled': True, 'description': ''}} 2025-11-01 03:43:47,824 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bcde7335-170f-4b34-9ecb-de9fcaacd119', 'name': '', 'tenant_id': '5f3ef7f222f147a39b9b78c90929de3c', 'network_id': 'a797591f-c976-4e78-b4be-5a6023ca7c77', 'ip_version': 4, 'cidr': '16.167.166.64/26', 'allocation_pools': [{'start': '16.167.166.66', 'end': '16.167.166.126'}], 'gateway_ip': '16.167.166.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.167.166.66', 'tags': [], 'project_id': '5f3ef7f222f147a39b9b78c90929de3c'}} 2025-11-01 03:43:47,991 - DEBUG - Response for create_subnet : {'subnet': {'id': '91535b58-dda7-4949-bdb0-95beab4678fa', 'name': '', 'tenant_id': '5f3ef7f222f147a39b9b78c90929de3c', 'network_id': 'a797591f-c976-4e78-b4be-5a6023ca7c77', 'ip_version': 6, 'cidr': '3dc4:6434:5a27:d51b:e68:a6c3::/96', 'allocation_pools': [{'start': '3dc4:6434:5a27:d51b:e68:a6c3:0:2', 'end': '3dc4:6434:5a27:d51b:e68:a6c3:ffff:fffe'}], 'gateway_ip': '3dc4:6434:5a27:d51b:e68:a6c3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3dc4:6434:5a27:d51b:e68:a6c3:0:2', 'tags': [], 'project_id': '5f3ef7f222f147a39b9b78c90929de3c'}} 2025-11-01 03:43:48,009 - INFO - Created VN ctest-vn4-03052138 2025-11-01 03:43:48,061 - DEBUG - VN ctest-vn4-03052138 UUID is a797591f-c976-4e78-b4be-5a6023ca7c77 2025-11-01 03:43:48,237 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a797591f-c976-4e78-b4be-5a6023ca7c77', 'name': 'ctest-vn4-03052138', 'tenant_id': '5f3ef7f222f147a39b9b78c90929de3c', 'project_id': '5f3ef7f222f147a39b9b78c90929de3c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bcde7335-170f-4b34-9ecb-de9fcaacd119', '91535b58-dda7-4949-bdb0-95beab4678fa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30239857', 'ctest-vn4-03052138'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30239857', 'ctest-policy1-59465899']], 'subnet_ipam': [{'subnet_cidr': '16.167.166.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3dc4:6434:5a27:d51b:e68:a6c3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-01 03:43:48,405 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-01 03:43:48,691 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-01 03:43:48,716 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3608682a-4345-487b-a5f3-16273bfb663e 2025-11-01 03:43:48,727 - DEBUG - Requesting: http://10.0.0.65:8082/project/5f3ef7f2-22f1-47a3-9b9b-78c90929de3c 2025-11-01 03:43:48,797 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a797591f-c976-4e78-b4be-5a6023ca7c77 2025-11-01 03:43:48,807 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a797591f-c976-4e78-b4be-5a6023ca7c77 2025-11-01 03:43:48,815 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c9463f5c-a0c4-4a02-b6bb-8735ad80ddb9 2025-11-01 03:43:48,820 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c9463f5c-a0c4-4a02-b6bb-8735ad80ddb9 2025-11-01 03:43:48,827 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/e7eb63f9-281c-40f7-92b7-2795da65bd5e 2025-11-01 03:43:48,833 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-01 03:43:48,833 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a797591f-c976-4e78-b4be-5a6023ca7c77 2025-11-01 03:43:48,840 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c9463f5c-a0c4-4a02-b6bb-8735ad80ddb9 2025-11-01 03:43:48,851 - INFO - Verified VN network id 11 for VN a797591f-c976-4e78-b4be-5a6023ca7c77 2025-11-01 03:43:48,851 - INFO - Verifications in API Server for VN ctest-vn4-03052138 passed 2025-11-01 03:43:48,851 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a797591f-c976-4e78-b4be-5a6023ca7c77 2025-11-01 03:43:48,859 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c9463f5c-a0c4-4a02-b6bb-8735ad80ddb9 2025-11-01 03:43:48,863 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c9463f5c-a0c4-4a02-b6bb-8735ad80ddb9 2025-11-01 03:43:48,868 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/e7eb63f9-281c-40f7-92b7-2795da65bd5e 2025-11-01 03:43:48,877 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30239857:ctest-vn4-03052138', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30239857', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12076218918876106360', 'uuid-lslong': '13023946541365886071'}, 'enable': 'true', 'created': '2025-11-01T03:43:47', 'last-modified': '2025-11-01T03:43:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.658728'} 2025-11-01 03:43:48,883 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-01 03:43:48,883 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-03052138 passed 2025-11-01 03:43:48,884 - DEBUG - ====Verifying policy data for ctest-vn4-03052138 in API_Server ====== 2025-11-01 03:43:48,884 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-01 03:43:48,888 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3608682a-4345-487b-a5f3-16273bfb663e 2025-11-01 03:43:48,899 - DEBUG - Requesting: http://10.0.0.65:8082/project/5f3ef7f2-22f1-47a3-9b9b-78c90929de3c 2025-11-01 03:43:48,966 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/a797591f-c976-4e78-b4be-5a6023ca7c77 2025-11-01 03:43:48,975 - DEBUG - ==>Verifying data for policy with id: ef5a6650-732c-481c-987c-515ad0be81e7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30239857', 'ctest-policy1-59465899'] 2025-11-01 03:43:48,975 - INFO - VN ctest-vn4-03052138 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-01 03:43:48,975 - DEBUG - Verifying the vn in opserver 2025-11-01 03:43:48,975 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30239857:ctest-vn4-03052138 virtual network link through opserver 10.0.0.65 2025-11-01 03:43:48,975 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-11-01 03:43:49,266 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-11-01 03:43:49,311 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30239857:ctest-vn4-03052138', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30239857:ctest-vn4-03052138?flat'} 2025-11-01 03:43:49,311 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30239857:ctest-vn4-03052138 is found in opserver 2025-11-01 03:43:49,319 - DEBUG - Do not have enough data to verify VN in agent 2025-11-01 03:43:49,323 - DEBUG - VRF ids for VN ctest-vn4-03052138: {} 2025-11-01 03:43:49,323 - DEBUG - ====Verifying data for ctest-policy1-59465899 in API_Server ====== 2025-11-01 03:43:49,323 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-01 03:43:49,328 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3608682a-4345-487b-a5f3-16273bfb663e 2025-11-01 03:43:49,336 - DEBUG - Requesting: http://10.0.0.65:8082/project/5f3ef7f2-22f1-47a3-9b9b-78c90929de3c 2025-11-01 03:43:49,402 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/ef5a6650-732c-481c-987c-515ad0be81e7 2025-11-01 03:43:49,410 - INFO - Verified policy ctest-policy1-59465899 in API Server, Result: True 2025-11-01 03:43:49,410 - INFO - Done with setup and verification, moving onto test .. 2025-11-01 03:43:49,416 - INFO - Deleting VN ctest-vn4-03052138 2025-11-01 03:43:49,508 - DEBUG - Response for deleting network () 2025-11-01 03:43:49,509 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c9463f5c-a0c4-4a02-b6bb-8735ad80ddb9 2025-11-01 03:43:49,512 - DEBUG - Response Code: 404 2025-11-01 03:43:49,513 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-11-01 03:43:49,517 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3608682a-4345-487b-a5f3-16273bfb663e 2025-11-01 03:43:49,569 - DEBUG - Requesting: http://10.0.0.65:8082/project/5f3ef7f2-22f1-47a3-9b9b-78c90929de3c 2025-11-01 03:43:49,635 - INFO - Validated that VN ctest-vn4-03052138 is not found in API Server 2025-11-01 03:43:49,642 - DEBUG - VN ctest-vn4-03052138 is not present in Agent 10.0.0.65 2025-11-01 03:43:49,643 - INFO - Validated that VN ctest-vn4-03052138 is not in any agent 2025-11-01 03:43:49,654 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-03052138 info 2025-11-01 03:43:49,675 - INFO - Deleted policy ctest-policy1-59465899 2025-11-01 03:43:49,833 - DEBUG - policy ctest-policy1-59465899 is not found in API Server 2025-11-01 03:43:50,093 - DEBUG - No XMPP flaps were noticed during the test