2025-08-18 19:23:23,284 - INFO - Domain Default found not creating 2025-08-18 19:23:23,413 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-34832581 not found, creating it 2025-08-18 19:23:23,834 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-34832581, ID : 467b2784-f691-4729-a81a-93ea298d7118 2025-08-18 19:23:25,141 - INFO - ================================================================================ 2025-08-18 19:23:25,142 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-18 19:23:25,395 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-08-18 19:23:25,395 - INFO - Initial checks done. Running the testcase now 2025-08-18 19:23:25,395 - INFO - 2025-08-18 19:23:25,395 - INFO - ================================================================================ 2025-08-18 19:23:25,395 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-18 19:23:25,395 - 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-18 19:23:25,687 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-08-18 19:23:25,687 - INFO - Initial checks done. Running the testcase now 2025-08-18 19:23:25,687 - INFO - 2025-08-18 19:23:26,025 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34832581:ctest-vn4-78539975, 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-34832581:ctest-vn4-78539975, 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-34832581:ctest-vn4-78539975, 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-34832581:ctest-vn4-78539975, 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-18 19:23:26,514 - DEBUG - Response for create_network : {'network': {'id': '4889c938-a8ff-466c-925a-ad79e822d9e8', 'name': 'ctest-vn4-78539975', 'tenant_id': '467b2784f6914729a81a93ea298d7118', 'project_id': '467b2784f6914729a81a93ea298d7118', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34832581', 'ctest-vn4-78539975'], 'port_security_enabled': True, 'description': ''}} 2025-08-18 19:23:26,721 - DEBUG - Response for create_subnet : {'subnet': {'id': '24f1788c-0663-464d-a7d6-fafb6f09c13e', 'name': '', 'tenant_id': '467b2784f6914729a81a93ea298d7118', 'network_id': '4889c938-a8ff-466c-925a-ad79e822d9e8', 'ip_version': 4, 'cidr': '26.226.205.64/26', 'allocation_pools': [{'start': '26.226.205.66', 'end': '26.226.205.126'}], 'gateway_ip': '26.226.205.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.226.205.66', 'tags': [], 'project_id': '467b2784f6914729a81a93ea298d7118'}} 2025-08-18 19:23:26,921 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f603ea5d-277c-4e7f-a39f-40821c741ddd', 'name': '', 'tenant_id': '467b2784f6914729a81a93ea298d7118', 'network_id': '4889c938-a8ff-466c-925a-ad79e822d9e8', 'ip_version': 6, 'cidr': '3861:e616:ef4d:61ea:bff3:bf5e::/96', 'allocation_pools': [{'start': '3861:e616:ef4d:61ea:bff3:bf5e:0:2', 'end': '3861:e616:ef4d:61ea:bff3:bf5e:ffff:fffe'}], 'gateway_ip': '3861:e616:ef4d:61ea:bff3:bf5e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3861:e616:ef4d:61ea:bff3:bf5e:0:2', 'tags': [], 'project_id': '467b2784f6914729a81a93ea298d7118'}} 2025-08-18 19:23:26,939 - INFO - Created VN ctest-vn4-78539975 2025-08-18 19:23:26,991 - DEBUG - VN ctest-vn4-78539975 UUID is 4889c938-a8ff-466c-925a-ad79e822d9e8 2025-08-18 19:23:27,181 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4889c938-a8ff-466c-925a-ad79e822d9e8', 'name': 'ctest-vn4-78539975', 'tenant_id': '467b2784f6914729a81a93ea298d7118', 'project_id': '467b2784f6914729a81a93ea298d7118', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['24f1788c-0663-464d-a7d6-fafb6f09c13e', 'f603ea5d-277c-4e7f-a39f-40821c741ddd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34832581', 'ctest-vn4-78539975'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34832581', 'ctest-policy1-92710059']], 'subnet_ipam': [{'subnet_cidr': '26.226.205.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3861:e616:ef4d:61ea:bff3:bf5e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-18 19:23:27,347 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-18 19:23:27,633 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-18 19:23:27,657 - DEBUG - Requesting: http://10.0.0.254:8082/domain/60ef34dd-8ca9-43fd-a2c3-407354da9689 2025-08-18 19:23:27,668 - DEBUG - Requesting: http://10.0.0.254:8082/project/467b2784-f691-4729-a81a-93ea298d7118 2025-08-18 19:23:27,741 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4889c938-a8ff-466c-925a-ad79e822d9e8 2025-08-18 19:23:27,751 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4889c938-a8ff-466c-925a-ad79e822d9e8 2025-08-18 19:23:27,760 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5cc0dcfc-e331-426b-8a82-1682cdb39f57 2025-08-18 19:23:27,766 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5cc0dcfc-e331-426b-8a82-1682cdb39f57 2025-08-18 19:23:27,771 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/33ca5796-e89e-4ea4-bc1a-d893923f0d17 2025-08-18 19:23:27,776 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 19:23:27,776 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4889c938-a8ff-466c-925a-ad79e822d9e8 2025-08-18 19:23:27,785 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5cc0dcfc-e331-426b-8a82-1682cdb39f57 2025-08-18 19:23:27,797 - INFO - Verified VN network id 12 for VN 4889c938-a8ff-466c-925a-ad79e822d9e8 2025-08-18 19:23:27,797 - INFO - Verifications in API Server for VN ctest-vn4-78539975 passed 2025-08-18 19:23:27,797 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4889c938-a8ff-466c-925a-ad79e822d9e8 2025-08-18 19:23:27,806 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5cc0dcfc-e331-426b-8a82-1682cdb39f57 2025-08-18 19:23:27,812 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5cc0dcfc-e331-426b-8a82-1682cdb39f57 2025-08-18 19:23:27,818 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/33ca5796-e89e-4ea4-bc1a-d893923f0d17 2025-08-18 19:23:27,828 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34832581:ctest-vn4-78539975', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-34832581', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5226930087730824812', 'uuid-lslong': '10545932216538683880'}, 'enable': 'true', 'created': '2025-08-18T19:23:26', 'last-modified': '2025-08-18T19:23:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.676729'} 2025-08-18 19:23:27,833 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 19:23:27,834 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78539975 passed 2025-08-18 19:23:27,834 - DEBUG - ====Verifying policy data for ctest-vn4-78539975 in API_Server ====== 2025-08-18 19:23:27,834 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-18 19:23:27,839 - DEBUG - Requesting: http://10.0.0.254:8082/domain/60ef34dd-8ca9-43fd-a2c3-407354da9689 2025-08-18 19:23:27,848 - DEBUG - Requesting: http://10.0.0.254:8082/project/467b2784-f691-4729-a81a-93ea298d7118 2025-08-18 19:23:27,916 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4889c938-a8ff-466c-925a-ad79e822d9e8 2025-08-18 19:23:27,925 - DEBUG - ==>Verifying data for policy with id: cc9a8a31-e07c-4a0c-aa53-c14641a604b1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34832581', 'ctest-policy1-92710059'] 2025-08-18 19:23:27,925 - INFO - VN ctest-vn4-78539975 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-18 19:23:27,925 - DEBUG - Verifying the vn in opserver 2025-08-18 19:23:27,925 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34832581:ctest-vn4-78539975 virtual network link through opserver 10.0.0.254 2025-08-18 19:23:27,925 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-18 19:23:28,213 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-18 19:23:28,265 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34832581:ctest-vn4-78539975', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34832581:ctest-vn4-78539975?flat'} 2025-08-18 19:23:28,265 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34832581:ctest-vn4-78539975 is found in opserver 2025-08-18 19:23:28,274 - DEBUG - Do not have enough data to verify VN in agent 2025-08-18 19:23:28,279 - DEBUG - VRF ids for VN ctest-vn4-78539975: {} 2025-08-18 19:23:28,279 - DEBUG - ====Verifying data for ctest-policy1-92710059 in API_Server ====== 2025-08-18 19:23:28,279 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-18 19:23:28,284 - DEBUG - Requesting: http://10.0.0.254:8082/domain/60ef34dd-8ca9-43fd-a2c3-407354da9689 2025-08-18 19:23:28,294 - DEBUG - Requesting: http://10.0.0.254:8082/project/467b2784-f691-4729-a81a-93ea298d7118 2025-08-18 19:23:28,363 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/cc9a8a31-e07c-4a0c-aa53-c14641a604b1 2025-08-18 19:23:28,371 - INFO - Verified policy ctest-policy1-92710059 in API Server, Result: True 2025-08-18 19:23:28,372 - INFO - Done with setup and verification, moving onto test .. 2025-08-18 19:23:28,378 - INFO - Deleting VN ctest-vn4-78539975 2025-08-18 19:23:28,479 - DEBUG - Response for deleting network () 2025-08-18 19:23:28,479 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5cc0dcfc-e331-426b-8a82-1682cdb39f57 2025-08-18 19:23:28,483 - DEBUG - Response Code: 404 2025-08-18 19:23:28,483 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-18 19:23:28,487 - DEBUG - Requesting: http://10.0.0.254:8082/domain/60ef34dd-8ca9-43fd-a2c3-407354da9689 2025-08-18 19:23:28,539 - DEBUG - Requesting: http://10.0.0.254:8082/project/467b2784-f691-4729-a81a-93ea298d7118 2025-08-18 19:23:28,609 - INFO - Validated that VN ctest-vn4-78539975 is not found in API Server 2025-08-18 19:23:28,618 - DEBUG - VN ctest-vn4-78539975 is not present in Agent 10.0.0.254 2025-08-18 19:23:28,618 - INFO - Validated that VN ctest-vn4-78539975 is not in any agent 2025-08-18 19:23:28,630 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78539975 info 2025-08-18 19:23:28,654 - INFO - Deleted policy ctest-policy1-92710059 2025-08-18 19:23:28,818 - DEBUG - policy ctest-policy1-92710059 is not found in API Server 2025-08-18 19:23:29,071 - DEBUG - No XMPP flaps were noticed during the test
2025-08-18 19:23:29,071 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-18 19:23:29,071 - INFO - -------------------------------------------------------------------------------- 2025-08-18 19:23:29,364 - DEBUG - No XMPP flaps were noticed during the test
2025-08-18 19:23:29,364 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-18 19:23:29,364 - INFO - -------------------------------------------------------------------------------- 2025-08-18 19:23:30,019 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-34832581, ID : 467b2784-f691-4729-a81a-93ea298d7118