2025-09-15 11:46:03,240 - INFO - Domain Default found not creating 2025-09-15 11:46:03,392 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-13655585 not found, creating it 2025-09-15 11:46:03,851 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-13655585, ID : e43cc093-e699-43a8-b45d-d7c78faebe55 2025-09-15 11:46:05,305 - INFO - ================================================================================ 2025-09-15 11:46:05,305 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-15 11:46:05,560 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-09-15 11:46:05,560 - INFO - Initial checks done. Running the testcase now 2025-09-15 11:46:05,560 - INFO - 2025-09-15 11:46:05,560 - INFO - ================================================================================ 2025-09-15 11:46:05,560 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-15 11:46:05,560 - 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-15 11:46:05,852 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-09-15 11:46:05,852 - INFO - Initial checks done. Running the testcase now 2025-09-15 11:46:05,852 - INFO - 2025-09-15 11:46:06,226 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13655585:ctest-vn4-04920698, 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-13655585:ctest-vn4-04920698, 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-13655585:ctest-vn4-04920698, 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-13655585:ctest-vn4-04920698, 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-15 11:46:06,956 - DEBUG - Response for create_network : {'network': {'id': 'ac738998-52f5-4964-a1f0-e6d5380b46fa', 'name': 'ctest-vn4-04920698', 'tenant_id': 'e43cc093e69943a8b45dd7c78faebe55', 'project_id': 'e43cc093e69943a8b45dd7c78faebe55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13655585', 'ctest-vn4-04920698'], 'port_security_enabled': True, 'description': ''}} 2025-09-15 11:46:07,164 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd3fd817b-f788-488b-b741-c548e7ab7322', 'name': '', 'tenant_id': 'e43cc093e69943a8b45dd7c78faebe55', 'network_id': 'ac738998-52f5-4964-a1f0-e6d5380b46fa', 'ip_version': 4, 'cidr': '72.231.104.0/26', 'allocation_pools': [{'start': '72.231.104.2', 'end': '72.231.104.62'}], 'gateway_ip': '72.231.104.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.231.104.2', 'tags': [], 'project_id': 'e43cc093e69943a8b45dd7c78faebe55'}} 2025-09-15 11:46:07,377 - DEBUG - Response for create_subnet : {'subnet': {'id': '751ca849-1570-4108-b968-85682aceaede', 'name': '', 'tenant_id': 'e43cc093e69943a8b45dd7c78faebe55', 'network_id': 'ac738998-52f5-4964-a1f0-e6d5380b46fa', 'ip_version': 6, 'cidr': '3269:eab6:42bd:3f3e:969d:4029::/96', 'allocation_pools': [{'start': '3269:eab6:42bd:3f3e:969d:4029:0:2', 'end': '3269:eab6:42bd:3f3e:969d:4029:ffff:fffe'}], 'gateway_ip': '3269:eab6:42bd:3f3e:969d:4029:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3269:eab6:42bd:3f3e:969d:4029:0:2', 'tags': [], 'project_id': 'e43cc093e69943a8b45dd7c78faebe55'}} 2025-09-15 11:46:07,396 - INFO - Created VN ctest-vn4-04920698 2025-09-15 11:46:07,449 - DEBUG - VN ctest-vn4-04920698 UUID is ac738998-52f5-4964-a1f0-e6d5380b46fa 2025-09-15 11:46:07,647 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ac738998-52f5-4964-a1f0-e6d5380b46fa', 'name': 'ctest-vn4-04920698', 'tenant_id': 'e43cc093e69943a8b45dd7c78faebe55', 'project_id': 'e43cc093e69943a8b45dd7c78faebe55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d3fd817b-f788-488b-b741-c548e7ab7322', '751ca849-1570-4108-b968-85682aceaede'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13655585', 'ctest-vn4-04920698'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13655585', 'ctest-policy1-49736471']], 'subnet_ipam': [{'subnet_cidr': '72.231.104.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3269:eab6:42bd:3f3e:969d:4029::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-15 11:46:07,813 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 11:46:08,104 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 11:46:08,136 - DEBUG - Requesting: http://10.0.0.38:8082/domain/32c5e2e0-3441-478a-b5fe-124d47d945e6 2025-09-15 11:46:08,154 - DEBUG - Requesting: http://10.0.0.38:8082/project/e43cc093-e699-43a8-b45d-d7c78faebe55 2025-09-15 11:46:08,231 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ac738998-52f5-4964-a1f0-e6d5380b46fa 2025-09-15 11:46:08,243 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ac738998-52f5-4964-a1f0-e6d5380b46fa 2025-09-15 11:46:08,253 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b3e910d5-eef5-4fd8-b25e-d8c3a03c010a 2025-09-15 11:46:08,261 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b3e910d5-eef5-4fd8-b25e-d8c3a03c010a 2025-09-15 11:46:08,268 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/52d5b1bc-fe66-4579-8ad3-506779dea0b6 2025-09-15 11:46:08,276 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 11:46:08,276 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ac738998-52f5-4964-a1f0-e6d5380b46fa 2025-09-15 11:46:08,287 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b3e910d5-eef5-4fd8-b25e-d8c3a03c010a 2025-09-15 11:46:08,300 - INFO - Verified VN network id 11 for VN ac738998-52f5-4964-a1f0-e6d5380b46fa 2025-09-15 11:46:08,301 - INFO - Verifications in API Server for VN ctest-vn4-04920698 passed 2025-09-15 11:46:08,301 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ac738998-52f5-4964-a1f0-e6d5380b46fa 2025-09-15 11:46:08,309 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b3e910d5-eef5-4fd8-b25e-d8c3a03c010a 2025-09-15 11:46:08,316 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b3e910d5-eef5-4fd8-b25e-d8c3a03c010a 2025-09-15 11:46:08,323 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/52d5b1bc-fe66-4579-8ad3-506779dea0b6 2025-09-15 11:46:08,335 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13655585:ctest-vn4-04920698', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-13655585', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12426427084165171556', 'uuid-lslong': '11669080437959640826'}, 'enable': 'true', 'created': '2025-09-15T11:46:06', 'last-modified': '2025-09-15T11:46:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.709762'} 2025-09-15 11:46:08,343 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 11:46:08,343 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-04920698 passed 2025-09-15 11:46:08,343 - DEBUG - ====Verifying policy data for ctest-vn4-04920698 in API_Server ====== 2025-09-15 11:46:08,343 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 11:46:08,349 - DEBUG - Requesting: http://10.0.0.38:8082/domain/32c5e2e0-3441-478a-b5fe-124d47d945e6 2025-09-15 11:46:08,359 - DEBUG - Requesting: http://10.0.0.38:8082/project/e43cc093-e699-43a8-b45d-d7c78faebe55 2025-09-15 11:46:08,434 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ac738998-52f5-4964-a1f0-e6d5380b46fa 2025-09-15 11:46:08,443 - DEBUG - ==>Verifying data for policy with id: ae4a26d4-77dc-4f73-a038-9ae0b99679a3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13655585', 'ctest-policy1-49736471'] 2025-09-15 11:46:08,443 - INFO - VN ctest-vn4-04920698 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-15 11:46:08,443 - DEBUG - Verifying the vn in opserver 2025-09-15 11:46:08,443 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13655585:ctest-vn4-04920698 virtual network link through opserver 10.0.0.38 2025-09-15 11:46:08,443 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-15 11:46:08,740 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-15 11:46:08,799 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13655585:ctest-vn4-04920698', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13655585:ctest-vn4-04920698?flat'} 2025-09-15 11:46:08,799 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13655585:ctest-vn4-04920698 is found in opserver 2025-09-15 11:46:08,808 - DEBUG - Do not have enough data to verify VN in agent 2025-09-15 11:46:08,813 - DEBUG - VRF ids for VN ctest-vn4-04920698: {} 2025-09-15 11:46:08,814 - DEBUG - ====Verifying data for ctest-policy1-49736471 in API_Server ====== 2025-09-15 11:46:08,814 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 11:46:08,820 - DEBUG - Requesting: http://10.0.0.38:8082/domain/32c5e2e0-3441-478a-b5fe-124d47d945e6 2025-09-15 11:46:08,830 - DEBUG - Requesting: http://10.0.0.38:8082/project/e43cc093-e699-43a8-b45d-d7c78faebe55 2025-09-15 11:46:08,901 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/ae4a26d4-77dc-4f73-a038-9ae0b99679a3 2025-09-15 11:46:08,911 - INFO - Verified policy ctest-policy1-49736471 in API Server, Result: True 2025-09-15 11:46:08,911 - INFO - Done with setup and verification, moving onto test .. 2025-09-15 11:46:08,919 - INFO - Deleting VN ctest-vn4-04920698 2025-09-15 11:46:09,039 - DEBUG - Response for deleting network () 2025-09-15 11:46:09,039 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b3e910d5-eef5-4fd8-b25e-d8c3a03c010a 2025-09-15 11:46:09,044 - DEBUG - Response Code: 404 2025-09-15 11:46:09,045 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-15 11:46:09,050 - DEBUG - Requesting: http://10.0.0.38:8082/domain/32c5e2e0-3441-478a-b5fe-124d47d945e6 2025-09-15 11:46:09,105 - DEBUG - Requesting: http://10.0.0.38:8082/project/e43cc093-e699-43a8-b45d-d7c78faebe55 2025-09-15 11:46:09,175 - INFO - Validated that VN ctest-vn4-04920698 is not found in API Server 2025-09-15 11:46:09,185 - DEBUG - VN ctest-vn4-04920698 is not present in Agent 10.0.0.38 2025-09-15 11:46:09,185 - INFO - Validated that VN ctest-vn4-04920698 is not in any agent 2025-09-15 11:46:09,200 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-04920698 info 2025-09-15 11:46:09,224 - INFO - Deleted policy ctest-policy1-49736471 2025-09-15 11:46:09,385 - DEBUG - policy ctest-policy1-49736471 is not found in API Server 2025-09-15 11:46:09,646 - DEBUG - No XMPP flaps were noticed during the test