2025-06-24 13:40:57,821 - INFO - Domain Default found not creating
2025-06-24 13:40:57,966 - INFO - Project ctest-TestBasicPolicy-24180529 not found, creating it
2025-06-24 13:40:58,423 - INFO - Created Project:ctest-TestBasicPolicy-24180529, ID : f6b97340-fa25-42d5-b7ca-2991231dd646
2025-06-24 13:40:59,884 - INFO - ================================================================================
2025-06-24 13:40:59,884 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-24 13:40:59,884 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-06-24 13:41:00,142 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.25': '0'}} with
2025-06-24 13:41:00,142 - INFO - Initial checks done. Running the testcase now
2025-06-24 13:41:00,142 - INFO -
2025-06-24 13:41:00,730 - DEBUG - Response for create_network : {'network': {'id': 'ffc85314-8f7f-4b7f-9013-476598d75f2f', 'name': 'ctest-vn-98011414', 'tenant_id': 'f6b97340fa2542d5b7ca2991231dd646', 'project_id': 'f6b97340fa2542d5b7ca2991231dd646', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24180529', 'ctest-vn-98011414'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 13:41:00,921 - DEBUG - Response for create_subnet : {'subnet': {'id': '983dc29c-104a-4155-9a33-b7b569d78945', 'name': '', 'tenant_id': 'f6b97340fa2542d5b7ca2991231dd646', 'network_id': 'ffc85314-8f7f-4b7f-9013-476598d75f2f', 'ip_version': 4, 'cidr': '135.72.248.0/26', 'allocation_pools': [{'start': '135.72.248.2', 'end': '135.72.248.62'}], 'gateway_ip': '135.72.248.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.72.248.2', 'tags': [], 'project_id': 'f6b97340fa2542d5b7ca2991231dd646'}}
2025-06-24 13:41:00,940 - INFO - Created VN ctest-vn-98011414
2025-06-24 13:41:00,993 - DEBUG - VN ctest-vn-98011414 UUID is ffc85314-8f7f-4b7f-9013-476598d75f2f
2025-06-24 13:41:01,300 - DEBUG - Response for create_network : {'network': {'id': '6a613699-f423-4f71-a93e-e688a9595ce3', 'name': 'ctest-vn-36822491', 'tenant_id': 'f6b97340fa2542d5b7ca2991231dd646', 'project_id': 'f6b97340fa2542d5b7ca2991231dd646', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24180529', 'ctest-vn-36822491'], 'port_security_enabled': True, 'description': ''}}
2025-06-24 13:41:01,483 - DEBUG - Response for create_subnet : {'subnet': {'id': '08c65cbe-8bfc-4f35-be94-416b0fe57822', 'name': '', 'tenant_id': 'f6b97340fa2542d5b7ca2991231dd646', 'network_id': '6a613699-f423-4f71-a93e-e688a9595ce3', 'ip_version': 4, 'cidr': '138.65.228.64/26', 'allocation_pools': [{'start': '138.65.228.66', 'end': '138.65.228.126'}], 'gateway_ip': '138.65.228.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.65.228.66', 'tags': [], 'project_id': 'f6b97340fa2542d5b7ca2991231dd646'}}
2025-06-24 13:41:01,502 - INFO - Created VN ctest-vn-36822491
2025-06-24 13:41:01,561 - DEBUG - VN ctest-vn-36822491 UUID is 6a613699-f423-4f71-a93e-e688a9595ce3
2025-06-24 13:41:01,676 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24180529:ctest-vn-98011414, 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-TestBasicPolicy-24180529:ctest-vn-36822491, 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-06-24 13:41:02,014 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ffc85314-8f7f-4b7f-9013-476598d75f2f', 'name': 'ctest-vn-98011414', 'tenant_id': 'f6b97340fa2542d5b7ca2991231dd646', 'project_id': 'f6b97340fa2542d5b7ca2991231dd646', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['983dc29c-104a-4155-9a33-b7b569d78945'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24180529', 'ctest-vn-98011414'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24180529', 'ctest-policy-allow-all-21749218']], 'subnet_ipam': [{'subnet_cidr': '135.72.248.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 13:41:02,243 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a613699-f423-4f71-a93e-e688a9595ce3', 'name': 'ctest-vn-36822491', 'tenant_id': 'f6b97340fa2542d5b7ca2991231dd646', 'project_id': 'f6b97340fa2542d5b7ca2991231dd646', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['08c65cbe-8bfc-4f35-be94-416b0fe57822'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24180529', 'ctest-vn-36822491'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24180529', 'ctest-policy-allow-all-21749218']], 'subnet_ipam': [{'subnet_cidr': '138.65.228.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-24 13:41:02,405 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-24 13:41:02,707 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-24 13:41:02,737 - DEBUG - Requesting: http://10.0.0.242:8082/domain/21fa690b-2526-431e-ae8c-cdbf55743838
2025-06-24 13:41:02,752 - DEBUG - Requesting: http://10.0.0.242:8082/project/f6b97340-fa25-42d5-b7ca-2991231dd646
2025-06-24 13:41:02,834 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ffc85314-8f7f-4b7f-9013-476598d75f2f
2025-06-24 13:41:02,846 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ffc85314-8f7f-4b7f-9013-476598d75f2f
2025-06-24 13:41:02,859 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0eb561b9-5045-45e4-aa80-cc8c4cd172c4
2025-06-24 13:41:02,868 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0eb561b9-5045-45e4-aa80-cc8c4cd172c4
2025-06-24 13:41:02,876 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ac2f05d1-9ca1-4ccc-8130-fb054b5f8c67
2025-06-24 13:41:02,883 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 13:41:02,883 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ffc85314-8f7f-4b7f-9013-476598d75f2f
2025-06-24 13:41:02,894 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0eb561b9-5045-45e4-aa80-cc8c4cd172c4
2025-06-24 13:41:02,911 - INFO - Verified VN network id 8 for VN ffc85314-8f7f-4b7f-9013-476598d75f2f
2025-06-24 13:41:02,911 - INFO - Verifications in API Server for VN ctest-vn-98011414 passed
2025-06-24 13:41:02,911 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ffc85314-8f7f-4b7f-9013-476598d75f2f
2025-06-24 13:41:02,922 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0eb561b9-5045-45e4-aa80-cc8c4cd172c4
2025-06-24 13:41:02,932 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0eb561b9-5045-45e4-aa80-cc8c4cd172c4
2025-06-24 13:41:02,941 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ac2f05d1-9ca1-4ccc-8130-fb054b5f8c67
2025-06-24 13:41:02,957 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24180529:ctest-vn-98011414', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24180529', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18431072822785690495', 'uuid-lslong': '10381720067700645679'}, 'enable': 'true', 'created': '2025-06-24T13:41:00', 'last-modified': '2025-06-24T13:41:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978289'}
2025-06-24 13:41:02,965 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-24 13:41:02,965 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98011414 passed
2025-06-24 13:41:02,966 - DEBUG - ====Verifying policy data for ctest-vn-98011414 in API_Server ======
2025-06-24 13:41:02,966 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-24 13:41:02,972 - DEBUG - Requesting: http://10.0.0.242:8082/domain/21fa690b-2526-431e-ae8c-cdbf55743838
2025-06-24 13:41:02,986 - DEBUG - Requesting: http://10.0.0.242:8082/project/f6b97340-fa25-42d5-b7ca-2991231dd646
2025-06-24 13:41:03,061 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ffc85314-8f7f-4b7f-9013-476598d75f2f
2025-06-24 13:41:03,072 - DEBUG - ==>Verifying data for policy with id: a2cf6956-3cd7-456a-9990-29092b5c08d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-24180529', 'ctest-policy-allow-all-21749218']
2025-06-24 13:41:03,072 - INFO - VN ctest-vn-98011414 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 13:41:03,072 - DEBUG - Verifying the vn in opserver
2025-06-24 13:41:03,072 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24180529:ctest-vn-98011414 virtual network link through opserver 10.0.0.242
2025-06-24 13:41:03,072 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-24 13:41:03,367 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-24 13:41:03,431 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24180529:ctest-vn-98011414', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24180529:ctest-vn-98011414?flat'}
2025-06-24 13:41:03,431 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24180529:ctest-vn-98011414 is found in opserver
2025-06-24 13:41:03,443 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 13:41:03,449 - DEBUG - VRF ids for VN ctest-vn-98011414: {}
2025-06-24 13:41:03,449 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-24 13:41:03,455 - DEBUG - Requesting: http://10.0.0.242:8082/domain/21fa690b-2526-431e-ae8c-cdbf55743838
2025-06-24 13:41:03,468 - DEBUG - Requesting: http://10.0.0.242:8082/project/f6b97340-fa25-42d5-b7ca-2991231dd646
2025-06-24 13:41:03,543 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6a613699-f423-4f71-a93e-e688a9595ce3
2025-06-24 13:41:03,556 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6a613699-f423-4f71-a93e-e688a9595ce3
2025-06-24 13:41:03,566 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b9d1affa-db9e-40e6-97c9-59806aec5dbd
2025-06-24 13:41:03,574 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b9d1affa-db9e-40e6-97c9-59806aec5dbd
2025-06-24 13:41:03,583 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/13ff4b72-bf97-4c5e-ab0d-105fcb6f7a73
2025-06-24 13:41:03,592 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 13:41:03,593 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6a613699-f423-4f71-a93e-e688a9595ce3
2025-06-24 13:41:03,603 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b9d1affa-db9e-40e6-97c9-59806aec5dbd
2025-06-24 13:41:03,619 - INFO - Verified VN network id 9 for VN 6a613699-f423-4f71-a93e-e688a9595ce3
2025-06-24 13:41:03,619 - INFO - Verifications in API Server for VN ctest-vn-36822491 passed
2025-06-24 13:41:03,619 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6a613699-f423-4f71-a93e-e688a9595ce3
2025-06-24 13:41:03,630 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b9d1affa-db9e-40e6-97c9-59806aec5dbd
2025-06-24 13:41:03,640 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b9d1affa-db9e-40e6-97c9-59806aec5dbd
2025-06-24 13:41:03,648 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/13ff4b72-bf97-4c5e-ab0d-105fcb6f7a73
2025-06-24 13:41:03,662 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24180529:ctest-vn-36822491', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24180529', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7665468075615145841', 'uuid-lslong': '12195438315597028579'}, 'enable': 'true', 'created': '2025-06-24T13:41:01', 'last-modified': '2025-06-24T13:41:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.448424'}
2025-06-24 13:41:03,670 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-24 13:41:03,670 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36822491 passed
2025-06-24 13:41:03,670 - DEBUG - ====Verifying policy data for ctest-vn-36822491 in API_Server ======
2025-06-24 13:41:03,671 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-24 13:41:03,678 - DEBUG - Requesting: http://10.0.0.242:8082/domain/21fa690b-2526-431e-ae8c-cdbf55743838
2025-06-24 13:41:03,692 - DEBUG - Requesting: http://10.0.0.242:8082/project/f6b97340-fa25-42d5-b7ca-2991231dd646
2025-06-24 13:41:03,765 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6a613699-f423-4f71-a93e-e688a9595ce3
2025-06-24 13:41:03,776 - DEBUG - ==>Verifying data for policy with id: a2cf6956-3cd7-456a-9990-29092b5c08d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-24180529', 'ctest-policy-allow-all-21749218']
2025-06-24 13:41:03,776 - INFO - VN ctest-vn-36822491 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-24 13:41:03,776 - DEBUG - Verifying the vn in opserver
2025-06-24 13:41:03,776 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24180529:ctest-vn-36822491 virtual network link through opserver 10.0.0.242
2025-06-24 13:41:03,776 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-24 13:41:03,788 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24180529:ctest-vn-36822491', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24180529:ctest-vn-36822491?flat'}
2025-06-24 13:41:03,788 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24180529:ctest-vn-36822491 is found in opserver
2025-06-24 13:41:03,800 - DEBUG - Do not have enough data to verify VN in agent
2025-06-24 13:41:03,806 - DEBUG - VRF ids for VN ctest-vn-36822491: {}
2025-06-24 13:41:03,863 - DEBUG - Services list from nova: [