2025-08-20 13:39:02,437 - INFO - Domain Default found not creating 2025-08-20 13:39:02,563 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-15335391 not found, creating it 2025-08-20 13:39:02,988 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-15335391, ID : 0beb953d-4b2e-44bf-9306-7fec90074016 2025-08-20 13:39:04,308 - INFO - ================================================================================ 2025-08-20 13:39:04,308 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 13:39:04,570 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with 2025-08-20 13:39:04,570 - INFO - Initial checks done. Running the testcase now 2025-08-20 13:39:04,570 - INFO - 2025-08-20 13:39:04,570 - INFO - ================================================================================ 2025-08-20 13:39:04,570 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 13:39:04,570 - 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-20 13:39:04,870 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with 2025-08-20 13:39:04,870 - INFO - Initial checks done. Running the testcase now 2025-08-20 13:39:04,870 - INFO - 2025-08-20 13:39:05,207 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15335391:ctest-vn4-20435933, 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-15335391:ctest-vn4-20435933, 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-15335391:ctest-vn4-20435933, 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-15335391:ctest-vn4-20435933, 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-20 13:39:05,717 - DEBUG - Response for create_network : {'network': {'id': 'c44e1888-f3f4-4624-aade-e5ca0d899ab0', 'name': 'ctest-vn4-20435933', 'tenant_id': '0beb953d4b2e44bf93067fec90074016', 'project_id': '0beb953d4b2e44bf93067fec90074016', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15335391', 'ctest-vn4-20435933'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 13:39:05,893 - DEBUG - Response for create_subnet : {'subnet': {'id': '3cc76f4c-1022-425f-abbb-7a8188077af6', 'name': '', 'tenant_id': '0beb953d4b2e44bf93067fec90074016', 'network_id': 'c44e1888-f3f4-4624-aade-e5ca0d899ab0', 'ip_version': 4, 'cidr': '93.249.213.192/26', 'allocation_pools': [{'start': '93.249.213.194', 'end': '93.249.213.254'}], 'gateway_ip': '93.249.213.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.249.213.194', 'tags': [], 'project_id': '0beb953d4b2e44bf93067fec90074016'}} 2025-08-20 13:39:06,037 - DEBUG - Response for create_subnet : {'subnet': {'id': '951668d7-4ea9-4f81-8708-972b22678d37', 'name': '', 'tenant_id': '0beb953d4b2e44bf93067fec90074016', 'network_id': 'c44e1888-f3f4-4624-aade-e5ca0d899ab0', 'ip_version': 6, 'cidr': '3a02:4750:8120:99be:a5bd:f7e4::/96', 'allocation_pools': [{'start': '3a02:4750:8120:99be:a5bd:f7e4:0:2', 'end': '3a02:4750:8120:99be:a5bd:f7e4:ffff:fffe'}], 'gateway_ip': '3a02:4750:8120:99be:a5bd:f7e4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a02:4750:8120:99be:a5bd:f7e4:0:2', 'tags': [], 'project_id': '0beb953d4b2e44bf93067fec90074016'}} 2025-08-20 13:39:06,055 - INFO - Created VN ctest-vn4-20435933 2025-08-20 13:39:06,109 - DEBUG - VN ctest-vn4-20435933 UUID is c44e1888-f3f4-4624-aade-e5ca0d899ab0 2025-08-20 13:39:06,297 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c44e1888-f3f4-4624-aade-e5ca0d899ab0', 'name': 'ctest-vn4-20435933', 'tenant_id': '0beb953d4b2e44bf93067fec90074016', 'project_id': '0beb953d4b2e44bf93067fec90074016', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3cc76f4c-1022-425f-abbb-7a8188077af6', '951668d7-4ea9-4f81-8708-972b22678d37'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15335391', 'ctest-vn4-20435933'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15335391', 'ctest-policy1-72220041']], 'subnet_ipam': [{'subnet_cidr': '93.249.213.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a02:4750:8120:99be:a5bd:f7e4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-20 13:39:06,457 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-08-20 13:39:06,744 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-08-20 13:39:06,769 - DEBUG - Requesting: http://10.0.0.41:8082/domain/b849a932-0c4e-4974-a36d-8a684b8ca868 2025-08-20 13:39:06,782 - DEBUG - Requesting: http://10.0.0.41:8082/project/0beb953d-4b2e-44bf-9306-7fec90074016 2025-08-20 13:39:06,851 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c44e1888-f3f4-4624-aade-e5ca0d899ab0 2025-08-20 13:39:06,864 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c44e1888-f3f4-4624-aade-e5ca0d899ab0 2025-08-20 13:39:06,874 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/35e9cdb0-b481-424c-83f3-9b0c5543859f 2025-08-20 13:39:06,881 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/35e9cdb0-b481-424c-83f3-9b0c5543859f 2025-08-20 13:39:06,887 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/05396ff9-a6c8-4256-b707-0f219e312f15 2025-08-20 13:39:06,892 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 13:39:06,892 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c44e1888-f3f4-4624-aade-e5ca0d899ab0 2025-08-20 13:39:06,903 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/35e9cdb0-b481-424c-83f3-9b0c5543859f 2025-08-20 13:39:06,918 - INFO - Verified VN network id 12 for VN c44e1888-f3f4-4624-aade-e5ca0d899ab0 2025-08-20 13:39:06,918 - INFO - Verifications in API Server for VN ctest-vn4-20435933 passed 2025-08-20 13:39:06,918 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c44e1888-f3f4-4624-aade-e5ca0d899ab0 2025-08-20 13:39:06,927 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/35e9cdb0-b481-424c-83f3-9b0c5543859f 2025-08-20 13:39:06,934 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/35e9cdb0-b481-424c-83f3-9b0c5543859f 2025-08-20 13:39:06,940 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/05396ff9-a6c8-4256-b707-0f219e312f15 2025-08-20 13:39:06,950 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15335391:ctest-vn4-20435933', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-15335391', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14145270456104797732', 'uuid-lslong': '12312531087250791088'}, 'enable': 'true', 'created': '2025-08-20T13:39:05', 'last-modified': '2025-08-20T13:39:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.687420'} 2025-08-20 13:39:06,958 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 13:39:06,958 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-20435933 passed 2025-08-20 13:39:06,958 - DEBUG - ====Verifying policy data for ctest-vn4-20435933 in API_Server ====== 2025-08-20 13:39:06,958 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-08-20 13:39:06,963 - DEBUG - Requesting: http://10.0.0.41:8082/domain/b849a932-0c4e-4974-a36d-8a684b8ca868 2025-08-20 13:39:06,973 - DEBUG - Requesting: http://10.0.0.41:8082/project/0beb953d-4b2e-44bf-9306-7fec90074016 2025-08-20 13:39:07,046 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c44e1888-f3f4-4624-aade-e5ca0d899ab0 2025-08-20 13:39:07,056 - DEBUG - ==>Verifying data for policy with id: 983bc842-885a-4955-bd16-0031dad1a009, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15335391', 'ctest-policy1-72220041'] 2025-08-20 13:39:07,056 - INFO - VN ctest-vn4-20435933 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-20 13:39:07,056 - DEBUG - Verifying the vn in opserver 2025-08-20 13:39:07,056 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15335391:ctest-vn4-20435933 virtual network link through opserver 10.0.0.41 2025-08-20 13:39:07,056 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-08-20 13:39:07,344 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-08-20 13:39:07,392 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15335391:ctest-vn4-20435933', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15335391:ctest-vn4-20435933?flat'} 2025-08-20 13:39:07,392 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15335391:ctest-vn4-20435933 is found in opserver 2025-08-20 13:39:07,402 - DEBUG - Do not have enough data to verify VN in agent 2025-08-20 13:39:07,407 - DEBUG - VRF ids for VN ctest-vn4-20435933: {} 2025-08-20 13:39:07,407 - DEBUG - ====Verifying data for ctest-policy1-72220041 in API_Server ====== 2025-08-20 13:39:07,407 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-08-20 13:39:07,412 - DEBUG - Requesting: http://10.0.0.41:8082/domain/b849a932-0c4e-4974-a36d-8a684b8ca868 2025-08-20 13:39:07,423 - DEBUG - Requesting: http://10.0.0.41:8082/project/0beb953d-4b2e-44bf-9306-7fec90074016 2025-08-20 13:39:07,490 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/983bc842-885a-4955-bd16-0031dad1a009 2025-08-20 13:39:07,499 - INFO - Verified policy ctest-policy1-72220041 in API Server, Result: True 2025-08-20 13:39:07,499 - INFO - Done with setup and verification, moving onto test .. 2025-08-20 13:39:07,506 - INFO - Deleting VN ctest-vn4-20435933 2025-08-20 13:39:07,613 - DEBUG - Response for deleting network () 2025-08-20 13:39:07,613 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/35e9cdb0-b481-424c-83f3-9b0c5543859f 2025-08-20 13:39:07,618 - DEBUG - Response Code: 404 2025-08-20 13:39:07,618 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-08-20 13:39:07,623 - DEBUG - Requesting: http://10.0.0.41:8082/domain/b849a932-0c4e-4974-a36d-8a684b8ca868 2025-08-20 13:39:07,678 - DEBUG - Requesting: http://10.0.0.41:8082/project/0beb953d-4b2e-44bf-9306-7fec90074016 2025-08-20 13:39:07,745 - INFO - Validated that VN ctest-vn4-20435933 is not found in API Server 2025-08-20 13:39:07,754 - DEBUG - VN ctest-vn4-20435933 is not present in Agent 10.0.0.41 2025-08-20 13:39:07,754 - INFO - Validated that VN ctest-vn4-20435933 is not in any agent 2025-08-20 13:39:07,769 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-20435933 info 2025-08-20 13:39:07,792 - INFO - Deleted policy ctest-policy1-72220041 2025-08-20 13:39:07,957 - DEBUG - policy ctest-policy1-72220041 is not found in API Server 2025-08-20 13:39:08,210 - DEBUG - No XMPP flaps were noticed during the test 2025-08-20 13:39:08,210 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-20 13:39:08,210 - INFO - -------------------------------------------------------------------------------- 2025-08-20 13:39:08,503 - DEBUG - No XMPP flaps were noticed during the test 2025-08-20 13:39:08,504 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-20 13:39:08,504 - INFO - -------------------------------------------------------------------------------- 2025-08-20 13:39:09,162 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-15335391, ID : 0beb953d-4b2e-44bf-9306-7fec90074016