2025-10-31 00:35:02,106 - INFO - Domain Default found not creating 2025-10-31 00:35:02,310 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-34681645 not found, creating it 2025-10-31 00:35:02,804 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-34681645, ID : 1b10a656-0511-4010-8ae8-3f2ce5d0afa3 2025-10-31 00:35:04,389 - INFO - ================================================================================ 2025-10-31 00:35:04,390 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 00:35:04,659 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.242': '0'}} with 2025-10-31 00:35:04,660 - INFO - Initial checks done. Running the testcase now 2025-10-31 00:35:04,660 - INFO - 2025-10-31 00:35:04,660 - INFO - ================================================================================ 2025-10-31 00:35:04,660 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 00:35:04,660 - 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-10-31 00:35:04,946 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.242': '0'}} with 2025-10-31 00:35:04,946 - INFO - Initial checks done. Running the testcase now 2025-10-31 00:35:04,946 - INFO - 2025-10-31 00:35:05,314 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34681645:ctest-vn4-10353093, 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-34681645:ctest-vn4-10353093, 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-34681645:ctest-vn4-10353093, 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-34681645:ctest-vn4-10353093, 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-10-31 00:35:05,835 - DEBUG - Response for create_network : {'network': {'id': 'fe6e66de-7e2f-4014-9672-6dbb51c9eeb3', 'name': 'ctest-vn4-10353093', 'tenant_id': '1b10a656051140108ae83f2ce5d0afa3', 'project_id': '1b10a656051140108ae83f2ce5d0afa3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34681645', 'ctest-vn4-10353093'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 00:35:05,996 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d9aa61f-f946-4821-8274-85df462b9a02', 'name': '', 'tenant_id': '1b10a656051140108ae83f2ce5d0afa3', 'network_id': 'fe6e66de-7e2f-4014-9672-6dbb51c9eeb3', 'ip_version': 4, 'cidr': '218.105.143.64/26', 'allocation_pools': [{'start': '218.105.143.66', 'end': '218.105.143.126'}], 'gateway_ip': '218.105.143.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.105.143.66', 'tags': [], 'project_id': '1b10a656051140108ae83f2ce5d0afa3'}} 2025-10-31 00:35:06,155 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb1c946e-d7f0-46c7-aea8-f80fe05e3c78', 'name': '', 'tenant_id': '1b10a656051140108ae83f2ce5d0afa3', 'network_id': 'fe6e66de-7e2f-4014-9672-6dbb51c9eeb3', 'ip_version': 6, 'cidr': '2dcc:d80b:abe6:dfb6:c83d:ef2d::/96', 'allocation_pools': [{'start': '2dcc:d80b:abe6:dfb6:c83d:ef2d:0:2', 'end': '2dcc:d80b:abe6:dfb6:c83d:ef2d:ffff:fffe'}], 'gateway_ip': '2dcc:d80b:abe6:dfb6:c83d:ef2d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2dcc:d80b:abe6:dfb6:c83d:ef2d:0:2', 'tags': [], 'project_id': '1b10a656051140108ae83f2ce5d0afa3'}} 2025-10-31 00:35:06,176 - INFO - Created VN ctest-vn4-10353093 2025-10-31 00:35:06,228 - DEBUG - VN ctest-vn4-10353093 UUID is fe6e66de-7e2f-4014-9672-6dbb51c9eeb3 2025-10-31 00:35:06,444 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe6e66de-7e2f-4014-9672-6dbb51c9eeb3', 'name': 'ctest-vn4-10353093', 'tenant_id': '1b10a656051140108ae83f2ce5d0afa3', 'project_id': '1b10a656051140108ae83f2ce5d0afa3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d9aa61f-f946-4821-8274-85df462b9a02', 'eb1c946e-d7f0-46c7-aea8-f80fe05e3c78'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34681645', 'ctest-vn4-10353093'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34681645', 'ctest-policy1-87108035']], 'subnet_ipam': [{'subnet_cidr': '218.105.143.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2dcc:d80b:abe6:dfb6:c83d:ef2d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 00:35:06,617 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 00:35:06,922 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 00:35:06,954 - DEBUG - Requesting: http://10.0.0.137:8082/domain/edb8b332-5a70-4731-92d7-d2a7959493a2 2025-10-31 00:35:06,969 - DEBUG - Requesting: http://10.0.0.137:8082/project/1b10a656-0511-4010-8ae8-3f2ce5d0afa3 2025-10-31 00:35:07,043 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/fe6e66de-7e2f-4014-9672-6dbb51c9eeb3 2025-10-31 00:35:07,057 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/fe6e66de-7e2f-4014-9672-6dbb51c9eeb3 2025-10-31 00:35:07,070 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/d795ce68-b9e7-463c-8660-c893751f9122 2025-10-31 00:35:07,077 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/d795ce68-b9e7-463c-8660-c893751f9122 2025-10-31 00:35:07,086 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/6b80cb8e-2ace-4a85-9059-d9386a3bae93 2025-10-31 00:35:07,093 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 00:35:07,093 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/fe6e66de-7e2f-4014-9672-6dbb51c9eeb3 2025-10-31 00:35:07,104 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/d795ce68-b9e7-463c-8660-c893751f9122 2025-10-31 00:35:07,117 - INFO - Verified VN network id 11 for VN fe6e66de-7e2f-4014-9672-6dbb51c9eeb3 2025-10-31 00:35:07,117 - INFO - Verifications in API Server for VN ctest-vn4-10353093 passed 2025-10-31 00:35:07,117 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/fe6e66de-7e2f-4014-9672-6dbb51c9eeb3 2025-10-31 00:35:07,127 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/d795ce68-b9e7-463c-8660-c893751f9122 2025-10-31 00:35:07,133 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/d795ce68-b9e7-463c-8660-c893751f9122 2025-10-31 00:35:07,140 - DEBUG - Requesting: http://10.0.0.137:8082/route-target/6b80cb8e-2ace-4a85-9059-d9386a3bae93 2025-10-31 00:35:07,152 - DEBUG - Control-node 10.0.0.137 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34681645:ctest-vn4-10353093', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-34681645', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18333704238857666580', 'uuid-lslong': '10840847904332705459'}, 'enable': 'true', 'created': '2025-10-31T00:35:05', 'last-modified': '2025-10-31T00:35:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.731355'} 2025-10-31 00:35:07,158 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 00:35:07,158 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-10353093 passed 2025-10-31 00:35:07,158 - DEBUG - ====Verifying policy data for ctest-vn4-10353093 in API_Server ====== 2025-10-31 00:35:07,158 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 00:35:07,164 - DEBUG - Requesting: http://10.0.0.137:8082/domain/edb8b332-5a70-4731-92d7-d2a7959493a2 2025-10-31 00:35:07,177 - DEBUG - Requesting: http://10.0.0.137:8082/project/1b10a656-0511-4010-8ae8-3f2ce5d0afa3 2025-10-31 00:35:07,250 - DEBUG - Requesting: http://10.0.0.137:8082/virtual-network/fe6e66de-7e2f-4014-9672-6dbb51c9eeb3 2025-10-31 00:35:07,260 - DEBUG - ==>Verifying data for policy with id: f9190971-8272-4eb3-86d4-6e599de791db, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34681645', 'ctest-policy1-87108035'] 2025-10-31 00:35:07,260 - INFO - VN ctest-vn4-10353093 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 00:35:07,261 - DEBUG - Verifying the vn in opserver 2025-10-31 00:35:07,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34681645:ctest-vn4-10353093 virtual network link through opserver 10.0.0.137 2025-10-31 00:35:07,261 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-10-31 00:35:07,561 - DEBUG - Requesting: http://10.0.0.137:8081/analytics/uves/virtual-networks 2025-10-31 00:35:07,623 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34681645:ctest-vn4-10353093', 'href': 'http://10.0.0.137:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34681645:ctest-vn4-10353093?flat'} 2025-10-31 00:35:07,623 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34681645:ctest-vn4-10353093 is found in opserver 2025-10-31 00:35:07,633 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 00:35:07,638 - DEBUG - VRF ids for VN ctest-vn4-10353093: {} 2025-10-31 00:35:07,638 - DEBUG - ====Verifying data for ctest-policy1-87108035 in API_Server ====== 2025-10-31 00:35:07,638 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 00:35:07,644 - DEBUG - Requesting: http://10.0.0.137:8082/domain/edb8b332-5a70-4731-92d7-d2a7959493a2 2025-10-31 00:35:07,655 - DEBUG - Requesting: http://10.0.0.137:8082/project/1b10a656-0511-4010-8ae8-3f2ce5d0afa3 2025-10-31 00:35:07,727 - DEBUG - Requesting: http://10.0.0.137:8082/network-policy/f9190971-8272-4eb3-86d4-6e599de791db 2025-10-31 00:35:07,738 - INFO - Verified policy ctest-policy1-87108035 in API Server, Result: True 2025-10-31 00:35:07,738 - INFO - Done with setup and verification, moving onto test .. 2025-10-31 00:35:07,747 - INFO - Deleting VN ctest-vn4-10353093 2025-10-31 00:35:07,861 - DEBUG - Response for deleting network () 2025-10-31 00:35:07,861 - DEBUG - Requesting: http://10.0.0.137:8082/routing-instance/d795ce68-b9e7-463c-8660-c893751f9122 2025-10-31 00:35:07,868 - DEBUG - Response Code: 404 2025-10-31 00:35:07,868 - DEBUG - Requesting: http://10.0.0.137:8082/domains 2025-10-31 00:35:07,874 - DEBUG - Requesting: http://10.0.0.137:8082/domain/edb8b332-5a70-4731-92d7-d2a7959493a2 2025-10-31 00:35:07,930 - DEBUG - Requesting: http://10.0.0.137:8082/project/1b10a656-0511-4010-8ae8-3f2ce5d0afa3 2025-10-31 00:35:08,003 - INFO - Validated that VN ctest-vn4-10353093 is not found in API Server 2025-10-31 00:35:08,013 - DEBUG - VN ctest-vn4-10353093 is not present in Agent 10.0.0.137 2025-10-31 00:35:08,013 - INFO - Validated that VN ctest-vn4-10353093 is not in any agent 2025-10-31 00:35:08,027 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-10353093 info 2025-10-31 00:35:08,052 - INFO - Deleted policy ctest-policy1-87108035 2025-10-31 00:35:08,221 - DEBUG - policy ctest-policy1-87108035 is not found in API Server 2025-10-31 00:35:08,479 - DEBUG - No XMPP flaps were noticed during the test