2025-07-22 08:59:37,506 - INFO - Domain Default found not creating 2025-07-22 08:59:37,906 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-02129778 not found, creating it 2025-07-22 08:59:38,652 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-02129778, ID : ac0f29c2-83da-46a1-bba5-32bd3509479d 2025-07-22 08:59:40,991 - INFO - ================================================================================ 2025-07-22 08:59:40,991 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-22 08:59:41,285 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-07-22 08:59:41,285 - INFO - Initial checks done. Running the testcase now 2025-07-22 08:59:41,285 - INFO - 2025-07-22 08:59:41,285 - INFO - ================================================================================ 2025-07-22 08:59:41,285 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-22 08:59:41,285 - 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-07-22 08:59:41,640 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-07-22 08:59:41,640 - INFO - Initial checks done. Running the testcase now 2025-07-22 08:59:41,640 - INFO - 2025-07-22 08:59:42,071 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02129778:ctest-vn4-61467943, 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-02129778:ctest-vn4-61467943, 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-02129778:ctest-vn4-61467943, 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-02129778:ctest-vn4-61467943, 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-07-22 08:59:42,829 - DEBUG - Response for create_network : {'network': {'id': '4fdcbadb-3482-42dc-a0f2-7e600143ff87', 'name': 'ctest-vn4-61467943', 'tenant_id': 'ac0f29c283da46a1bba532bd3509479d', 'project_id': 'ac0f29c283da46a1bba532bd3509479d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02129778', 'ctest-vn4-61467943'], 'port_security_enabled': True, 'description': ''}} 2025-07-22 08:59:43,038 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc7dccce-7a5b-49bc-a1e7-3412e612456b', 'name': '', 'tenant_id': 'ac0f29c283da46a1bba532bd3509479d', 'network_id': '4fdcbadb-3482-42dc-a0f2-7e600143ff87', 'ip_version': 4, 'cidr': '218.250.118.128/26', 'allocation_pools': [{'start': '218.250.118.130', 'end': '218.250.118.190'}], 'gateway_ip': '218.250.118.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.250.118.130', 'tags': [], 'project_id': 'ac0f29c283da46a1bba532bd3509479d'}} 2025-07-22 08:59:43,217 - DEBUG - Response for create_subnet : {'subnet': {'id': '39c34897-9178-4401-908c-de42c5295f1a', 'name': '', 'tenant_id': 'ac0f29c283da46a1bba532bd3509479d', 'network_id': '4fdcbadb-3482-42dc-a0f2-7e600143ff87', 'ip_version': 6, 'cidr': '3ad9:f4ef:8f65:8426:6fe:7ee5::/96', 'allocation_pools': [{'start': '3ad9:f4ef:8f65:8426:6fe:7ee5:0:2', 'end': '3ad9:f4ef:8f65:8426:6fe:7ee5:ffff:fffe'}], 'gateway_ip': '3ad9:f4ef:8f65:8426:6fe:7ee5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ad9:f4ef:8f65:8426:6fe:7ee5:0:2', 'tags': [], 'project_id': 'ac0f29c283da46a1bba532bd3509479d'}} 2025-07-22 08:59:43,242 - INFO - Created VN ctest-vn4-61467943 2025-07-22 08:59:43,297 - DEBUG - VN ctest-vn4-61467943 UUID is 4fdcbadb-3482-42dc-a0f2-7e600143ff87 2025-07-22 08:59:43,575 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4fdcbadb-3482-42dc-a0f2-7e600143ff87', 'name': 'ctest-vn4-61467943', 'tenant_id': 'ac0f29c283da46a1bba532bd3509479d', 'project_id': 'ac0f29c283da46a1bba532bd3509479d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc7dccce-7a5b-49bc-a1e7-3412e612456b', '39c34897-9178-4401-908c-de42c5295f1a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02129778', 'ctest-vn4-61467943'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02129778', 'ctest-policy1-02200305']], 'subnet_ipam': [{'subnet_cidr': '218.250.118.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ad9:f4ef:8f65:8426:6fe:7ee5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-22 08:59:43,737 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-22 08:59:44,059 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-22 08:59:44,136 - DEBUG - Requesting: http://10.0.0.50:8082/domain/201e267c-459f-43cf-8c01-dab0c905f98e 2025-07-22 08:59:44,173 - DEBUG - Requesting: http://10.0.0.50:8082/project/ac0f29c2-83da-46a1-bba5-32bd3509479d 2025-07-22 08:59:44,282 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4fdcbadb-3482-42dc-a0f2-7e600143ff87 2025-07-22 08:59:44,306 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4fdcbadb-3482-42dc-a0f2-7e600143ff87 2025-07-22 08:59:44,329 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3d7f71a5-7bde-4538-a666-a9e3dfe07fc1 2025-07-22 08:59:44,338 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3d7f71a5-7bde-4538-a666-a9e3dfe07fc1 2025-07-22 08:59:44,347 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/076b3f2d-3460-4633-8088-2bc95301264f 2025-07-22 08:59:44,356 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 08:59:44,356 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4fdcbadb-3482-42dc-a0f2-7e600143ff87 2025-07-22 08:59:44,374 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3d7f71a5-7bde-4538-a666-a9e3dfe07fc1 2025-07-22 08:59:44,398 - INFO - Verified VN network id 11 for VN 4fdcbadb-3482-42dc-a0f2-7e600143ff87 2025-07-22 08:59:44,398 - INFO - Verifications in API Server for VN ctest-vn4-61467943 passed 2025-07-22 08:59:44,399 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4fdcbadb-3482-42dc-a0f2-7e600143ff87 2025-07-22 08:59:44,420 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3d7f71a5-7bde-4538-a666-a9e3dfe07fc1 2025-07-22 08:59:44,438 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3d7f71a5-7bde-4538-a666-a9e3dfe07fc1 2025-07-22 08:59:44,459 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/076b3f2d-3460-4633-8088-2bc95301264f 2025-07-22 08:59:44,490 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02129778:ctest-vn4-61467943', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02129778', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5754679874514207452', 'uuid-lslong': '11597470941235642247'}, 'enable': 'true', 'created': '2025-07-22T08:59:42', 'last-modified': '2025-07-22T08:59:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.966104'} 2025-07-22 08:59:44,512 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-22 08:59:44,512 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-61467943 passed 2025-07-22 08:59:44,513 - DEBUG - ====Verifying policy data for ctest-vn4-61467943 in API_Server ====== 2025-07-22 08:59:44,513 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-22 08:59:44,528 - DEBUG - Requesting: http://10.0.0.50:8082/domain/201e267c-459f-43cf-8c01-dab0c905f98e 2025-07-22 08:59:44,552 - DEBUG - Requesting: http://10.0.0.50:8082/project/ac0f29c2-83da-46a1-bba5-32bd3509479d 2025-07-22 08:59:44,673 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4fdcbadb-3482-42dc-a0f2-7e600143ff87 2025-07-22 08:59:44,697 - DEBUG - ==>Verifying data for policy with id: dc633d56-0789-4554-92c6-2c87563e2758, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02129778', 'ctest-policy1-02200305'] 2025-07-22 08:59:44,697 - INFO - VN ctest-vn4-61467943 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-22 08:59:44,698 - DEBUG - Verifying the vn in opserver 2025-07-22 08:59:44,698 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02129778:ctest-vn4-61467943 virtual network link through opserver 10.0.0.50 2025-07-22 08:59:44,698 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-22 08:59:45,052 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-22 08:59:45,140 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02129778:ctest-vn4-61467943', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02129778:ctest-vn4-61467943?flat'} 2025-07-22 08:59:45,140 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02129778:ctest-vn4-61467943 is found in opserver 2025-07-22 08:59:45,166 - DEBUG - Do not have enough data to verify VN in agent 2025-07-22 08:59:45,186 - DEBUG - VRF ids for VN ctest-vn4-61467943: {} 2025-07-22 08:59:45,187 - DEBUG - ====Verifying data for ctest-policy1-02200305 in API_Server ====== 2025-07-22 08:59:45,187 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-22 08:59:45,204 - DEBUG - Requesting: http://10.0.0.50:8082/domain/201e267c-459f-43cf-8c01-dab0c905f98e 2025-07-22 08:59:45,243 - DEBUG - Requesting: http://10.0.0.50:8082/project/ac0f29c2-83da-46a1-bba5-32bd3509479d 2025-07-22 08:59:45,358 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/dc633d56-0789-4554-92c6-2c87563e2758 2025-07-22 08:59:45,376 - INFO - Verified policy ctest-policy1-02200305 in API Server, Result: True 2025-07-22 08:59:45,376 - INFO - Done with setup and verification, moving onto test .. 2025-07-22 08:59:45,388 - INFO - Deleting VN ctest-vn4-61467943 2025-07-22 08:59:45,592 - DEBUG - Response for deleting network () 2025-07-22 08:59:45,593 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3d7f71a5-7bde-4538-a666-a9e3dfe07fc1 2025-07-22 08:59:45,600 - DEBUG - Response Code: 404 2025-07-22 08:59:45,600 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-22 08:59:45,606 - DEBUG - Requesting: http://10.0.0.50:8082/domain/201e267c-459f-43cf-8c01-dab0c905f98e 2025-07-22 08:59:45,665 - DEBUG - Requesting: http://10.0.0.50:8082/project/ac0f29c2-83da-46a1-bba5-32bd3509479d 2025-07-22 08:59:45,765 - INFO - Validated that VN ctest-vn4-61467943 is not found in API Server 2025-07-22 08:59:45,789 - DEBUG - VN ctest-vn4-61467943 is not present in Agent 10.0.0.50 2025-07-22 08:59:45,789 - INFO - Validated that VN ctest-vn4-61467943 is not in any agent 2025-07-22 08:59:45,829 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-61467943 info 2025-07-22 08:59:45,886 - INFO - Deleted policy ctest-policy1-02200305 2025-07-22 08:59:46,089 - DEBUG - policy ctest-policy1-02200305 is not found in API Server 2025-07-22 08:59:46,425 - DEBUG - No XMPP flaps were noticed during the test