2025-08-10 21:03:08,729 - INFO - Domain Default found not creating 2025-08-10 21:03:08,843 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-04588924 not found, creating it 2025-08-10 21:03:09,380 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-04588924, ID : bf355438-df07-48b8-a1bd-80d20ae33ac0 2025-08-10 21:03:10,665 - INFO - ================================================================================ 2025-08-10 21:03:10,665 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-10 21:03:11,911 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.50': {'10.20.0.25': '0', '10.20.0.17': '0'}} with 2025-08-10 21:03:11,911 - INFO - Initial checks done. Running the testcase now 2025-08-10 21:03:11,911 - INFO - 2025-08-10 21:03:11,912 - INFO - ================================================================================ 2025-08-10 21:03:11,912 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-10 21:03:11,912 - 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-10 21:03:13,162 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.50': {'10.20.0.25': '0', '10.20.0.17': '0'}} with 2025-08-10 21:03:13,162 - INFO - Initial checks done. Running the testcase now 2025-08-10 21:03:13,162 - INFO - 2025-08-10 21:03:13,501 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04588924:ctest-vn4-04488961, 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-04588924:ctest-vn4-04488961, 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-04588924:ctest-vn4-04488961, 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-04588924:ctest-vn4-04488961, 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-10 21:03:14,013 - DEBUG - Response for create_network : {'network': {'id': '7d7ed5a4-cdec-4aa6-be05-b4e11ccbe463', 'name': 'ctest-vn4-04488961', 'tenant_id': 'bf355438df0748b8a1bd80d20ae33ac0', 'project_id': 'bf355438df0748b8a1bd80d20ae33ac0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04588924', 'ctest-vn4-04488961'], 'port_security_enabled': True, 'description': ''}} 2025-08-10 21:03:14,283 - DEBUG - Response for create_subnet : {'subnet': {'id': '322b9e69-0787-45e7-ab0b-10feee93d77e', 'name': '', 'tenant_id': 'bf355438df0748b8a1bd80d20ae33ac0', 'network_id': '7d7ed5a4-cdec-4aa6-be05-b4e11ccbe463', 'ip_version': 4, 'cidr': '77.237.220.64/26', 'allocation_pools': [{'start': '77.237.220.66', 'end': '77.237.220.126'}], 'gateway_ip': '77.237.220.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.237.220.66', 'tags': [], 'project_id': 'bf355438df0748b8a1bd80d20ae33ac0'}} 2025-08-10 21:03:14,494 - DEBUG - Response for create_subnet : {'subnet': {'id': '9233564d-04e8-4e3c-91cd-b4d09571e079', 'name': '', 'tenant_id': 'bf355438df0748b8a1bd80d20ae33ac0', 'network_id': '7d7ed5a4-cdec-4aa6-be05-b4e11ccbe463', 'ip_version': 6, 'cidr': '2d2d:df04:d848:9c3a:cf38:9448::/96', 'allocation_pools': [{'start': '2d2d:df04:d848:9c3a:cf38:9448:0:2', 'end': '2d2d:df04:d848:9c3a:cf38:9448:ffff:fffe'}], 'gateway_ip': '2d2d:df04:d848:9c3a:cf38:9448:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d2d:df04:d848:9c3a:cf38:9448:0:2', 'tags': [], 'project_id': 'bf355438df0748b8a1bd80d20ae33ac0'}} 2025-08-10 21:03:14,518 - INFO - Created VN ctest-vn4-04488961 2025-08-10 21:03:14,532 - DEBUG - VN ctest-vn4-04488961 UUID is 7d7ed5a4-cdec-4aa6-be05-b4e11ccbe463 2025-08-10 21:03:14,723 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7d7ed5a4-cdec-4aa6-be05-b4e11ccbe463', 'name': 'ctest-vn4-04488961', 'tenant_id': 'bf355438df0748b8a1bd80d20ae33ac0', 'project_id': 'bf355438df0748b8a1bd80d20ae33ac0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['322b9e69-0787-45e7-ab0b-10feee93d77e', '9233564d-04e8-4e3c-91cd-b4d09571e079'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04588924', 'ctest-vn4-04488961'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04588924', 'ctest-policy1-48888391']], 'subnet_ipam': [{'subnet_cidr': '77.237.220.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d2d:df04:d848:9c3a:cf38:9448::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-10 21:03:14,802 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-10 21:03:15,097 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-10 21:03:15,124 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f4633f28-8e52-4cb4-8182-938022088c32 2025-08-10 21:03:15,140 - DEBUG - Requesting: http://10.0.0.48:8082/project/bf355438-df07-48b8-a1bd-80d20ae33ac0 2025-08-10 21:03:15,237 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/7d7ed5a4-cdec-4aa6-be05-b4e11ccbe463 2025-08-10 21:03:15,252 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/7d7ed5a4-cdec-4aa6-be05-b4e11ccbe463 2025-08-10 21:03:15,263 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2402f691-dcf5-4345-946b-c208af5cf1c8 2025-08-10 21:03:15,271 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2402f691-dcf5-4345-946b-c208af5cf1c8 2025-08-10 21:03:15,279 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/2f9a4656-de65-4096-ace7-48daa1233d14 2025-08-10 21:03:15,285 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 21:03:15,285 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/7d7ed5a4-cdec-4aa6-be05-b4e11ccbe463 2025-08-10 21:03:15,296 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2402f691-dcf5-4345-946b-c208af5cf1c8 2025-08-10 21:03:15,312 - INFO - Verified VN network id 11 for VN 7d7ed5a4-cdec-4aa6-be05-b4e11ccbe463 2025-08-10 21:03:15,312 - INFO - Verifications in API Server for VN ctest-vn4-04488961 passed 2025-08-10 21:03:15,312 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/7d7ed5a4-cdec-4aa6-be05-b4e11ccbe463 2025-08-10 21:03:15,324 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2402f691-dcf5-4345-946b-c208af5cf1c8 2025-08-10 21:03:15,331 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2402f691-dcf5-4345-946b-c208af5cf1c8 2025-08-10 21:03:15,338 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/2f9a4656-de65-4096-ace7-48daa1233d14 2025-08-10 21:03:15,351 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04588924:ctest-vn4-04488961', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04588924', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9042900005612702374', 'uuid-lslong': '13692549121033626723'}, 'enable': 'true', 'created': '2025-08-10T21:03:13', 'last-modified': '2025-08-10T21:03:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.674142'} 2025-08-10 21:03:15,357 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 21:03:15,362 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04588924:ctest-vn4-04488961', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04588924', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9042900005612702374', 'uuid-lslong': '13692549121033626723'}, 'enable': 'true', 'created': '2025-08-10T21:03:13', 'last-modified': '2025-08-10T21:03:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.687581'} 2025-08-10 21:03:15,368 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 21:03:15,373 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04588924:ctest-vn4-04488961', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04588924', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9042900005612702374', 'uuid-lslong': '13692549121033626723'}, 'enable': 'true', 'created': '2025-08-10T21:03:13', 'last-modified': '2025-08-10T21:03:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.696982'} 2025-08-10 21:03:15,379 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 21:03:15,379 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-04488961 passed 2025-08-10 21:03:15,380 - DEBUG - ====Verifying policy data for ctest-vn4-04488961 in API_Server ====== 2025-08-10 21:03:15,380 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-10 21:03:15,385 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f4633f28-8e52-4cb4-8182-938022088c32 2025-08-10 21:03:15,399 - DEBUG - Requesting: http://10.0.0.48:8082/project/bf355438-df07-48b8-a1bd-80d20ae33ac0 2025-08-10 21:03:15,486 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/7d7ed5a4-cdec-4aa6-be05-b4e11ccbe463 2025-08-10 21:03:15,496 - DEBUG - ==>Verifying data for policy with id: c6f562de-a91e-4fa3-9f4c-0a4de0682a78, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04588924', 'ctest-policy1-48888391'] 2025-08-10 21:03:15,496 - INFO - VN ctest-vn4-04488961 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-10 21:03:15,496 - DEBUG - Verifying the vn in opserver 2025-08-10 21:03:15,496 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04588924:ctest-vn4-04488961 virtual network link through opserver 10.0.0.48 2025-08-10 21:03:15,496 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-10 21:03:15,786 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-10 21:03:15,840 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04588924:ctest-vn4-04488961', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04588924:ctest-vn4-04488961?flat'} 2025-08-10 21:03:15,840 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04588924:ctest-vn4-04488961 virtual network link through opserver 10.0.0.38 2025-08-10 21:03:15,840 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-10 21:03:16,126 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-10 21:03:16,178 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04588924:ctest-vn4-04488961', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04588924:ctest-vn4-04488961?flat'} 2025-08-10 21:03:16,178 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04588924:ctest-vn4-04488961 virtual network link through opserver 10.0.0.49 2025-08-10 21:03:16,178 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-10 21:03:16,470 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-10 21:03:16,523 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04588924:ctest-vn4-04488961', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04588924:ctest-vn4-04488961?flat'} 2025-08-10 21:03:16,523 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04588924:ctest-vn4-04488961 is found in opserver 2025-08-10 21:03:16,544 - DEBUG - Do not have enough data to verify VN in agent 2025-08-10 21:03:16,553 - DEBUG - VRF ids for VN ctest-vn4-04488961: {} 2025-08-10 21:03:16,553 - DEBUG - ====Verifying data for ctest-policy1-48888391 in API_Server ====== 2025-08-10 21:03:16,553 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-10 21:03:16,560 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f4633f28-8e52-4cb4-8182-938022088c32 2025-08-10 21:03:16,571 - DEBUG - Requesting: http://10.0.0.48:8082/project/bf355438-df07-48b8-a1bd-80d20ae33ac0 2025-08-10 21:03:16,668 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/c6f562de-a91e-4fa3-9f4c-0a4de0682a78 2025-08-10 21:03:16,677 - INFO - Verified policy ctest-policy1-48888391 in API Server, Result: True 2025-08-10 21:03:16,677 - INFO - Done with setup and verification, moving onto test .. 2025-08-10 21:03:16,686 - INFO - Deleting VN ctest-vn4-04488961 2025-08-10 21:03:16,856 - DEBUG - Response for deleting network () 2025-08-10 21:03:16,856 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2402f691-dcf5-4345-946b-c208af5cf1c8 2025-08-10 21:03:16,863 - DEBUG - Response Code: 404 2025-08-10 21:03:16,863 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-10 21:03:16,875 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f4633f28-8e52-4cb4-8182-938022088c32 2025-08-10 21:03:16,928 - DEBUG - Requesting: http://10.0.0.48:8082/project/bf355438-df07-48b8-a1bd-80d20ae33ac0 2025-08-10 21:03:17,046 - INFO - Validated that VN ctest-vn4-04488961 is not found in API Server 2025-08-10 21:03:17,058 - DEBUG - VN ctest-vn4-04488961 is not present in Agent 10.0.0.254 2025-08-10 21:03:17,068 - DEBUG - VN ctest-vn4-04488961 is not present in Agent 10.0.0.50 2025-08-10 21:03:17,068 - INFO - Validated that VN ctest-vn4-04488961 is not in any agent 2025-08-10 21:03:17,098 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-04488961 info 2025-08-10 21:03:17,138 - INFO - Deleted policy ctest-policy1-48888391 2025-08-10 21:03:17,328 - DEBUG - policy ctest-policy1-48888391 is not found in API Server 2025-08-10 21:03:18,582 - DEBUG - No XMPP flaps were noticed during the test
2025-08-10 21:03:18,582 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2025-08-10 21:03:18,582 - INFO - -------------------------------------------------------------------------------- 2025-08-10 21:03:19,823 - DEBUG - No XMPP flaps were noticed during the test
2025-08-10 21:03:19,823 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09]
2025-08-10 21:03:19,823 - INFO - -------------------------------------------------------------------------------- 2025-08-10 21:03:20,496 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-04588924, ID : bf355438-df07-48b8-a1bd-80d20ae33ac0