2025-07-23 00:14:02,224 - INFO - Domain Default found not creating 2025-07-23 00:14:02,403 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-73247323 not found, creating it 2025-07-23 00:14:02,890 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-73247323, ID : 786b6447-50bc-4ed6-8fa5-ce69e1c88532 2025-07-23 00:14:04,472 - INFO - ================================================================================ 2025-07-23 00:14:04,472 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-23 00:14:04,733 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-07-23 00:14:04,733 - INFO - Initial checks done. Running the testcase now 2025-07-23 00:14:04,733 - INFO - 2025-07-23 00:14:04,733 - INFO - ================================================================================ 2025-07-23 00:14:04,733 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-23 00:14:04,733 - 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-07-23 00:14:05,032 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-07-23 00:14:05,032 - INFO - Initial checks done. Running the testcase now 2025-07-23 00:14:05,032 - INFO - 2025-07-23 00:14:05,647 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73247323:ctest-vn4-27768478, 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-73247323:ctest-vn4-27768478, 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-73247323:ctest-vn4-27768478, 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-73247323:ctest-vn4-27768478, 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-07-23 00:14:06,249 - DEBUG - Response for create_network : {'network': {'id': 'abc12a05-f147-41b5-9270-a6440447e745', 'name': 'ctest-vn4-27768478', 'tenant_id': '786b644750bc4ed68fa5ce69e1c88532', 'project_id': '786b644750bc4ed68fa5ce69e1c88532', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73247323', 'ctest-vn4-27768478'], 'port_security_enabled': True, 'description': ''}} 2025-07-23 00:14:06,434 - DEBUG - Response for create_subnet : {'subnet': {'id': '8dec48fa-3135-4d8c-a2e8-f4b9e3b6ef58', 'name': '', 'tenant_id': '786b644750bc4ed68fa5ce69e1c88532', 'network_id': 'abc12a05-f147-41b5-9270-a6440447e745', 'ip_version': 4, 'cidr': '205.180.1.64/26', 'allocation_pools': [{'start': '205.180.1.66', 'end': '205.180.1.126'}], 'gateway_ip': '205.180.1.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.180.1.66', 'tags': [], 'project_id': '786b644750bc4ed68fa5ce69e1c88532'}} 2025-07-23 00:14:06,653 - DEBUG - Response for create_subnet : {'subnet': {'id': '112e6902-2c91-460b-97f3-864077cbd277', 'name': '', 'tenant_id': '786b644750bc4ed68fa5ce69e1c88532', 'network_id': 'abc12a05-f147-41b5-9270-a6440447e745', 'ip_version': 6, 'cidr': '32c0:54a8:a3f:38b4:c99d:9812::/96', 'allocation_pools': [{'start': '32c0:54a8:a3f:38b4:c99d:9812:0:2', 'end': '32c0:54a8:a3f:38b4:c99d:9812:ffff:fffe'}], 'gateway_ip': '32c0:54a8:a3f:38b4:c99d:9812:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32c0:54a8:a3f:38b4:c99d:9812:0:2', 'tags': [], 'project_id': '786b644750bc4ed68fa5ce69e1c88532'}} 2025-07-23 00:14:06,678 - INFO - Created VN ctest-vn4-27768478 2025-07-23 00:14:06,734 - DEBUG - VN ctest-vn4-27768478 UUID is abc12a05-f147-41b5-9270-a6440447e745 2025-07-23 00:14:07,005 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'abc12a05-f147-41b5-9270-a6440447e745', 'name': 'ctest-vn4-27768478', 'tenant_id': '786b644750bc4ed68fa5ce69e1c88532', 'project_id': '786b644750bc4ed68fa5ce69e1c88532', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8dec48fa-3135-4d8c-a2e8-f4b9e3b6ef58', '112e6902-2c91-460b-97f3-864077cbd277'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73247323', 'ctest-vn4-27768478'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73247323', 'ctest-policy1-00483869']], 'subnet_ipam': [{'subnet_cidr': '205.180.1.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32c0:54a8:a3f:38b4:c99d:9812::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-23 00:14:07,182 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-23 00:14:07,493 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-23 00:14:07,532 - DEBUG - Requesting: http://10.0.0.254:8082/domain/64881956-1dc5-4b5d-a418-4a4c39795296 2025-07-23 00:14:07,550 - DEBUG - Requesting: http://10.0.0.254:8082/project/786b6447-50bc-4ed6-8fa5-ce69e1c88532 2025-07-23 00:14:07,629 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/abc12a05-f147-41b5-9270-a6440447e745 2025-07-23 00:14:07,643 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/abc12a05-f147-41b5-9270-a6440447e745 2025-07-23 00:14:07,656 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3c0e9dff-6085-4a3b-8593-0328887e4ade 2025-07-23 00:14:07,666 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3c0e9dff-6085-4a3b-8593-0328887e4ade 2025-07-23 00:14:07,677 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fd724550-039c-4e6f-b22e-2d7022e7ec78 2025-07-23 00:14:07,686 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 00:14:07,686 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/abc12a05-f147-41b5-9270-a6440447e745 2025-07-23 00:14:07,697 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3c0e9dff-6085-4a3b-8593-0328887e4ade 2025-07-23 00:14:07,715 - INFO - Verified VN network id 10 for VN abc12a05-f147-41b5-9270-a6440447e745 2025-07-23 00:14:07,715 - INFO - Verifications in API Server for VN ctest-vn4-27768478 passed 2025-07-23 00:14:07,715 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/abc12a05-f147-41b5-9270-a6440447e745 2025-07-23 00:14:07,729 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3c0e9dff-6085-4a3b-8593-0328887e4ade 2025-07-23 00:14:07,738 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3c0e9dff-6085-4a3b-8593-0328887e4ade 2025-07-23 00:14:07,746 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fd724550-039c-4e6f-b22e-2d7022e7ec78 2025-07-23 00:14:07,761 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73247323:ctest-vn4-27768478', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-73247323', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12376219456002015669', 'uuid-lslong': '10552116737988880197'}, 'enable': 'true', 'created': '2025-07-23T00:14:06', 'last-modified': '2025-07-23T00:14:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.803264'} 2025-07-23 00:14:07,770 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 00:14:07,770 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27768478 passed 2025-07-23 00:14:07,770 - DEBUG - ====Verifying policy data for ctest-vn4-27768478 in API_Server ====== 2025-07-23 00:14:07,770 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-23 00:14:07,777 - DEBUG - Requesting: http://10.0.0.254:8082/domain/64881956-1dc5-4b5d-a418-4a4c39795296 2025-07-23 00:14:07,791 - DEBUG - Requesting: http://10.0.0.254:8082/project/786b6447-50bc-4ed6-8fa5-ce69e1c88532 2025-07-23 00:14:07,869 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/abc12a05-f147-41b5-9270-a6440447e745 2025-07-23 00:14:07,881 - DEBUG - ==>Verifying data for policy with id: cb664b29-42e8-4db5-ad3e-626243563787, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73247323', 'ctest-policy1-00483869'] 2025-07-23 00:14:07,881 - INFO - VN ctest-vn4-27768478 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-23 00:14:07,881 - DEBUG - Verifying the vn in opserver 2025-07-23 00:14:07,881 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73247323:ctest-vn4-27768478 virtual network link through opserver 10.0.0.254 2025-07-23 00:14:07,881 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-23 00:14:08,191 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-23 00:14:08,257 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73247323:ctest-vn4-27768478', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73247323:ctest-vn4-27768478?flat'} 2025-07-23 00:14:08,257 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73247323:ctest-vn4-27768478 is found in opserver 2025-07-23 00:14:08,269 - DEBUG - Do not have enough data to verify VN in agent 2025-07-23 00:14:08,276 - DEBUG - VRF ids for VN ctest-vn4-27768478: {} 2025-07-23 00:14:08,276 - DEBUG - ====Verifying data for ctest-policy1-00483869 in API_Server ====== 2025-07-23 00:14:08,276 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-23 00:14:08,284 - DEBUG - Requesting: http://10.0.0.254:8082/domain/64881956-1dc5-4b5d-a418-4a4c39795296 2025-07-23 00:14:08,304 - DEBUG - Requesting: http://10.0.0.254:8082/project/786b6447-50bc-4ed6-8fa5-ce69e1c88532 2025-07-23 00:14:08,386 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/cb664b29-42e8-4db5-ad3e-626243563787 2025-07-23 00:14:08,400 - INFO - Verified policy ctest-policy1-00483869 in API Server, Result: True 2025-07-23 00:14:08,400 - INFO - Done with setup and verification, moving onto test .. 2025-07-23 00:14:08,412 - INFO - Deleting VN ctest-vn4-27768478 2025-07-23 00:14:08,561 - DEBUG - Response for deleting network () 2025-07-23 00:14:08,561 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3c0e9dff-6085-4a3b-8593-0328887e4ade 2025-07-23 00:14:08,569 - DEBUG - Response Code: 404 2025-07-23 00:14:08,569 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-23 00:14:08,577 - DEBUG - Requesting: http://10.0.0.254:8082/domain/64881956-1dc5-4b5d-a418-4a4c39795296 2025-07-23 00:14:08,632 - DEBUG - Requesting: http://10.0.0.254:8082/project/786b6447-50bc-4ed6-8fa5-ce69e1c88532 2025-07-23 00:14:08,712 - INFO - Validated that VN ctest-vn4-27768478 is not found in API Server 2025-07-23 00:14:08,727 - DEBUG - VN ctest-vn4-27768478 is not present in Agent 10.0.0.254 2025-07-23 00:14:08,727 - INFO - Validated that VN ctest-vn4-27768478 is not in any agent 2025-07-23 00:14:08,746 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27768478 info 2025-07-23 00:14:08,773 - INFO - Deleted policy ctest-policy1-00483869 2025-07-23 00:14:08,953 - DEBUG - policy ctest-policy1-00483869 is not found in API Server 2025-07-23 00:14:09,211 - DEBUG - No XMPP flaps were noticed during the test
2025-07-23 00:14:09,212 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-07-23 00:14:09,212 - INFO - -------------------------------------------------------------------------------- 2025-07-23 00:14:09,500 - DEBUG - No XMPP flaps were noticed during the test
2025-07-23 00:14:09,500 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-07-23 00:14:09,500 - INFO - -------------------------------------------------------------------------------- 2025-07-23 00:14:10,237 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-73247323, ID : 786b6447-50bc-4ed6-8fa5-ce69e1c88532