2025-08-07 02:49:30,402 - INFO - Domain Default found not creating 2025-08-07 02:49:30,557 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74769546 not found, creating it 2025-08-07 02:49:31,140 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74769546, ID : 6e4184b2-981f-41c8-85b3-77dc4870804e 2025-08-07 02:49:32,608 - INFO - ================================================================================ 2025-08-07 02:49:32,608 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-07 02:49:33,926 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0', '10.20.0.25': '0'}, '10.0.0.61': {'10.20.0.17': '0', '10.20.0.25': '0'}} with 2025-08-07 02:49:33,926 - INFO - Initial checks done. Running the testcase now 2025-08-07 02:49:33,927 - INFO - 2025-08-07 02:49:33,927 - INFO - ================================================================================ 2025-08-07 02:49:33,927 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-07 02:49:33,927 - 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-07 02:49:35,236 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0', '10.20.0.25': '0'}, '10.0.0.61': {'10.20.0.17': '0', '10.20.0.25': '0'}} with 2025-08-07 02:49:35,236 - INFO - Initial checks done. Running the testcase now 2025-08-07 02:49:35,236 - INFO - 2025-08-07 02:49:35,609 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74769546:ctest-vn4-77019298, 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-74769546:ctest-vn4-77019298, 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-74769546:ctest-vn4-77019298, 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-74769546:ctest-vn4-77019298, 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-07 02:49:36,330 - DEBUG - Response for create_network : {'network': {'id': 'e7fa7d8b-a0b6-41b6-9645-4af1e706c20b', 'name': 'ctest-vn4-77019298', 'tenant_id': '6e4184b2981f41c885b377dc4870804e', 'project_id': '6e4184b2981f41c885b377dc4870804e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74769546', 'ctest-vn4-77019298'], 'port_security_enabled': True, 'description': ''}} 2025-08-07 02:49:36,631 - DEBUG - Response for create_subnet : {'subnet': {'id': '05888198-d2f2-4173-9a49-5f692037ee58', 'name': '', 'tenant_id': '6e4184b2981f41c885b377dc4870804e', 'network_id': 'e7fa7d8b-a0b6-41b6-9645-4af1e706c20b', 'ip_version': 4, 'cidr': '167.254.249.0/26', 'allocation_pools': [{'start': '167.254.249.2', 'end': '167.254.249.62'}], 'gateway_ip': '167.254.249.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.254.249.2', 'tags': [], 'project_id': '6e4184b2981f41c885b377dc4870804e'}} 2025-08-07 02:49:36,888 - DEBUG - Response for create_subnet : {'subnet': {'id': '523d1c79-c695-40db-8c6f-730dd8f33822', 'name': '', 'tenant_id': '6e4184b2981f41c885b377dc4870804e', 'network_id': 'e7fa7d8b-a0b6-41b6-9645-4af1e706c20b', 'ip_version': 6, 'cidr': '2296:666a:515a:1e06:ffb1:6ce2::/96', 'allocation_pools': [{'start': '2296:666a:515a:1e06:ffb1:6ce2:0:2', 'end': '2296:666a:515a:1e06:ffb1:6ce2:ffff:fffe'}], 'gateway_ip': '2296:666a:515a:1e06:ffb1:6ce2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2296:666a:515a:1e06:ffb1:6ce2:0:2', 'tags': [], 'project_id': '6e4184b2981f41c885b377dc4870804e'}} 2025-08-07 02:49:36,920 - INFO - Created VN ctest-vn4-77019298 2025-08-07 02:49:36,940 - DEBUG - VN ctest-vn4-77019298 UUID is e7fa7d8b-a0b6-41b6-9645-4af1e706c20b 2025-08-07 02:49:37,220 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e7fa7d8b-a0b6-41b6-9645-4af1e706c20b', 'name': 'ctest-vn4-77019298', 'tenant_id': '6e4184b2981f41c885b377dc4870804e', 'project_id': '6e4184b2981f41c885b377dc4870804e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['05888198-d2f2-4173-9a49-5f692037ee58', '523d1c79-c695-40db-8c6f-730dd8f33822'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74769546', 'ctest-vn4-77019298'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74769546', 'ctest-policy1-03674804']], 'subnet_ipam': [{'subnet_cidr': '167.254.249.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2296:666a:515a:1e06:ffb1:6ce2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-07 02:49:37,335 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-07 02:49:37,644 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-07 02:49:37,679 - DEBUG - Requesting: http://10.0.0.56:8082/domain/fb2d80da-9971-40dc-80ca-c5bb54e98569 2025-08-07 02:49:37,699 - DEBUG - Requesting: http://10.0.0.56:8082/project/6e4184b2-981f-41c8-85b3-77dc4870804e 2025-08-07 02:49:37,795 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e7fa7d8b-a0b6-41b6-9645-4af1e706c20b 2025-08-07 02:49:37,814 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e7fa7d8b-a0b6-41b6-9645-4af1e706c20b 2025-08-07 02:49:37,827 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/7d6cec23-b31e-4be9-b732-8f64921c2902 2025-08-07 02:49:37,837 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/7d6cec23-b31e-4be9-b732-8f64921c2902 2025-08-07 02:49:37,847 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/ec0cb4c3-25f3-4f3d-92af-e346e3d34fac 2025-08-07 02:49:37,857 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 02:49:37,858 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e7fa7d8b-a0b6-41b6-9645-4af1e706c20b 2025-08-07 02:49:37,872 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/7d6cec23-b31e-4be9-b732-8f64921c2902 2025-08-07 02:49:37,907 - INFO - Verified VN network id 12 for VN e7fa7d8b-a0b6-41b6-9645-4af1e706c20b 2025-08-07 02:49:37,907 - INFO - Verifications in API Server for VN ctest-vn4-77019298 passed 2025-08-07 02:49:37,907 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e7fa7d8b-a0b6-41b6-9645-4af1e706c20b 2025-08-07 02:49:37,926 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/7d6cec23-b31e-4be9-b732-8f64921c2902 2025-08-07 02:49:37,939 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/7d6cec23-b31e-4be9-b732-8f64921c2902 2025-08-07 02:49:37,948 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/ec0cb4c3-25f3-4f3d-92af-e346e3d34fac 2025-08-07 02:49:37,967 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74769546:ctest-vn4-77019298', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74769546', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16715811005589242294', 'uuid-lslong': '10828143281905779211'}, 'enable': 'true', 'created': '2025-08-07T02:49:36', 'last-modified': '2025-08-07T02:49:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.808629'} 2025-08-07 02:49:37,977 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 02:49:37,984 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74769546:ctest-vn4-77019298', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74769546', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16715811005589242294', 'uuid-lslong': '10828143281905779211'}, 'enable': 'true', 'created': '2025-08-07T02:49:36', 'last-modified': '2025-08-07T02:49:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.827207'} 2025-08-07 02:49:37,995 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 02:49:38,003 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74769546:ctest-vn4-77019298', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74769546', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16715811005589242294', 'uuid-lslong': '10828143281905779211'}, 'enable': 'true', 'created': '2025-08-07T02:49:36', 'last-modified': '2025-08-07T02:49:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.846145'} 2025-08-07 02:49:38,011 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-07 02:49:38,012 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-77019298 passed 2025-08-07 02:49:38,012 - DEBUG - ====Verifying policy data for ctest-vn4-77019298 in API_Server ====== 2025-08-07 02:49:38,012 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-07 02:49:38,020 - DEBUG - Requesting: http://10.0.0.56:8082/domain/fb2d80da-9971-40dc-80ca-c5bb54e98569 2025-08-07 02:49:38,036 - DEBUG - Requesting: http://10.0.0.56:8082/project/6e4184b2-981f-41c8-85b3-77dc4870804e 2025-08-07 02:49:38,148 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/e7fa7d8b-a0b6-41b6-9645-4af1e706c20b 2025-08-07 02:49:38,161 - DEBUG - ==>Verifying data for policy with id: 0cb4406e-25f8-4eef-9832-cb322356717f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74769546', 'ctest-policy1-03674804'] 2025-08-07 02:49:38,161 - INFO - VN ctest-vn4-77019298 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-07 02:49:38,162 - DEBUG - Verifying the vn in opserver 2025-08-07 02:49:38,162 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74769546:ctest-vn4-77019298 virtual network link through opserver 10.0.0.56 2025-08-07 02:49:38,162 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-08-07 02:49:38,495 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-08-07 02:49:38,562 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74769546:ctest-vn4-77019298', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74769546:ctest-vn4-77019298?flat'} 2025-08-07 02:49:38,562 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74769546:ctest-vn4-77019298 virtual network link through opserver 10.0.0.130 2025-08-07 02:49:38,563 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-08-07 02:49:38,860 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-08-07 02:49:38,927 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74769546:ctest-vn4-77019298', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74769546:ctest-vn4-77019298?flat'} 2025-08-07 02:49:38,927 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74769546:ctest-vn4-77019298 virtual network link through opserver 10.0.0.249 2025-08-07 02:49:38,927 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-07 02:49:39,234 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-07 02:49:39,312 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74769546:ctest-vn4-77019298', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74769546:ctest-vn4-77019298?flat'} 2025-08-07 02:49:39,312 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74769546:ctest-vn4-77019298 is found in opserver 2025-08-07 02:49:39,344 - DEBUG - Do not have enough data to verify VN in agent 2025-08-07 02:49:39,358 - DEBUG - VRF ids for VN ctest-vn4-77019298: {} 2025-08-07 02:49:39,358 - DEBUG - ====Verifying data for ctest-policy1-03674804 in API_Server ====== 2025-08-07 02:49:39,358 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-07 02:49:39,365 - DEBUG - Requesting: http://10.0.0.56:8082/domain/fb2d80da-9971-40dc-80ca-c5bb54e98569 2025-08-07 02:49:39,379 - DEBUG - Requesting: http://10.0.0.56:8082/project/6e4184b2-981f-41c8-85b3-77dc4870804e 2025-08-07 02:49:39,487 - DEBUG - Requesting: http://10.0.0.56:8082/network-policy/0cb4406e-25f8-4eef-9832-cb322356717f 2025-08-07 02:49:39,504 - INFO - Verified policy ctest-policy1-03674804 in API Server, Result: True 2025-08-07 02:49:39,504 - INFO - Done with setup and verification, moving onto test .. 2025-08-07 02:49:39,518 - INFO - Deleting VN ctest-vn4-77019298 2025-08-07 02:49:39,773 - DEBUG - Response for deleting network () 2025-08-07 02:49:39,773 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/7d6cec23-b31e-4be9-b732-8f64921c2902 2025-08-07 02:49:39,782 - DEBUG - Response Code: 404 2025-08-07 02:49:39,783 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-07 02:49:39,791 - DEBUG - Requesting: http://10.0.0.56:8082/domain/fb2d80da-9971-40dc-80ca-c5bb54e98569 2025-08-07 02:49:39,806 - DEBUG - Requesting: http://10.0.0.56:8082/project/6e4184b2-981f-41c8-85b3-77dc4870804e 2025-08-07 02:49:39,912 - INFO - Validated that VN ctest-vn4-77019298 is not found in API Server 2025-08-07 02:49:39,926 - DEBUG - VN ctest-vn4-77019298 is not present in Agent 10.0.0.41 2025-08-07 02:49:39,942 - DEBUG - VN ctest-vn4-77019298 is not present in Agent 10.0.0.61 2025-08-07 02:49:39,942 - INFO - Validated that VN ctest-vn4-77019298 is not in any agent 2025-08-07 02:49:39,990 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-77019298 info 2025-08-07 02:49:40,049 - INFO - Deleted policy ctest-policy1-03674804 2025-08-07 02:49:40,262 - DEBUG - policy ctest-policy1-03674804 is not found in API Server 2025-08-07 02:49:41,548 - DEBUG - No XMPP flaps were noticed during the test