2025-12-08 02:36:01,877 - INFO - Domain Default found not creating 2025-12-08 02:36:02,063 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80285294 not found, creating it 2025-12-08 02:36:02,641 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80285294, ID : d4041624-792d-4287-97bf-526bd0e7c500 2025-12-08 02:36:05,206 - INFO - ================================================================================ 2025-12-08 02:36:05,206 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 02:36:06,489 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.145': '0', '10.20.0.18': '0'}, '10.0.0.129': {'10.20.0.145': '0', '10.20.0.14': '0'}} with 2025-12-08 02:36:06,489 - INFO - Initial checks done. Running the testcase now 2025-12-08 02:36:06,490 - INFO - 2025-12-08 02:36:06,490 - INFO - ================================================================================ 2025-12-08 02:36:06,490 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 02:36:06,490 - 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-12-08 02:36:07,771 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.145': '0', '10.20.0.18': '0'}, '10.0.0.129': {'10.20.0.145': '0', '10.20.0.14': '0'}} with 2025-12-08 02:36:07,771 - INFO - Initial checks done. Running the testcase now 2025-12-08 02:36:07,771 - INFO - 2025-12-08 02:36:08,145 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80285294:ctest-vn4-25336300, 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-80285294:ctest-vn4-25336300, 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-80285294:ctest-vn4-25336300, 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-80285294:ctest-vn4-25336300, 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-12-08 02:36:08,703 - DEBUG - Response for create_network : {'network': {'id': '3ae2c653-f751-49fb-85cc-5723b62f9cfb', 'name': 'ctest-vn4-25336300', 'tenant_id': 'd4041624792d428797bf526bd0e7c500', 'project_id': 'd4041624792d428797bf526bd0e7c500', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80285294', 'ctest-vn4-25336300'], 'port_security_enabled': True, 'description': ''}} 2025-12-08 02:36:08,953 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c05f752-e41e-4896-aaf2-deef72b5752b', 'name': '', 'tenant_id': 'd4041624792d428797bf526bd0e7c500', 'network_id': '3ae2c653-f751-49fb-85cc-5723b62f9cfb', 'ip_version': 4, 'cidr': '105.70.4.0/26', 'allocation_pools': [{'start': '105.70.4.2', 'end': '105.70.4.62'}], 'gateway_ip': '105.70.4.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.70.4.2', 'tags': [], 'project_id': 'd4041624792d428797bf526bd0e7c500'}} 2025-12-08 02:36:09,167 - DEBUG - Response for create_subnet : {'subnet': {'id': '5edfb774-5051-4fb1-8c95-5470faf163e7', 'name': '', 'tenant_id': 'd4041624792d428797bf526bd0e7c500', 'network_id': '3ae2c653-f751-49fb-85cc-5723b62f9cfb', 'ip_version': 6, 'cidr': '36e5:3fc7:df29:cd66:3593:5279::/96', 'allocation_pools': [{'start': '36e5:3fc7:df29:cd66:3593:5279:0:2', 'end': '36e5:3fc7:df29:cd66:3593:5279:ffff:fffe'}], 'gateway_ip': '36e5:3fc7:df29:cd66:3593:5279:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36e5:3fc7:df29:cd66:3593:5279:0:2', 'tags': [], 'project_id': 'd4041624792d428797bf526bd0e7c500'}} 2025-12-08 02:36:09,196 - INFO - Created VN ctest-vn4-25336300 2025-12-08 02:36:09,209 - DEBUG - VN ctest-vn4-25336300 UUID is 3ae2c653-f751-49fb-85cc-5723b62f9cfb 2025-12-08 02:36:09,423 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3ae2c653-f751-49fb-85cc-5723b62f9cfb', 'name': 'ctest-vn4-25336300', 'tenant_id': 'd4041624792d428797bf526bd0e7c500', 'project_id': 'd4041624792d428797bf526bd0e7c500', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c05f752-e41e-4896-aaf2-deef72b5752b', '5edfb774-5051-4fb1-8c95-5470faf163e7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80285294', 'ctest-vn4-25336300'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80285294', 'ctest-policy1-10804901']], 'subnet_ipam': [{'subnet_cidr': '105.70.4.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '36e5:3fc7:df29:cd66:3593:5279::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-08 02:36:09,545 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-08 02:36:09,881 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-08 02:36:09,912 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c5befdc1-279e-4ac1-9620-9608231491f8 2025-12-08 02:36:09,928 - DEBUG - Requesting: http://10.0.0.23:8082/project/d4041624-792d-4287-97bf-526bd0e7c500 2025-12-08 02:36:10,035 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3ae2c653-f751-49fb-85cc-5723b62f9cfb 2025-12-08 02:36:10,051 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3ae2c653-f751-49fb-85cc-5723b62f9cfb 2025-12-08 02:36:10,061 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e683bb1e-0d70-498e-8800-689f910288f0 2025-12-08 02:36:10,069 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e683bb1e-0d70-498e-8800-689f910288f0 2025-12-08 02:36:10,076 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/44be4fca-100a-466e-b90a-1ecd96d009d6 2025-12-08 02:36:10,083 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 02:36:10,083 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3ae2c653-f751-49fb-85cc-5723b62f9cfb 2025-12-08 02:36:10,093 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e683bb1e-0d70-498e-8800-689f910288f0 2025-12-08 02:36:10,108 - INFO - Verified VN network id 14 for VN 3ae2c653-f751-49fb-85cc-5723b62f9cfb 2025-12-08 02:36:10,108 - INFO - Verifications in API Server for VN ctest-vn4-25336300 passed 2025-12-08 02:36:10,108 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3ae2c653-f751-49fb-85cc-5723b62f9cfb 2025-12-08 02:36:10,118 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e683bb1e-0d70-498e-8800-689f910288f0 2025-12-08 02:36:10,124 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e683bb1e-0d70-498e-8800-689f910288f0 2025-12-08 02:36:10,130 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/44be4fca-100a-466e-b90a-1ecd96d009d6 2025-12-08 02:36:10,142 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80285294:ctest-vn4-25336300', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80285294', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4243171862870313467', 'uuid-lslong': '9641176713185434875'}, 'enable': 'true', 'created': '2025-12-08T02:36:08', 'last-modified': '2025-12-08T02:36:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.755122'} 2025-12-08 02:36:10,147 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 02:36:10,151 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80285294:ctest-vn4-25336300', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80285294', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4243171862870313467', 'uuid-lslong': '9641176713185434875'}, 'enable': 'true', 'created': '2025-12-08T02:36:08', 'last-modified': '2025-12-08T02:36:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.782592'} 2025-12-08 02:36:10,157 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 02:36:10,163 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80285294:ctest-vn4-25336300', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80285294', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4243171862870313467', 'uuid-lslong': '9641176713185434875'}, 'enable': 'true', 'created': '2025-12-08T02:36:08', 'last-modified': '2025-12-08T02:36:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.778292'} 2025-12-08 02:36:10,169 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 02:36:10,169 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-25336300 passed 2025-12-08 02:36:10,169 - DEBUG - ====Verifying policy data for ctest-vn4-25336300 in API_Server ====== 2025-12-08 02:36:10,169 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-08 02:36:10,174 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c5befdc1-279e-4ac1-9620-9608231491f8 2025-12-08 02:36:10,184 - DEBUG - Requesting: http://10.0.0.23:8082/project/d4041624-792d-4287-97bf-526bd0e7c500 2025-12-08 02:36:10,278 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/3ae2c653-f751-49fb-85cc-5723b62f9cfb 2025-12-08 02:36:10,308 - DEBUG - ==>Verifying data for policy with id: 1049515e-da4c-47c8-9feb-6eaf103cff20, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80285294', 'ctest-policy1-10804901'] 2025-12-08 02:36:10,308 - INFO - VN ctest-vn4-25336300 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-08 02:36:10,308 - DEBUG - Verifying the vn in opserver 2025-12-08 02:36:10,308 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80285294:ctest-vn4-25336300 virtual network link through opserver 10.0.0.23 2025-12-08 02:36:10,308 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-08 02:36:10,649 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-08 02:36:10,707 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80285294:ctest-vn4-25336300', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80285294:ctest-vn4-25336300?flat'} 2025-12-08 02:36:10,707 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80285294:ctest-vn4-25336300 virtual network link through opserver 10.0.0.22 2025-12-08 02:36:10,707 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-12-08 02:36:11,041 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-12-08 02:36:11,116 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80285294:ctest-vn4-25336300', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80285294:ctest-vn4-25336300?flat'} 2025-12-08 02:36:11,116 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80285294:ctest-vn4-25336300 virtual network link through opserver 10.0.0.65 2025-12-08 02:36:11,116 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-12-08 02:36:11,469 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-12-08 02:36:11,533 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80285294:ctest-vn4-25336300', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80285294:ctest-vn4-25336300?flat'} 2025-12-08 02:36:11,533 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80285294:ctest-vn4-25336300 is found in opserver 2025-12-08 02:36:11,553 - DEBUG - Do not have enough data to verify VN in agent 2025-12-08 02:36:11,562 - DEBUG - VRF ids for VN ctest-vn4-25336300: {} 2025-12-08 02:36:11,562 - DEBUG - ====Verifying data for ctest-policy1-10804901 in API_Server ====== 2025-12-08 02:36:11,562 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-08 02:36:11,568 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c5befdc1-279e-4ac1-9620-9608231491f8 2025-12-08 02:36:11,578 - DEBUG - Requesting: http://10.0.0.23:8082/project/d4041624-792d-4287-97bf-526bd0e7c500 2025-12-08 02:36:11,676 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/1049515e-da4c-47c8-9feb-6eaf103cff20 2025-12-08 02:36:11,689 - INFO - Verified policy ctest-policy1-10804901 in API Server, Result: True 2025-12-08 02:36:11,690 - INFO - Done with setup and verification, moving onto test .. 2025-12-08 02:36:11,700 - INFO - Deleting VN ctest-vn4-25336300 2025-12-08 02:36:11,916 - DEBUG - Response for deleting network () 2025-12-08 02:36:11,916 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e683bb1e-0d70-498e-8800-689f910288f0 2025-12-08 02:36:11,924 - DEBUG - Response Code: 404 2025-12-08 02:36:11,924 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-08 02:36:11,933 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c5befdc1-279e-4ac1-9620-9608231491f8 2025-12-08 02:36:11,944 - DEBUG - Requesting: http://10.0.0.23:8082/project/d4041624-792d-4287-97bf-526bd0e7c500 2025-12-08 02:36:12,030 - INFO - Validated that VN ctest-vn4-25336300 is not found in API Server 2025-12-08 02:36:12,042 - DEBUG - VN ctest-vn4-25336300 is not present in Agent 10.0.0.41 2025-12-08 02:36:12,054 - DEBUG - VN ctest-vn4-25336300 is not present in Agent 10.0.0.129 2025-12-08 02:36:12,054 - INFO - Validated that VN ctest-vn4-25336300 is not in any agent 2025-12-08 02:36:12,085 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-25336300 info 2025-12-08 02:36:12,121 - INFO - Deleted policy ctest-policy1-10804901 2025-12-08 02:36:12,321 - DEBUG - policy ctest-policy1-10804901 is not found in API Server 2025-12-08 02:36:13,590 - DEBUG - No XMPP flaps were noticed during the test
2025-12-08 02:36:13,591 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2025-12-08 02:36:13,591 - INFO - -------------------------------------------------------------------------------- 2025-12-08 02:36:14,865 - DEBUG - No XMPP flaps were noticed during the test
2025-12-08 02:36:14,866 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09]
2025-12-08 02:36:14,866 - INFO - -------------------------------------------------------------------------------- 2025-12-08 02:36:15,647 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-80285294, ID : d4041624-792d-4287-97bf-526bd0e7c500