2025-09-11 02:01:23,980 - INFO - Domain Default found not creating 2025-09-11 02:01:24,127 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33526431 not found, creating it 2025-09-11 02:01:24,605 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33526431, ID : 07cb1e61-1e8a-4ea7-aceb-0854ab3b402f 2025-09-11 02:01:26,169 - INFO - ================================================================================ 2025-09-11 02:01:26,169 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 02:01:26,424 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.129': '0'}} with 2025-09-11 02:01:26,424 - INFO - Initial checks done. Running the testcase now 2025-09-11 02:01:26,424 - INFO - 2025-09-11 02:01:26,424 - INFO - ================================================================================ 2025-09-11 02:01:26,424 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 02:01:26,425 - 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-11 02:01:26,719 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.129': '0'}} with 2025-09-11 02:01:26,720 - INFO - Initial checks done. Running the testcase now 2025-09-11 02:01:26,720 - INFO - 2025-09-11 02:01:27,109 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33526431:ctest-vn4-48689269, 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-33526431:ctest-vn4-48689269, 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-33526431:ctest-vn4-48689269, 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-33526431:ctest-vn4-48689269, 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-11 02:01:27,622 - DEBUG - Response for create_network : {'network': {'id': '3bf13ed0-da28-416a-ad56-057e1000b3a1', 'name': 'ctest-vn4-48689269', 'tenant_id': '07cb1e611e8a4ea7aceb0854ab3b402f', 'project_id': '07cb1e611e8a4ea7aceb0854ab3b402f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33526431', 'ctest-vn4-48689269'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 02:01:27,779 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f05df636-a807-4c5d-acbd-02e598bb205f', 'name': '', 'tenant_id': '07cb1e611e8a4ea7aceb0854ab3b402f', 'network_id': '3bf13ed0-da28-416a-ad56-057e1000b3a1', 'ip_version': 4, 'cidr': '69.220.173.0/26', 'allocation_pools': [{'start': '69.220.173.2', 'end': '69.220.173.62'}], 'gateway_ip': '69.220.173.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.220.173.2', 'tags': [], 'project_id': '07cb1e611e8a4ea7aceb0854ab3b402f'}} 2025-09-11 02:01:27,979 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e3d53e2-ad11-4698-9f01-4e144fadd739', 'name': '', 'tenant_id': '07cb1e611e8a4ea7aceb0854ab3b402f', 'network_id': '3bf13ed0-da28-416a-ad56-057e1000b3a1', 'ip_version': 6, 'cidr': '22b0:7619:6937:17cc:a404:1fd8::/96', 'allocation_pools': [{'start': '22b0:7619:6937:17cc:a404:1fd8:0:2', 'end': '22b0:7619:6937:17cc:a404:1fd8:ffff:fffe'}], 'gateway_ip': '22b0:7619:6937:17cc:a404:1fd8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22b0:7619:6937:17cc:a404:1fd8:0:2', 'tags': [], 'project_id': '07cb1e611e8a4ea7aceb0854ab3b402f'}} 2025-09-11 02:01:28,062 - INFO - Created VN ctest-vn4-48689269 2025-09-11 02:01:28,115 - DEBUG - VN ctest-vn4-48689269 UUID is 3bf13ed0-da28-416a-ad56-057e1000b3a1 2025-09-11 02:01:28,316 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3bf13ed0-da28-416a-ad56-057e1000b3a1', 'name': 'ctest-vn4-48689269', 'tenant_id': '07cb1e611e8a4ea7aceb0854ab3b402f', 'project_id': '07cb1e611e8a4ea7aceb0854ab3b402f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f05df636-a807-4c5d-acbd-02e598bb205f', '3e3d53e2-ad11-4698-9f01-4e144fadd739'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33526431', 'ctest-vn4-48689269'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33526431', 'ctest-policy1-86800137']], 'subnet_ipam': [{'subnet_cidr': '69.220.173.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '22b0:7619:6937:17cc:a404:1fd8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-11 02:01:28,490 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-11 02:01:28,824 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-11 02:01:28,856 - DEBUG - Requesting: http://10.0.0.33:8082/domain/08475a30-85f1-4ccc-a333-e064f1f3cfc6 2025-09-11 02:01:28,870 - DEBUG - Requesting: http://10.0.0.33:8082/project/07cb1e61-1e8a-4ea7-aceb-0854ab3b402f 2025-09-11 02:01:28,949 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3bf13ed0-da28-416a-ad56-057e1000b3a1 2025-09-11 02:01:28,962 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3bf13ed0-da28-416a-ad56-057e1000b3a1 2025-09-11 02:01:28,973 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/670fed17-74bf-4bc8-83f5-3c0b5ecea4ee 2025-09-11 02:01:28,981 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/670fed17-74bf-4bc8-83f5-3c0b5ecea4ee 2025-09-11 02:01:28,988 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/503b20f0-786a-430d-95d6-9800a84713da 2025-09-11 02:01:28,995 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 02:01:28,996 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3bf13ed0-da28-416a-ad56-057e1000b3a1 2025-09-11 02:01:29,006 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/670fed17-74bf-4bc8-83f5-3c0b5ecea4ee 2025-09-11 02:01:29,024 - INFO - Verified VN network id 11 for VN 3bf13ed0-da28-416a-ad56-057e1000b3a1 2025-09-11 02:01:29,024 - INFO - Verifications in API Server for VN ctest-vn4-48689269 passed 2025-09-11 02:01:29,024 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3bf13ed0-da28-416a-ad56-057e1000b3a1 2025-09-11 02:01:29,035 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/670fed17-74bf-4bc8-83f5-3c0b5ecea4ee 2025-09-11 02:01:29,043 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/670fed17-74bf-4bc8-83f5-3c0b5ecea4ee 2025-09-11 02:01:29,051 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/503b20f0-786a-430d-95d6-9800a84713da 2025-09-11 02:01:29,064 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33526431:ctest-vn4-48689269', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33526431', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4319302584359207274', 'uuid-lslong': '12490176655551148961'}, 'enable': 'true', 'created': '2025-09-11T02:01:27', 'last-modified': '2025-09-11T02:01:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.768562'} 2025-09-11 02:01:29,071 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 02:01:29,071 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-48689269 passed 2025-09-11 02:01:29,071 - DEBUG - ====Verifying policy data for ctest-vn4-48689269 in API_Server ====== 2025-09-11 02:01:29,071 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-11 02:01:29,077 - DEBUG - Requesting: http://10.0.0.33:8082/domain/08475a30-85f1-4ccc-a333-e064f1f3cfc6 2025-09-11 02:01:29,088 - DEBUG - Requesting: http://10.0.0.33:8082/project/07cb1e61-1e8a-4ea7-aceb-0854ab3b402f 2025-09-11 02:01:29,166 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3bf13ed0-da28-416a-ad56-057e1000b3a1 2025-09-11 02:01:29,179 - DEBUG - ==>Verifying data for policy with id: dd08c50d-d967-4c84-a933-3130b2e5ac2d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33526431', 'ctest-policy1-86800137'] 2025-09-11 02:01:29,179 - INFO - VN ctest-vn4-48689269 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-11 02:01:29,179 - DEBUG - Verifying the vn in opserver 2025-09-11 02:01:29,179 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33526431:ctest-vn4-48689269 virtual network link through opserver 10.0.0.33 2025-09-11 02:01:29,179 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-11 02:01:29,514 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-11 02:01:29,574 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33526431:ctest-vn4-48689269', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33526431:ctest-vn4-48689269?flat'} 2025-09-11 02:01:29,574 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33526431:ctest-vn4-48689269 is found in opserver 2025-09-11 02:01:29,583 - DEBUG - Do not have enough data to verify VN in agent 2025-09-11 02:01:29,587 - DEBUG - VRF ids for VN ctest-vn4-48689269: {} 2025-09-11 02:01:29,588 - DEBUG - ====Verifying data for ctest-policy1-86800137 in API_Server ====== 2025-09-11 02:01:29,588 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-11 02:01:29,593 - DEBUG - Requesting: http://10.0.0.33:8082/domain/08475a30-85f1-4ccc-a333-e064f1f3cfc6 2025-09-11 02:01:29,603 - DEBUG - Requesting: http://10.0.0.33:8082/project/07cb1e61-1e8a-4ea7-aceb-0854ab3b402f 2025-09-11 02:01:29,677 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/dd08c50d-d967-4c84-a933-3130b2e5ac2d 2025-09-11 02:01:29,690 - INFO - Verified policy ctest-policy1-86800137 in API Server, Result: True 2025-09-11 02:01:29,690 - INFO - Done with setup and verification, moving onto test .. 2025-09-11 02:01:29,699 - INFO - Deleting VN ctest-vn4-48689269 2025-09-11 02:01:29,820 - DEBUG - Response for deleting network () 2025-09-11 02:01:29,820 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/670fed17-74bf-4bc8-83f5-3c0b5ecea4ee 2025-09-11 02:01:29,825 - DEBUG - Response Code: 404 2025-09-11 02:01:29,826 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-11 02:01:29,830 - DEBUG - Requesting: http://10.0.0.33:8082/domain/08475a30-85f1-4ccc-a333-e064f1f3cfc6 2025-09-11 02:01:29,883 - DEBUG - Requesting: http://10.0.0.33:8082/project/07cb1e61-1e8a-4ea7-aceb-0854ab3b402f 2025-09-11 02:01:29,957 - INFO - Validated that VN ctest-vn4-48689269 is not found in API Server 2025-09-11 02:01:29,968 - DEBUG - VN ctest-vn4-48689269 is not present in Agent 10.0.0.33 2025-09-11 02:01:29,969 - INFO - Validated that VN ctest-vn4-48689269 is not in any agent 2025-09-11 02:01:29,985 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-48689269 info 2025-09-11 02:01:30,011 - INFO - Deleted policy ctest-policy1-86800137 2025-09-11 02:01:30,178 - DEBUG - policy ctest-policy1-86800137 is not found in API Server 2025-09-11 02:01:30,436 - DEBUG - No XMPP flaps were noticed during the test