2025-08-22 13:34:00,262 - INFO - Domain Default found not creating 2025-08-22 13:34:00,397 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-21030871 not found, creating it 2025-08-22 13:34:00,847 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-21030871, ID : 0af77ef2-22d0-4318-8ca7-576fc1740f62 2025-08-22 13:34:02,176 - INFO - ================================================================================ 2025-08-22 13:34:02,176 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-22 13:34:02,436 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-08-22 13:34:02,436 - INFO - Initial checks done. Running the testcase now 2025-08-22 13:34:02,436 - INFO - 2025-08-22 13:34:02,436 - INFO - ================================================================================ 2025-08-22 13:34:02,436 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-22 13:34:02,436 - 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-08-22 13:34:02,724 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-08-22 13:34:02,724 - INFO - Initial checks done. Running the testcase now 2025-08-22 13:34:02,724 - INFO - 2025-08-22 13:34:03,060 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21030871:ctest-vn4-05714772, 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-21030871:ctest-vn4-05714772, 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-21030871:ctest-vn4-05714772, 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-21030871:ctest-vn4-05714772, 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-08-22 13:34:03,566 - DEBUG - Response for create_network : {'network': {'id': '8c360862-39c0-4e1e-a5c3-78997a15ae05', 'name': 'ctest-vn4-05714772', 'tenant_id': '0af77ef222d043188ca7576fc1740f62', 'project_id': '0af77ef222d043188ca7576fc1740f62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21030871', 'ctest-vn4-05714772'], 'port_security_enabled': True, 'description': ''}} 2025-08-22 13:34:03,782 - DEBUG - Response for create_subnet : {'subnet': {'id': '493d0a34-45c0-4a0a-b16f-5f0c9cbecb9d', 'name': '', 'tenant_id': '0af77ef222d043188ca7576fc1740f62', 'network_id': '8c360862-39c0-4e1e-a5c3-78997a15ae05', 'ip_version': 4, 'cidr': '133.55.49.192/26', 'allocation_pools': [{'start': '133.55.49.194', 'end': '133.55.49.254'}], 'gateway_ip': '133.55.49.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.55.49.194', 'tags': [], 'project_id': '0af77ef222d043188ca7576fc1740f62'}} 2025-08-22 13:34:03,965 - DEBUG - Response for create_subnet : {'subnet': {'id': '5031cf78-db96-46fd-b61e-b5d544311934', 'name': '', 'tenant_id': '0af77ef222d043188ca7576fc1740f62', 'network_id': '8c360862-39c0-4e1e-a5c3-78997a15ae05', 'ip_version': 6, 'cidr': '296f:c8b4:3611:28de:e2d3:4a84::/96', 'allocation_pools': [{'start': '296f:c8b4:3611:28de:e2d3:4a84:0:2', 'end': '296f:c8b4:3611:28de:e2d3:4a84:ffff:fffe'}], 'gateway_ip': '296f:c8b4:3611:28de:e2d3:4a84:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '296f:c8b4:3611:28de:e2d3:4a84:0:2', 'tags': [], 'project_id': '0af77ef222d043188ca7576fc1740f62'}} 2025-08-22 13:34:03,983 - INFO - Created VN ctest-vn4-05714772 2025-08-22 13:34:04,039 - DEBUG - VN ctest-vn4-05714772 UUID is 8c360862-39c0-4e1e-a5c3-78997a15ae05 2025-08-22 13:34:04,244 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8c360862-39c0-4e1e-a5c3-78997a15ae05', 'name': 'ctest-vn4-05714772', 'tenant_id': '0af77ef222d043188ca7576fc1740f62', 'project_id': '0af77ef222d043188ca7576fc1740f62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['493d0a34-45c0-4a0a-b16f-5f0c9cbecb9d', '5031cf78-db96-46fd-b61e-b5d544311934'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21030871', 'ctest-vn4-05714772'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21030871', 'ctest-policy1-03363642']], 'subnet_ipam': [{'subnet_cidr': '133.55.49.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '296f:c8b4:3611:28de:e2d3:4a84::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-22 13:34:04,411 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-22 13:34:04,698 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-22 13:34:04,723 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2dff4d33-b265-4d68-b70d-495dc8dc0f98 2025-08-22 13:34:04,734 - DEBUG - Requesting: http://10.0.0.254:8082/project/0af77ef2-22d0-4318-8ca7-576fc1740f62 2025-08-22 13:34:04,808 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8c360862-39c0-4e1e-a5c3-78997a15ae05 2025-08-22 13:34:04,819 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8c360862-39c0-4e1e-a5c3-78997a15ae05 2025-08-22 13:34:04,827 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f304ab66-7b5b-4fdb-aa84-b74be019d3bf 2025-08-22 13:34:04,833 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f304ab66-7b5b-4fdb-aa84-b74be019d3bf 2025-08-22 13:34:04,839 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/be3d5187-bbf8-439c-b100-a5949601ae7f 2025-08-22 13:34:04,844 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-22 13:34:04,844 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8c360862-39c0-4e1e-a5c3-78997a15ae05 2025-08-22 13:34:04,852 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f304ab66-7b5b-4fdb-aa84-b74be019d3bf 2025-08-22 13:34:04,863 - INFO - Verified VN network id 12 for VN 8c360862-39c0-4e1e-a5c3-78997a15ae05 2025-08-22 13:34:04,863 - INFO - Verifications in API Server for VN ctest-vn4-05714772 passed 2025-08-22 13:34:04,863 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8c360862-39c0-4e1e-a5c3-78997a15ae05 2025-08-22 13:34:04,874 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f304ab66-7b5b-4fdb-aa84-b74be019d3bf 2025-08-22 13:34:04,879 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f304ab66-7b5b-4fdb-aa84-b74be019d3bf 2025-08-22 13:34:04,885 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/be3d5187-bbf8-439c-b100-a5949601ae7f 2025-08-22 13:34:04,896 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21030871:ctest-vn4-05714772', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-21030871', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10103272032021007902', 'uuid-lslong': '11944523237290257925'}, 'enable': 'true', 'created': '2025-08-22T13:34:03', 'last-modified': '2025-08-22T13:34:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.689570'} 2025-08-22 13:34:04,902 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-22 13:34:04,902 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05714772 passed 2025-08-22 13:34:04,902 - DEBUG - ====Verifying policy data for ctest-vn4-05714772 in API_Server ====== 2025-08-22 13:34:04,902 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-22 13:34:04,909 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2dff4d33-b265-4d68-b70d-495dc8dc0f98 2025-08-22 13:34:04,921 - DEBUG - Requesting: http://10.0.0.254:8082/project/0af77ef2-22d0-4318-8ca7-576fc1740f62 2025-08-22 13:34:04,999 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8c360862-39c0-4e1e-a5c3-78997a15ae05 2025-08-22 13:34:05,008 - DEBUG - ==>Verifying data for policy with id: fa2a978a-ea7c-4685-9e3e-c87999624f34, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21030871', 'ctest-policy1-03363642'] 2025-08-22 13:34:05,008 - INFO - VN ctest-vn4-05714772 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-22 13:34:05,008 - DEBUG - Verifying the vn in opserver 2025-08-22 13:34:05,008 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21030871:ctest-vn4-05714772 virtual network link through opserver 10.0.0.254 2025-08-22 13:34:05,008 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-22 13:34:05,295 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-22 13:34:05,344 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21030871:ctest-vn4-05714772', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21030871:ctest-vn4-05714772?flat'} 2025-08-22 13:34:05,344 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21030871:ctest-vn4-05714772 is found in opserver 2025-08-22 13:34:05,353 - DEBUG - Do not have enough data to verify VN in agent 2025-08-22 13:34:05,357 - DEBUG - VRF ids for VN ctest-vn4-05714772: {} 2025-08-22 13:34:05,358 - DEBUG - ====Verifying data for ctest-policy1-03363642 in API_Server ====== 2025-08-22 13:34:05,358 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-22 13:34:05,363 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2dff4d33-b265-4d68-b70d-495dc8dc0f98 2025-08-22 13:34:05,375 - DEBUG - Requesting: http://10.0.0.254:8082/project/0af77ef2-22d0-4318-8ca7-576fc1740f62 2025-08-22 13:34:05,450 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/fa2a978a-ea7c-4685-9e3e-c87999624f34 2025-08-22 13:34:05,459 - INFO - Verified policy ctest-policy1-03363642 in API Server, Result: True 2025-08-22 13:34:05,459 - INFO - Done with setup and verification, moving onto test .. 2025-08-22 13:34:05,467 - INFO - Deleting VN ctest-vn4-05714772 2025-08-22 13:34:05,594 - DEBUG - Response for deleting network () 2025-08-22 13:34:05,595 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f304ab66-7b5b-4fdb-aa84-b74be019d3bf 2025-08-22 13:34:05,600 - DEBUG - Response Code: 404 2025-08-22 13:34:05,601 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-22 13:34:05,608 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2dff4d33-b265-4d68-b70d-495dc8dc0f98 2025-08-22 13:34:05,664 - DEBUG - Requesting: http://10.0.0.254:8082/project/0af77ef2-22d0-4318-8ca7-576fc1740f62 2025-08-22 13:34:05,734 - INFO - Validated that VN ctest-vn4-05714772 is not found in API Server 2025-08-22 13:34:05,743 - DEBUG - VN ctest-vn4-05714772 is not present in Agent 10.0.0.254 2025-08-22 13:34:05,743 - INFO - Validated that VN ctest-vn4-05714772 is not in any agent 2025-08-22 13:34:05,755 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05714772 info 2025-08-22 13:34:05,781 - INFO - Deleted policy ctest-policy1-03363642 2025-08-22 13:34:05,954 - DEBUG - policy ctest-policy1-03363642 is not found in API Server 2025-08-22 13:34:06,211 - DEBUG - No XMPP flaps were noticed during the test
2025-08-22 13:34:06,211 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-22 13:34:06,211 - INFO - -------------------------------------------------------------------------------- 2025-08-22 13:34:06,495 - DEBUG - No XMPP flaps were noticed during the test
2025-08-22 13:34:06,495 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-22 13:34:06,495 - INFO - -------------------------------------------------------------------------------- 2025-08-22 13:34:07,145 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-21030871, ID : 0af77ef2-22d0-4318-8ca7-576fc1740f62