2025-11-13 02:33:47,976 - INFO - Domain Default found not creating 2025-11-13 02:33:48,119 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-94204588 not found, creating it 2025-11-13 02:33:48,604 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-94204588, ID : 48ed8a52-12d0-4bc3-a632-8486830d577f 2025-11-13 02:33:50,230 - INFO - ================================================================================ 2025-11-13 02:33:50,230 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-13 02:33:51,519 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.25': '0', '10.20.0.254': '0'}, '10.0.0.23': {'10.20.0.25': '0', '10.20.0.193': '0'}} with 2025-11-13 02:33:51,520 - INFO - Initial checks done. Running the testcase now 2025-11-13 02:33:51,520 - INFO - 2025-11-13 02:33:51,520 - INFO - ================================================================================ 2025-11-13 02:33:51,520 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-13 02:33:51,520 - 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-13 02:33:52,795 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.25': '0', '10.20.0.254': '0'}, '10.0.0.23': {'10.20.0.25': '0', '10.20.0.193': '0'}} with 2025-11-13 02:33:52,796 - INFO - Initial checks done. Running the testcase now 2025-11-13 02:33:52,796 - INFO - 2025-11-13 02:33:53,156 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94204588:ctest-vn4-84041368, 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-94204588:ctest-vn4-84041368, 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-94204588:ctest-vn4-84041368, 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-94204588:ctest-vn4-84041368, 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-13 02:33:53,787 - DEBUG - Response for create_network : {'network': {'id': 'f6274dee-3b36-422d-9eb3-016a1e2281c7', 'name': 'ctest-vn4-84041368', 'tenant_id': '48ed8a5212d04bc3a6328486830d577f', 'project_id': '48ed8a5212d04bc3a6328486830d577f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94204588', 'ctest-vn4-84041368'], 'port_security_enabled': True, 'description': ''}} 2025-11-13 02:33:54,116 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bfef2a8c-45f8-48ad-ad3d-c1e48a84d3ee', 'name': '', 'tenant_id': '48ed8a5212d04bc3a6328486830d577f', 'network_id': 'f6274dee-3b36-422d-9eb3-016a1e2281c7', 'ip_version': 4, 'cidr': '165.15.80.128/26', 'allocation_pools': [{'start': '165.15.80.130', 'end': '165.15.80.190'}], 'gateway_ip': '165.15.80.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.15.80.130', 'tags': [], 'project_id': '48ed8a5212d04bc3a6328486830d577f'}} 2025-11-13 02:33:54,356 - DEBUG - Response for create_subnet : {'subnet': {'id': '77c65a67-c2ca-470d-ade9-2a051272ed2d', 'name': '', 'tenant_id': '48ed8a5212d04bc3a6328486830d577f', 'network_id': 'f6274dee-3b36-422d-9eb3-016a1e2281c7', 'ip_version': 6, 'cidr': '30ce:66c3:df68:f83f:93f2:1fdc::/96', 'allocation_pools': [{'start': '30ce:66c3:df68:f83f:93f2:1fdc:0:2', 'end': '30ce:66c3:df68:f83f:93f2:1fdc:ffff:fffe'}], 'gateway_ip': '30ce:66c3:df68:f83f:93f2:1fdc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30ce:66c3:df68:f83f:93f2:1fdc:0:2', 'tags': [], 'project_id': '48ed8a5212d04bc3a6328486830d577f'}} 2025-11-13 02:33:54,385 - INFO - Created VN ctest-vn4-84041368 2025-11-13 02:33:54,397 - DEBUG - VN ctest-vn4-84041368 UUID is f6274dee-3b36-422d-9eb3-016a1e2281c7 2025-11-13 02:33:54,624 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f6274dee-3b36-422d-9eb3-016a1e2281c7', 'name': 'ctest-vn4-84041368', 'tenant_id': '48ed8a5212d04bc3a6328486830d577f', 'project_id': '48ed8a5212d04bc3a6328486830d577f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bfef2a8c-45f8-48ad-ad3d-c1e48a84d3ee', '77c65a67-c2ca-470d-ade9-2a051272ed2d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94204588', 'ctest-vn4-84041368'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94204588', 'ctest-policy1-72139947']], 'subnet_ipam': [{'subnet_cidr': '165.15.80.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30ce:66c3:df68:f83f:93f2:1fdc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-13 02:33:54,710 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-13 02:33:55,045 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-13 02:33:55,071 - DEBUG - Requesting: http://10.0.0.141:8082/domain/7e609647-c42c-403c-b0dd-6b1bfaefbd00 2025-11-13 02:33:55,083 - DEBUG - Requesting: http://10.0.0.141:8082/project/48ed8a52-12d0-4bc3-a632-8486830d577f 2025-11-13 02:33:55,167 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f6274dee-3b36-422d-9eb3-016a1e2281c7 2025-11-13 02:33:55,182 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f6274dee-3b36-422d-9eb3-016a1e2281c7 2025-11-13 02:33:55,193 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/af3826f9-bed6-4ae2-ab23-525d996ff34b 2025-11-13 02:33:55,200 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/af3826f9-bed6-4ae2-ab23-525d996ff34b 2025-11-13 02:33:55,208 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/c8370828-b4de-454a-8a48-36a792999840 2025-11-13 02:33:55,214 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 02:33:55,214 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f6274dee-3b36-422d-9eb3-016a1e2281c7 2025-11-13 02:33:55,223 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/af3826f9-bed6-4ae2-ab23-525d996ff34b 2025-11-13 02:33:55,238 - INFO - Verified VN network id 11 for VN f6274dee-3b36-422d-9eb3-016a1e2281c7 2025-11-13 02:33:55,238 - INFO - Verifications in API Server for VN ctest-vn4-84041368 passed 2025-11-13 02:33:55,238 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f6274dee-3b36-422d-9eb3-016a1e2281c7 2025-11-13 02:33:55,249 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/af3826f9-bed6-4ae2-ab23-525d996ff34b 2025-11-13 02:33:55,255 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/af3826f9-bed6-4ae2-ab23-525d996ff34b 2025-11-13 02:33:55,262 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/c8370828-b4de-454a-8a48-36a792999840 2025-11-13 02:33:55,277 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94204588:ctest-vn4-84041368', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94204588', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17737231343012954669', 'uuid-lslong': '11435485434107560391'}, 'enable': 'true', 'created': '2025-11-13T02:33:53', 'last-modified': '2025-11-13T02:33:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.699840'} 2025-11-13 02:33:55,283 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 02:33:55,288 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94204588:ctest-vn4-84041368', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94204588', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17737231343012954669', 'uuid-lslong': '11435485434107560391'}, 'enable': 'true', 'created': '2025-11-13T02:33:53', 'last-modified': '2025-11-13T02:33:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.692093'} 2025-11-13 02:33:55,298 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 02:33:55,304 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94204588:ctest-vn4-84041368', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94204588', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17737231343012954669', 'uuid-lslong': '11435485434107560391'}, 'enable': 'true', 'created': '2025-11-13T02:33:53', 'last-modified': '2025-11-13T02:33:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.712229'} 2025-11-13 02:33:55,311 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 02:33:55,311 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-84041368 passed 2025-11-13 02:33:55,312 - DEBUG - ====Verifying policy data for ctest-vn4-84041368 in API_Server ====== 2025-11-13 02:33:55,312 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-13 02:33:55,318 - DEBUG - Requesting: http://10.0.0.141:8082/domain/7e609647-c42c-403c-b0dd-6b1bfaefbd00 2025-11-13 02:33:55,332 - DEBUG - Requesting: http://10.0.0.141:8082/project/48ed8a52-12d0-4bc3-a632-8486830d577f 2025-11-13 02:33:55,433 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f6274dee-3b36-422d-9eb3-016a1e2281c7 2025-11-13 02:33:55,442 - DEBUG - ==>Verifying data for policy with id: 6d119aed-1380-43bd-8793-013759c258c0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94204588', 'ctest-policy1-72139947'] 2025-11-13 02:33:55,442 - INFO - VN ctest-vn4-84041368 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-13 02:33:55,442 - DEBUG - Verifying the vn in opserver 2025-11-13 02:33:55,442 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94204588:ctest-vn4-84041368 virtual network link through opserver 10.0.0.141 2025-11-13 02:33:55,443 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-11-13 02:33:55,775 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-11-13 02:33:55,830 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94204588:ctest-vn4-84041368', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94204588:ctest-vn4-84041368?flat'} 2025-11-13 02:33:55,830 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94204588:ctest-vn4-84041368 virtual network link through opserver 10.0.0.56 2025-11-13 02:33:55,830 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-11-13 02:33:56,160 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-11-13 02:33:56,213 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94204588:ctest-vn4-84041368', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94204588:ctest-vn4-84041368?flat'} 2025-11-13 02:33:56,213 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94204588:ctest-vn4-84041368 virtual network link through opserver 10.0.0.61 2025-11-13 02:33:56,213 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-11-13 02:33:56,543 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-11-13 02:33:56,595 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94204588:ctest-vn4-84041368', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94204588:ctest-vn4-84041368?flat'} 2025-11-13 02:33:56,595 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94204588:ctest-vn4-84041368 is found in opserver 2025-11-13 02:33:56,614 - DEBUG - Do not have enough data to verify VN in agent 2025-11-13 02:33:56,622 - DEBUG - VRF ids for VN ctest-vn4-84041368: {} 2025-11-13 02:33:56,623 - DEBUG - ====Verifying data for ctest-policy1-72139947 in API_Server ====== 2025-11-13 02:33:56,623 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-13 02:33:56,628 - DEBUG - Requesting: http://10.0.0.141:8082/domain/7e609647-c42c-403c-b0dd-6b1bfaefbd00 2025-11-13 02:33:56,653 - DEBUG - Requesting: http://10.0.0.141:8082/project/48ed8a52-12d0-4bc3-a632-8486830d577f 2025-11-13 02:33:56,749 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/6d119aed-1380-43bd-8793-013759c258c0 2025-11-13 02:33:56,758 - INFO - Verified policy ctest-policy1-72139947 in API Server, Result: True 2025-11-13 02:33:56,759 - INFO - Done with setup and verification, moving onto test .. 2025-11-13 02:33:56,770 - INFO - Deleting VN ctest-vn4-84041368 2025-11-13 02:33:56,977 - DEBUG - Response for deleting network () 2025-11-13 02:33:56,977 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/af3826f9-bed6-4ae2-ab23-525d996ff34b 2025-11-13 02:33:56,984 - DEBUG - Response Code: 404 2025-11-13 02:33:56,984 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-13 02:33:56,990 - DEBUG - Requesting: http://10.0.0.141:8082/domain/7e609647-c42c-403c-b0dd-6b1bfaefbd00 2025-11-13 02:33:57,045 - DEBUG - Requesting: http://10.0.0.141:8082/project/48ed8a52-12d0-4bc3-a632-8486830d577f 2025-11-13 02:33:57,134 - INFO - Validated that VN ctest-vn4-84041368 is not found in API Server 2025-11-13 02:33:57,145 - DEBUG - VN ctest-vn4-84041368 is not present in Agent 10.0.0.19 2025-11-13 02:33:57,155 - DEBUG - VN ctest-vn4-84041368 is not present in Agent 10.0.0.23 2025-11-13 02:33:57,155 - INFO - Validated that VN ctest-vn4-84041368 is not in any agent 2025-11-13 02:33:57,182 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-84041368 info 2025-11-13 02:33:57,217 - INFO - Deleted policy ctest-policy1-72139947 2025-11-13 02:33:57,399 - DEBUG - policy ctest-policy1-72139947 is not found in API Server 2025-11-13 02:33:58,659 - DEBUG - No XMPP flaps were noticed during the test
2025-11-13 02:33:58,659 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2025-11-13 02:33:58,659 - INFO - -------------------------------------------------------------------------------- 2025-11-13 02:33:59,922 - DEBUG - No XMPP flaps were noticed during the test
2025-11-13 02:33:59,922 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09]
2025-11-13 02:33:59,922 - INFO - -------------------------------------------------------------------------------- 2025-11-13 02:34:00,652 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-94204588, ID : 48ed8a52-12d0-4bc3-a632-8486830d577f