2025-09-11 02:22:55,971 - INFO - Domain Default found not creating 2025-09-11 02:22:56,123 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93593301 not found, creating it 2025-09-11 02:22:56,672 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93593301, ID : 264df4a9-a51c-47e9-88f9-31cded13944b 2025-09-11 02:22:58,157 - INFO - ================================================================================ 2025-09-11 02:22:58,157 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 02:22:59,418 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0', '10.20.0.25': '0'}, '10.0.0.19': {'10.20.0.17': '0', '10.20.0.25': '0'}} with 2025-09-11 02:22:59,418 - INFO - Initial checks done. Running the testcase now 2025-09-11 02:22:59,418 - INFO - 2025-09-11 02:22:59,418 - INFO - ================================================================================ 2025-09-11 02:22:59,418 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 02:22:59,418 - 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 02:23:00,689 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0', '10.20.0.25': '0'}, '10.0.0.19': {'10.20.0.17': '0', '10.20.0.25': '0'}} with 2025-09-11 02:23:00,689 - INFO - Initial checks done. Running the testcase now 2025-09-11 02:23:00,689 - INFO - 2025-09-11 02:23:01,044 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93593301:ctest-vn4-98377922, 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-93593301:ctest-vn4-98377922, 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-93593301:ctest-vn4-98377922, 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-93593301:ctest-vn4-98377922, 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 02:23:01,619 - DEBUG - Response for create_network : {'network': {'id': 'c189c52f-6d92-4eca-90a7-4d101088bfe3', 'name': 'ctest-vn4-98377922', 'tenant_id': '264df4a9a51c47e988f931cded13944b', 'project_id': '264df4a9a51c47e988f931cded13944b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93593301', 'ctest-vn4-98377922'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 02:23:01,903 - DEBUG - Response for create_subnet : {'subnet': {'id': '2cfab93b-a6da-4860-ac98-5870045dd62b', 'name': '', 'tenant_id': '264df4a9a51c47e988f931cded13944b', 'network_id': 'c189c52f-6d92-4eca-90a7-4d101088bfe3', 'ip_version': 4, 'cidr': '162.239.184.128/26', 'allocation_pools': [{'start': '162.239.184.130', 'end': '162.239.184.190'}], 'gateway_ip': '162.239.184.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.239.184.130', 'tags': [], 'project_id': '264df4a9a51c47e988f931cded13944b'}} 2025-09-11 02:23:02,098 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e7c0ef09-2df4-4969-ba4f-4326c1f3e608', 'name': '', 'tenant_id': '264df4a9a51c47e988f931cded13944b', 'network_id': 'c189c52f-6d92-4eca-90a7-4d101088bfe3', 'ip_version': 6, 'cidr': '32da:1fb9:1:4c67:96ea:4563::/96', 'allocation_pools': [{'start': '32da:1fb9:1:4c67:96ea:4563:0:2', 'end': '32da:1fb9:1:4c67:96ea:4563:ffff:fffe'}], 'gateway_ip': '32da:1fb9:1:4c67:96ea:4563:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32da:1fb9:1:4c67:96ea:4563:0:2', 'tags': [], 'project_id': '264df4a9a51c47e988f931cded13944b'}} 2025-09-11 02:23:02,125 - INFO - Created VN ctest-vn4-98377922 2025-09-11 02:23:02,136 - DEBUG - VN ctest-vn4-98377922 UUID is c189c52f-6d92-4eca-90a7-4d101088bfe3 2025-09-11 02:23:02,372 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c189c52f-6d92-4eca-90a7-4d101088bfe3', 'name': 'ctest-vn4-98377922', 'tenant_id': '264df4a9a51c47e988f931cded13944b', 'project_id': '264df4a9a51c47e988f931cded13944b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2cfab93b-a6da-4860-ac98-5870045dd62b', 'e7c0ef09-2df4-4969-ba4f-4326c1f3e608'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93593301', 'ctest-vn4-98377922'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93593301', 'ctest-policy1-36591113']], 'subnet_ipam': [{'subnet_cidr': '162.239.184.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32da:1fb9:1:4c67:96ea:4563::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-11 02:23:02,465 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-11 02:23:02,766 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-11 02:23:02,791 - DEBUG - Requesting: http://10.0.0.249:8082/domain/6cefd47d-baca-4df6-a10c-ec963319da07 2025-09-11 02:23:02,806 - DEBUG - Requesting: http://10.0.0.249:8082/project/264df4a9-a51c-47e9-88f9-31cded13944b 2025-09-11 02:23:02,908 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c189c52f-6d92-4eca-90a7-4d101088bfe3 2025-09-11 02:23:02,924 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c189c52f-6d92-4eca-90a7-4d101088bfe3 2025-09-11 02:23:02,936 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/868395af-7aeb-44d0-a7df-f56b28dd553b 2025-09-11 02:23:02,945 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/868395af-7aeb-44d0-a7df-f56b28dd553b 2025-09-11 02:23:02,955 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/43cddb71-7035-4014-bf50-4e1256b1d633 2025-09-11 02:23:02,965 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 02:23:02,965 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c189c52f-6d92-4eca-90a7-4d101088bfe3 2025-09-11 02:23:02,976 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/868395af-7aeb-44d0-a7df-f56b28dd553b 2025-09-11 02:23:02,994 - INFO - Verified VN network id 14 for VN c189c52f-6d92-4eca-90a7-4d101088bfe3 2025-09-11 02:23:02,995 - INFO - Verifications in API Server for VN ctest-vn4-98377922 passed 2025-09-11 02:23:02,995 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c189c52f-6d92-4eca-90a7-4d101088bfe3 2025-09-11 02:23:03,007 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/868395af-7aeb-44d0-a7df-f56b28dd553b 2025-09-11 02:23:03,015 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/868395af-7aeb-44d0-a7df-f56b28dd553b 2025-09-11 02:23:03,023 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/43cddb71-7035-4014-bf50-4e1256b1d633 2025-09-11 02:23:03,037 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93593301:ctest-vn4-98377922', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93593301', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13945894528621891274', 'uuid-lslong': '10423384593964515299'}, 'enable': 'true', 'created': '2025-09-11T02:23:01', 'last-modified': '2025-09-11T02:23:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711117'} 2025-09-11 02:23:03,046 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 02:23:03,052 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93593301:ctest-vn4-98377922', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93593301', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13945894528621891274', 'uuid-lslong': '10423384593964515299'}, 'enable': 'true', 'created': '2025-09-11T02:23:01', 'last-modified': '2025-09-11T02:23:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.726646'} 2025-09-11 02:23:03,059 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 02:23:03,064 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93593301:ctest-vn4-98377922', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93593301', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13945894528621891274', 'uuid-lslong': '10423384593964515299'}, 'enable': 'true', 'created': '2025-09-11T02:23:01', 'last-modified': '2025-09-11T02:23:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.738202'} 2025-09-11 02:23:03,069 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 02:23:03,069 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-98377922 passed 2025-09-11 02:23:03,070 - DEBUG - ====Verifying policy data for ctest-vn4-98377922 in API_Server ====== 2025-09-11 02:23:03,070 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-11 02:23:03,076 - DEBUG - Requesting: http://10.0.0.249:8082/domain/6cefd47d-baca-4df6-a10c-ec963319da07 2025-09-11 02:23:03,088 - DEBUG - Requesting: http://10.0.0.249:8082/project/264df4a9-a51c-47e9-88f9-31cded13944b 2025-09-11 02:23:03,178 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c189c52f-6d92-4eca-90a7-4d101088bfe3 2025-09-11 02:23:03,190 - DEBUG - ==>Verifying data for policy with id: b6381177-0119-4009-8b87-9ac8fe9639b1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93593301', 'ctest-policy1-36591113'] 2025-09-11 02:23:03,190 - INFO - VN ctest-vn4-98377922 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-11 02:23:03,190 - DEBUG - Verifying the vn in opserver 2025-09-11 02:23:03,190 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93593301:ctest-vn4-98377922 virtual network link through opserver 10.0.0.249 2025-09-11 02:23:03,190 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-09-11 02:23:03,487 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-09-11 02:23:03,550 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93593301:ctest-vn4-98377922', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93593301:ctest-vn4-98377922?flat'} 2025-09-11 02:23:03,550 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93593301:ctest-vn4-98377922 virtual network link through opserver 10.0.0.22 2025-09-11 02:23:03,550 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-11 02:23:03,870 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-11 02:23:03,937 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93593301:ctest-vn4-98377922', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93593301:ctest-vn4-98377922?flat'} 2025-09-11 02:23:03,937 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93593301:ctest-vn4-98377922 virtual network link through opserver 10.0.0.49 2025-09-11 02:23:03,937 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-09-11 02:23:04,233 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-09-11 02:23:04,285 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93593301:ctest-vn4-98377922', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93593301:ctest-vn4-98377922?flat'} 2025-09-11 02:23:04,285 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93593301:ctest-vn4-98377922 is found in opserver 2025-09-11 02:23:04,307 - DEBUG - Do not have enough data to verify VN in agent 2025-09-11 02:23:04,317 - DEBUG - VRF ids for VN ctest-vn4-98377922: {} 2025-09-11 02:23:04,318 - DEBUG - ====Verifying data for ctest-policy1-36591113 in API_Server ====== 2025-09-11 02:23:04,318 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-11 02:23:04,326 - DEBUG - Requesting: http://10.0.0.249:8082/domain/6cefd47d-baca-4df6-a10c-ec963319da07 2025-09-11 02:23:04,342 - DEBUG - Requesting: http://10.0.0.249:8082/project/264df4a9-a51c-47e9-88f9-31cded13944b 2025-09-11 02:23:04,445 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/b6381177-0119-4009-8b87-9ac8fe9639b1 2025-09-11 02:23:04,454 - INFO - Verified policy ctest-policy1-36591113 in API Server, Result: True 2025-09-11 02:23:04,454 - INFO - Done with setup and verification, moving onto test .. 2025-09-11 02:23:04,465 - INFO - Deleting VN ctest-vn4-98377922 2025-09-11 02:23:04,659 - DEBUG - Response for deleting network () 2025-09-11 02:23:04,659 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/868395af-7aeb-44d0-a7df-f56b28dd553b 2025-09-11 02:23:04,665 - DEBUG - Response Code: 404 2025-09-11 02:23:04,665 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-09-11 02:23:04,671 - DEBUG - Requesting: http://10.0.0.249:8082/domain/6cefd47d-baca-4df6-a10c-ec963319da07 2025-09-11 02:23:04,697 - DEBUG - Requesting: http://10.0.0.249:8082/project/264df4a9-a51c-47e9-88f9-31cded13944b 2025-09-11 02:23:04,784 - INFO - Validated that VN ctest-vn4-98377922 is not found in API Server 2025-09-11 02:23:04,798 - DEBUG - VN ctest-vn4-98377922 is not present in Agent 10.0.0.254 2025-09-11 02:23:04,812 - DEBUG - VN ctest-vn4-98377922 is not present in Agent 10.0.0.19 2025-09-11 02:23:04,812 - INFO - Validated that VN ctest-vn4-98377922 is not in any agent 2025-09-11 02:23:04,845 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-98377922 info 2025-09-11 02:23:04,881 - INFO - Deleted policy ctest-policy1-36591113 2025-09-11 02:23:05,059 - DEBUG - policy ctest-policy1-36591113 is not found in API Server 2025-09-11 02:23:06,328 - DEBUG - No XMPP flaps were noticed during the test 2025-09-11 02:23:06,328 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2025-09-11 02:23:06,328 - INFO - -------------------------------------------------------------------------------- 2025-09-11 02:23:07,607 - DEBUG - No XMPP flaps were noticed during the test 2025-09-11 02:23:07,607 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09] 2025-09-11 02:23:07,607 - INFO - -------------------------------------------------------------------------------- 2025-09-11 02:23:08,283 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-93593301, ID : 264df4a9-a51c-47e9-88f9-31cded13944b