2025-09-04 02:32:14,489 - INFO - Domain Default found not creating 2025-09-04 02:32:14,647 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-15467915 not found, creating it 2025-09-04 02:32:15,153 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-15467915, ID : 7bef2ff3-2b80-4a17-92de-f12f1e605390 2025-09-04 02:32:16,610 - INFO - ================================================================================ 2025-09-04 02:32:16,610 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-04 02:32:17,915 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.25': '0', '10.20.0.254': '0'}, '10.0.0.242': {'10.20.0.25': '0', '10.20.0.254': '0'}} with 2025-09-04 02:32:17,915 - INFO - Initial checks done. Running the testcase now 2025-09-04 02:32:17,915 - INFO - 2025-09-04 02:32:17,915 - INFO - ================================================================================ 2025-09-04 02:32:17,915 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-04 02:32:17,915 - 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-09-04 02:32:19,202 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.25': '0', '10.20.0.254': '0'}, '10.0.0.242': {'10.20.0.25': '0', '10.20.0.254': '0'}} with 2025-09-04 02:32:19,202 - INFO - Initial checks done. Running the testcase now 2025-09-04 02:32:19,202 - INFO - 2025-09-04 02:32:19,594 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15467915:ctest-vn4-37719251, 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-15467915:ctest-vn4-37719251, 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-15467915:ctest-vn4-37719251, 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-15467915:ctest-vn4-37719251, 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-09-04 02:32:20,233 - DEBUG - Response for create_network : {'network': {'id': '825236f2-f217-4ec7-b77c-3b1df32e05c7', 'name': 'ctest-vn4-37719251', 'tenant_id': '7bef2ff32b804a1792def12f1e605390', 'project_id': '7bef2ff32b804a1792def12f1e605390', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15467915', 'ctest-vn4-37719251'], 'port_security_enabled': True, 'description': ''}} 2025-09-04 02:32:20,545 - DEBUG - Response for create_subnet : {'subnet': {'id': '46b0f51d-218c-4b9f-8e07-634af2a3cccc', 'name': '', 'tenant_id': '7bef2ff32b804a1792def12f1e605390', 'network_id': '825236f2-f217-4ec7-b77c-3b1df32e05c7', 'ip_version': 4, 'cidr': '16.45.126.192/26', 'allocation_pools': [{'start': '16.45.126.194', 'end': '16.45.126.254'}], 'gateway_ip': '16.45.126.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.45.126.194', 'tags': [], 'project_id': '7bef2ff32b804a1792def12f1e605390'}} 2025-09-04 02:32:20,756 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a8c642a-582b-4095-b4b9-f3dca6872cb0', 'name': '', 'tenant_id': '7bef2ff32b804a1792def12f1e605390', 'network_id': '825236f2-f217-4ec7-b77c-3b1df32e05c7', 'ip_version': 6, 'cidr': '3c98:fbc0:c45f:ff4f:66aa:e92b::/96', 'allocation_pools': [{'start': '3c98:fbc0:c45f:ff4f:66aa:e92b:0:2', 'end': '3c98:fbc0:c45f:ff4f:66aa:e92b:ffff:fffe'}], 'gateway_ip': '3c98:fbc0:c45f:ff4f:66aa:e92b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c98:fbc0:c45f:ff4f:66aa:e92b:0:2', 'tags': [], 'project_id': '7bef2ff32b804a1792def12f1e605390'}} 2025-09-04 02:32:20,781 - INFO - Created VN ctest-vn4-37719251 2025-09-04 02:32:20,794 - DEBUG - VN ctest-vn4-37719251 UUID is 825236f2-f217-4ec7-b77c-3b1df32e05c7 2025-09-04 02:32:21,010 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '825236f2-f217-4ec7-b77c-3b1df32e05c7', 'name': 'ctest-vn4-37719251', 'tenant_id': '7bef2ff32b804a1792def12f1e605390', 'project_id': '7bef2ff32b804a1792def12f1e605390', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['46b0f51d-218c-4b9f-8e07-634af2a3cccc', '0a8c642a-582b-4095-b4b9-f3dca6872cb0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15467915', 'ctest-vn4-37719251'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15467915', 'ctest-policy1-25831174']], 'subnet_ipam': [{'subnet_cidr': '16.45.126.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c98:fbc0:c45f:ff4f:66aa:e92b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-04 02:32:21,115 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-04 02:32:21,413 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-04 02:32:21,452 - DEBUG - Requesting: http://10.0.0.57:8082/domain/e0173f19-70be-4782-8849-f3657660486c 2025-09-04 02:32:21,469 - DEBUG - Requesting: http://10.0.0.57:8082/project/7bef2ff3-2b80-4a17-92de-f12f1e605390 2025-09-04 02:32:21,579 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/825236f2-f217-4ec7-b77c-3b1df32e05c7 2025-09-04 02:32:21,602 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/825236f2-f217-4ec7-b77c-3b1df32e05c7 2025-09-04 02:32:21,615 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2715068a-0690-4ead-ab53-9a9fb8440a5f 2025-09-04 02:32:21,623 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2715068a-0690-4ead-ab53-9a9fb8440a5f 2025-09-04 02:32:21,631 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/ec567436-1176-4af9-a9e3-24e81948a52b 2025-09-04 02:32:21,639 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-04 02:32:21,639 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/825236f2-f217-4ec7-b77c-3b1df32e05c7 2025-09-04 02:32:21,649 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2715068a-0690-4ead-ab53-9a9fb8440a5f 2025-09-04 02:32:21,666 - INFO - Verified VN network id 13 for VN 825236f2-f217-4ec7-b77c-3b1df32e05c7 2025-09-04 02:32:21,667 - INFO - Verifications in API Server for VN ctest-vn4-37719251 passed 2025-09-04 02:32:21,667 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/825236f2-f217-4ec7-b77c-3b1df32e05c7 2025-09-04 02:32:21,677 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2715068a-0690-4ead-ab53-9a9fb8440a5f 2025-09-04 02:32:21,685 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2715068a-0690-4ead-ab53-9a9fb8440a5f 2025-09-04 02:32:21,693 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/ec567436-1176-4af9-a9e3-24e81948a52b 2025-09-04 02:32:21,706 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15467915:ctest-vn4-37719251', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-15467915', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9390628590092504775', 'uuid-lslong': '13221507605872903623'}, 'enable': 'true', 'created': '2025-09-04T02:32:20', 'last-modified': '2025-09-04T02:32:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.740900'} 2025-09-04 02:32:21,712 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-04 02:32:21,717 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15467915:ctest-vn4-37719251', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-15467915', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9390628590092504775', 'uuid-lslong': '13221507605872903623'}, 'enable': 'true', 'created': '2025-09-04T02:32:20', 'last-modified': '2025-09-04T02:32:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.756318'} 2025-09-04 02:32:21,723 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-04 02:32:21,728 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15467915:ctest-vn4-37719251', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-15467915', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9390628590092504775', 'uuid-lslong': '13221507605872903623'}, 'enable': 'true', 'created': '2025-09-04T02:32:20', 'last-modified': '2025-09-04T02:32:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.759098'} 2025-09-04 02:32:21,733 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-04 02:32:21,733 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37719251 passed 2025-09-04 02:32:21,733 - DEBUG - ====Verifying policy data for ctest-vn4-37719251 in API_Server ====== 2025-09-04 02:32:21,733 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-04 02:32:21,740 - DEBUG - Requesting: http://10.0.0.57:8082/domain/e0173f19-70be-4782-8849-f3657660486c 2025-09-04 02:32:21,751 - DEBUG - Requesting: http://10.0.0.57:8082/project/7bef2ff3-2b80-4a17-92de-f12f1e605390 2025-09-04 02:32:21,849 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/825236f2-f217-4ec7-b77c-3b1df32e05c7 2025-09-04 02:32:21,860 - DEBUG - ==>Verifying data for policy with id: 1aa33b2d-7ab0-4aac-b388-39a62c792532, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15467915', 'ctest-policy1-25831174'] 2025-09-04 02:32:21,860 - INFO - VN ctest-vn4-37719251 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-04 02:32:21,860 - DEBUG - Verifying the vn in opserver 2025-09-04 02:32:21,860 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15467915:ctest-vn4-37719251 virtual network link through opserver 10.0.0.57 2025-09-04 02:32:21,860 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-09-04 02:32:22,156 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-09-04 02:32:22,218 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15467915:ctest-vn4-37719251', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15467915:ctest-vn4-37719251?flat'} 2025-09-04 02:32:22,219 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15467915:ctest-vn4-37719251 virtual network link through opserver 10.0.0.38 2025-09-04 02:32:22,219 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-04 02:32:22,515 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-04 02:32:22,576 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15467915:ctest-vn4-37719251', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15467915:ctest-vn4-37719251?flat'} 2025-09-04 02:32:22,576 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15467915:ctest-vn4-37719251 virtual network link through opserver 10.0.0.131 2025-09-04 02:32:22,576 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-09-04 02:32:22,880 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-09-04 02:32:22,946 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15467915:ctest-vn4-37719251', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15467915:ctest-vn4-37719251?flat'} 2025-09-04 02:32:22,946 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15467915:ctest-vn4-37719251 is found in opserver 2025-09-04 02:32:22,968 - DEBUG - Do not have enough data to verify VN in agent 2025-09-04 02:32:22,978 - DEBUG - VRF ids for VN ctest-vn4-37719251: {} 2025-09-04 02:32:22,978 - DEBUG - ====Verifying data for ctest-policy1-25831174 in API_Server ====== 2025-09-04 02:32:22,978 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-04 02:32:22,988 - DEBUG - Requesting: http://10.0.0.57:8082/domain/e0173f19-70be-4782-8849-f3657660486c 2025-09-04 02:32:23,011 - DEBUG - Requesting: http://10.0.0.57:8082/project/7bef2ff3-2b80-4a17-92de-f12f1e605390 2025-09-04 02:32:23,134 - DEBUG - Requesting: http://10.0.0.57:8082/network-policy/1aa33b2d-7ab0-4aac-b388-39a62c792532 2025-09-04 02:32:23,146 - INFO - Verified policy ctest-policy1-25831174 in API Server, Result: True 2025-09-04 02:32:23,146 - INFO - Done with setup and verification, moving onto test .. 2025-09-04 02:32:23,159 - INFO - Deleting VN ctest-vn4-37719251 2025-09-04 02:32:23,437 - DEBUG - Response for deleting network () 2025-09-04 02:32:23,437 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2715068a-0690-4ead-ab53-9a9fb8440a5f 2025-09-04 02:32:23,443 - DEBUG - Response Code: 404 2025-09-04 02:32:23,443 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-04 02:32:23,469 - DEBUG - Requesting: http://10.0.0.57:8082/domain/e0173f19-70be-4782-8849-f3657660486c 2025-09-04 02:32:23,485 - DEBUG - Requesting: http://10.0.0.57:8082/project/7bef2ff3-2b80-4a17-92de-f12f1e605390 2025-09-04 02:32:23,618 - INFO - Validated that VN ctest-vn4-37719251 is not found in API Server 2025-09-04 02:32:23,628 - DEBUG - VN ctest-vn4-37719251 is not present in Agent 10.0.0.241 2025-09-04 02:32:23,639 - DEBUG - VN ctest-vn4-37719251 is not present in Agent 10.0.0.242 2025-09-04 02:32:23,639 - INFO - Validated that VN ctest-vn4-37719251 is not in any agent 2025-09-04 02:32:23,673 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37719251 info 2025-09-04 02:32:23,740 - INFO - Deleted policy ctest-policy1-25831174 2025-09-04 02:32:23,936 - DEBUG - policy ctest-policy1-25831174 is not found in API Server 2025-09-04 02:32:25,225 - DEBUG - No XMPP flaps were noticed during the test