2025-11-07 22:37:03,648 - INFO - Domain Default found not creating 2025-11-07 22:37:03,804 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-13937507 not found, creating it 2025-11-07 22:37:04,261 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-13937507, ID : 086ff58d-ff33-417d-8375-e1b94a583e66 2025-11-07 22:37:05,638 - INFO - ================================================================================ 2025-11-07 22:37:05,638 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-07 22:37:05,893 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-07 22:37:05,893 - INFO - Initial checks done. Running the testcase now 2025-11-07 22:37:05,893 - INFO - 2025-11-07 22:37:05,893 - INFO - ================================================================================ 2025-11-07 22:37:05,893 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-07 22:37:05,893 - 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-11-07 22:37:06,188 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-11-07 22:37:06,188 - INFO - Initial checks done. Running the testcase now 2025-11-07 22:37:06,188 - INFO - 2025-11-07 22:37:06,528 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13937507:ctest-vn4-68894733, 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-13937507:ctest-vn4-68894733, 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-13937507:ctest-vn4-68894733, 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-13937507:ctest-vn4-68894733, 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-11-07 22:37:07,025 - DEBUG - Response for create_network : {'network': {'id': '5354c609-7330-420c-a8d2-c16ff8a889c3', 'name': 'ctest-vn4-68894733', 'tenant_id': '086ff58dff33417d8375e1b94a583e66', 'project_id': '086ff58dff33417d8375e1b94a583e66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13937507', 'ctest-vn4-68894733'], 'port_security_enabled': True, 'description': ''}} 2025-11-07 22:37:07,251 - DEBUG - Response for create_subnet : {'subnet': {'id': '28ff78d6-8789-4f4f-9e06-6b2cab171171', 'name': '', 'tenant_id': '086ff58dff33417d8375e1b94a583e66', 'network_id': '5354c609-7330-420c-a8d2-c16ff8a889c3', 'ip_version': 4, 'cidr': '21.196.170.128/26', 'allocation_pools': [{'start': '21.196.170.130', 'end': '21.196.170.190'}], 'gateway_ip': '21.196.170.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.196.170.130', 'tags': [], 'project_id': '086ff58dff33417d8375e1b94a583e66'}} 2025-11-07 22:37:07,447 - DEBUG - Response for create_subnet : {'subnet': {'id': '4293072d-bc37-42ca-b496-925dee98dd70', 'name': '', 'tenant_id': '086ff58dff33417d8375e1b94a583e66', 'network_id': '5354c609-7330-420c-a8d2-c16ff8a889c3', 'ip_version': 6, 'cidr': '2f62:b0ff:9784:d480:2ac6:6403::/96', 'allocation_pools': [{'start': '2f62:b0ff:9784:d480:2ac6:6403:0:2', 'end': '2f62:b0ff:9784:d480:2ac6:6403:ffff:fffe'}], 'gateway_ip': '2f62:b0ff:9784:d480:2ac6:6403:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f62:b0ff:9784:d480:2ac6:6403:0:2', 'tags': [], 'project_id': '086ff58dff33417d8375e1b94a583e66'}} 2025-11-07 22:37:07,465 - INFO - Created VN ctest-vn4-68894733 2025-11-07 22:37:07,516 - DEBUG - VN ctest-vn4-68894733 UUID is 5354c609-7330-420c-a8d2-c16ff8a889c3 2025-11-07 22:37:07,701 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5354c609-7330-420c-a8d2-c16ff8a889c3', 'name': 'ctest-vn4-68894733', 'tenant_id': '086ff58dff33417d8375e1b94a583e66', 'project_id': '086ff58dff33417d8375e1b94a583e66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['28ff78d6-8789-4f4f-9e06-6b2cab171171', '4293072d-bc37-42ca-b496-925dee98dd70'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13937507', 'ctest-vn4-68894733'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13937507', 'ctest-policy1-85953193']], 'subnet_ipam': [{'subnet_cidr': '21.196.170.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f62:b0ff:9784:d480:2ac6:6403::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-07 22:37:07,868 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-07 22:37:08,158 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-07 22:37:08,183 - DEBUG - Requesting: http://10.0.0.22:8082/domain/bf08a1e0-abd2-4653-aa26-833242a4b05f 2025-11-07 22:37:08,193 - DEBUG - Requesting: http://10.0.0.22:8082/project/086ff58d-ff33-417d-8375-e1b94a583e66 2025-11-07 22:37:08,262 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5354c609-7330-420c-a8d2-c16ff8a889c3 2025-11-07 22:37:08,274 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5354c609-7330-420c-a8d2-c16ff8a889c3 2025-11-07 22:37:08,285 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/81cb926c-c653-4823-a8da-c7199d8f08c0 2025-11-07 22:37:08,293 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/81cb926c-c653-4823-a8da-c7199d8f08c0 2025-11-07 22:37:08,299 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/335f2a36-5c05-4196-a2cd-1ac260f953ea 2025-11-07 22:37:08,304 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-07 22:37:08,304 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5354c609-7330-420c-a8d2-c16ff8a889c3 2025-11-07 22:37:08,312 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/81cb926c-c653-4823-a8da-c7199d8f08c0 2025-11-07 22:37:08,388 - INFO - Verified VN network id 12 for VN 5354c609-7330-420c-a8d2-c16ff8a889c3 2025-11-07 22:37:08,389 - INFO - Verifications in API Server for VN ctest-vn4-68894733 passed 2025-11-07 22:37:08,389 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5354c609-7330-420c-a8d2-c16ff8a889c3 2025-11-07 22:37:08,397 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/81cb926c-c653-4823-a8da-c7199d8f08c0 2025-11-07 22:37:08,403 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/81cb926c-c653-4823-a8da-c7199d8f08c0 2025-11-07 22:37:08,409 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/335f2a36-5c05-4196-a2cd-1ac260f953ea 2025-11-07 22:37:08,419 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13937507:ctest-vn4-68894733', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-13937507', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6004641947081261580', 'uuid-lslong': '12164998230138456515'}, 'enable': 'true', 'created': '2025-11-07T22:37:06', 'last-modified': '2025-11-07T22:37:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.734353'} 2025-11-07 22:37:08,424 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-07 22:37:08,424 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-68894733 passed 2025-11-07 22:37:08,424 - DEBUG - ====Verifying policy data for ctest-vn4-68894733 in API_Server ====== 2025-11-07 22:37:08,424 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-07 22:37:08,429 - DEBUG - Requesting: http://10.0.0.22:8082/domain/bf08a1e0-abd2-4653-aa26-833242a4b05f 2025-11-07 22:37:08,438 - DEBUG - Requesting: http://10.0.0.22:8082/project/086ff58d-ff33-417d-8375-e1b94a583e66 2025-11-07 22:37:08,511 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5354c609-7330-420c-a8d2-c16ff8a889c3 2025-11-07 22:37:08,520 - DEBUG - ==>Verifying data for policy with id: 623dd335-2443-4708-b948-d7ffa7d1bbe7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13937507', 'ctest-policy1-85953193'] 2025-11-07 22:37:08,520 - INFO - VN ctest-vn4-68894733 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-07 22:37:08,521 - DEBUG - Verifying the vn in opserver 2025-11-07 22:37:08,521 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13937507:ctest-vn4-68894733 virtual network link through opserver 10.0.0.22 2025-11-07 22:37:08,521 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-07 22:37:08,812 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-07 22:37:08,870 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13937507:ctest-vn4-68894733', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13937507:ctest-vn4-68894733?flat'} 2025-11-07 22:37:08,870 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13937507:ctest-vn4-68894733 is found in opserver 2025-11-07 22:37:08,879 - DEBUG - Do not have enough data to verify VN in agent 2025-11-07 22:37:08,883 - DEBUG - VRF ids for VN ctest-vn4-68894733: {} 2025-11-07 22:37:08,883 - DEBUG - ====Verifying data for ctest-policy1-85953193 in API_Server ====== 2025-11-07 22:37:08,884 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-07 22:37:08,889 - DEBUG - Requesting: http://10.0.0.22:8082/domain/bf08a1e0-abd2-4653-aa26-833242a4b05f 2025-11-07 22:37:08,898 - DEBUG - Requesting: http://10.0.0.22:8082/project/086ff58d-ff33-417d-8375-e1b94a583e66 2025-11-07 22:37:08,969 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/623dd335-2443-4708-b948-d7ffa7d1bbe7 2025-11-07 22:37:08,978 - INFO - Verified policy ctest-policy1-85953193 in API Server, Result: True 2025-11-07 22:37:08,978 - INFO - Done with setup and verification, moving onto test .. 2025-11-07 22:37:08,985 - INFO - Deleting VN ctest-vn4-68894733 2025-11-07 22:37:09,092 - DEBUG - Response for deleting network () 2025-11-07 22:37:09,092 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/81cb926c-c653-4823-a8da-c7199d8f08c0 2025-11-07 22:37:09,097 - DEBUG - Response Code: 404 2025-11-07 22:37:09,097 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-07 22:37:09,101 - DEBUG - Requesting: http://10.0.0.22:8082/domain/bf08a1e0-abd2-4653-aa26-833242a4b05f 2025-11-07 22:37:09,152 - DEBUG - Requesting: http://10.0.0.22:8082/project/086ff58d-ff33-417d-8375-e1b94a583e66 2025-11-07 22:37:09,219 - INFO - Validated that VN ctest-vn4-68894733 is not found in API Server 2025-11-07 22:37:09,227 - DEBUG - VN ctest-vn4-68894733 is not present in Agent 10.0.0.22 2025-11-07 22:37:09,227 - INFO - Validated that VN ctest-vn4-68894733 is not in any agent 2025-11-07 22:37:09,238 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-68894733 info 2025-11-07 22:37:09,258 - INFO - Deleted policy ctest-policy1-85953193 2025-11-07 22:37:09,415 - DEBUG - policy ctest-policy1-85953193 is not found in API Server 2025-11-07 22:37:09,677 - DEBUG - No XMPP flaps were noticed during the test