2025-08-28 02:30:50,410 - INFO - Domain Default found not creating 2025-08-28 02:30:50,546 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-18745152 not found, creating it 2025-08-28 02:30:51,109 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-18745152, ID : 1b6ff659-1072-4021-bb7e-12e4fe99ce8f 2025-08-28 02:30:52,574 - INFO - ================================================================================ 2025-08-28 02:30:52,574 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-28 02:30:53,843 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0', '10.20.0.254': '0'}, '10.0.0.27': {'10.20.0.17': '0', '10.20.0.25': '0'}} with 2025-08-28 02:30:53,843 - INFO - Initial checks done. Running the testcase now 2025-08-28 02:30:53,843 - INFO - 2025-08-28 02:30:53,843 - INFO - ================================================================================ 2025-08-28 02:30:53,843 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-28 02:30:53,843 - 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-28 02:30:55,100 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0', '10.20.0.254': '0'}, '10.0.0.27': {'10.20.0.17': '0', '10.20.0.25': '0'}} with 2025-08-28 02:30:55,100 - INFO - Initial checks done. Running the testcase now 2025-08-28 02:30:55,100 - INFO - 2025-08-28 02:30:55,451 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18745152:ctest-vn4-00291639, 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-18745152:ctest-vn4-00291639, 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-18745152:ctest-vn4-00291639, 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-18745152:ctest-vn4-00291639, 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-28 02:30:56,025 - DEBUG - Response for create_network : {'network': {'id': '2c3cfcab-10e0-40c7-8cc5-0419975032a5', 'name': 'ctest-vn4-00291639', 'tenant_id': '1b6ff65910724021bb7e12e4fe99ce8f', 'project_id': '1b6ff65910724021bb7e12e4fe99ce8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18745152', 'ctest-vn4-00291639'], 'port_security_enabled': True, 'description': ''}} 2025-08-28 02:30:56,305 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3265bb8-cce6-4af6-8231-a58242e9e4a2', 'name': '', 'tenant_id': '1b6ff65910724021bb7e12e4fe99ce8f', 'network_id': '2c3cfcab-10e0-40c7-8cc5-0419975032a5', 'ip_version': 4, 'cidr': '11.120.224.128/26', 'allocation_pools': [{'start': '11.120.224.130', 'end': '11.120.224.190'}], 'gateway_ip': '11.120.224.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.120.224.130', 'tags': [], 'project_id': '1b6ff65910724021bb7e12e4fe99ce8f'}} 2025-08-28 02:30:56,488 - DEBUG - Response for create_subnet : {'subnet': {'id': '29b0f5c5-0d66-4671-9861-a0cffcc37199', 'name': '', 'tenant_id': '1b6ff65910724021bb7e12e4fe99ce8f', 'network_id': '2c3cfcab-10e0-40c7-8cc5-0419975032a5', 'ip_version': 6, 'cidr': '2dd8:41f1:f4d9:336d:cc67:d385::/96', 'allocation_pools': [{'start': '2dd8:41f1:f4d9:336d:cc67:d385:0:2', 'end': '2dd8:41f1:f4d9:336d:cc67:d385:ffff:fffe'}], 'gateway_ip': '2dd8:41f1:f4d9:336d:cc67:d385:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2dd8:41f1:f4d9:336d:cc67:d385:0:2', 'tags': [], 'project_id': '1b6ff65910724021bb7e12e4fe99ce8f'}} 2025-08-28 02:30:56,512 - INFO - Created VN ctest-vn4-00291639 2025-08-28 02:30:56,524 - DEBUG - VN ctest-vn4-00291639 UUID is 2c3cfcab-10e0-40c7-8cc5-0419975032a5 2025-08-28 02:30:56,733 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c3cfcab-10e0-40c7-8cc5-0419975032a5', 'name': 'ctest-vn4-00291639', 'tenant_id': '1b6ff65910724021bb7e12e4fe99ce8f', 'project_id': '1b6ff65910724021bb7e12e4fe99ce8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a3265bb8-cce6-4af6-8231-a58242e9e4a2', '29b0f5c5-0d66-4671-9861-a0cffcc37199'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18745152', 'ctest-vn4-00291639'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18745152', 'ctest-policy1-57319684']], 'subnet_ipam': [{'subnet_cidr': '11.120.224.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2dd8:41f1:f4d9:336d:cc67:d385::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-28 02:30:56,815 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-28 02:30:57,108 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-28 02:30:57,137 - DEBUG - Requesting: http://10.0.0.19:8082/domain/692c5a68-a199-4232-a07c-1cd4918de9d4 2025-08-28 02:30:57,152 - DEBUG - Requesting: http://10.0.0.19:8082/project/1b6ff659-1072-4021-bb7e-12e4fe99ce8f 2025-08-28 02:30:57,246 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2c3cfcab-10e0-40c7-8cc5-0419975032a5 2025-08-28 02:30:57,263 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2c3cfcab-10e0-40c7-8cc5-0419975032a5 2025-08-28 02:30:57,273 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/67c2dc2a-5290-4989-b027-4ebfb971aebc 2025-08-28 02:30:57,280 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/67c2dc2a-5290-4989-b027-4ebfb971aebc 2025-08-28 02:30:57,288 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/850d758d-5185-4458-88f1-b24bfd936519 2025-08-28 02:30:57,295 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 02:30:57,295 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2c3cfcab-10e0-40c7-8cc5-0419975032a5 2025-08-28 02:30:57,306 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/67c2dc2a-5290-4989-b027-4ebfb971aebc 2025-08-28 02:30:57,322 - INFO - Verified VN network id 12 for VN 2c3cfcab-10e0-40c7-8cc5-0419975032a5 2025-08-28 02:30:57,323 - INFO - Verifications in API Server for VN ctest-vn4-00291639 passed 2025-08-28 02:30:57,323 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2c3cfcab-10e0-40c7-8cc5-0419975032a5 2025-08-28 02:30:57,337 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/67c2dc2a-5290-4989-b027-4ebfb971aebc 2025-08-28 02:30:57,344 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/67c2dc2a-5290-4989-b027-4ebfb971aebc 2025-08-28 02:30:57,350 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/850d758d-5185-4458-88f1-b24bfd936519 2025-08-28 02:30:57,363 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18745152:ctest-vn4-00291639', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-18745152', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3187700447924207815', 'uuid-lslong': '10143518243681219237'}, 'enable': 'true', 'created': '2025-08-28T02:30:55', 'last-modified': '2025-08-28T02:30:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.676462'} 2025-08-28 02:30:57,368 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 02:30:57,373 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18745152:ctest-vn4-00291639', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-18745152', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3187700447924207815', 'uuid-lslong': '10143518243681219237'}, 'enable': 'true', 'created': '2025-08-28T02:30:55', 'last-modified': '2025-08-28T02:30:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.687356'} 2025-08-28 02:30:57,378 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 02:30:57,383 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18745152:ctest-vn4-00291639', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-18745152', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3187700447924207815', 'uuid-lslong': '10143518243681219237'}, 'enable': 'true', 'created': '2025-08-28T02:30:55', 'last-modified': '2025-08-28T02:30:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.697603'} 2025-08-28 02:30:57,389 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 02:30:57,389 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-00291639 passed 2025-08-28 02:30:57,389 - DEBUG - ====Verifying policy data for ctest-vn4-00291639 in API_Server ====== 2025-08-28 02:30:57,389 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-28 02:30:57,394 - DEBUG - Requesting: http://10.0.0.19:8082/domain/692c5a68-a199-4232-a07c-1cd4918de9d4 2025-08-28 02:30:57,404 - DEBUG - Requesting: http://10.0.0.19:8082/project/1b6ff659-1072-4021-bb7e-12e4fe99ce8f 2025-08-28 02:30:57,498 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2c3cfcab-10e0-40c7-8cc5-0419975032a5 2025-08-28 02:30:57,507 - DEBUG - ==>Verifying data for policy with id: d40f7e2b-e08a-4013-a172-4b90763f7a1f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18745152', 'ctest-policy1-57319684'] 2025-08-28 02:30:57,507 - INFO - VN ctest-vn4-00291639 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-28 02:30:57,507 - DEBUG - Verifying the vn in opserver 2025-08-28 02:30:57,507 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18745152:ctest-vn4-00291639 virtual network link through opserver 10.0.0.19 2025-08-28 02:30:57,507 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-28 02:30:57,804 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-28 02:30:57,868 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18745152:ctest-vn4-00291639', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18745152:ctest-vn4-00291639?flat'} 2025-08-28 02:30:57,868 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18745152:ctest-vn4-00291639 virtual network link through opserver 10.0.0.38 2025-08-28 02:30:57,868 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-28 02:30:58,160 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-28 02:30:58,222 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18745152:ctest-vn4-00291639', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18745152:ctest-vn4-00291639?flat'} 2025-08-28 02:30:58,222 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18745152:ctest-vn4-00291639 virtual network link through opserver 10.0.0.41 2025-08-28 02:30:58,222 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-08-28 02:30:58,559 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-08-28 02:30:58,612 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18745152:ctest-vn4-00291639', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18745152:ctest-vn4-00291639?flat'} 2025-08-28 02:30:58,612 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18745152:ctest-vn4-00291639 is found in opserver 2025-08-28 02:30:58,631 - DEBUG - Do not have enough data to verify VN in agent 2025-08-28 02:30:58,639 - DEBUG - VRF ids for VN ctest-vn4-00291639: {} 2025-08-28 02:30:58,639 - DEBUG - ====Verifying data for ctest-policy1-57319684 in API_Server ====== 2025-08-28 02:30:58,639 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-28 02:30:58,644 - DEBUG - Requesting: http://10.0.0.19:8082/domain/692c5a68-a199-4232-a07c-1cd4918de9d4 2025-08-28 02:30:58,655 - DEBUG - Requesting: http://10.0.0.19:8082/project/1b6ff659-1072-4021-bb7e-12e4fe99ce8f 2025-08-28 02:30:58,737 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/d40f7e2b-e08a-4013-a172-4b90763f7a1f 2025-08-28 02:30:58,750 - INFO - Verified policy ctest-policy1-57319684 in API Server, Result: True 2025-08-28 02:30:58,750 - INFO - Done with setup and verification, moving onto test .. 2025-08-28 02:30:58,759 - INFO - Deleting VN ctest-vn4-00291639 2025-08-28 02:30:58,945 - DEBUG - Response for deleting network () 2025-08-28 02:30:58,945 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/67c2dc2a-5290-4989-b027-4ebfb971aebc 2025-08-28 02:30:58,952 - DEBUG - Response Code: 404 2025-08-28 02:30:58,952 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-08-28 02:30:58,958 - DEBUG - Requesting: http://10.0.0.19:8082/domain/692c5a68-a199-4232-a07c-1cd4918de9d4 2025-08-28 02:30:58,969 - DEBUG - Requesting: http://10.0.0.19:8082/project/1b6ff659-1072-4021-bb7e-12e4fe99ce8f 2025-08-28 02:30:59,055 - INFO - Validated that VN ctest-vn4-00291639 is not found in API Server 2025-08-28 02:30:59,066 - DEBUG - VN ctest-vn4-00291639 is not present in Agent 10.0.0.65 2025-08-28 02:30:59,075 - DEBUG - VN ctest-vn4-00291639 is not present in Agent 10.0.0.27 2025-08-28 02:30:59,075 - INFO - Validated that VN ctest-vn4-00291639 is not in any agent 2025-08-28 02:30:59,106 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-00291639 info 2025-08-28 02:30:59,151 - INFO - Deleted policy ctest-policy1-57319684 2025-08-28 02:30:59,333 - DEBUG - policy ctest-policy1-57319684 is not found in API Server 2025-08-28 02:31:00,595 - DEBUG - No XMPP flaps were noticed during the test
2025-08-28 02:31:00,595 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2025-08-28 02:31:00,595 - INFO - -------------------------------------------------------------------------------- 2025-08-28 02:31:01,870 - DEBUG - No XMPP flaps were noticed during the test
2025-08-28 02:31:01,871 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09]
2025-08-28 02:31:01,871 - INFO - -------------------------------------------------------------------------------- 2025-08-28 02:31:02,556 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-18745152, ID : 1b6ff659-1072-4021-bb7e-12e4fe99ce8f