2025-09-15 02:28:27,649 - INFO - Domain Default found not creating 2025-09-15 02:28:27,781 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-98622985 not found, creating it 2025-09-15 02:28:28,236 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-98622985, ID : d23b4f5a-ca1c-4b7e-a388-78c18666f8d4 2025-09-15 02:28:29,666 - INFO - ================================================================================ 2025-09-15 02:28:29,666 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-15 02:28:30,938 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0', '10.20.0.25': '0'}, '10.0.0.137': {'10.20.0.25': '0', '10.20.0.14': '0'}} with 2025-09-15 02:28:30,938 - INFO - Initial checks done. Running the testcase now 2025-09-15 02:28:30,938 - INFO - 2025-09-15 02:28:30,938 - INFO - ================================================================================ 2025-09-15 02:28:30,938 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-15 02:28:30,938 - 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-15 02:28:32,229 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0', '10.20.0.25': '0'}, '10.0.0.137': {'10.20.0.25': '0', '10.20.0.14': '0'}} with 2025-09-15 02:28:32,229 - INFO - Initial checks done. Running the testcase now 2025-09-15 02:28:32,229 - INFO - 2025-09-15 02:28:32,591 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98622985:ctest-vn4-74338563, 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-98622985:ctest-vn4-74338563, 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-98622985:ctest-vn4-74338563, 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-98622985:ctest-vn4-74338563, 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-15 02:28:33,235 - DEBUG - Response for create_network : {'network': {'id': '3fe70b69-153b-409d-a93f-3e05f2483ab9', 'name': 'ctest-vn4-74338563', 'tenant_id': 'd23b4f5aca1c4b7ea38878c18666f8d4', 'project_id': 'd23b4f5aca1c4b7ea38878c18666f8d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98622985', 'ctest-vn4-74338563'], 'port_security_enabled': True, 'description': ''}} 2025-09-15 02:28:33,474 - DEBUG - Response for create_subnet : {'subnet': {'id': '024a72df-e7ae-4a83-9608-cef6076a9f27', 'name': '', 'tenant_id': 'd23b4f5aca1c4b7ea38878c18666f8d4', 'network_id': '3fe70b69-153b-409d-a93f-3e05f2483ab9', 'ip_version': 4, 'cidr': '218.184.208.0/26', 'allocation_pools': [{'start': '218.184.208.2', 'end': '218.184.208.62'}], 'gateway_ip': '218.184.208.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.184.208.2', 'tags': [], 'project_id': 'd23b4f5aca1c4b7ea38878c18666f8d4'}} 2025-09-15 02:28:33,722 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e8832778-1699-47d9-9812-da3959400cfe', 'name': '', 'tenant_id': 'd23b4f5aca1c4b7ea38878c18666f8d4', 'network_id': '3fe70b69-153b-409d-a93f-3e05f2483ab9', 'ip_version': 6, 'cidr': '2584:cbe1:1141:caa6:e6f7:d6fe::/96', 'allocation_pools': [{'start': '2584:cbe1:1141:caa6:e6f7:d6fe:0:2', 'end': '2584:cbe1:1141:caa6:e6f7:d6fe:ffff:fffe'}], 'gateway_ip': '2584:cbe1:1141:caa6:e6f7:d6fe:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2584:cbe1:1141:caa6:e6f7:d6fe:0:2', 'tags': [], 'project_id': 'd23b4f5aca1c4b7ea38878c18666f8d4'}} 2025-09-15 02:28:33,749 - INFO - Created VN ctest-vn4-74338563 2025-09-15 02:28:33,763 - DEBUG - VN ctest-vn4-74338563 UUID is 3fe70b69-153b-409d-a93f-3e05f2483ab9 2025-09-15 02:28:34,021 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3fe70b69-153b-409d-a93f-3e05f2483ab9', 'name': 'ctest-vn4-74338563', 'tenant_id': 'd23b4f5aca1c4b7ea38878c18666f8d4', 'project_id': 'd23b4f5aca1c4b7ea38878c18666f8d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['024a72df-e7ae-4a83-9608-cef6076a9f27', 'e8832778-1699-47d9-9812-da3959400cfe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98622985', 'ctest-vn4-74338563'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98622985', 'ctest-policy1-78532597']], 'subnet_ipam': [{'subnet_cidr': '218.184.208.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2584:cbe1:1141:caa6:e6f7:d6fe::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-15 02:28:34,156 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-15 02:28:34,458 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-15 02:28:34,485 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fb35da95-2d14-4bd5-8610-16128fba9774 2025-09-15 02:28:34,501 - DEBUG - Requesting: http://10.0.0.249:8082/project/d23b4f5a-ca1c-4b7e-a388-78c18666f8d4 2025-09-15 02:28:34,597 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3fe70b69-153b-409d-a93f-3e05f2483ab9 2025-09-15 02:28:34,613 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3fe70b69-153b-409d-a93f-3e05f2483ab9 2025-09-15 02:28:34,623 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cbe9f52b-8a20-4f56-a746-022fda144799 2025-09-15 02:28:34,629 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cbe9f52b-8a20-4f56-a746-022fda144799 2025-09-15 02:28:34,637 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/3150cb7a-a054-4677-b464-34b89bad802f 2025-09-15 02:28:34,645 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 02:28:34,645 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3fe70b69-153b-409d-a93f-3e05f2483ab9 2025-09-15 02:28:34,655 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cbe9f52b-8a20-4f56-a746-022fda144799 2025-09-15 02:28:34,669 - INFO - Verified VN network id 11 for VN 3fe70b69-153b-409d-a93f-3e05f2483ab9 2025-09-15 02:28:34,669 - INFO - Verifications in API Server for VN ctest-vn4-74338563 passed 2025-09-15 02:28:34,669 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3fe70b69-153b-409d-a93f-3e05f2483ab9 2025-09-15 02:28:34,679 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cbe9f52b-8a20-4f56-a746-022fda144799 2025-09-15 02:28:34,687 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cbe9f52b-8a20-4f56-a746-022fda144799 2025-09-15 02:28:34,694 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/3150cb7a-a054-4677-b464-34b89bad802f 2025-09-15 02:28:34,706 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98622985:ctest-vn4-74338563', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98622985', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4604661689965297821', 'uuid-lslong': '12195534511203171001'}, 'enable': 'true', 'created': '2025-09-15T02:28:33', 'last-modified': '2025-09-15T02:28:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.761546'} 2025-09-15 02:28:34,712 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 02:28:34,718 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98622985:ctest-vn4-74338563', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98622985', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4604661689965297821', 'uuid-lslong': '12195534511203171001'}, 'enable': 'true', 'created': '2025-09-15T02:28:33', 'last-modified': '2025-09-15T02:28:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.775561'} 2025-09-15 02:28:34,723 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 02:28:34,728 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98622985:ctest-vn4-74338563', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98622985', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4604661689965297821', 'uuid-lslong': '12195534511203171001'}, 'enable': 'true', 'created': '2025-09-15T02:28:33', 'last-modified': '2025-09-15T02:28:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.785905'} 2025-09-15 02:28:34,733 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 02:28:34,733 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-74338563 passed 2025-09-15 02:28:34,733 - DEBUG - ====Verifying policy data for ctest-vn4-74338563 in API_Server ====== 2025-09-15 02:28:34,733 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-15 02:28:34,738 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fb35da95-2d14-4bd5-8610-16128fba9774 2025-09-15 02:28:34,748 - DEBUG - Requesting: http://10.0.0.249:8082/project/d23b4f5a-ca1c-4b7e-a388-78c18666f8d4 2025-09-15 02:28:34,836 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3fe70b69-153b-409d-a93f-3e05f2483ab9 2025-09-15 02:28:34,847 - DEBUG - ==>Verifying data for policy with id: c7df7ffa-434b-4379-810b-efbffeccca78, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98622985', 'ctest-policy1-78532597'] 2025-09-15 02:28:34,847 - INFO - VN ctest-vn4-74338563 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-15 02:28:34,848 - DEBUG - Verifying the vn in opserver 2025-09-15 02:28:34,848 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98622985:ctest-vn4-74338563 virtual network link through opserver 10.0.0.249 2025-09-15 02:28:34,848 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-09-15 02:28:35,146 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-09-15 02:28:35,218 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98622985:ctest-vn4-74338563', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98622985:ctest-vn4-74338563?flat'} 2025-09-15 02:28:35,218 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98622985:ctest-vn4-74338563 virtual network link through opserver 10.0.0.27 2025-09-15 02:28:35,218 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-09-15 02:28:35,700 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-09-15 02:28:35,768 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98622985:ctest-vn4-74338563', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98622985:ctest-vn4-74338563?flat'} 2025-09-15 02:28:35,768 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98622985:ctest-vn4-74338563 virtual network link through opserver 10.0.0.38 2025-09-15 02:28:35,768 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-15 02:28:36,067 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-15 02:28:36,132 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98622985:ctest-vn4-74338563', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98622985:ctest-vn4-74338563?flat'} 2025-09-15 02:28:36,133 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98622985:ctest-vn4-74338563 is found in opserver 2025-09-15 02:28:36,174 - DEBUG - Do not have enough data to verify VN in agent 2025-09-15 02:28:36,185 - DEBUG - VRF ids for VN ctest-vn4-74338563: {} 2025-09-15 02:28:36,185 - DEBUG - ====Verifying data for ctest-policy1-78532597 in API_Server ====== 2025-09-15 02:28:36,185 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-15 02:28:36,194 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fb35da95-2d14-4bd5-8610-16128fba9774 2025-09-15 02:28:36,212 - DEBUG - Requesting: http://10.0.0.249:8082/project/d23b4f5a-ca1c-4b7e-a388-78c18666f8d4 2025-09-15 02:28:36,326 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/c7df7ffa-434b-4379-810b-efbffeccca78 2025-09-15 02:28:36,335 - INFO - Verified policy ctest-policy1-78532597 in API Server, Result: True 2025-09-15 02:28:36,335 - INFO - Done with setup and verification, moving onto test .. 2025-09-15 02:28:36,347 - INFO - Deleting VN ctest-vn4-74338563 2025-09-15 02:28:36,571 - DEBUG - Response for deleting network () 2025-09-15 02:28:36,571 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cbe9f52b-8a20-4f56-a746-022fda144799 2025-09-15 02:28:36,577 - DEBUG - Response Code: 404 2025-09-15 02:28:36,577 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-15 02:28:36,585 - DEBUG - Requesting: http://10.0.0.249:8082/domain/fb35da95-2d14-4bd5-8610-16128fba9774 2025-09-15 02:28:36,602 - DEBUG - Requesting: http://10.0.0.249:8082/project/d23b4f5a-ca1c-4b7e-a388-78c18666f8d4 2025-09-15 02:28:36,698 - INFO - Validated that VN ctest-vn4-74338563 is not found in API Server 2025-09-15 02:28:36,710 - DEBUG - VN ctest-vn4-74338563 is not present in Agent 10.0.0.19 2025-09-15 02:28:36,718 - DEBUG - VN ctest-vn4-74338563 is not present in Agent 10.0.0.137 2025-09-15 02:28:36,718 - INFO - Validated that VN ctest-vn4-74338563 is not in any agent 2025-09-15 02:28:36,744 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-74338563 info 2025-09-15 02:28:36,784 - INFO - Deleted policy ctest-policy1-78532597 2025-09-15 02:28:36,975 - DEBUG - policy ctest-policy1-78532597 is not found in API Server 2025-09-15 02:28:38,249 - DEBUG - No XMPP flaps were noticed during the test 2025-09-15 02:28:38,249 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2025-09-15 02:28:38,249 - INFO - -------------------------------------------------------------------------------- 2025-09-15 02:28:39,521 - DEBUG - No XMPP flaps were noticed during the test 2025-09-15 02:28:39,521 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2025-09-15 02:28:39,521 - INFO - -------------------------------------------------------------------------------- 2025-09-15 02:28:40,238 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-98622985, ID : d23b4f5a-ca1c-4b7e-a388-78c18666f8d4