2025-11-19 07:57:20,232 - INFO - Domain Default found not creating 2025-11-19 07:57:20,421 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-04701256 not found, creating it 2025-11-19 07:57:20,879 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-04701256, ID : dcca9a06-9431-4f97-96c2-64ddbff83917 2025-11-19 07:57:22,966 - INFO - ================================================================================ 2025-11-19 07:57:22,967 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-19 07:57:23,218 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-19 07:57:23,218 - INFO - Initial checks done. Running the testcase now 2025-11-19 07:57:23,218 - INFO - 2025-11-19 07:57:23,218 - INFO - ================================================================================ 2025-11-19 07:57:23,218 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-19 07:57:23,218 - 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-19 07:57:23,518 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-19 07:57:23,518 - INFO - Initial checks done. Running the testcase now 2025-11-19 07:57:23,518 - INFO - 2025-11-19 07:57:23,873 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04701256:ctest-vn4-26807842, 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-04701256:ctest-vn4-26807842, 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-04701256:ctest-vn4-26807842, 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-04701256:ctest-vn4-26807842, 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-19 07:57:24,412 - DEBUG - Response for create_network : {'network': {'id': 'd349def7-6ebf-4adc-adc6-443c7b8aa3a6', 'name': 'ctest-vn4-26807842', 'tenant_id': 'dcca9a0694314f9796c264ddbff83917', 'project_id': 'dcca9a0694314f9796c264ddbff83917', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04701256', 'ctest-vn4-26807842'], 'port_security_enabled': True, 'description': ''}} 2025-11-19 07:57:24,603 - DEBUG - Response for create_subnet : {'subnet': {'id': '03b8ab6d-6e52-474a-9f32-2255fb5c91b1', 'name': '', 'tenant_id': 'dcca9a0694314f9796c264ddbff83917', 'network_id': 'd349def7-6ebf-4adc-adc6-443c7b8aa3a6', 'ip_version': 4, 'cidr': '74.204.79.64/26', 'allocation_pools': [{'start': '74.204.79.66', 'end': '74.204.79.126'}], 'gateway_ip': '74.204.79.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.204.79.66', 'tags': [], 'project_id': 'dcca9a0694314f9796c264ddbff83917'}} 2025-11-19 07:57:24,749 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc9e66c8-3606-4920-874e-58ec531e88d8', 'name': '', 'tenant_id': 'dcca9a0694314f9796c264ddbff83917', 'network_id': 'd349def7-6ebf-4adc-adc6-443c7b8aa3a6', 'ip_version': 6, 'cidr': '2527:57fe:1447:48b2:ec77:d5e2::/96', 'allocation_pools': [{'start': '2527:57fe:1447:48b2:ec77:d5e2:0:2', 'end': '2527:57fe:1447:48b2:ec77:d5e2:ffff:fffe'}], 'gateway_ip': '2527:57fe:1447:48b2:ec77:d5e2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2527:57fe:1447:48b2:ec77:d5e2:0:2', 'tags': [], 'project_id': 'dcca9a0694314f9796c264ddbff83917'}} 2025-11-19 07:57:24,770 - INFO - Created VN ctest-vn4-26807842 2025-11-19 07:57:24,822 - DEBUG - VN ctest-vn4-26807842 UUID is d349def7-6ebf-4adc-adc6-443c7b8aa3a6 2025-11-19 07:57:25,046 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd349def7-6ebf-4adc-adc6-443c7b8aa3a6', 'name': 'ctest-vn4-26807842', 'tenant_id': 'dcca9a0694314f9796c264ddbff83917', 'project_id': 'dcca9a0694314f9796c264ddbff83917', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['03b8ab6d-6e52-474a-9f32-2255fb5c91b1', 'bc9e66c8-3606-4920-874e-58ec531e88d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04701256', 'ctest-vn4-26807842'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04701256', 'ctest-policy1-09709205']], 'subnet_ipam': [{'subnet_cidr': '74.204.79.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2527:57fe:1447:48b2:ec77:d5e2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-19 07:57:25,230 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-19 07:57:25,521 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-19 07:57:25,549 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b2fbc469-6231-4099-a349-af135739a1d2 2025-11-19 07:57:25,560 - DEBUG - Requesting: http://10.0.0.50:8082/project/dcca9a06-9431-4f97-96c2-64ddbff83917 2025-11-19 07:57:25,631 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d349def7-6ebf-4adc-adc6-443c7b8aa3a6 2025-11-19 07:57:25,641 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d349def7-6ebf-4adc-adc6-443c7b8aa3a6 2025-11-19 07:57:25,649 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3fe38131-6a59-4eaa-b2e8-099828ed84fb 2025-11-19 07:57:25,655 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3fe38131-6a59-4eaa-b2e8-099828ed84fb 2025-11-19 07:57:25,661 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/73146c28-84da-4f5a-b49e-90cc4c6adf94 2025-11-19 07:57:25,666 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-19 07:57:25,666 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d349def7-6ebf-4adc-adc6-443c7b8aa3a6 2025-11-19 07:57:25,674 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3fe38131-6a59-4eaa-b2e8-099828ed84fb 2025-11-19 07:57:25,687 - INFO - Verified VN network id 11 for VN d349def7-6ebf-4adc-adc6-443c7b8aa3a6 2025-11-19 07:57:25,688 - INFO - Verifications in API Server for VN ctest-vn4-26807842 passed 2025-11-19 07:57:25,688 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d349def7-6ebf-4adc-adc6-443c7b8aa3a6 2025-11-19 07:57:25,697 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3fe38131-6a59-4eaa-b2e8-099828ed84fb 2025-11-19 07:57:25,705 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3fe38131-6a59-4eaa-b2e8-099828ed84fb 2025-11-19 07:57:25,711 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/73146c28-84da-4f5a-b49e-90cc4c6adf94 2025-11-19 07:57:25,724 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04701256:ctest-vn4-26807842', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04701256', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15224945169598991068', 'uuid-lslong': '12521770840511652774'}, 'enable': 'true', 'created': '2025-11-19T07:57:24', 'last-modified': '2025-11-19T07:57:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711364'} 2025-11-19 07:57:25,729 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-19 07:57:25,729 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-26807842 passed 2025-11-19 07:57:25,730 - DEBUG - ====Verifying policy data for ctest-vn4-26807842 in API_Server ====== 2025-11-19 07:57:25,730 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-19 07:57:25,734 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b2fbc469-6231-4099-a349-af135739a1d2 2025-11-19 07:57:25,745 - DEBUG - Requesting: http://10.0.0.50:8082/project/dcca9a06-9431-4f97-96c2-64ddbff83917 2025-11-19 07:57:25,818 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d349def7-6ebf-4adc-adc6-443c7b8aa3a6 2025-11-19 07:57:25,828 - DEBUG - ==>Verifying data for policy with id: 778e30a2-57e8-4f9f-b996-d31d3c9ef400, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04701256', 'ctest-policy1-09709205'] 2025-11-19 07:57:25,828 - INFO - VN ctest-vn4-26807842 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-19 07:57:25,828 - DEBUG - Verifying the vn in opserver 2025-11-19 07:57:25,828 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04701256:ctest-vn4-26807842 virtual network link through opserver 10.0.0.50 2025-11-19 07:57:25,828 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-19 07:57:26,119 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-19 07:57:26,178 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04701256:ctest-vn4-26807842', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04701256:ctest-vn4-26807842?flat'} 2025-11-19 07:57:26,178 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04701256:ctest-vn4-26807842 is found in opserver 2025-11-19 07:57:26,187 - DEBUG - Do not have enough data to verify VN in agent 2025-11-19 07:57:26,191 - DEBUG - VRF ids for VN ctest-vn4-26807842: {} 2025-11-19 07:57:26,192 - DEBUG - ====Verifying data for ctest-policy1-09709205 in API_Server ====== 2025-11-19 07:57:26,192 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-19 07:57:26,197 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b2fbc469-6231-4099-a349-af135739a1d2 2025-11-19 07:57:26,207 - DEBUG - Requesting: http://10.0.0.50:8082/project/dcca9a06-9431-4f97-96c2-64ddbff83917 2025-11-19 07:57:26,277 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/778e30a2-57e8-4f9f-b996-d31d3c9ef400 2025-11-19 07:57:26,286 - INFO - Verified policy ctest-policy1-09709205 in API Server, Result: True 2025-11-19 07:57:26,286 - INFO - Done with setup and verification, moving onto test .. 2025-11-19 07:57:26,293 - INFO - Deleting VN ctest-vn4-26807842 2025-11-19 07:57:26,398 - DEBUG - Response for deleting network () 2025-11-19 07:57:26,399 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3fe38131-6a59-4eaa-b2e8-099828ed84fb 2025-11-19 07:57:26,404 - DEBUG - Response Code: 404 2025-11-19 07:57:26,404 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-19 07:57:26,409 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b2fbc469-6231-4099-a349-af135739a1d2 2025-11-19 07:57:26,458 - DEBUG - Requesting: http://10.0.0.50:8082/project/dcca9a06-9431-4f97-96c2-64ddbff83917 2025-11-19 07:57:26,526 - INFO - Validated that VN ctest-vn4-26807842 is not found in API Server 2025-11-19 07:57:26,534 - DEBUG - VN ctest-vn4-26807842 is not present in Agent 10.0.0.50 2025-11-19 07:57:26,534 - INFO - Validated that VN ctest-vn4-26807842 is not in any agent 2025-11-19 07:57:26,546 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-26807842 info 2025-11-19 07:57:26,570 - INFO - Deleted policy ctest-policy1-09709205 2025-11-19 07:57:26,733 - DEBUG - policy ctest-policy1-09709205 is not found in API Server 2025-11-19 07:57:26,994 - DEBUG - No XMPP flaps were noticed during the test 2025-11-19 07:57:26,994 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-11-19 07:57:26,994 - INFO - -------------------------------------------------------------------------------- 2025-11-19 07:57:27,282 - DEBUG - No XMPP flaps were noticed during the test 2025-11-19 07:57:27,282 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-11-19 07:57:27,283 - INFO - -------------------------------------------------------------------------------- 2025-11-19 07:57:27,971 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-04701256, ID : dcca9a06-9431-4f97-96c2-64ddbff83917