2025-08-14 02:05:05,728 - INFO - Domain Default found not creating 2025-08-14 02:05:05,880 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-99182653 not found, creating it 2025-08-14 02:05:06,321 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-99182653, ID : a29f6265-0c2c-4585-8b9b-d2b7a0884a73 2025-08-14 02:05:07,687 - INFO - ================================================================================ 2025-08-14 02:05:07,687 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-14 02:05:07,945 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-08-14 02:05:07,945 - INFO - Initial checks done. Running the testcase now 2025-08-14 02:05:07,945 - INFO - 2025-08-14 02:05:07,945 - INFO - ================================================================================ 2025-08-14 02:05:07,945 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-14 02:05:07,946 - 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-14 02:05:08,242 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-08-14 02:05:08,242 - INFO - Initial checks done. Running the testcase now 2025-08-14 02:05:08,242 - INFO - 2025-08-14 02:05:08,586 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99182653:ctest-vn4-22831258, 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-99182653:ctest-vn4-22831258, 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-99182653:ctest-vn4-22831258, 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-99182653:ctest-vn4-22831258, 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-14 02:05:09,113 - DEBUG - Response for create_network : {'network': {'id': 'fb4dcacd-bd5a-49a3-9630-c262cff648ee', 'name': 'ctest-vn4-22831258', 'tenant_id': 'a29f62650c2c45858b9bd2b7a0884a73', 'project_id': 'a29f62650c2c45858b9bd2b7a0884a73', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99182653', 'ctest-vn4-22831258'], 'port_security_enabled': True, 'description': ''}} 2025-08-14 02:05:09,314 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8c10500-5007-4856-9f41-d54fec5ff9aa', 'name': '', 'tenant_id': 'a29f62650c2c45858b9bd2b7a0884a73', 'network_id': 'fb4dcacd-bd5a-49a3-9630-c262cff648ee', 'ip_version': 4, 'cidr': '194.55.70.64/26', 'allocation_pools': [{'start': '194.55.70.66', 'end': '194.55.70.126'}], 'gateway_ip': '194.55.70.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.55.70.66', 'tags': [], 'project_id': 'a29f62650c2c45858b9bd2b7a0884a73'}} 2025-08-14 02:05:09,539 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c961b77-c107-4c33-a95b-94a1cb444712', 'name': '', 'tenant_id': 'a29f62650c2c45858b9bd2b7a0884a73', 'network_id': 'fb4dcacd-bd5a-49a3-9630-c262cff648ee', 'ip_version': 6, 'cidr': '32fa:6ffb:281e:5ba1:e3c4:a92d::/96', 'allocation_pools': [{'start': '32fa:6ffb:281e:5ba1:e3c4:a92d:0:2', 'end': '32fa:6ffb:281e:5ba1:e3c4:a92d:ffff:fffe'}], 'gateway_ip': '32fa:6ffb:281e:5ba1:e3c4:a92d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32fa:6ffb:281e:5ba1:e3c4:a92d:0:2', 'tags': [], 'project_id': 'a29f62650c2c45858b9bd2b7a0884a73'}} 2025-08-14 02:05:09,559 - INFO - Created VN ctest-vn4-22831258 2025-08-14 02:05:09,612 - DEBUG - VN ctest-vn4-22831258 UUID is fb4dcacd-bd5a-49a3-9630-c262cff648ee 2025-08-14 02:05:09,812 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fb4dcacd-bd5a-49a3-9630-c262cff648ee', 'name': 'ctest-vn4-22831258', 'tenant_id': 'a29f62650c2c45858b9bd2b7a0884a73', 'project_id': 'a29f62650c2c45858b9bd2b7a0884a73', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f8c10500-5007-4856-9f41-d54fec5ff9aa', '1c961b77-c107-4c33-a95b-94a1cb444712'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99182653', 'ctest-vn4-22831258'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99182653', 'ctest-policy1-83901830']], 'subnet_ipam': [{'subnet_cidr': '194.55.70.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32fa:6ffb:281e:5ba1:e3c4:a92d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-14 02:05:09,984 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-14 02:05:10,272 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-14 02:05:10,299 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5857e3c6-2d3a-4b17-9399-2a57870ab094 2025-08-14 02:05:10,312 - DEBUG - Requesting: http://10.0.0.50:8082/project/a29f6265-0c2c-4585-8b9b-d2b7a0884a73 2025-08-14 02:05:10,382 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fb4dcacd-bd5a-49a3-9630-c262cff648ee 2025-08-14 02:05:10,394 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fb4dcacd-bd5a-49a3-9630-c262cff648ee 2025-08-14 02:05:10,403 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e7667c22-bf53-4d54-a4ba-41f84c56bd0b 2025-08-14 02:05:10,410 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e7667c22-bf53-4d54-a4ba-41f84c56bd0b 2025-08-14 02:05:10,417 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c8bc2676-25e4-45c0-abd7-dfc79c1b2ef3 2025-08-14 02:05:10,423 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-14 02:05:10,423 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fb4dcacd-bd5a-49a3-9630-c262cff648ee 2025-08-14 02:05:10,433 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e7667c22-bf53-4d54-a4ba-41f84c56bd0b 2025-08-14 02:05:10,447 - INFO - Verified VN network id 12 for VN fb4dcacd-bd5a-49a3-9630-c262cff648ee 2025-08-14 02:05:10,447 - INFO - Verifications in API Server for VN ctest-vn4-22831258 passed 2025-08-14 02:05:10,447 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fb4dcacd-bd5a-49a3-9630-c262cff648ee 2025-08-14 02:05:10,457 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e7667c22-bf53-4d54-a4ba-41f84c56bd0b 2025-08-14 02:05:10,464 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e7667c22-bf53-4d54-a4ba-41f84c56bd0b 2025-08-14 02:05:10,470 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c8bc2676-25e4-45c0-abd7-dfc79c1b2ef3 2025-08-14 02:05:10,482 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99182653:ctest-vn4-22831258', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-99182653', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18108352661720549795', 'uuid-lslong': '10822363634222909678'}, 'enable': 'true', 'created': '2025-08-14T02:05:09', 'last-modified': '2025-08-14T02:05:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.700106'} 2025-08-14 02:05:10,488 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-14 02:05:10,488 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-22831258 passed 2025-08-14 02:05:10,488 - DEBUG - ====Verifying policy data for ctest-vn4-22831258 in API_Server ====== 2025-08-14 02:05:10,488 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-14 02:05:10,493 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5857e3c6-2d3a-4b17-9399-2a57870ab094 2025-08-14 02:05:10,504 - DEBUG - Requesting: http://10.0.0.50:8082/project/a29f6265-0c2c-4585-8b9b-d2b7a0884a73 2025-08-14 02:05:10,572 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fb4dcacd-bd5a-49a3-9630-c262cff648ee 2025-08-14 02:05:10,583 - DEBUG - ==>Verifying data for policy with id: 47ff19b0-650a-47b6-b7ab-b0a0532d9ee0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99182653', 'ctest-policy1-83901830'] 2025-08-14 02:05:10,583 - INFO - VN ctest-vn4-22831258 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-14 02:05:10,583 - DEBUG - Verifying the vn in opserver 2025-08-14 02:05:10,583 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99182653:ctest-vn4-22831258 virtual network link through opserver 10.0.0.50 2025-08-14 02:05:10,583 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-14 02:05:10,874 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-14 02:05:10,924 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99182653:ctest-vn4-22831258', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99182653:ctest-vn4-22831258?flat'} 2025-08-14 02:05:10,924 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99182653:ctest-vn4-22831258 is found in opserver 2025-08-14 02:05:10,935 - DEBUG - Do not have enough data to verify VN in agent 2025-08-14 02:05:10,940 - DEBUG - VRF ids for VN ctest-vn4-22831258: {} 2025-08-14 02:05:10,941 - DEBUG - ====Verifying data for ctest-policy1-83901830 in API_Server ====== 2025-08-14 02:05:10,941 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-14 02:05:10,946 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5857e3c6-2d3a-4b17-9399-2a57870ab094 2025-08-14 02:05:10,958 - DEBUG - Requesting: http://10.0.0.50:8082/project/a29f6265-0c2c-4585-8b9b-d2b7a0884a73 2025-08-14 02:05:11,031 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/47ff19b0-650a-47b6-b7ab-b0a0532d9ee0 2025-08-14 02:05:11,043 - INFO - Verified policy ctest-policy1-83901830 in API Server, Result: True 2025-08-14 02:05:11,043 - INFO - Done with setup and verification, moving onto test .. 2025-08-14 02:05:11,051 - INFO - Deleting VN ctest-vn4-22831258 2025-08-14 02:05:11,164 - DEBUG - Response for deleting network () 2025-08-14 02:05:11,164 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e7667c22-bf53-4d54-a4ba-41f84c56bd0b 2025-08-14 02:05:11,169 - DEBUG - Response Code: 404 2025-08-14 02:05:11,170 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-14 02:05:11,175 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5857e3c6-2d3a-4b17-9399-2a57870ab094 2025-08-14 02:05:11,229 - DEBUG - Requesting: http://10.0.0.50:8082/project/a29f6265-0c2c-4585-8b9b-d2b7a0884a73 2025-08-14 02:05:11,302 - INFO - Validated that VN ctest-vn4-22831258 is not found in API Server 2025-08-14 02:05:11,313 - DEBUG - VN ctest-vn4-22831258 is not present in Agent 10.0.0.50 2025-08-14 02:05:11,313 - INFO - Validated that VN ctest-vn4-22831258 is not in any agent 2025-08-14 02:05:11,328 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-22831258 info 2025-08-14 02:05:11,358 - INFO - Deleted policy ctest-policy1-83901830 2025-08-14 02:05:11,519 - DEBUG - policy ctest-policy1-83901830 is not found in API Server 2025-08-14 02:05:11,775 - DEBUG - No XMPP flaps were noticed during the test