2025-10-31 14:47:14,901 - INFO - Domain Default found not creating 2025-10-31 14:47:15,049 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95277573 not found, creating it 2025-10-31 14:47:15,520 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95277573, ID : 80307b11-2e24-48a2-bd3d-bcb05cfd423d 2025-10-31 14:47:17,026 - INFO - ================================================================================ 2025-10-31 14:47:17,026 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 14:47:17,289 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-10-31 14:47:17,289 - INFO - Initial checks done. Running the testcase now 2025-10-31 14:47:17,290 - INFO - 2025-10-31 14:47:17,290 - INFO - ================================================================================ 2025-10-31 14:47:17,290 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 14:47:17,290 - 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-10-31 14:47:17,585 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-10-31 14:47:17,585 - INFO - Initial checks done. Running the testcase now 2025-10-31 14:47:17,585 - INFO - 2025-10-31 14:47:17,985 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95277573:ctest-vn4-05051942, 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-95277573:ctest-vn4-05051942, 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-95277573:ctest-vn4-05051942, 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-95277573:ctest-vn4-05051942, 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-10-31 14:47:18,538 - DEBUG - Response for create_network : {'network': {'id': '34e2c4fb-a3f7-45eb-9e93-310d4cc4453d', 'name': 'ctest-vn4-05051942', 'tenant_id': '80307b112e2448a2bd3dbcb05cfd423d', 'project_id': '80307b112e2448a2bd3dbcb05cfd423d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95277573', 'ctest-vn4-05051942'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 14:47:18,684 - DEBUG - Response for create_subnet : {'subnet': {'id': '9deea9c8-c8f9-4d35-845a-9bd662433573', 'name': '', 'tenant_id': '80307b112e2448a2bd3dbcb05cfd423d', 'network_id': '34e2c4fb-a3f7-45eb-9e93-310d4cc4453d', 'ip_version': 4, 'cidr': '69.90.34.192/26', 'allocation_pools': [{'start': '69.90.34.194', 'end': '69.90.34.254'}], 'gateway_ip': '69.90.34.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.90.34.194', 'tags': [], 'project_id': '80307b112e2448a2bd3dbcb05cfd423d'}} 2025-10-31 14:47:18,849 - DEBUG - Response for create_subnet : {'subnet': {'id': '08b5c0f6-3446-4cdc-8ecc-bd4cc362e34d', 'name': '', 'tenant_id': '80307b112e2448a2bd3dbcb05cfd423d', 'network_id': '34e2c4fb-a3f7-45eb-9e93-310d4cc4453d', 'ip_version': 6, 'cidr': '3de3:2a48:e65:c3fa:3025:1790::/96', 'allocation_pools': [{'start': '3de3:2a48:e65:c3fa:3025:1790:0:2', 'end': '3de3:2a48:e65:c3fa:3025:1790:ffff:fffe'}], 'gateway_ip': '3de3:2a48:e65:c3fa:3025:1790:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3de3:2a48:e65:c3fa:3025:1790:0:2', 'tags': [], 'project_id': '80307b112e2448a2bd3dbcb05cfd423d'}} 2025-10-31 14:47:18,867 - INFO - Created VN ctest-vn4-05051942 2025-10-31 14:47:18,920 - DEBUG - VN ctest-vn4-05051942 UUID is 34e2c4fb-a3f7-45eb-9e93-310d4cc4453d 2025-10-31 14:47:19,115 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '34e2c4fb-a3f7-45eb-9e93-310d4cc4453d', 'name': 'ctest-vn4-05051942', 'tenant_id': '80307b112e2448a2bd3dbcb05cfd423d', 'project_id': '80307b112e2448a2bd3dbcb05cfd423d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9deea9c8-c8f9-4d35-845a-9bd662433573', '08b5c0f6-3446-4cdc-8ecc-bd4cc362e34d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95277573', 'ctest-vn4-05051942'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95277573', 'ctest-policy1-95413983']], 'subnet_ipam': [{'subnet_cidr': '69.90.34.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3de3:2a48:e65:c3fa:3025:1790::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 14:47:19,300 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-31 14:47:19,631 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-31 14:47:19,662 - DEBUG - Requesting: http://10.0.0.33:8082/domain/35167de3-d7c7-45ca-826a-f8f3a55fa466 2025-10-31 14:47:19,674 - DEBUG - Requesting: http://10.0.0.33:8082/project/80307b11-2e24-48a2-bd3d-bcb05cfd423d 2025-10-31 14:47:19,745 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/34e2c4fb-a3f7-45eb-9e93-310d4cc4453d 2025-10-31 14:47:19,758 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/34e2c4fb-a3f7-45eb-9e93-310d4cc4453d 2025-10-31 14:47:19,768 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ec5f7c50-3afc-45dc-bcf0-90ac3d49a058 2025-10-31 14:47:19,775 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ec5f7c50-3afc-45dc-bcf0-90ac3d49a058 2025-10-31 14:47:19,781 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7a7610e4-85ac-48d5-9652-eeb58f8749e9 2025-10-31 14:47:19,787 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 14:47:19,787 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/34e2c4fb-a3f7-45eb-9e93-310d4cc4453d 2025-10-31 14:47:19,796 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ec5f7c50-3afc-45dc-bcf0-90ac3d49a058 2025-10-31 14:47:19,810 - INFO - Verified VN network id 11 for VN 34e2c4fb-a3f7-45eb-9e93-310d4cc4453d 2025-10-31 14:47:19,810 - INFO - Verifications in API Server for VN ctest-vn4-05051942 passed 2025-10-31 14:47:19,810 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/34e2c4fb-a3f7-45eb-9e93-310d4cc4453d 2025-10-31 14:47:19,820 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ec5f7c50-3afc-45dc-bcf0-90ac3d49a058 2025-10-31 14:47:19,826 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ec5f7c50-3afc-45dc-bcf0-90ac3d49a058 2025-10-31 14:47:19,833 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7a7610e4-85ac-48d5-9652-eeb58f8749e9 2025-10-31 14:47:19,845 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95277573:ctest-vn4-05051942', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95277573', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3810824819775587819', 'uuid-lslong': '11426530612761347389'}, 'enable': 'true', 'created': '2025-10-31T14:47:18', 'last-modified': '2025-10-31T14:47:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.754889'} 2025-10-31 14:47:19,852 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 14:47:19,852 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05051942 passed 2025-10-31 14:47:19,852 - DEBUG - ====Verifying policy data for ctest-vn4-05051942 in API_Server ====== 2025-10-31 14:47:19,853 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-31 14:47:19,858 - DEBUG - Requesting: http://10.0.0.33:8082/domain/35167de3-d7c7-45ca-826a-f8f3a55fa466 2025-10-31 14:47:19,867 - DEBUG - Requesting: http://10.0.0.33:8082/project/80307b11-2e24-48a2-bd3d-bcb05cfd423d 2025-10-31 14:47:19,942 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/34e2c4fb-a3f7-45eb-9e93-310d4cc4453d 2025-10-31 14:47:19,954 - DEBUG - ==>Verifying data for policy with id: 82f6c082-986a-4d60-aa3c-adcf356704c7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95277573', 'ctest-policy1-95413983'] 2025-10-31 14:47:19,954 - INFO - VN ctest-vn4-05051942 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 14:47:19,954 - DEBUG - Verifying the vn in opserver 2025-10-31 14:47:19,954 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95277573:ctest-vn4-05051942 virtual network link through opserver 10.0.0.33 2025-10-31 14:47:19,954 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-31 14:47:20,287 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-31 14:47:20,341 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95277573:ctest-vn4-05051942', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95277573:ctest-vn4-05051942?flat'} 2025-10-31 14:47:20,341 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95277573:ctest-vn4-05051942 is found in opserver 2025-10-31 14:47:20,351 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 14:47:20,356 - DEBUG - VRF ids for VN ctest-vn4-05051942: {} 2025-10-31 14:47:20,356 - DEBUG - ====Verifying data for ctest-policy1-95413983 in API_Server ====== 2025-10-31 14:47:20,356 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-31 14:47:20,361 - DEBUG - Requesting: http://10.0.0.33:8082/domain/35167de3-d7c7-45ca-826a-f8f3a55fa466 2025-10-31 14:47:20,372 - DEBUG - Requesting: http://10.0.0.33:8082/project/80307b11-2e24-48a2-bd3d-bcb05cfd423d 2025-10-31 14:47:20,442 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/82f6c082-986a-4d60-aa3c-adcf356704c7 2025-10-31 14:47:20,451 - INFO - Verified policy ctest-policy1-95413983 in API Server, Result: True 2025-10-31 14:47:20,451 - INFO - Done with setup and verification, moving onto test .. 2025-10-31 14:47:20,459 - INFO - Deleting VN ctest-vn4-05051942 2025-10-31 14:47:20,572 - DEBUG - Response for deleting network () 2025-10-31 14:47:20,572 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ec5f7c50-3afc-45dc-bcf0-90ac3d49a058 2025-10-31 14:47:20,577 - DEBUG - Response Code: 404 2025-10-31 14:47:20,578 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-31 14:47:20,583 - DEBUG - Requesting: http://10.0.0.33:8082/domain/35167de3-d7c7-45ca-826a-f8f3a55fa466 2025-10-31 14:47:20,636 - DEBUG - Requesting: http://10.0.0.33:8082/project/80307b11-2e24-48a2-bd3d-bcb05cfd423d 2025-10-31 14:47:20,704 - INFO - Validated that VN ctest-vn4-05051942 is not found in API Server 2025-10-31 14:47:20,715 - DEBUG - VN ctest-vn4-05051942 is not present in Agent 10.0.0.33 2025-10-31 14:47:20,715 - INFO - Validated that VN ctest-vn4-05051942 is not in any agent 2025-10-31 14:47:20,731 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05051942 info 2025-10-31 14:47:20,753 - INFO - Deleted policy ctest-policy1-95413983 2025-10-31 14:47:20,923 - DEBUG - policy ctest-policy1-95413983 is not found in API Server 2025-10-31 14:47:21,178 - DEBUG - No XMPP flaps were noticed during the test
2025-10-31 14:47:21,178 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-31 14:47:21,178 - INFO - -------------------------------------------------------------------------------- 2025-10-31 14:47:21,468 - DEBUG - No XMPP flaps were noticed during the test
2025-10-31 14:47:21,468 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-31 14:47:21,468 - INFO - -------------------------------------------------------------------------------- 2025-10-31 14:47:22,162 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-95277573, ID : 80307b11-2e24-48a2-bd3d-bcb05cfd423d