2025-09-11 15:38:06,723 - INFO - Domain Default found not creating 2025-09-11 15:38:06,881 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-57487508 not found, creating it 2025-09-11 15:38:07,342 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-57487508, ID : 4bae4470-6087-4c14-bf26-64cc89864041 2025-09-11 15:38:08,798 - INFO - ================================================================================ 2025-09-11 15:38:08,798 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 15:38:09,056 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-11 15:38:09,056 - INFO - Initial checks done. Running the testcase now 2025-09-11 15:38:09,056 - INFO - 2025-09-11 15:38:09,056 - INFO - ================================================================================ 2025-09-11 15:38:09,056 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 15:38:09,056 - 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-09-11 15:38:09,343 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-11 15:38:09,343 - INFO - Initial checks done. Running the testcase now 2025-09-11 15:38:09,343 - INFO - 2025-09-11 15:38:09,734 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57487508:ctest-vn4-20190674, 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-57487508:ctest-vn4-20190674, 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-57487508:ctest-vn4-20190674, 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-57487508:ctest-vn4-20190674, 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-09-11 15:38:10,241 - DEBUG - Response for create_network : {'network': {'id': '5df908a3-f2cc-401d-a3fd-1d7d19d5ee32', 'name': 'ctest-vn4-20190674', 'tenant_id': '4bae447060874c14bf2664cc89864041', 'project_id': '4bae447060874c14bf2664cc89864041', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57487508', 'ctest-vn4-20190674'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 15:38:10,598 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b55d94e9-e037-46c4-9392-7be0d327387a', 'name': '', 'tenant_id': '4bae447060874c14bf2664cc89864041', 'network_id': '5df908a3-f2cc-401d-a3fd-1d7d19d5ee32', 'ip_version': 4, 'cidr': '35.235.6.128/26', 'allocation_pools': [{'start': '35.235.6.130', 'end': '35.235.6.190'}], 'gateway_ip': '35.235.6.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.235.6.130', 'tags': [], 'project_id': '4bae447060874c14bf2664cc89864041'}} 2025-09-11 15:38:11,112 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f237c0f-ccaf-4da2-a444-a6c9ac2210aa', 'name': '', 'tenant_id': '4bae447060874c14bf2664cc89864041', 'network_id': '5df908a3-f2cc-401d-a3fd-1d7d19d5ee32', 'ip_version': 6, 'cidr': '2e3b:beef:3e2f:582b:33bc:a522::/96', 'allocation_pools': [{'start': '2e3b:beef:3e2f:582b:33bc:a522:0:2', 'end': '2e3b:beef:3e2f:582b:33bc:a522:ffff:fffe'}], 'gateway_ip': '2e3b:beef:3e2f:582b:33bc:a522:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e3b:beef:3e2f:582b:33bc:a522:0:2', 'tags': [], 'project_id': '4bae447060874c14bf2664cc89864041'}} 2025-09-11 15:38:11,142 - INFO - Created VN ctest-vn4-20190674 2025-09-11 15:38:11,198 - DEBUG - VN ctest-vn4-20190674 UUID is 5df908a3-f2cc-401d-a3fd-1d7d19d5ee32 2025-09-11 15:38:11,407 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5df908a3-f2cc-401d-a3fd-1d7d19d5ee32', 'name': 'ctest-vn4-20190674', 'tenant_id': '4bae447060874c14bf2664cc89864041', 'project_id': '4bae447060874c14bf2664cc89864041', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b55d94e9-e037-46c4-9392-7be0d327387a', '5f237c0f-ccaf-4da2-a444-a6c9ac2210aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57487508', 'ctest-vn4-20190674'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57487508', 'ctest-policy1-72602051']], 'subnet_ipam': [{'subnet_cidr': '35.235.6.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e3b:beef:3e2f:582b:33bc:a522::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-11 15:38:11,567 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 15:38:11,863 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 15:38:11,893 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b51e17f8-b020-45bc-89db-83df02a5b2c7 2025-09-11 15:38:11,907 - DEBUG - Requesting: http://10.0.0.254:8082/project/4bae4470-6087-4c14-bf26-64cc89864041 2025-09-11 15:38:11,982 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5df908a3-f2cc-401d-a3fd-1d7d19d5ee32 2025-09-11 15:38:11,996 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5df908a3-f2cc-401d-a3fd-1d7d19d5ee32 2025-09-11 15:38:12,006 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e66a7e61-8fbb-452b-8e15-80f89fd98a81 2025-09-11 15:38:12,016 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e66a7e61-8fbb-452b-8e15-80f89fd98a81 2025-09-11 15:38:12,025 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f7feb847-0867-4d92-b849-e27a2e2a531f 2025-09-11 15:38:12,032 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 15:38:12,032 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5df908a3-f2cc-401d-a3fd-1d7d19d5ee32 2025-09-11 15:38:12,044 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e66a7e61-8fbb-452b-8e15-80f89fd98a81 2025-09-11 15:38:12,058 - INFO - Verified VN network id 11 for VN 5df908a3-f2cc-401d-a3fd-1d7d19d5ee32 2025-09-11 15:38:12,058 - INFO - Verifications in API Server for VN ctest-vn4-20190674 passed 2025-09-11 15:38:12,058 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5df908a3-f2cc-401d-a3fd-1d7d19d5ee32 2025-09-11 15:38:12,068 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e66a7e61-8fbb-452b-8e15-80f89fd98a81 2025-09-11 15:38:12,076 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e66a7e61-8fbb-452b-8e15-80f89fd98a81 2025-09-11 15:38:12,084 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f7feb847-0867-4d92-b849-e27a2e2a531f 2025-09-11 15:38:12,100 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57487508:ctest-vn4-20190674', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-57487508', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6771453014974414877', 'uuid-lslong': '11816633420431617586'}, 'enable': 'true', 'created': '2025-09-11T15:38:10', 'last-modified': '2025-09-11T15:38:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.718588'} 2025-09-11 15:38:12,108 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 15:38:12,108 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-20190674 passed 2025-09-11 15:38:12,108 - DEBUG - ====Verifying policy data for ctest-vn4-20190674 in API_Server ====== 2025-09-11 15:38:12,108 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 15:38:12,114 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b51e17f8-b020-45bc-89db-83df02a5b2c7 2025-09-11 15:38:12,125 - DEBUG - Requesting: http://10.0.0.254:8082/project/4bae4470-6087-4c14-bf26-64cc89864041 2025-09-11 15:38:12,195 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5df908a3-f2cc-401d-a3fd-1d7d19d5ee32 2025-09-11 15:38:12,204 - DEBUG - ==>Verifying data for policy with id: d02bf555-95ca-4b6a-9393-5af8b8c8c820, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57487508', 'ctest-policy1-72602051'] 2025-09-11 15:38:12,205 - INFO - VN ctest-vn4-20190674 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-11 15:38:12,205 - DEBUG - Verifying the vn in opserver 2025-09-11 15:38:12,205 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57487508:ctest-vn4-20190674 virtual network link through opserver 10.0.0.254 2025-09-11 15:38:12,205 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-11 15:38:12,511 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-11 15:38:12,575 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57487508:ctest-vn4-20190674', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57487508:ctest-vn4-20190674?flat'} 2025-09-11 15:38:12,575 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57487508:ctest-vn4-20190674 is found in opserver 2025-09-11 15:38:12,584 - DEBUG - Do not have enough data to verify VN in agent 2025-09-11 15:38:12,589 - DEBUG - VRF ids for VN ctest-vn4-20190674: {} 2025-09-11 15:38:12,589 - DEBUG - ====Verifying data for ctest-policy1-72602051 in API_Server ====== 2025-09-11 15:38:12,589 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 15:38:12,595 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b51e17f8-b020-45bc-89db-83df02a5b2c7 2025-09-11 15:38:12,604 - DEBUG - Requesting: http://10.0.0.254:8082/project/4bae4470-6087-4c14-bf26-64cc89864041 2025-09-11 15:38:12,674 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/d02bf555-95ca-4b6a-9393-5af8b8c8c820 2025-09-11 15:38:12,684 - INFO - Verified policy ctest-policy1-72602051 in API Server, Result: True 2025-09-11 15:38:12,685 - INFO - Done with setup and verification, moving onto test .. 2025-09-11 15:38:12,694 - INFO - Deleting VN ctest-vn4-20190674 2025-09-11 15:38:12,829 - DEBUG - Response for deleting network () 2025-09-11 15:38:12,829 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e66a7e61-8fbb-452b-8e15-80f89fd98a81 2025-09-11 15:38:12,835 - DEBUG - Response Code: 404 2025-09-11 15:38:12,835 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-11 15:38:12,841 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b51e17f8-b020-45bc-89db-83df02a5b2c7 2025-09-11 15:38:12,895 - DEBUG - Requesting: http://10.0.0.254:8082/project/4bae4470-6087-4c14-bf26-64cc89864041 2025-09-11 15:38:12,962 - INFO - Validated that VN ctest-vn4-20190674 is not found in API Server 2025-09-11 15:38:12,972 - DEBUG - VN ctest-vn4-20190674 is not present in Agent 10.0.0.254 2025-09-11 15:38:12,972 - INFO - Validated that VN ctest-vn4-20190674 is not in any agent 2025-09-11 15:38:12,986 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-20190674 info 2025-09-11 15:38:13,007 - INFO - Deleted policy ctest-policy1-72602051 2025-09-11 15:38:13,174 - DEBUG - policy ctest-policy1-72602051 is not found in API Server 2025-09-11 15:38:13,431 - DEBUG - No XMPP flaps were noticed during the test
2025-09-11 15:38:13,431 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-11 15:38:13,431 - INFO - -------------------------------------------------------------------------------- 2025-09-11 15:38:13,734 - DEBUG - No XMPP flaps were noticed during the test
2025-09-11 15:38:13,734 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-09-11 15:38:13,734 - INFO - -------------------------------------------------------------------------------- 2025-09-11 15:38:14,419 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-57487508, ID : 4bae4470-6087-4c14-bf26-64cc89864041