2025-08-04 02:58:54,797 - INFO - Domain Default found not creating 2025-08-04 02:58:54,956 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51756746 not found, creating it 2025-08-04 02:58:55,550 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51756746, ID : cea344c2-fb01-4297-bdf8-736af0fb8727 2025-08-04 02:58:57,033 - INFO - ================================================================================ 2025-08-04 02:58:57,033 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-04 02:58:58,340 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.18': '0', '10.20.0.129': '0'}, '10.0.0.57': {'10.20.0.193': '0', '10.20.0.18': '0'}} with 2025-08-04 02:58:58,340 - INFO - Initial checks done. Running the testcase now 2025-08-04 02:58:58,340 - INFO - 2025-08-04 02:58:58,340 - INFO - ================================================================================ 2025-08-04 02:58:58,340 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-04 02:58:58,340 - 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-04 02:58:59,623 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.18': '0', '10.20.0.129': '0'}, '10.0.0.57': {'10.20.0.193': '0', '10.20.0.18': '0'}} with 2025-08-04 02:58:59,623 - INFO - Initial checks done. Running the testcase now 2025-08-04 02:58:59,624 - INFO - 2025-08-04 02:58:59,953 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51756746:ctest-vn4-89970156, 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-51756746:ctest-vn4-89970156, 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-51756746:ctest-vn4-89970156, 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-51756746:ctest-vn4-89970156, 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-04 02:59:00,677 - DEBUG - Response for create_network : {'network': {'id': '6e41b6fc-804a-49b2-8e24-733e698da515', 'name': 'ctest-vn4-89970156', 'tenant_id': 'cea344c2fb014297bdf8736af0fb8727', 'project_id': 'cea344c2fb014297bdf8736af0fb8727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51756746', 'ctest-vn4-89970156'], 'port_security_enabled': True, 'description': ''}} 2025-08-04 02:59:00,986 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d9f3936-c2a8-408a-a8bf-7ca17bebb2d7', 'name': '', 'tenant_id': 'cea344c2fb014297bdf8736af0fb8727', 'network_id': '6e41b6fc-804a-49b2-8e24-733e698da515', 'ip_version': 4, 'cidr': '73.90.4.192/26', 'allocation_pools': [{'start': '73.90.4.194', 'end': '73.90.4.254'}], 'gateway_ip': '73.90.4.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.90.4.194', 'tags': [], 'project_id': 'cea344c2fb014297bdf8736af0fb8727'}} 2025-08-04 02:59:01,196 - DEBUG - Response for create_subnet : {'subnet': {'id': '92e0166c-fd15-4e80-b6f9-622b12e3df1d', 'name': '', 'tenant_id': 'cea344c2fb014297bdf8736af0fb8727', 'network_id': '6e41b6fc-804a-49b2-8e24-733e698da515', 'ip_version': 6, 'cidr': '2f31:555c:b8c1:4e92:64c7:87d2::/96', 'allocation_pools': [{'start': '2f31:555c:b8c1:4e92:64c7:87d2:0:2', 'end': '2f31:555c:b8c1:4e92:64c7:87d2:ffff:fffe'}], 'gateway_ip': '2f31:555c:b8c1:4e92:64c7:87d2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f31:555c:b8c1:4e92:64c7:87d2:0:2', 'tags': [], 'project_id': 'cea344c2fb014297bdf8736af0fb8727'}} 2025-08-04 02:59:01,228 - INFO - Created VN ctest-vn4-89970156 2025-08-04 02:59:01,241 - DEBUG - VN ctest-vn4-89970156 UUID is 6e41b6fc-804a-49b2-8e24-733e698da515 2025-08-04 02:59:01,484 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e41b6fc-804a-49b2-8e24-733e698da515', 'name': 'ctest-vn4-89970156', 'tenant_id': 'cea344c2fb014297bdf8736af0fb8727', 'project_id': 'cea344c2fb014297bdf8736af0fb8727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d9f3936-c2a8-408a-a8bf-7ca17bebb2d7', '92e0166c-fd15-4e80-b6f9-622b12e3df1d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51756746', 'ctest-vn4-89970156'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51756746', 'ctest-policy1-01303366']], 'subnet_ipam': [{'subnet_cidr': '73.90.4.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f31:555c:b8c1:4e92:64c7:87d2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-04 02:59:01,613 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-04 02:59:02,142 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-04 02:59:02,184 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8d00e278-1e00-4abc-a644-cc23d080d5d1 2025-08-04 02:59:02,206 - DEBUG - Requesting: http://10.0.0.27:8082/project/cea344c2-fb01-4297-bdf8-736af0fb8727 2025-08-04 02:59:02,310 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e41b6fc-804a-49b2-8e24-733e698da515 2025-08-04 02:59:02,328 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e41b6fc-804a-49b2-8e24-733e698da515 2025-08-04 02:59:02,344 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/95280a72-7a94-4172-b6b1-a1c343d6c388 2025-08-04 02:59:02,361 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/95280a72-7a94-4172-b6b1-a1c343d6c388 2025-08-04 02:59:02,370 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/3ca5d366-abdf-4356-899f-1f57ad55b0eb 2025-08-04 02:59:02,381 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-04 02:59:02,381 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e41b6fc-804a-49b2-8e24-733e698da515 2025-08-04 02:59:02,394 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/95280a72-7a94-4172-b6b1-a1c343d6c388 2025-08-04 02:59:02,415 - INFO - Verified VN network id 13 for VN 6e41b6fc-804a-49b2-8e24-733e698da515 2025-08-04 02:59:02,416 - INFO - Verifications in API Server for VN ctest-vn4-89970156 passed 2025-08-04 02:59:02,416 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e41b6fc-804a-49b2-8e24-733e698da515 2025-08-04 02:59:02,430 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/95280a72-7a94-4172-b6b1-a1c343d6c388 2025-08-04 02:59:02,441 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/95280a72-7a94-4172-b6b1-a1c343d6c388 2025-08-04 02:59:02,449 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/3ca5d366-abdf-4356-899f-1f57ad55b0eb 2025-08-04 02:59:02,466 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51756746:ctest-vn4-89970156', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51756746', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7944832413258631602', 'uuid-lslong': '10242438164443407637'}, 'enable': 'true', 'created': '2025-08-04T02:59:00', 'last-modified': '2025-08-04T02:59:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.028365'} 2025-08-04 02:59:02,474 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-04 02:59:02,481 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51756746:ctest-vn4-89970156', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51756746', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7944832413258631602', 'uuid-lslong': '10242438164443407637'}, 'enable': 'true', 'created': '2025-08-04T02:59:00', 'last-modified': '2025-08-04T02:59:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.046459'} 2025-08-04 02:59:02,487 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-04 02:59:02,494 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51756746:ctest-vn4-89970156', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51756746', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7944832413258631602', 'uuid-lslong': '10242438164443407637'}, 'enable': 'true', 'created': '2025-08-04T02:59:00', 'last-modified': '2025-08-04T02:59:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.067139'} 2025-08-04 02:59:02,501 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-04 02:59:02,501 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-89970156 passed 2025-08-04 02:59:02,502 - DEBUG - ====Verifying policy data for ctest-vn4-89970156 in API_Server ====== 2025-08-04 02:59:02,502 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-04 02:59:02,510 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8d00e278-1e00-4abc-a644-cc23d080d5d1 2025-08-04 02:59:02,523 - DEBUG - Requesting: http://10.0.0.27:8082/project/cea344c2-fb01-4297-bdf8-736af0fb8727 2025-08-04 02:59:02,628 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6e41b6fc-804a-49b2-8e24-733e698da515 2025-08-04 02:59:02,640 - DEBUG - ==>Verifying data for policy with id: 6935355e-716d-45a8-96d3-e44c6aa52468, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51756746', 'ctest-policy1-01303366'] 2025-08-04 02:59:02,640 - INFO - VN ctest-vn4-89970156 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-04 02:59:02,640 - DEBUG - Verifying the vn in opserver 2025-08-04 02:59:02,640 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51756746:ctest-vn4-89970156 virtual network link through opserver 10.0.0.27 2025-08-04 02:59:02,640 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-04 02:59:02,958 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-04 02:59:03,017 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51756746:ctest-vn4-89970156', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51756746:ctest-vn4-89970156?flat'} 2025-08-04 02:59:03,017 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51756746:ctest-vn4-89970156 virtual network link through opserver 10.0.0.38 2025-08-04 02:59:03,018 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-04 02:59:03,324 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-04 02:59:03,401 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51756746:ctest-vn4-89970156', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51756746:ctest-vn4-89970156?flat'} 2025-08-04 02:59:03,401 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51756746:ctest-vn4-89970156 virtual network link through opserver 10.0.0.61 2025-08-04 02:59:03,401 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-08-04 02:59:03,706 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-08-04 02:59:03,781 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51756746:ctest-vn4-89970156', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51756746:ctest-vn4-89970156?flat'} 2025-08-04 02:59:03,781 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51756746:ctest-vn4-89970156 is found in opserver 2025-08-04 02:59:03,810 - DEBUG - Do not have enough data to verify VN in agent 2025-08-04 02:59:03,824 - DEBUG - VRF ids for VN ctest-vn4-89970156: {} 2025-08-04 02:59:03,824 - DEBUG - ====Verifying data for ctest-policy1-01303366 in API_Server ====== 2025-08-04 02:59:03,825 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-04 02:59:03,833 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8d00e278-1e00-4abc-a644-cc23d080d5d1 2025-08-04 02:59:03,849 - DEBUG - Requesting: http://10.0.0.27:8082/project/cea344c2-fb01-4297-bdf8-736af0fb8727 2025-08-04 02:59:03,960 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/6935355e-716d-45a8-96d3-e44c6aa52468 2025-08-04 02:59:03,975 - INFO - Verified policy ctest-policy1-01303366 in API Server, Result: True 2025-08-04 02:59:03,975 - INFO - Done with setup and verification, moving onto test .. 2025-08-04 02:59:03,988 - INFO - Deleting VN ctest-vn4-89970156 2025-08-04 02:59:04,212 - DEBUG - Response for deleting network () 2025-08-04 02:59:04,212 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/95280a72-7a94-4172-b6b1-a1c343d6c388 2025-08-04 02:59:04,221 - DEBUG - Response Code: 404 2025-08-04 02:59:04,221 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-04 02:59:04,230 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8d00e278-1e00-4abc-a644-cc23d080d5d1 2025-08-04 02:59:04,244 - DEBUG - Requesting: http://10.0.0.27:8082/project/cea344c2-fb01-4297-bdf8-736af0fb8727 2025-08-04 02:59:04,373 - INFO - Validated that VN ctest-vn4-89970156 is not found in API Server 2025-08-04 02:59:04,387 - DEBUG - VN ctest-vn4-89970156 is not present in Agent 10.0.0.41 2025-08-04 02:59:04,399 - DEBUG - VN ctest-vn4-89970156 is not present in Agent 10.0.0.57 2025-08-04 02:59:04,399 - INFO - Validated that VN ctest-vn4-89970156 is not in any agent 2025-08-04 02:59:04,441 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-89970156 info 2025-08-04 02:59:04,489 - INFO - Deleted policy ctest-policy1-01303366 2025-08-04 02:59:04,692 - DEBUG - policy ctest-policy1-01303366 is not found in API Server 2025-08-04 02:59:05,972 - DEBUG - No XMPP flaps were noticed during the test