2025-12-15 02:42:00,455 - INFO - Domain Default found not creating 2025-12-15 02:42:00,661 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-27879250 not found, creating it 2025-12-15 02:42:01,270 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-27879250, ID : 948740da-3b3e-43b1-9598-fbee48bc720e 2025-12-15 02:42:02,745 - INFO - ================================================================================ 2025-12-15 02:42:02,745 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-15 02:42:04,030 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0', '10.20.0.129': '0'}, '10.0.0.27': {'10.20.0.254': '0', '10.20.0.18': '0'}} with 2025-12-15 02:42:04,031 - INFO - Initial checks done. Running the testcase now 2025-12-15 02:42:04,031 - INFO - 2025-12-15 02:42:04,031 - INFO - ================================================================================ 2025-12-15 02:42:04,031 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-15 02:42:04,031 - 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-15 02:42:05,315 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0', '10.20.0.129': '0'}, '10.0.0.27': {'10.20.0.254': '0', '10.20.0.18': '0'}} with 2025-12-15 02:42:05,315 - INFO - Initial checks done. Running the testcase now 2025-12-15 02:42:05,315 - INFO - 2025-12-15 02:42:05,662 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27879250:ctest-vn4-44053398, 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-27879250:ctest-vn4-44053398, 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-27879250:ctest-vn4-44053398, 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-27879250:ctest-vn4-44053398, 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-15 02:42:06,303 - DEBUG - Response for create_network : {'network': {'id': 'e1ec32bb-3e4c-452e-8bd8-dc6363c0820c', 'name': 'ctest-vn4-44053398', 'tenant_id': '948740da3b3e43b19598fbee48bc720e', 'project_id': '948740da3b3e43b19598fbee48bc720e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27879250', 'ctest-vn4-44053398'], 'port_security_enabled': True, 'description': ''}} 2025-12-15 02:42:06,584 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a296473-3c3a-415b-b3bf-74c09a767886', 'name': '', 'tenant_id': '948740da3b3e43b19598fbee48bc720e', 'network_id': 'e1ec32bb-3e4c-452e-8bd8-dc6363c0820c', 'ip_version': 4, 'cidr': '197.111.36.192/26', 'allocation_pools': [{'start': '197.111.36.194', 'end': '197.111.36.254'}], 'gateway_ip': '197.111.36.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.111.36.194', 'tags': [], 'project_id': '948740da3b3e43b19598fbee48bc720e'}} 2025-12-15 02:42:06,798 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb3638f9-cdd8-4d4e-b5ad-27178af4afeb', 'name': '', 'tenant_id': '948740da3b3e43b19598fbee48bc720e', 'network_id': 'e1ec32bb-3e4c-452e-8bd8-dc6363c0820c', 'ip_version': 6, 'cidr': '26c0:27fd:229b:cf27:ef05:d939::/96', 'allocation_pools': [{'start': '26c0:27fd:229b:cf27:ef05:d939:0:2', 'end': '26c0:27fd:229b:cf27:ef05:d939:ffff:fffe'}], 'gateway_ip': '26c0:27fd:229b:cf27:ef05:d939:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26c0:27fd:229b:cf27:ef05:d939:0:2', 'tags': [], 'project_id': '948740da3b3e43b19598fbee48bc720e'}} 2025-12-15 02:42:06,828 - INFO - Created VN ctest-vn4-44053398 2025-12-15 02:42:06,839 - DEBUG - VN ctest-vn4-44053398 UUID is e1ec32bb-3e4c-452e-8bd8-dc6363c0820c 2025-12-15 02:42:07,068 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1ec32bb-3e4c-452e-8bd8-dc6363c0820c', 'name': 'ctest-vn4-44053398', 'tenant_id': '948740da3b3e43b19598fbee48bc720e', 'project_id': '948740da3b3e43b19598fbee48bc720e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a296473-3c3a-415b-b3bf-74c09a767886', 'bb3638f9-cdd8-4d4e-b5ad-27178af4afeb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27879250', 'ctest-vn4-44053398'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27879250', 'ctest-policy1-70641325']], 'subnet_ipam': [{'subnet_cidr': '197.111.36.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '26c0:27fd:229b:cf27:ef05:d939::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-15 02:42:07,159 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-15 02:42:07,456 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-15 02:42:07,486 - DEBUG - Requesting: http://10.0.0.23:8082/domain/747a8d7b-37d3-4985-88af-26a6e8bf7d0e 2025-12-15 02:42:07,503 - DEBUG - Requesting: http://10.0.0.23:8082/project/948740da-3b3e-43b1-9598-fbee48bc720e 2025-12-15 02:42:07,598 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e1ec32bb-3e4c-452e-8bd8-dc6363c0820c 2025-12-15 02:42:07,611 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e1ec32bb-3e4c-452e-8bd8-dc6363c0820c 2025-12-15 02:42:07,620 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1b936d9d-0581-444e-a303-4a6b39f6941d 2025-12-15 02:42:07,626 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1b936d9d-0581-444e-a303-4a6b39f6941d 2025-12-15 02:42:07,633 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/bcb9df27-d70a-4afb-96f2-7d70c11808a8 2025-12-15 02:42:07,642 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-15 02:42:07,642 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e1ec32bb-3e4c-452e-8bd8-dc6363c0820c 2025-12-15 02:42:07,653 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1b936d9d-0581-444e-a303-4a6b39f6941d 2025-12-15 02:42:07,667 - INFO - Verified VN network id 11 for VN e1ec32bb-3e4c-452e-8bd8-dc6363c0820c 2025-12-15 02:42:07,667 - INFO - Verifications in API Server for VN ctest-vn4-44053398 passed 2025-12-15 02:42:07,667 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e1ec32bb-3e4c-452e-8bd8-dc6363c0820c 2025-12-15 02:42:07,679 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1b936d9d-0581-444e-a303-4a6b39f6941d 2025-12-15 02:42:07,693 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1b936d9d-0581-444e-a303-4a6b39f6941d 2025-12-15 02:42:07,699 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/bcb9df27-d70a-4afb-96f2-7d70c11808a8 2025-12-15 02:42:07,710 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27879250:ctest-vn4-44053398', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-27879250', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16279442532822959406', 'uuid-lslong': '10077046485674918412'}, 'enable': 'true', 'created': '2025-12-15T02:42:06', 'last-modified': '2025-12-15T02:42:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.708941'} 2025-12-15 02:42:07,714 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-15 02:42:07,720 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27879250:ctest-vn4-44053398', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-27879250', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16279442532822959406', 'uuid-lslong': '10077046485674918412'}, 'enable': 'true', 'created': '2025-12-15T02:42:06', 'last-modified': '2025-12-15T02:42:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.720961'} 2025-12-15 02:42:07,725 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-15 02:42:07,730 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27879250:ctest-vn4-44053398', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-27879250', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16279442532822959406', 'uuid-lslong': '10077046485674918412'}, 'enable': 'true', 'created': '2025-12-15T02:42:06', 'last-modified': '2025-12-15T02:42:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.731443'} 2025-12-15 02:42:07,736 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-15 02:42:07,736 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44053398 passed 2025-12-15 02:42:07,736 - DEBUG - ====Verifying policy data for ctest-vn4-44053398 in API_Server ====== 2025-12-15 02:42:07,736 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-15 02:42:07,741 - DEBUG - Requesting: http://10.0.0.23:8082/domain/747a8d7b-37d3-4985-88af-26a6e8bf7d0e 2025-12-15 02:42:07,751 - DEBUG - Requesting: http://10.0.0.23:8082/project/948740da-3b3e-43b1-9598-fbee48bc720e 2025-12-15 02:42:07,848 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/e1ec32bb-3e4c-452e-8bd8-dc6363c0820c 2025-12-15 02:42:07,858 - DEBUG - ==>Verifying data for policy with id: 4e129759-e3e3-4601-8416-707d59a79a0b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27879250', 'ctest-policy1-70641325'] 2025-12-15 02:42:07,858 - INFO - VN ctest-vn4-44053398 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-15 02:42:07,859 - DEBUG - Verifying the vn in opserver 2025-12-15 02:42:07,859 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27879250:ctest-vn4-44053398 virtual network link through opserver 10.0.0.23 2025-12-15 02:42:07,859 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-15 02:42:08,149 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-15 02:42:08,207 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27879250:ctest-vn4-44053398', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27879250:ctest-vn4-44053398?flat'} 2025-12-15 02:42:08,207 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27879250:ctest-vn4-44053398 virtual network link through opserver 10.0.0.50 2025-12-15 02:42:08,207 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-12-15 02:42:08,497 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-12-15 02:42:08,550 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27879250:ctest-vn4-44053398', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27879250:ctest-vn4-44053398?flat'} 2025-12-15 02:42:08,550 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27879250:ctest-vn4-44053398 virtual network link through opserver 10.0.0.65 2025-12-15 02:42:08,551 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-12-15 02:42:08,838 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-12-15 02:42:08,898 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27879250:ctest-vn4-44053398', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27879250:ctest-vn4-44053398?flat'} 2025-12-15 02:42:08,898 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27879250:ctest-vn4-44053398 is found in opserver 2025-12-15 02:42:08,917 - DEBUG - Do not have enough data to verify VN in agent 2025-12-15 02:42:08,927 - DEBUG - VRF ids for VN ctest-vn4-44053398: {} 2025-12-15 02:42:08,927 - DEBUG - ====Verifying data for ctest-policy1-70641325 in API_Server ====== 2025-12-15 02:42:08,927 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-15 02:42:08,932 - DEBUG - Requesting: http://10.0.0.23:8082/domain/747a8d7b-37d3-4985-88af-26a6e8bf7d0e 2025-12-15 02:42:08,942 - DEBUG - Requesting: http://10.0.0.23:8082/project/948740da-3b3e-43b1-9598-fbee48bc720e 2025-12-15 02:42:09,028 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/4e129759-e3e3-4601-8416-707d59a79a0b 2025-12-15 02:42:09,037 - INFO - Verified policy ctest-policy1-70641325 in API Server, Result: True 2025-12-15 02:42:09,037 - INFO - Done with setup and verification, moving onto test .. 2025-12-15 02:42:09,051 - INFO - Deleting VN ctest-vn4-44053398 2025-12-15 02:42:09,237 - DEBUG - Response for deleting network () 2025-12-15 02:42:09,237 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1b936d9d-0581-444e-a303-4a6b39f6941d 2025-12-15 02:42:09,250 - DEBUG - Response Code: 404 2025-12-15 02:42:09,250 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-12-15 02:42:09,258 - DEBUG - Requesting: http://10.0.0.23:8082/domain/747a8d7b-37d3-4985-88af-26a6e8bf7d0e 2025-12-15 02:42:09,269 - DEBUG - Requesting: http://10.0.0.23:8082/project/948740da-3b3e-43b1-9598-fbee48bc720e 2025-12-15 02:42:09,360 - INFO - Validated that VN ctest-vn4-44053398 is not found in API Server 2025-12-15 02:42:09,375 - DEBUG - VN ctest-vn4-44053398 is not present in Agent 10.0.0.22 2025-12-15 02:42:09,385 - DEBUG - VN ctest-vn4-44053398 is not present in Agent 10.0.0.27 2025-12-15 02:42:09,385 - INFO - Validated that VN ctest-vn4-44053398 is not in any agent 2025-12-15 02:42:09,420 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44053398 info 2025-12-15 02:42:09,458 - INFO - Deleted policy ctest-policy1-70641325 2025-12-15 02:42:09,643 - DEBUG - policy ctest-policy1-70641325 is not found in API Server 2025-12-15 02:42:10,941 - DEBUG - No XMPP flaps were noticed during the test