2025-10-09 14:08:23,538 - INFO - Domain Default found not creating
2025-10-09 14:08:23,728 - INFO - Project ctest-TestBasicPolicy-32584545 not found, creating it
2025-10-09 14:08:24,193 - INFO - Created Project:ctest-TestBasicPolicy-32584545, ID : 5a9a62cf-ebda-4ba1-8f24-eb62a05bba8d
2025-10-09 14:08:25,768 - INFO - ================================================================================
2025-10-09 14:08:25,768 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 14:08:25,769 - 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-10-09 14:08:26,047 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with
2025-10-09 14:08:26,048 - INFO - Initial checks done. Running the testcase now
2025-10-09 14:08:26,048 - INFO -
2025-10-09 14:08:26,741 - DEBUG - Response for create_network : {'network': {'id': '8f5fc5b5-022e-4f09-9505-0dc3a7b174eb', 'name': 'ctest-vn-65245888', 'tenant_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'project_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32584545', 'ctest-vn-65245888'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 14:08:26,974 - DEBUG - Response for create_subnet : {'subnet': {'id': '5af20be7-37a2-4931-9c80-5088afc3efb1', 'name': '', 'tenant_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'network_id': '8f5fc5b5-022e-4f09-9505-0dc3a7b174eb', 'ip_version': 4, 'cidr': '63.196.205.64/26', 'allocation_pools': [{'start': '63.196.205.66', 'end': '63.196.205.126'}], 'gateway_ip': '63.196.205.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.196.205.66', 'tags': [], 'project_id': '5a9a62cfebda4ba18f24eb62a05bba8d'}}
2025-10-09 14:08:26,996 - INFO - Created VN ctest-vn-65245888
2025-10-09 14:08:27,052 - DEBUG - VN ctest-vn-65245888 UUID is 8f5fc5b5-022e-4f09-9505-0dc3a7b174eb
2025-10-09 14:08:27,388 - DEBUG - Response for create_network : {'network': {'id': '7bb27b8a-7223-4838-b1e5-743b219c9049', 'name': 'ctest-vn-22163341', 'tenant_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'project_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32584545', 'ctest-vn-22163341'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 14:08:27,568 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0754b04-aac3-4add-a78c-4dfaf1e00ebc', 'name': '', 'tenant_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'network_id': '7bb27b8a-7223-4838-b1e5-743b219c9049', 'ip_version': 4, 'cidr': '125.153.139.192/26', 'allocation_pools': [{'start': '125.153.139.194', 'end': '125.153.139.254'}], 'gateway_ip': '125.153.139.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.153.139.194', 'tags': [], 'project_id': '5a9a62cfebda4ba18f24eb62a05bba8d'}}
2025-10-09 14:08:27,590 - INFO - Created VN ctest-vn-22163341
2025-10-09 14:08:27,644 - DEBUG - VN ctest-vn-22163341 UUID is 7bb27b8a-7223-4838-b1e5-743b219c9049
2025-10-09 14:08:27,763 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-65245888, 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-32584545:ctest-vn-22163341, 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-10-09 14:08:28,084 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8f5fc5b5-022e-4f09-9505-0dc3a7b174eb', 'name': 'ctest-vn-65245888', 'tenant_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'project_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5af20be7-37a2-4931-9c80-5088afc3efb1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32584545', 'ctest-vn-65245888'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32584545', 'ctest-policy-allow-all-95991652']], 'subnet_ipam': [{'subnet_cidr': '63.196.205.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 14:08:28,330 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7bb27b8a-7223-4838-b1e5-743b219c9049', 'name': 'ctest-vn-22163341', 'tenant_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'project_id': '5a9a62cfebda4ba18f24eb62a05bba8d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0754b04-aac3-4add-a78c-4dfaf1e00ebc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32584545', 'ctest-vn-22163341'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32584545', 'ctest-policy-allow-all-95991652']], 'subnet_ipam': [{'subnet_cidr': '125.153.139.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 14:08:28,492 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-09 14:08:28,791 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-09 14:08:28,823 - DEBUG - Requesting: http://10.0.0.27:8082/domain/fc5ea74f-f795-4d55-a6d1-f2f95952c4e4
2025-10-09 14:08:28,839 - DEBUG - Requesting: http://10.0.0.27:8082/project/5a9a62cf-ebda-4ba1-8f24-eb62a05bba8d
2025-10-09 14:08:28,913 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8f5fc5b5-022e-4f09-9505-0dc3a7b174eb
2025-10-09 14:08:28,926 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8f5fc5b5-022e-4f09-9505-0dc3a7b174eb
2025-10-09 14:08:28,936 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8ca0e02a-2f01-47f3-a6f3-526b41e91794
2025-10-09 14:08:28,944 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8ca0e02a-2f01-47f3-a6f3-526b41e91794
2025-10-09 14:08:28,952 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0b64369b-ca18-4484-8727-2388379cd234
2025-10-09 14:08:28,960 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 14:08:28,960 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8f5fc5b5-022e-4f09-9505-0dc3a7b174eb
2025-10-09 14:08:28,970 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8ca0e02a-2f01-47f3-a6f3-526b41e91794
2025-10-09 14:08:28,987 - INFO - Verified VN network id 11 for VN 8f5fc5b5-022e-4f09-9505-0dc3a7b174eb
2025-10-09 14:08:28,987 - INFO - Verifications in API Server for VN ctest-vn-65245888 passed
2025-10-09 14:08:28,987 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8f5fc5b5-022e-4f09-9505-0dc3a7b174eb
2025-10-09 14:08:28,998 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8ca0e02a-2f01-47f3-a6f3-526b41e91794
2025-10-09 14:08:29,007 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/8ca0e02a-2f01-47f3-a6f3-526b41e91794
2025-10-09 14:08:29,016 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0b64369b-ca18-4484-8727-2388379cd234
2025-10-09 14:08:29,028 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-65245888', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32584545', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10331193451427548937', 'uuid-lslong': '10738004020518024427'}, 'enable': 'true', 'created': '2025-10-09T14:08:26', 'last-modified': '2025-10-09T14:08:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.965266'}
2025-10-09 14:08:29,034 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 14:08:29,034 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65245888 passed
2025-10-09 14:08:29,034 - DEBUG - ====Verifying policy data for ctest-vn-65245888 in API_Server ======
2025-10-09 14:08:29,034 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-09 14:08:29,041 - DEBUG - Requesting: http://10.0.0.27:8082/domain/fc5ea74f-f795-4d55-a6d1-f2f95952c4e4
2025-10-09 14:08:29,056 - DEBUG - Requesting: http://10.0.0.27:8082/project/5a9a62cf-ebda-4ba1-8f24-eb62a05bba8d
2025-10-09 14:08:29,136 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8f5fc5b5-022e-4f09-9505-0dc3a7b174eb
2025-10-09 14:08:29,146 - DEBUG - ==>Verifying data for policy with id: 51a170af-db1c-4f8d-a39d-96ff5d4e12f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-32584545', 'ctest-policy-allow-all-95991652']
2025-10-09 14:08:29,146 - INFO - VN ctest-vn-65245888 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 14:08:29,147 - DEBUG - Verifying the vn in opserver
2025-10-09 14:08:29,147 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-65245888 virtual network link through opserver 10.0.0.27
2025-10-09 14:08:29,147 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-09 14:08:29,451 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-09 14:08:29,522 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-65245888', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-65245888?flat'}
2025-10-09 14:08:29,522 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-65245888 is found in opserver
2025-10-09 14:08:29,533 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 14:08:29,540 - DEBUG - VRF ids for VN ctest-vn-65245888: {}
2025-10-09 14:08:29,540 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-09 14:08:29,546 - DEBUG - Requesting: http://10.0.0.27:8082/domain/fc5ea74f-f795-4d55-a6d1-f2f95952c4e4
2025-10-09 14:08:29,558 - DEBUG - Requesting: http://10.0.0.27:8082/project/5a9a62cf-ebda-4ba1-8f24-eb62a05bba8d
2025-10-09 14:08:29,635 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7bb27b8a-7223-4838-b1e5-743b219c9049
2025-10-09 14:08:29,649 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7bb27b8a-7223-4838-b1e5-743b219c9049
2025-10-09 14:08:29,661 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a0c45cf0-7a18-440a-af08-cf909e483816
2025-10-09 14:08:29,670 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a0c45cf0-7a18-440a-af08-cf909e483816
2025-10-09 14:08:29,678 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/cc40863f-7b1c-4aa9-81b6-75128aad8c61
2025-10-09 14:08:29,688 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 14:08:29,688 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7bb27b8a-7223-4838-b1e5-743b219c9049
2025-10-09 14:08:29,701 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a0c45cf0-7a18-440a-af08-cf909e483816
2025-10-09 14:08:29,721 - INFO - Verified VN network id 12 for VN 7bb27b8a-7223-4838-b1e5-743b219c9049
2025-10-09 14:08:29,721 - INFO - Verifications in API Server for VN ctest-vn-22163341 passed
2025-10-09 14:08:29,721 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7bb27b8a-7223-4838-b1e5-743b219c9049
2025-10-09 14:08:29,733 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a0c45cf0-7a18-440a-af08-cf909e483816
2025-10-09 14:08:29,741 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/a0c45cf0-7a18-440a-af08-cf909e483816
2025-10-09 14:08:29,748 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/cc40863f-7b1c-4aa9-81b6-75128aad8c61
2025-10-09 14:08:29,762 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-22163341', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32584545', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8913322447070251064', 'uuid-lslong': '12818779711695786057'}, 'enable': 'true', 'created': '2025-10-09T14:08:27', 'last-modified': '2025-10-09T14:08:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.459269'}
2025-10-09 14:08:29,769 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 14:08:29,769 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22163341 passed
2025-10-09 14:08:29,769 - DEBUG - ====Verifying policy data for ctest-vn-22163341 in API_Server ======
2025-10-09 14:08:29,769 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-09 14:08:29,775 - DEBUG - Requesting: http://10.0.0.27:8082/domain/fc5ea74f-f795-4d55-a6d1-f2f95952c4e4
2025-10-09 14:08:29,786 - DEBUG - Requesting: http://10.0.0.27:8082/project/5a9a62cf-ebda-4ba1-8f24-eb62a05bba8d
2025-10-09 14:08:29,867 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7bb27b8a-7223-4838-b1e5-743b219c9049
2025-10-09 14:08:29,880 - DEBUG - ==>Verifying data for policy with id: 51a170af-db1c-4f8d-a39d-96ff5d4e12f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-32584545', 'ctest-policy-allow-all-95991652']
2025-10-09 14:08:29,880 - INFO - VN ctest-vn-22163341 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 14:08:29,880 - DEBUG - Verifying the vn in opserver
2025-10-09 14:08:29,880 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-22163341 virtual network link through opserver 10.0.0.27
2025-10-09 14:08:29,880 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-09 14:08:29,896 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-22163341', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-22163341?flat'}
2025-10-09 14:08:29,896 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32584545:ctest-vn-22163341 is found in opserver
2025-10-09 14:08:29,907 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 14:08:29,913 - DEBUG - VRF ids for VN ctest-vn-22163341: {}
2025-10-09 14:08:29,988 - DEBUG - Services list from nova: [