2025-08-11 02:52:20,721 - INFO - Domain Default found not creating 2025-08-11 02:52:20,865 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74583306 not found, creating it 2025-08-11 02:52:21,291 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74583306, ID : 5ea1355a-d77f-46a9-bb5b-d06272204333 2025-08-11 02:52:22,551 - INFO - ================================================================================ 2025-08-11 02:52:22,551 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 02:52:22,804 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2025-08-11 02:52:22,804 - INFO - Initial checks done. Running the testcase now 2025-08-11 02:52:22,804 - INFO - 2025-08-11 02:52:22,804 - INFO - ================================================================================ 2025-08-11 02:52:22,805 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 02:52:22,805 - 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-11 02:52:23,096 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2025-08-11 02:52:23,096 - INFO - Initial checks done. Running the testcase now 2025-08-11 02:52:23,096 - INFO - 2025-08-11 02:52:23,398 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74583306:ctest-vn4-40490029, 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-74583306:ctest-vn4-40490029, 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-74583306:ctest-vn4-40490029, 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-74583306:ctest-vn4-40490029, 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-11 02:52:23,911 - DEBUG - Response for create_network : {'network': {'id': '8156c579-c101-4222-83a1-91bea488bfa2', 'name': 'ctest-vn4-40490029', 'tenant_id': '5ea1355ad77f46a9bb5bd06272204333', 'project_id': '5ea1355ad77f46a9bb5bd06272204333', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74583306', 'ctest-vn4-40490029'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 02:52:24,093 - DEBUG - Response for create_subnet : {'subnet': {'id': '02ac495f-e038-4a6b-8b10-08e2218d2c53', 'name': '', 'tenant_id': '5ea1355ad77f46a9bb5bd06272204333', 'network_id': '8156c579-c101-4222-83a1-91bea488bfa2', 'ip_version': 4, 'cidr': '99.50.33.64/26', 'allocation_pools': [{'start': '99.50.33.66', 'end': '99.50.33.126'}], 'gateway_ip': '99.50.33.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.50.33.66', 'tags': [], 'project_id': '5ea1355ad77f46a9bb5bd06272204333'}} 2025-08-11 02:52:24,285 - DEBUG - Response for create_subnet : {'subnet': {'id': '146acbfa-d6c4-455a-9b08-0cc51e9e07d0', 'name': '', 'tenant_id': '5ea1355ad77f46a9bb5bd06272204333', 'network_id': '8156c579-c101-4222-83a1-91bea488bfa2', 'ip_version': 6, 'cidr': '3e28:8797:8c54:d32f:d188:b230::/96', 'allocation_pools': [{'start': '3e28:8797:8c54:d32f:d188:b230:0:2', 'end': '3e28:8797:8c54:d32f:d188:b230:ffff:fffe'}], 'gateway_ip': '3e28:8797:8c54:d32f:d188:b230:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e28:8797:8c54:d32f:d188:b230:0:2', 'tags': [], 'project_id': '5ea1355ad77f46a9bb5bd06272204333'}} 2025-08-11 02:52:24,301 - INFO - Created VN ctest-vn4-40490029 2025-08-11 02:52:24,351 - DEBUG - VN ctest-vn4-40490029 UUID is 8156c579-c101-4222-83a1-91bea488bfa2 2025-08-11 02:52:24,553 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8156c579-c101-4222-83a1-91bea488bfa2', 'name': 'ctest-vn4-40490029', 'tenant_id': '5ea1355ad77f46a9bb5bd06272204333', 'project_id': '5ea1355ad77f46a9bb5bd06272204333', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['02ac495f-e038-4a6b-8b10-08e2218d2c53', '146acbfa-d6c4-455a-9b08-0cc51e9e07d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74583306', 'ctest-vn4-40490029'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74583306', 'ctest-policy1-85050643']], 'subnet_ipam': [{'subnet_cidr': '99.50.33.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e28:8797:8c54:d32f:d188:b230::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 02:52:24,671 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-08-11 02:52:24,931 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-08-11 02:52:24,957 - DEBUG - Requesting: http://10.0.0.22:8082/domain/27e87f7e-3420-4f7e-8244-a75efbe299ab 2025-08-11 02:52:24,969 - DEBUG - Requesting: http://10.0.0.22:8082/project/5ea1355a-d77f-46a9-bb5b-d06272204333 2025-08-11 02:52:25,043 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8156c579-c101-4222-83a1-91bea488bfa2 2025-08-11 02:52:25,055 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8156c579-c101-4222-83a1-91bea488bfa2 2025-08-11 02:52:25,064 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/147db93c-fb9c-4528-8340-0bbb63f88577 2025-08-11 02:52:25,070 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/147db93c-fb9c-4528-8340-0bbb63f88577 2025-08-11 02:52:25,076 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ccae4e03-e8d9-445c-a5d1-54844fd21807 2025-08-11 02:52:25,081 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 02:52:25,081 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8156c579-c101-4222-83a1-91bea488bfa2 2025-08-11 02:52:25,090 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/147db93c-fb9c-4528-8340-0bbb63f88577 2025-08-11 02:52:25,102 - INFO - Verified VN network id 11 for VN 8156c579-c101-4222-83a1-91bea488bfa2 2025-08-11 02:52:25,102 - INFO - Verifications in API Server for VN ctest-vn4-40490029 passed 2025-08-11 02:52:25,102 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8156c579-c101-4222-83a1-91bea488bfa2 2025-08-11 02:52:25,112 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/147db93c-fb9c-4528-8340-0bbb63f88577 2025-08-11 02:52:25,118 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/147db93c-fb9c-4528-8340-0bbb63f88577 2025-08-11 02:52:25,123 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ccae4e03-e8d9-445c-a5d1-54844fd21807 2025-08-11 02:52:25,133 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74583306:ctest-vn4-40490029', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74583306', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9319853605609620002', 'uuid-lslong': '9485022538209214370'}, 'enable': 'true', 'created': '2025-08-11T02:52:23', 'last-modified': '2025-08-11T02:52:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.608054'} 2025-08-11 02:52:25,141 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 02:52:25,141 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-40490029 passed 2025-08-11 02:52:25,141 - DEBUG - ====Verifying policy data for ctest-vn4-40490029 in API_Server ====== 2025-08-11 02:52:25,141 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-08-11 02:52:25,146 - DEBUG - Requesting: http://10.0.0.22:8082/domain/27e87f7e-3420-4f7e-8244-a75efbe299ab 2025-08-11 02:52:25,158 - DEBUG - Requesting: http://10.0.0.22:8082/project/5ea1355a-d77f-46a9-bb5b-d06272204333 2025-08-11 02:52:25,226 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8156c579-c101-4222-83a1-91bea488bfa2 2025-08-11 02:52:25,235 - DEBUG - ==>Verifying data for policy with id: c4ae980a-2a03-4351-9b6d-3caa7cf89414, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74583306', 'ctest-policy1-85050643'] 2025-08-11 02:52:25,235 - INFO - VN ctest-vn4-40490029 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 02:52:25,235 - DEBUG - Verifying the vn in opserver 2025-08-11 02:52:25,236 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74583306:ctest-vn4-40490029 virtual network link through opserver 10.0.0.22 2025-08-11 02:52:25,236 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-08-11 02:52:25,493 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-08-11 02:52:25,544 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74583306:ctest-vn4-40490029', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74583306:ctest-vn4-40490029?flat'} 2025-08-11 02:52:25,544 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74583306:ctest-vn4-40490029 is found in opserver 2025-08-11 02:52:25,555 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 02:52:25,559 - DEBUG - VRF ids for VN ctest-vn4-40490029: {} 2025-08-11 02:52:25,560 - DEBUG - ====Verifying data for ctest-policy1-85050643 in API_Server ====== 2025-08-11 02:52:25,560 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-08-11 02:52:25,565 - DEBUG - Requesting: http://10.0.0.22:8082/domain/27e87f7e-3420-4f7e-8244-a75efbe299ab 2025-08-11 02:52:25,577 - DEBUG - Requesting: http://10.0.0.22:8082/project/5ea1355a-d77f-46a9-bb5b-d06272204333 2025-08-11 02:52:25,648 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/c4ae980a-2a03-4351-9b6d-3caa7cf89414 2025-08-11 02:52:25,657 - INFO - Verified policy ctest-policy1-85050643 in API Server, Result: True 2025-08-11 02:52:25,658 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 02:52:25,664 - INFO - Deleting VN ctest-vn4-40490029 2025-08-11 02:52:25,775 - DEBUG - Response for deleting network () 2025-08-11 02:52:25,775 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/147db93c-fb9c-4528-8340-0bbb63f88577 2025-08-11 02:52:25,780 - DEBUG - Response Code: 404 2025-08-11 02:52:25,780 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-08-11 02:52:25,786 - DEBUG - Requesting: http://10.0.0.22:8082/domain/27e87f7e-3420-4f7e-8244-a75efbe299ab 2025-08-11 02:52:25,840 - DEBUG - Requesting: http://10.0.0.22:8082/project/5ea1355a-d77f-46a9-bb5b-d06272204333 2025-08-11 02:52:25,907 - INFO - Validated that VN ctest-vn4-40490029 is not found in API Server 2025-08-11 02:52:25,918 - DEBUG - VN ctest-vn4-40490029 is not present in Agent 10.0.0.22 2025-08-11 02:52:25,918 - INFO - Validated that VN ctest-vn4-40490029 is not in any agent 2025-08-11 02:52:25,934 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-40490029 info 2025-08-11 02:52:25,961 - INFO - Deleted policy ctest-policy1-85050643 2025-08-11 02:52:26,119 - DEBUG - policy ctest-policy1-85050643 is not found in API Server 2025-08-11 02:52:26,373 - DEBUG - No XMPP flaps were noticed during the test 2025-08-11 02:52:26,373 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-11 02:52:26,373 - INFO - -------------------------------------------------------------------------------- 2025-08-11 02:52:26,662 - DEBUG - No XMPP flaps were noticed during the test 2025-08-11 02:52:26,662 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-11 02:52:26,662 - INFO - -------------------------------------------------------------------------------- 2025-08-11 02:52:27,277 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-74583306, ID : 5ea1355a-d77f-46a9-bb5b-d06272204333