2025-08-19 16:03:53,644 - INFO - Domain Default found not creating 2025-08-19 16:03:53,765 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43683028 not found, creating it 2025-08-19 16:03:54,200 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43683028, ID : d225998d-f477-46d2-bf15-17c814bcf6e3 2025-08-19 16:03:55,498 - INFO - ================================================================================ 2025-08-19 16:03:55,498 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-19 16:03:55,752 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-08-19 16:03:55,752 - INFO - Initial checks done. Running the testcase now 2025-08-19 16:03:55,752 - INFO - 2025-08-19 16:03:55,752 - INFO - ================================================================================ 2025-08-19 16:03:55,752 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-19 16:03:55,752 - 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-19 16:03:56,040 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-08-19 16:03:56,040 - INFO - Initial checks done. Running the testcase now 2025-08-19 16:03:56,040 - INFO - 2025-08-19 16:03:56,374 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43683028:ctest-vn4-49338103, 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-43683028:ctest-vn4-49338103, 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-43683028:ctest-vn4-49338103, 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-43683028:ctest-vn4-49338103, 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-19 16:03:56,884 - DEBUG - Response for create_network : {'network': {'id': '9a81c290-a925-4a48-939e-b9cde5f90498', 'name': 'ctest-vn4-49338103', 'tenant_id': 'd225998df47746d2bf1517c814bcf6e3', 'project_id': 'd225998df47746d2bf1517c814bcf6e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43683028', 'ctest-vn4-49338103'], 'port_security_enabled': True, 'description': ''}} 2025-08-19 16:03:57,075 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0b4daa7-8113-44ed-86fe-83af1828db1e', 'name': '', 'tenant_id': 'd225998df47746d2bf1517c814bcf6e3', 'network_id': '9a81c290-a925-4a48-939e-b9cde5f90498', 'ip_version': 4, 'cidr': '211.234.117.0/26', 'allocation_pools': [{'start': '211.234.117.2', 'end': '211.234.117.62'}], 'gateway_ip': '211.234.117.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.234.117.2', 'tags': [], 'project_id': 'd225998df47746d2bf1517c814bcf6e3'}} 2025-08-19 16:03:57,277 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d2b5e91-1fea-4bf1-96f0-2fc60f827086', 'name': '', 'tenant_id': 'd225998df47746d2bf1517c814bcf6e3', 'network_id': '9a81c290-a925-4a48-939e-b9cde5f90498', 'ip_version': 6, 'cidr': '281e:9b74:c867:c10e:9f86:f566::/96', 'allocation_pools': [{'start': '281e:9b74:c867:c10e:9f86:f566:0:2', 'end': '281e:9b74:c867:c10e:9f86:f566:ffff:fffe'}], 'gateway_ip': '281e:9b74:c867:c10e:9f86:f566:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '281e:9b74:c867:c10e:9f86:f566:0:2', 'tags': [], 'project_id': 'd225998df47746d2bf1517c814bcf6e3'}} 2025-08-19 16:03:57,293 - INFO - Created VN ctest-vn4-49338103 2025-08-19 16:03:57,343 - DEBUG - VN ctest-vn4-49338103 UUID is 9a81c290-a925-4a48-939e-b9cde5f90498 2025-08-19 16:03:57,540 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9a81c290-a925-4a48-939e-b9cde5f90498', 'name': 'ctest-vn4-49338103', 'tenant_id': 'd225998df47746d2bf1517c814bcf6e3', 'project_id': 'd225998df47746d2bf1517c814bcf6e3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0b4daa7-8113-44ed-86fe-83af1828db1e', '3d2b5e91-1fea-4bf1-96f0-2fc60f827086'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43683028', 'ctest-vn4-49338103'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43683028', 'ctest-policy1-97604344']], 'subnet_ipam': [{'subnet_cidr': '211.234.117.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '281e:9b74:c867:c10e:9f86:f566::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-19 16:03:57,703 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-19 16:03:57,990 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-19 16:03:58,014 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9e53828e-d96b-4a30-a45e-4673a4f195be 2025-08-19 16:03:58,026 - DEBUG - Requesting: http://10.0.0.50:8082/project/d225998d-f477-46d2-bf15-17c814bcf6e3 2025-08-19 16:03:58,096 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9a81c290-a925-4a48-939e-b9cde5f90498 2025-08-19 16:03:58,118 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9a81c290-a925-4a48-939e-b9cde5f90498 2025-08-19 16:03:58,126 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/182798d5-37d7-4a56-8f2c-73c7358807ab 2025-08-19 16:03:58,132 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/182798d5-37d7-4a56-8f2c-73c7358807ab 2025-08-19 16:03:58,137 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/02bb4d09-c747-476a-9cbe-309307ab0bf5 2025-08-19 16:03:58,142 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-19 16:03:58,142 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9a81c290-a925-4a48-939e-b9cde5f90498 2025-08-19 16:03:58,149 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/182798d5-37d7-4a56-8f2c-73c7358807ab 2025-08-19 16:03:58,160 - INFO - Verified VN network id 12 for VN 9a81c290-a925-4a48-939e-b9cde5f90498 2025-08-19 16:03:58,161 - INFO - Verifications in API Server for VN ctest-vn4-49338103 passed 2025-08-19 16:03:58,161 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9a81c290-a925-4a48-939e-b9cde5f90498 2025-08-19 16:03:58,169 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/182798d5-37d7-4a56-8f2c-73c7358807ab 2025-08-19 16:03:58,174 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/182798d5-37d7-4a56-8f2c-73c7358807ab 2025-08-19 16:03:58,179 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/02bb4d09-c747-476a-9cbe-309307ab0bf5 2025-08-19 16:03:58,189 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43683028:ctest-vn4-49338103', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43683028', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11133393680405449288', 'uuid-lslong': '10637143663873426584'}, 'enable': 'true', 'created': '2025-08-19T16:03:56', 'last-modified': '2025-08-19T16:03:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.692163'} 2025-08-19 16:03:58,194 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-19 16:03:58,194 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-49338103 passed 2025-08-19 16:03:58,194 - DEBUG - ====Verifying policy data for ctest-vn4-49338103 in API_Server ====== 2025-08-19 16:03:58,194 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-19 16:03:58,198 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9e53828e-d96b-4a30-a45e-4673a4f195be 2025-08-19 16:03:58,208 - DEBUG - Requesting: http://10.0.0.50:8082/project/d225998d-f477-46d2-bf15-17c814bcf6e3 2025-08-19 16:03:58,278 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9a81c290-a925-4a48-939e-b9cde5f90498 2025-08-19 16:03:58,287 - DEBUG - ==>Verifying data for policy with id: 98da524d-39cb-43fa-94ba-4592e9499fe9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43683028', 'ctest-policy1-97604344'] 2025-08-19 16:03:58,287 - INFO - VN ctest-vn4-49338103 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-19 16:03:58,287 - DEBUG - Verifying the vn in opserver 2025-08-19 16:03:58,287 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43683028:ctest-vn4-49338103 virtual network link through opserver 10.0.0.50 2025-08-19 16:03:58,287 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-19 16:03:58,574 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-19 16:03:58,624 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43683028:ctest-vn4-49338103', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43683028:ctest-vn4-49338103?flat'} 2025-08-19 16:03:58,624 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43683028:ctest-vn4-49338103 is found in opserver 2025-08-19 16:03:58,632 - DEBUG - Do not have enough data to verify VN in agent 2025-08-19 16:03:58,635 - DEBUG - VRF ids for VN ctest-vn4-49338103: {} 2025-08-19 16:03:58,636 - DEBUG - ====Verifying data for ctest-policy1-97604344 in API_Server ====== 2025-08-19 16:03:58,636 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-19 16:03:58,641 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9e53828e-d96b-4a30-a45e-4673a4f195be 2025-08-19 16:03:58,650 - DEBUG - Requesting: http://10.0.0.50:8082/project/d225998d-f477-46d2-bf15-17c814bcf6e3 2025-08-19 16:03:58,722 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/98da524d-39cb-43fa-94ba-4592e9499fe9 2025-08-19 16:03:58,730 - INFO - Verified policy ctest-policy1-97604344 in API Server, Result: True 2025-08-19 16:03:58,730 - INFO - Done with setup and verification, moving onto test .. 2025-08-19 16:03:58,736 - INFO - Deleting VN ctest-vn4-49338103 2025-08-19 16:03:58,845 - DEBUG - Response for deleting network () 2025-08-19 16:03:58,845 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/182798d5-37d7-4a56-8f2c-73c7358807ab 2025-08-19 16:03:58,849 - DEBUG - Response Code: 404 2025-08-19 16:03:58,849 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-19 16:03:58,853 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9e53828e-d96b-4a30-a45e-4673a4f195be 2025-08-19 16:03:58,903 - DEBUG - Requesting: http://10.0.0.50:8082/project/d225998d-f477-46d2-bf15-17c814bcf6e3 2025-08-19 16:03:58,980 - INFO - Validated that VN ctest-vn4-49338103 is not found in API Server 2025-08-19 16:03:58,988 - DEBUG - VN ctest-vn4-49338103 is not present in Agent 10.0.0.50 2025-08-19 16:03:58,988 - INFO - Validated that VN ctest-vn4-49338103 is not in any agent 2025-08-19 16:03:59,000 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-49338103 info 2025-08-19 16:03:59,022 - INFO - Deleted policy ctest-policy1-97604344 2025-08-19 16:03:59,203 - DEBUG - policy ctest-policy1-97604344 is not found in API Server 2025-08-19 16:03:59,456 - DEBUG - No XMPP flaps were noticed during the test