2025-11-04 14:08:03,570 - INFO - Domain Default found not creating 2025-11-04 14:08:03,741 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-77544492 not found, creating it 2025-11-04 14:08:04,196 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-77544492, ID : a06988f3-ca85-4bde-8708-88940f820982 2025-11-04 14:08:05,712 - INFO - ================================================================================ 2025-11-04 14:08:05,712 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-04 14:08:05,969 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.254': '0'}} with 2025-11-04 14:08:05,969 - INFO - Initial checks done. Running the testcase now 2025-11-04 14:08:05,969 - INFO - 2025-11-04 14:08:05,969 - INFO - ================================================================================ 2025-11-04 14:08:05,969 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-04 14:08:05,969 - 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-11-04 14:08:06,257 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.254': '0'}} with 2025-11-04 14:08:06,257 - INFO - Initial checks done. Running the testcase now 2025-11-04 14:08:06,257 - INFO - 2025-11-04 14:08:06,641 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77544492:ctest-vn4-31779276, 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-77544492:ctest-vn4-31779276, 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-77544492:ctest-vn4-31779276, 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-77544492:ctest-vn4-31779276, 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-11-04 14:08:07,146 - DEBUG - Response for create_network : {'network': {'id': 'b871ad50-5829-43ff-a9ac-2eb4cdcc4192', 'name': 'ctest-vn4-31779276', 'tenant_id': 'a06988f3ca854bde870888940f820982', 'project_id': 'a06988f3ca854bde870888940f820982', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77544492', 'ctest-vn4-31779276'], 'port_security_enabled': True, 'description': ''}} 2025-11-04 14:08:07,289 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b87f465-6f98-4f38-95c8-ce98a617c09b', 'name': '', 'tenant_id': 'a06988f3ca854bde870888940f820982', 'network_id': 'b871ad50-5829-43ff-a9ac-2eb4cdcc4192', 'ip_version': 4, 'cidr': '30.231.179.192/26', 'allocation_pools': [{'start': '30.231.179.194', 'end': '30.231.179.254'}], 'gateway_ip': '30.231.179.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.231.179.194', 'tags': [], 'project_id': 'a06988f3ca854bde870888940f820982'}} 2025-11-04 14:08:07,435 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8ef9669-e3f6-4bc6-89d3-4651ee850f9e', 'name': '', 'tenant_id': 'a06988f3ca854bde870888940f820982', 'network_id': 'b871ad50-5829-43ff-a9ac-2eb4cdcc4192', 'ip_version': 6, 'cidr': '3626:475b:1888:d640:9aea:44f7::/96', 'allocation_pools': [{'start': '3626:475b:1888:d640:9aea:44f7:0:2', 'end': '3626:475b:1888:d640:9aea:44f7:ffff:fffe'}], 'gateway_ip': '3626:475b:1888:d640:9aea:44f7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3626:475b:1888:d640:9aea:44f7:0:2', 'tags': [], 'project_id': 'a06988f3ca854bde870888940f820982'}} 2025-11-04 14:08:07,454 - INFO - Created VN ctest-vn4-31779276 2025-11-04 14:08:07,507 - DEBUG - VN ctest-vn4-31779276 UUID is b871ad50-5829-43ff-a9ac-2eb4cdcc4192 2025-11-04 14:08:07,700 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b871ad50-5829-43ff-a9ac-2eb4cdcc4192', 'name': 'ctest-vn4-31779276', 'tenant_id': 'a06988f3ca854bde870888940f820982', 'project_id': 'a06988f3ca854bde870888940f820982', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0b87f465-6f98-4f38-95c8-ce98a617c09b', 'f8ef9669-e3f6-4bc6-89d3-4651ee850f9e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77544492', 'ctest-vn4-31779276'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77544492', 'ctest-policy1-71127960']], 'subnet_ipam': [{'subnet_cidr': '30.231.179.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3626:475b:1888:d640:9aea:44f7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-04 14:08:07,859 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-11-04 14:08:08,189 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-11-04 14:08:08,216 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b51b614b-99f9-45a9-9401-e955e8c7bb95 2025-11-04 14:08:08,227 - DEBUG - Requesting: http://10.0.0.49:8082/project/a06988f3-ca85-4bde-8708-88940f820982 2025-11-04 14:08:08,299 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b871ad50-5829-43ff-a9ac-2eb4cdcc4192 2025-11-04 14:08:08,310 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b871ad50-5829-43ff-a9ac-2eb4cdcc4192 2025-11-04 14:08:08,319 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9cdea2eb-756b-4647-acf2-00d158d2c604 2025-11-04 14:08:08,325 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9cdea2eb-756b-4647-acf2-00d158d2c604 2025-11-04 14:08:08,330 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/18d8ffbd-6ca0-469c-a20f-613ad4d87dbf 2025-11-04 14:08:08,337 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-04 14:08:08,337 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b871ad50-5829-43ff-a9ac-2eb4cdcc4192 2025-11-04 14:08:08,347 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9cdea2eb-756b-4647-acf2-00d158d2c604 2025-11-04 14:08:08,361 - INFO - Verified VN network id 11 for VN b871ad50-5829-43ff-a9ac-2eb4cdcc4192 2025-11-04 14:08:08,361 - INFO - Verifications in API Server for VN ctest-vn4-31779276 passed 2025-11-04 14:08:08,361 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b871ad50-5829-43ff-a9ac-2eb4cdcc4192 2025-11-04 14:08:08,371 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9cdea2eb-756b-4647-acf2-00d158d2c604 2025-11-04 14:08:08,377 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9cdea2eb-756b-4647-acf2-00d158d2c604 2025-11-04 14:08:08,384 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/18d8ffbd-6ca0-469c-a20f-613ad4d87dbf 2025-11-04 14:08:08,396 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77544492:ctest-vn4-31779276', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-77544492', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13290594535935132671', 'uuid-lslong': '12226198442485760402'}, 'enable': 'true', 'created': '2025-11-04T14:08:07', 'last-modified': '2025-11-04T14:08:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.728932'} 2025-11-04 14:08:08,402 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-04 14:08:08,402 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-31779276 passed 2025-11-04 14:08:08,402 - DEBUG - ====Verifying policy data for ctest-vn4-31779276 in API_Server ====== 2025-11-04 14:08:08,402 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-11-04 14:08:08,408 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b51b614b-99f9-45a9-9401-e955e8c7bb95 2025-11-04 14:08:08,420 - DEBUG - Requesting: http://10.0.0.49:8082/project/a06988f3-ca85-4bde-8708-88940f820982 2025-11-04 14:08:08,487 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/b871ad50-5829-43ff-a9ac-2eb4cdcc4192 2025-11-04 14:08:08,496 - DEBUG - ==>Verifying data for policy with id: fdc369ad-4b11-4b99-8dd3-7645a7cbd936, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77544492', 'ctest-policy1-71127960'] 2025-11-04 14:08:08,496 - INFO - VN ctest-vn4-31779276 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-04 14:08:08,496 - DEBUG - Verifying the vn in opserver 2025-11-04 14:08:08,496 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77544492:ctest-vn4-31779276 virtual network link through opserver 10.0.0.49 2025-11-04 14:08:08,496 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-11-04 14:08:08,834 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-11-04 14:08:08,892 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77544492:ctest-vn4-31779276', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77544492:ctest-vn4-31779276?flat'} 2025-11-04 14:08:08,892 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77544492:ctest-vn4-31779276 is found in opserver 2025-11-04 14:08:08,903 - DEBUG - Do not have enough data to verify VN in agent 2025-11-04 14:08:08,908 - DEBUG - VRF ids for VN ctest-vn4-31779276: {} 2025-11-04 14:08:08,908 - DEBUG - ====Verifying data for ctest-policy1-71127960 in API_Server ====== 2025-11-04 14:08:08,908 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-11-04 14:08:08,914 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b51b614b-99f9-45a9-9401-e955e8c7bb95 2025-11-04 14:08:08,924 - DEBUG - Requesting: http://10.0.0.49:8082/project/a06988f3-ca85-4bde-8708-88940f820982 2025-11-04 14:08:08,995 - DEBUG - Requesting: http://10.0.0.49:8082/network-policy/fdc369ad-4b11-4b99-8dd3-7645a7cbd936 2025-11-04 14:08:09,005 - INFO - Verified policy ctest-policy1-71127960 in API Server, Result: True 2025-11-04 14:08:09,005 - INFO - Done with setup and verification, moving onto test .. 2025-11-04 14:08:09,013 - INFO - Deleting VN ctest-vn4-31779276 2025-11-04 14:08:09,132 - DEBUG - Response for deleting network () 2025-11-04 14:08:09,132 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/9cdea2eb-756b-4647-acf2-00d158d2c604 2025-11-04 14:08:09,137 - DEBUG - Response Code: 404 2025-11-04 14:08:09,137 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-11-04 14:08:09,142 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b51b614b-99f9-45a9-9401-e955e8c7bb95 2025-11-04 14:08:09,197 - DEBUG - Requesting: http://10.0.0.49:8082/project/a06988f3-ca85-4bde-8708-88940f820982 2025-11-04 14:08:09,267 - INFO - Validated that VN ctest-vn4-31779276 is not found in API Server 2025-11-04 14:08:09,277 - DEBUG - VN ctest-vn4-31779276 is not present in Agent 10.0.0.49 2025-11-04 14:08:09,277 - INFO - Validated that VN ctest-vn4-31779276 is not in any agent 2025-11-04 14:08:09,292 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-31779276 info 2025-11-04 14:08:09,315 - INFO - Deleted policy ctest-policy1-71127960 2025-11-04 14:08:09,487 - DEBUG - policy ctest-policy1-71127960 is not found in API Server 2025-11-04 14:08:09,740 - DEBUG - No XMPP flaps were noticed during the test
2025-11-04 14:08:09,740 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-04 14:08:09,740 - INFO - -------------------------------------------------------------------------------- 2025-11-04 14:08:10,035 - DEBUG - No XMPP flaps were noticed during the test
2025-11-04 14:08:10,035 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-11-04 14:08:10,036 - INFO - -------------------------------------------------------------------------------- 2025-11-04 14:08:10,773 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-77544492, ID : a06988f3-ca85-4bde-8708-88940f820982