2025-08-18 14:55:20,679 - INFO - Domain Default found not creating 2025-08-18 14:55:21,113 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-22939249 not found, creating it 2025-08-18 14:55:21,573 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-22939249, ID : 5640fb89-ee5d-4b7a-a377-790d6e6751e6 2025-08-18 14:55:22,874 - INFO - ================================================================================ 2025-08-18 14:55:22,874 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-18 14:55:23,125 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.254': '0'}} with 2025-08-18 14:55:23,125 - INFO - Initial checks done. Running the testcase now 2025-08-18 14:55:23,126 - INFO - 2025-08-18 14:55:23,126 - INFO - ================================================================================ 2025-08-18 14:55:23,126 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-18 14:55:23,126 - 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-18 14:55:23,407 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.254': '0'}} with 2025-08-18 14:55:23,407 - INFO - Initial checks done. Running the testcase now 2025-08-18 14:55:23,407 - INFO - 2025-08-18 14:55:23,748 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22939249:ctest-vn4-55784070, 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-22939249:ctest-vn4-55784070, 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-22939249:ctest-vn4-55784070, 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-22939249:ctest-vn4-55784070, 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-18 14:55:24,237 - DEBUG - Response for create_network : {'network': {'id': 'b497ed22-1708-4c2c-b1d3-c3dcce824bd3', 'name': 'ctest-vn4-55784070', 'tenant_id': '5640fb89ee5d4b7aa377790d6e6751e6', 'project_id': '5640fb89ee5d4b7aa377790d6e6751e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22939249', 'ctest-vn4-55784070'], 'port_security_enabled': True, 'description': ''}} 2025-08-18 14:55:24,415 - DEBUG - Response for create_subnet : {'subnet': {'id': '1eee6218-a327-4661-ada9-e7317d0fd318', 'name': '', 'tenant_id': '5640fb89ee5d4b7aa377790d6e6751e6', 'network_id': 'b497ed22-1708-4c2c-b1d3-c3dcce824bd3', 'ip_version': 4, 'cidr': '117.65.47.64/26', 'allocation_pools': [{'start': '117.65.47.66', 'end': '117.65.47.126'}], 'gateway_ip': '117.65.47.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.65.47.66', 'tags': [], 'project_id': '5640fb89ee5d4b7aa377790d6e6751e6'}} 2025-08-18 14:55:24,565 - DEBUG - Response for create_subnet : {'subnet': {'id': '17149e13-66b2-4dae-a988-6773df6f8711', 'name': '', 'tenant_id': '5640fb89ee5d4b7aa377790d6e6751e6', 'network_id': 'b497ed22-1708-4c2c-b1d3-c3dcce824bd3', 'ip_version': 6, 'cidr': '28de:aafe:4c78:b011:8be3:2834::/96', 'allocation_pools': [{'start': '28de:aafe:4c78:b011:8be3:2834:0:2', 'end': '28de:aafe:4c78:b011:8be3:2834:ffff:fffe'}], 'gateway_ip': '28de:aafe:4c78:b011:8be3:2834:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28de:aafe:4c78:b011:8be3:2834:0:2', 'tags': [], 'project_id': '5640fb89ee5d4b7aa377790d6e6751e6'}} 2025-08-18 14:55:24,582 - INFO - Created VN ctest-vn4-55784070 2025-08-18 14:55:24,638 - DEBUG - VN ctest-vn4-55784070 UUID is b497ed22-1708-4c2c-b1d3-c3dcce824bd3 2025-08-18 14:55:24,834 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b497ed22-1708-4c2c-b1d3-c3dcce824bd3', 'name': 'ctest-vn4-55784070', 'tenant_id': '5640fb89ee5d4b7aa377790d6e6751e6', 'project_id': '5640fb89ee5d4b7aa377790d6e6751e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1eee6218-a327-4661-ada9-e7317d0fd318', '17149e13-66b2-4dae-a988-6773df6f8711'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22939249', 'ctest-vn4-55784070'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22939249', 'ctest-policy1-29149425']], 'subnet_ipam': [{'subnet_cidr': '117.65.47.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '28de:aafe:4c78:b011:8be3:2834::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-18 14:55:25,002 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-18 14:55:25,291 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-18 14:55:25,316 - DEBUG - Requesting: http://10.0.0.65:8082/domain/ba88f207-791d-4332-a7c0-fe67d77fe660 2025-08-18 14:55:25,327 - DEBUG - Requesting: http://10.0.0.65:8082/project/5640fb89-ee5d-4b7a-a377-790d6e6751e6 2025-08-18 14:55:25,398 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b497ed22-1708-4c2c-b1d3-c3dcce824bd3 2025-08-18 14:55:25,410 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b497ed22-1708-4c2c-b1d3-c3dcce824bd3 2025-08-18 14:55:25,419 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/7ea7a8f1-6410-4091-a6a9-a1fe09bec77f 2025-08-18 14:55:25,426 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/7ea7a8f1-6410-4091-a6a9-a1fe09bec77f 2025-08-18 14:55:25,431 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/73397521-949b-4f93-b48f-5cb161640e67 2025-08-18 14:55:25,437 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 14:55:25,437 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b497ed22-1708-4c2c-b1d3-c3dcce824bd3 2025-08-18 14:55:25,445 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/7ea7a8f1-6410-4091-a6a9-a1fe09bec77f 2025-08-18 14:55:25,457 - INFO - Verified VN network id 11 for VN b497ed22-1708-4c2c-b1d3-c3dcce824bd3 2025-08-18 14:55:25,457 - INFO - Verifications in API Server for VN ctest-vn4-55784070 passed 2025-08-18 14:55:25,457 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b497ed22-1708-4c2c-b1d3-c3dcce824bd3 2025-08-18 14:55:25,466 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/7ea7a8f1-6410-4091-a6a9-a1fe09bec77f 2025-08-18 14:55:25,471 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/7ea7a8f1-6410-4091-a6a9-a1fe09bec77f 2025-08-18 14:55:25,477 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/73397521-949b-4f93-b48f-5cb161640e67 2025-08-18 14:55:25,487 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22939249:ctest-vn4-55784070', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22939249', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13013130378981428268', 'uuid-lslong': '12813800717924060115'}, 'enable': 'true', 'created': '2025-08-18T14:55:24', 'last-modified': '2025-08-18T14:55:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.682912'} 2025-08-18 14:55:25,492 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 14:55:25,493 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55784070 passed 2025-08-18 14:55:25,493 - DEBUG - ====Verifying policy data for ctest-vn4-55784070 in API_Server ====== 2025-08-18 14:55:25,493 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-18 14:55:25,497 - DEBUG - Requesting: http://10.0.0.65:8082/domain/ba88f207-791d-4332-a7c0-fe67d77fe660 2025-08-18 14:55:25,507 - DEBUG - Requesting: http://10.0.0.65:8082/project/5640fb89-ee5d-4b7a-a377-790d6e6751e6 2025-08-18 14:55:25,577 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b497ed22-1708-4c2c-b1d3-c3dcce824bd3 2025-08-18 14:55:25,586 - DEBUG - ==>Verifying data for policy with id: ecd7009b-5d86-406c-83b9-ee2d2c3bb7db, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22939249', 'ctest-policy1-29149425'] 2025-08-18 14:55:25,586 - INFO - VN ctest-vn4-55784070 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-18 14:55:25,586 - DEBUG - Verifying the vn in opserver 2025-08-18 14:55:25,586 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22939249:ctest-vn4-55784070 virtual network link through opserver 10.0.0.65 2025-08-18 14:55:25,586 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-08-18 14:55:25,874 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-08-18 14:55:25,919 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22939249:ctest-vn4-55784070', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22939249:ctest-vn4-55784070?flat'} 2025-08-18 14:55:25,919 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22939249:ctest-vn4-55784070 is found in opserver 2025-08-18 14:55:25,929 - DEBUG - Do not have enough data to verify VN in agent 2025-08-18 14:55:25,934 - DEBUG - VRF ids for VN ctest-vn4-55784070: {} 2025-08-18 14:55:25,934 - DEBUG - ====Verifying data for ctest-policy1-29149425 in API_Server ====== 2025-08-18 14:55:25,935 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-18 14:55:25,939 - DEBUG - Requesting: http://10.0.0.65:8082/domain/ba88f207-791d-4332-a7c0-fe67d77fe660 2025-08-18 14:55:25,949 - DEBUG - Requesting: http://10.0.0.65:8082/project/5640fb89-ee5d-4b7a-a377-790d6e6751e6 2025-08-18 14:55:26,019 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/ecd7009b-5d86-406c-83b9-ee2d2c3bb7db 2025-08-18 14:55:26,029 - INFO - Verified policy ctest-policy1-29149425 in API Server, Result: True 2025-08-18 14:55:26,029 - INFO - Done with setup and verification, moving onto test .. 2025-08-18 14:55:26,035 - INFO - Deleting VN ctest-vn4-55784070 2025-08-18 14:55:26,132 - DEBUG - Response for deleting network () 2025-08-18 14:55:26,132 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/7ea7a8f1-6410-4091-a6a9-a1fe09bec77f 2025-08-18 14:55:26,137 - DEBUG - Response Code: 404 2025-08-18 14:55:26,137 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-18 14:55:26,141 - DEBUG - Requesting: http://10.0.0.65:8082/domain/ba88f207-791d-4332-a7c0-fe67d77fe660 2025-08-18 14:55:26,194 - DEBUG - Requesting: http://10.0.0.65:8082/project/5640fb89-ee5d-4b7a-a377-790d6e6751e6 2025-08-18 14:55:26,262 - INFO - Validated that VN ctest-vn4-55784070 is not found in API Server 2025-08-18 14:55:26,272 - DEBUG - VN ctest-vn4-55784070 is not present in Agent 10.0.0.65 2025-08-18 14:55:26,272 - INFO - Validated that VN ctest-vn4-55784070 is not in any agent 2025-08-18 14:55:26,285 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55784070 info 2025-08-18 14:55:26,307 - INFO - Deleted policy ctest-policy1-29149425 2025-08-18 14:55:26,474 - DEBUG - policy ctest-policy1-29149425 is not found in API Server 2025-08-18 14:55:26,727 - DEBUG - No XMPP flaps were noticed during the test 2025-08-18 14:55:26,727 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-08-18 14:55:26,727 - INFO - -------------------------------------------------------------------------------- 2025-08-18 14:55:27,027 - DEBUG - No XMPP flaps were noticed during the test 2025-08-18 14:55:27,027 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-08-18 14:55:27,027 - INFO - -------------------------------------------------------------------------------- 2025-08-18 14:55:27,657 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-22939249, ID : 5640fb89-ee5d-4b7a-a377-790d6e6751e6