2025-08-13 13:56:24,707 - INFO - Domain Default found not creating 2025-08-13 13:56:24,841 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93001748 not found, creating it 2025-08-13 13:56:25,283 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93001748, ID : 7871ce78-a672-48a9-b061-446970f1794b 2025-08-13 13:56:26,774 - INFO - ================================================================================ 2025-08-13 13:56:26,774 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-13 13:56:27,028 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-08-13 13:56:27,028 - INFO - Initial checks done. Running the testcase now 2025-08-13 13:56:27,028 - INFO - 2025-08-13 13:56:27,029 - INFO - ================================================================================ 2025-08-13 13:56:27,029 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-13 13:56:27,029 - 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-13 13:56:27,316 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-08-13 13:56:27,316 - INFO - Initial checks done. Running the testcase now 2025-08-13 13:56:27,316 - INFO - 2025-08-13 13:56:27,703 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93001748:ctest-vn4-11167126, 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-93001748:ctest-vn4-11167126, 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-93001748:ctest-vn4-11167126, 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-93001748:ctest-vn4-11167126, 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-13 13:56:28,214 - DEBUG - Response for create_network : {'network': {'id': 'e8106f96-7547-499b-a8f8-560e7ce0a582', 'name': 'ctest-vn4-11167126', 'tenant_id': '7871ce78a67248a9b061446970f1794b', 'project_id': '7871ce78a67248a9b061446970f1794b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93001748', 'ctest-vn4-11167126'], 'port_security_enabled': True, 'description': ''}} 2025-08-13 13:56:28,398 - DEBUG - Response for create_subnet : {'subnet': {'id': '60ae902d-72cb-4a9a-88c7-ef957b9329b0', 'name': '', 'tenant_id': '7871ce78a67248a9b061446970f1794b', 'network_id': 'e8106f96-7547-499b-a8f8-560e7ce0a582', 'ip_version': 4, 'cidr': '13.11.178.64/26', 'allocation_pools': [{'start': '13.11.178.66', 'end': '13.11.178.126'}], 'gateway_ip': '13.11.178.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.11.178.66', 'tags': [], 'project_id': '7871ce78a67248a9b061446970f1794b'}} 2025-08-13 13:56:28,607 - DEBUG - Response for create_subnet : {'subnet': {'id': '6702b55c-e151-4647-af02-6f8ccfeb9ae1', 'name': '', 'tenant_id': '7871ce78a67248a9b061446970f1794b', 'network_id': 'e8106f96-7547-499b-a8f8-560e7ce0a582', 'ip_version': 6, 'cidr': '201e:afcd:c13a:9ece:3edf:1b4e::/96', 'allocation_pools': [{'start': '201e:afcd:c13a:9ece:3edf:1b4e:0:2', 'end': '201e:afcd:c13a:9ece:3edf:1b4e:ffff:fffe'}], 'gateway_ip': '201e:afcd:c13a:9ece:3edf:1b4e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201e:afcd:c13a:9ece:3edf:1b4e:0:2', 'tags': [], 'project_id': '7871ce78a67248a9b061446970f1794b'}} 2025-08-13 13:56:28,626 - INFO - Created VN ctest-vn4-11167126 2025-08-13 13:56:28,678 - DEBUG - VN ctest-vn4-11167126 UUID is e8106f96-7547-499b-a8f8-560e7ce0a582 2025-08-13 13:56:28,879 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e8106f96-7547-499b-a8f8-560e7ce0a582', 'name': 'ctest-vn4-11167126', 'tenant_id': '7871ce78a67248a9b061446970f1794b', 'project_id': '7871ce78a67248a9b061446970f1794b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['60ae902d-72cb-4a9a-88c7-ef957b9329b0', '6702b55c-e151-4647-af02-6f8ccfeb9ae1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93001748', 'ctest-vn4-11167126'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93001748', 'ctest-policy1-23652672']], 'subnet_ipam': [{'subnet_cidr': '13.11.178.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '201e:afcd:c13a:9ece:3edf:1b4e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-13 13:56:29,042 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-13 13:56:29,372 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-13 13:56:29,400 - DEBUG - Requesting: http://10.0.0.33:8082/domain/738767c0-abd5-4644-8089-665cf1bd6a42 2025-08-13 13:56:29,415 - DEBUG - Requesting: http://10.0.0.33:8082/project/7871ce78-a672-48a9-b061-446970f1794b 2025-08-13 13:56:29,487 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e8106f96-7547-499b-a8f8-560e7ce0a582 2025-08-13 13:56:29,500 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e8106f96-7547-499b-a8f8-560e7ce0a582 2025-08-13 13:56:29,511 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/52c33f45-afc5-4c8a-bf2c-7a12b0aba329 2025-08-13 13:56:29,518 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/52c33f45-afc5-4c8a-bf2c-7a12b0aba329 2025-08-13 13:56:29,524 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/cf9c6379-1ec2-43da-b42f-360ac5b0435e 2025-08-13 13:56:29,530 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-13 13:56:29,531 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e8106f96-7547-499b-a8f8-560e7ce0a582 2025-08-13 13:56:29,540 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/52c33f45-afc5-4c8a-bf2c-7a12b0aba329 2025-08-13 13:56:29,554 - INFO - Verified VN network id 12 for VN e8106f96-7547-499b-a8f8-560e7ce0a582 2025-08-13 13:56:29,554 - INFO - Verifications in API Server for VN ctest-vn4-11167126 passed 2025-08-13 13:56:29,554 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e8106f96-7547-499b-a8f8-560e7ce0a582 2025-08-13 13:56:29,564 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/52c33f45-afc5-4c8a-bf2c-7a12b0aba329 2025-08-13 13:56:29,571 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/52c33f45-afc5-4c8a-bf2c-7a12b0aba329 2025-08-13 13:56:29,577 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/cf9c6379-1ec2-43da-b42f-360ac5b0435e 2025-08-13 13:56:29,591 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93001748:ctest-vn4-11167126', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93001748', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16721988108430035355', 'uuid-lslong': '12175576212820764034'}, 'enable': 'true', 'created': '2025-08-13T13:56:28', 'last-modified': '2025-08-13T13:56:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.751006'} 2025-08-13 13:56:29,598 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-13 13:56:29,599 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-11167126 passed 2025-08-13 13:56:29,599 - DEBUG - ====Verifying policy data for ctest-vn4-11167126 in API_Server ====== 2025-08-13 13:56:29,599 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-13 13:56:29,605 - DEBUG - Requesting: http://10.0.0.33:8082/domain/738767c0-abd5-4644-8089-665cf1bd6a42 2025-08-13 13:56:29,620 - DEBUG - Requesting: http://10.0.0.33:8082/project/7871ce78-a672-48a9-b061-446970f1794b 2025-08-13 13:56:29,701 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e8106f96-7547-499b-a8f8-560e7ce0a582 2025-08-13 13:56:29,715 - DEBUG - ==>Verifying data for policy with id: e3743840-9df3-46a9-a7d2-00f1e4221250, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93001748', 'ctest-policy1-23652672'] 2025-08-13 13:56:29,715 - INFO - VN ctest-vn4-11167126 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-13 13:56:29,715 - DEBUG - Verifying the vn in opserver 2025-08-13 13:56:29,715 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93001748:ctest-vn4-11167126 virtual network link through opserver 10.0.0.33 2025-08-13 13:56:29,715 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-13 13:56:30,044 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-13 13:56:30,096 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93001748:ctest-vn4-11167126', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93001748:ctest-vn4-11167126?flat'} 2025-08-13 13:56:30,096 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93001748:ctest-vn4-11167126 is found in opserver 2025-08-13 13:56:30,107 - DEBUG - Do not have enough data to verify VN in agent 2025-08-13 13:56:30,112 - DEBUG - VRF ids for VN ctest-vn4-11167126: {} 2025-08-13 13:56:30,113 - DEBUG - ====Verifying data for ctest-policy1-23652672 in API_Server ====== 2025-08-13 13:56:30,113 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-13 13:56:30,118 - DEBUG - Requesting: http://10.0.0.33:8082/domain/738767c0-abd5-4644-8089-665cf1bd6a42 2025-08-13 13:56:30,132 - DEBUG - Requesting: http://10.0.0.33:8082/project/7871ce78-a672-48a9-b061-446970f1794b 2025-08-13 13:56:30,206 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/e3743840-9df3-46a9-a7d2-00f1e4221250 2025-08-13 13:56:30,217 - INFO - Verified policy ctest-policy1-23652672 in API Server, Result: True 2025-08-13 13:56:30,217 - INFO - Done with setup and verification, moving onto test .. 2025-08-13 13:56:30,224 - INFO - Deleting VN ctest-vn4-11167126 2025-08-13 13:56:30,364 - DEBUG - Response for deleting network () 2025-08-13 13:56:30,365 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/52c33f45-afc5-4c8a-bf2c-7a12b0aba329 2025-08-13 13:56:30,370 - DEBUG - Response Code: 404 2025-08-13 13:56:30,370 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-13 13:56:30,374 - DEBUG - Requesting: http://10.0.0.33:8082/domain/738767c0-abd5-4644-8089-665cf1bd6a42 2025-08-13 13:56:30,427 - DEBUG - Requesting: http://10.0.0.33:8082/project/7871ce78-a672-48a9-b061-446970f1794b 2025-08-13 13:56:30,500 - INFO - Validated that VN ctest-vn4-11167126 is not found in API Server 2025-08-13 13:56:30,511 - DEBUG - VN ctest-vn4-11167126 is not present in Agent 10.0.0.33 2025-08-13 13:56:30,511 - INFO - Validated that VN ctest-vn4-11167126 is not in any agent 2025-08-13 13:56:30,527 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-11167126 info 2025-08-13 13:56:30,563 - INFO - Deleted policy ctest-policy1-23652672 2025-08-13 13:56:30,734 - DEBUG - policy ctest-policy1-23652672 is not found in API Server 2025-08-13 13:56:30,988 - DEBUG - No XMPP flaps were noticed during the test