2025-10-06 17:33:23,756 - INFO - Domain Default found not creating 2025-10-06 17:33:23,906 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35347362 not found, creating it 2025-10-06 17:33:24,366 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35347362, ID : 43a9442f-0729-4dc2-a622-5bd64aeb5f0a 2025-10-06 17:33:25,802 - INFO - ================================================================================ 2025-10-06 17:33:25,802 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-06 17:33:26,068 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-06 17:33:26,068 - INFO - Initial checks done. Running the testcase now 2025-10-06 17:33:26,068 - INFO - 2025-10-06 17:33:26,068 - INFO - ================================================================================ 2025-10-06 17:33:26,068 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-06 17:33:26,068 - 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-06 17:33:26,364 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-06 17:33:26,364 - INFO - Initial checks done. Running the testcase now 2025-10-06 17:33:26,364 - INFO - 2025-10-06 17:33:26,713 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35347362:ctest-vn4-09049880, 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-35347362:ctest-vn4-09049880, 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-35347362:ctest-vn4-09049880, 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-35347362:ctest-vn4-09049880, 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-06 17:33:27,218 - DEBUG - Response for create_network : {'network': {'id': 'e1382090-2ba4-4ad2-a1da-ce0f624d037d', 'name': 'ctest-vn4-09049880', 'tenant_id': '43a9442f07294dc2a6225bd64aeb5f0a', 'project_id': '43a9442f07294dc2a6225bd64aeb5f0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35347362', 'ctest-vn4-09049880'], 'port_security_enabled': True, 'description': ''}} 2025-10-06 17:33:27,431 - DEBUG - Response for create_subnet : {'subnet': {'id': '860e461b-70b9-4b37-a214-2775a91e88cd', 'name': '', 'tenant_id': '43a9442f07294dc2a6225bd64aeb5f0a', 'network_id': 'e1382090-2ba4-4ad2-a1da-ce0f624d037d', 'ip_version': 4, 'cidr': '159.193.73.192/26', 'allocation_pools': [{'start': '159.193.73.194', 'end': '159.193.73.254'}], 'gateway_ip': '159.193.73.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.193.73.194', 'tags': [], 'project_id': '43a9442f07294dc2a6225bd64aeb5f0a'}} 2025-10-06 17:33:27,571 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d2720a8-9085-45c1-9f2d-7866e594abda', 'name': '', 'tenant_id': '43a9442f07294dc2a6225bd64aeb5f0a', 'network_id': 'e1382090-2ba4-4ad2-a1da-ce0f624d037d', 'ip_version': 6, 'cidr': '2989:1aaa:155c:6ea3:b9e4:b073::/96', 'allocation_pools': [{'start': '2989:1aaa:155c:6ea3:b9e4:b073:0:2', 'end': '2989:1aaa:155c:6ea3:b9e4:b073:ffff:fffe'}], 'gateway_ip': '2989:1aaa:155c:6ea3:b9e4:b073:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2989:1aaa:155c:6ea3:b9e4:b073:0:2', 'tags': [], 'project_id': '43a9442f07294dc2a6225bd64aeb5f0a'}} 2025-10-06 17:33:27,667 - INFO - Created VN ctest-vn4-09049880 2025-10-06 17:33:27,718 - DEBUG - VN ctest-vn4-09049880 UUID is e1382090-2ba4-4ad2-a1da-ce0f624d037d 2025-10-06 17:33:27,921 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1382090-2ba4-4ad2-a1da-ce0f624d037d', 'name': 'ctest-vn4-09049880', 'tenant_id': '43a9442f07294dc2a6225bd64aeb5f0a', 'project_id': '43a9442f07294dc2a6225bd64aeb5f0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['860e461b-70b9-4b37-a214-2775a91e88cd', '4d2720a8-9085-45c1-9f2d-7866e594abda'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35347362', 'ctest-vn4-09049880'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35347362', 'ctest-policy1-18784146']], 'subnet_ipam': [{'subnet_cidr': '159.193.73.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2989:1aaa:155c:6ea3:b9e4:b073::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-06 17:33:28,083 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-06 17:33:28,383 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-06 17:33:28,411 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7f817de8-b23f-4b83-abab-a6631a29eef2 2025-10-06 17:33:28,422 - DEBUG - Requesting: http://10.0.0.254:8082/project/43a9442f-0729-4dc2-a622-5bd64aeb5f0a 2025-10-06 17:33:28,493 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e1382090-2ba4-4ad2-a1da-ce0f624d037d 2025-10-06 17:33:28,507 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e1382090-2ba4-4ad2-a1da-ce0f624d037d 2025-10-06 17:33:28,517 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3cabfa06-4d75-449b-b747-67b74965921a 2025-10-06 17:33:28,524 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3cabfa06-4d75-449b-b747-67b74965921a 2025-10-06 17:33:28,530 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/413cba19-6e57-453e-9564-2fca9e0f88fe 2025-10-06 17:33:28,537 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 17:33:28,537 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e1382090-2ba4-4ad2-a1da-ce0f624d037d 2025-10-06 17:33:28,545 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3cabfa06-4d75-449b-b747-67b74965921a 2025-10-06 17:33:28,559 - INFO - Verified VN network id 11 for VN e1382090-2ba4-4ad2-a1da-ce0f624d037d 2025-10-06 17:33:28,559 - INFO - Verifications in API Server for VN ctest-vn4-09049880 passed 2025-10-06 17:33:28,559 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e1382090-2ba4-4ad2-a1da-ce0f624d037d 2025-10-06 17:33:28,568 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3cabfa06-4d75-449b-b747-67b74965921a 2025-10-06 17:33:28,574 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3cabfa06-4d75-449b-b747-67b74965921a 2025-10-06 17:33:28,580 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/413cba19-6e57-453e-9564-2fca9e0f88fe 2025-10-06 17:33:28,590 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35347362:ctest-vn4-09049880', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35347362', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16228757060809149138', 'uuid-lslong': '11662860750498366333'}, 'enable': 'true', 'created': '2025-10-06T17:33:27', 'last-modified': '2025-10-06T17:33:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.693919'} 2025-10-06 17:33:28,595 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 17:33:28,595 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-09049880 passed 2025-10-06 17:33:28,595 - DEBUG - ====Verifying policy data for ctest-vn4-09049880 in API_Server ====== 2025-10-06 17:33:28,595 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-06 17:33:28,600 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7f817de8-b23f-4b83-abab-a6631a29eef2 2025-10-06 17:33:28,609 - DEBUG - Requesting: http://10.0.0.254:8082/project/43a9442f-0729-4dc2-a622-5bd64aeb5f0a 2025-10-06 17:33:28,679 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e1382090-2ba4-4ad2-a1da-ce0f624d037d 2025-10-06 17:33:28,688 - DEBUG - ==>Verifying data for policy with id: a66dbdc5-78d8-4416-ac8c-32346b955c25, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35347362', 'ctest-policy1-18784146'] 2025-10-06 17:33:28,688 - INFO - VN ctest-vn4-09049880 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-06 17:33:28,688 - DEBUG - Verifying the vn in opserver 2025-10-06 17:33:28,688 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35347362:ctest-vn4-09049880 virtual network link through opserver 10.0.0.254 2025-10-06 17:33:28,688 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-06 17:33:28,980 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-06 17:33:29,038 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35347362:ctest-vn4-09049880', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35347362:ctest-vn4-09049880?flat'} 2025-10-06 17:33:29,038 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35347362:ctest-vn4-09049880 is found in opserver 2025-10-06 17:33:29,052 - DEBUG - Do not have enough data to verify VN in agent 2025-10-06 17:33:29,057 - DEBUG - VRF ids for VN ctest-vn4-09049880: {} 2025-10-06 17:33:29,058 - DEBUG - ====Verifying data for ctest-policy1-18784146 in API_Server ====== 2025-10-06 17:33:29,058 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-06 17:33:29,064 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7f817de8-b23f-4b83-abab-a6631a29eef2 2025-10-06 17:33:29,074 - DEBUG - Requesting: http://10.0.0.254:8082/project/43a9442f-0729-4dc2-a622-5bd64aeb5f0a 2025-10-06 17:33:29,157 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/a66dbdc5-78d8-4416-ac8c-32346b955c25 2025-10-06 17:33:29,166 - INFO - Verified policy ctest-policy1-18784146 in API Server, Result: True 2025-10-06 17:33:29,167 - INFO - Done with setup and verification, moving onto test .. 2025-10-06 17:33:29,176 - INFO - Deleting VN ctest-vn4-09049880 2025-10-06 17:33:29,282 - DEBUG - Response for deleting network () 2025-10-06 17:33:29,282 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3cabfa06-4d75-449b-b747-67b74965921a 2025-10-06 17:33:29,287 - DEBUG - Response Code: 404 2025-10-06 17:33:29,287 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-06 17:33:29,292 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7f817de8-b23f-4b83-abab-a6631a29eef2 2025-10-06 17:33:29,343 - DEBUG - Requesting: http://10.0.0.254:8082/project/43a9442f-0729-4dc2-a622-5bd64aeb5f0a 2025-10-06 17:33:29,410 - INFO - Validated that VN ctest-vn4-09049880 is not found in API Server 2025-10-06 17:33:29,420 - DEBUG - VN ctest-vn4-09049880 is not present in Agent 10.0.0.254 2025-10-06 17:33:29,421 - INFO - Validated that VN ctest-vn4-09049880 is not in any agent 2025-10-06 17:33:29,433 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-09049880 info 2025-10-06 17:33:29,460 - INFO - Deleted policy ctest-policy1-18784146 2025-10-06 17:33:29,630 - DEBUG - policy ctest-policy1-18784146 is not found in API Server 2025-10-06 17:33:29,883 - DEBUG - No XMPP flaps were noticed during the test