2025-11-21 17:19:41,569 - INFO - Domain Default found not creating
2025-11-21 17:19:41,777 - INFO - Project ctest-TestBasicPolicy-35915649 not found, creating it
2025-11-21 17:19:42,261 - INFO - Created Project:ctest-TestBasicPolicy-35915649, ID : 3e1b64f0-bddd-442a-ba81-c5893bf66b93
2025-11-21 17:19:43,824 - INFO - ================================================================================
2025-11-21 17:19:43,824 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-21 17:19:43,824 - 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-11-21 17:19:44,084 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.192': '0'}} with
2025-11-21 17:19:44,084 - INFO - Initial checks done. Running the testcase now
2025-11-21 17:19:44,084 - INFO -
2025-11-21 17:19:44,669 - DEBUG - Response for create_network : {'network': {'id': 'df610870-df8f-4f19-b63c-a305bc76d3f7', 'name': 'ctest-vn-16831392', 'tenant_id': '3e1b64f0bddd442aba81c5893bf66b93', 'project_id': '3e1b64f0bddd442aba81c5893bf66b93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35915649', 'ctest-vn-16831392'], 'port_security_enabled': True, 'description': ''}}
2025-11-21 17:19:44,884 - DEBUG - Response for create_subnet : {'subnet': {'id': '9065eb2b-f9ab-4628-aac3-7980cf39fdcd', 'name': '', 'tenant_id': '3e1b64f0bddd442aba81c5893bf66b93', 'network_id': 'df610870-df8f-4f19-b63c-a305bc76d3f7', 'ip_version': 4, 'cidr': '55.136.105.192/26', 'allocation_pools': [{'start': '55.136.105.194', 'end': '55.136.105.254'}], 'gateway_ip': '55.136.105.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.136.105.194', 'tags': [], 'project_id': '3e1b64f0bddd442aba81c5893bf66b93'}}
2025-11-21 17:19:44,904 - INFO - Created VN ctest-vn-16831392
2025-11-21 17:19:44,958 - DEBUG - VN ctest-vn-16831392 UUID is df610870-df8f-4f19-b63c-a305bc76d3f7
2025-11-21 17:19:45,262 - DEBUG - Response for create_network : {'network': {'id': '97dc8c13-7819-46bb-ae7e-a4af65d36438', 'name': 'ctest-vn-41729916', 'tenant_id': '3e1b64f0bddd442aba81c5893bf66b93', 'project_id': '3e1b64f0bddd442aba81c5893bf66b93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35915649', 'ctest-vn-41729916'], 'port_security_enabled': True, 'description': ''}}
2025-11-21 17:19:45,446 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fef9b592-f221-4537-b52d-55bec7fcd882', 'name': '', 'tenant_id': '3e1b64f0bddd442aba81c5893bf66b93', 'network_id': '97dc8c13-7819-46bb-ae7e-a4af65d36438', 'ip_version': 4, 'cidr': '147.105.206.128/26', 'allocation_pools': [{'start': '147.105.206.130', 'end': '147.105.206.190'}], 'gateway_ip': '147.105.206.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.105.206.130', 'tags': [], 'project_id': '3e1b64f0bddd442aba81c5893bf66b93'}}
2025-11-21 17:19:45,465 - INFO - Created VN ctest-vn-41729916
2025-11-21 17:19:45,518 - DEBUG - VN ctest-vn-41729916 UUID is 97dc8c13-7819-46bb-ae7e-a4af65d36438
2025-11-21 17:19:45,637 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35915649:ctest-vn-16831392, 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-35915649:ctest-vn-41729916, 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-21 17:19:45,943 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'df610870-df8f-4f19-b63c-a305bc76d3f7', 'name': 'ctest-vn-16831392', 'tenant_id': '3e1b64f0bddd442aba81c5893bf66b93', 'project_id': '3e1b64f0bddd442aba81c5893bf66b93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9065eb2b-f9ab-4628-aac3-7980cf39fdcd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35915649', 'ctest-vn-16831392'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35915649', 'ctest-policy-allow-all-96799618']], 'subnet_ipam': [{'subnet_cidr': '55.136.105.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-21 17:19:46,204 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '97dc8c13-7819-46bb-ae7e-a4af65d36438', 'name': 'ctest-vn-41729916', 'tenant_id': '3e1b64f0bddd442aba81c5893bf66b93', 'project_id': '3e1b64f0bddd442aba81c5893bf66b93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fef9b592-f221-4537-b52d-55bec7fcd882'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35915649', 'ctest-vn-41729916'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35915649', 'ctest-policy-allow-all-96799618']], 'subnet_ipam': [{'subnet_cidr': '147.105.206.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-21 17:19:46,394 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-21 17:19:46,693 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-21 17:19:46,731 - DEBUG - Requesting: http://10.0.0.22:8082/domain/06caa346-ce50-4cdf-b998-a07e05c37f3b
2025-11-21 17:19:46,744 - DEBUG - Requesting: http://10.0.0.22:8082/project/3e1b64f0-bddd-442a-ba81-c5893bf66b93
2025-11-21 17:19:46,819 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/df610870-df8f-4f19-b63c-a305bc76d3f7
2025-11-21 17:19:46,830 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/df610870-df8f-4f19-b63c-a305bc76d3f7
2025-11-21 17:19:46,840 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b86335f0-1353-44a9-8465-3f3e0bd1adfb
2025-11-21 17:19:46,848 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b86335f0-1353-44a9-8465-3f3e0bd1adfb
2025-11-21 17:19:46,856 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6d31b45d-cd82-476e-8fd7-a8cc39ae75bc
2025-11-21 17:19:46,865 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-21 17:19:46,865 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/df610870-df8f-4f19-b63c-a305bc76d3f7
2025-11-21 17:19:46,876 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b86335f0-1353-44a9-8465-3f3e0bd1adfb
2025-11-21 17:19:46,894 - INFO - Verified VN network id 11 for VN df610870-df8f-4f19-b63c-a305bc76d3f7
2025-11-21 17:19:46,894 - INFO - Verifications in API Server for VN ctest-vn-16831392 passed
2025-11-21 17:19:46,894 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/df610870-df8f-4f19-b63c-a305bc76d3f7
2025-11-21 17:19:46,905 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b86335f0-1353-44a9-8465-3f3e0bd1adfb
2025-11-21 17:19:46,914 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/b86335f0-1353-44a9-8465-3f3e0bd1adfb
2025-11-21 17:19:46,922 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6d31b45d-cd82-476e-8fd7-a8cc39ae75bc
2025-11-21 17:19:46,935 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35915649:ctest-vn-16831392', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35915649', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16096155824078933785', 'uuid-lslong': '13131549858537591799'}, 'enable': 'true', 'created': '2025-11-21T17:19:44', 'last-modified': '2025-11-21T17:19:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.019735'}
2025-11-21 17:19:46,944 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-21 17:19:46,944 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16831392 passed
2025-11-21 17:19:46,944 - DEBUG - ====Verifying policy data for ctest-vn-16831392 in API_Server ======
2025-11-21 17:19:46,944 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-21 17:19:46,952 - DEBUG - Requesting: http://10.0.0.22:8082/domain/06caa346-ce50-4cdf-b998-a07e05c37f3b
2025-11-21 17:19:46,965 - DEBUG - Requesting: http://10.0.0.22:8082/project/3e1b64f0-bddd-442a-ba81-c5893bf66b93
2025-11-21 17:19:47,041 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/df610870-df8f-4f19-b63c-a305bc76d3f7
2025-11-21 17:19:47,050 - DEBUG - ==>Verifying data for policy with id: 6b72693f-36b7-4456-acf5-f40e0e3f42bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-35915649', 'ctest-policy-allow-all-96799618']
2025-11-21 17:19:47,050 - INFO - VN ctest-vn-16831392 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-21 17:19:47,050 - DEBUG - Verifying the vn in opserver
2025-11-21 17:19:47,051 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35915649:ctest-vn-16831392 virtual network link through opserver 10.0.0.22
2025-11-21 17:19:47,051 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-21 17:19:47,348 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-21 17:19:47,420 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35915649:ctest-vn-16831392', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35915649:ctest-vn-16831392?flat'}
2025-11-21 17:19:47,420 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35915649:ctest-vn-16831392 is found in opserver
2025-11-21 17:19:47,433 - DEBUG - Do not have enough data to verify VN in agent
2025-11-21 17:19:47,438 - DEBUG - VRF ids for VN ctest-vn-16831392: {}
2025-11-21 17:19:47,438 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-21 17:19:47,444 - DEBUG - Requesting: http://10.0.0.22:8082/domain/06caa346-ce50-4cdf-b998-a07e05c37f3b
2025-11-21 17:19:47,455 - DEBUG - Requesting: http://10.0.0.22:8082/project/3e1b64f0-bddd-442a-ba81-c5893bf66b93
2025-11-21 17:19:47,527 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/97dc8c13-7819-46bb-ae7e-a4af65d36438
2025-11-21 17:19:47,538 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/97dc8c13-7819-46bb-ae7e-a4af65d36438
2025-11-21 17:19:47,548 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/70d12e8e-0a94-4ba5-b67c-5ba973994fe7
2025-11-21 17:19:47,557 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/70d12e8e-0a94-4ba5-b67c-5ba973994fe7
2025-11-21 17:19:47,564 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6cf7ba7d-284c-49ed-bac7-67ec79663f0e
2025-11-21 17:19:47,572 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-21 17:19:47,572 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/97dc8c13-7819-46bb-ae7e-a4af65d36438
2025-11-21 17:19:47,582 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/70d12e8e-0a94-4ba5-b67c-5ba973994fe7
2025-11-21 17:19:47,596 - INFO - Verified VN network id 12 for VN 97dc8c13-7819-46bb-ae7e-a4af65d36438
2025-11-21 17:19:47,596 - INFO - Verifications in API Server for VN ctest-vn-41729916 passed
2025-11-21 17:19:47,596 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/97dc8c13-7819-46bb-ae7e-a4af65d36438
2025-11-21 17:19:47,605 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/70d12e8e-0a94-4ba5-b67c-5ba973994fe7
2025-11-21 17:19:47,612 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/70d12e8e-0a94-4ba5-b67c-5ba973994fe7
2025-11-21 17:19:47,620 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6cf7ba7d-284c-49ed-bac7-67ec79663f0e
2025-11-21 17:19:47,633 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35915649:ctest-vn-41729916', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35915649', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10942775209850652347', 'uuid-lslong': '12573668282899588152'}, 'enable': 'true', 'created': '2025-11-21T17:19:45', 'last-modified': '2025-11-21T17:19:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.456751'}
2025-11-21 17:19:47,640 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-21 17:19:47,640 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41729916 passed
2025-11-21 17:19:47,640 - DEBUG - ====Verifying policy data for ctest-vn-41729916 in API_Server ======
2025-11-21 17:19:47,640 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-21 17:19:47,647 - DEBUG - Requesting: http://10.0.0.22:8082/domain/06caa346-ce50-4cdf-b998-a07e05c37f3b
2025-11-21 17:19:47,658 - DEBUG - Requesting: http://10.0.0.22:8082/project/3e1b64f0-bddd-442a-ba81-c5893bf66b93
2025-11-21 17:19:47,730 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/97dc8c13-7819-46bb-ae7e-a4af65d36438
2025-11-21 17:19:47,738 - DEBUG - ==>Verifying data for policy with id: 6b72693f-36b7-4456-acf5-f40e0e3f42bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-35915649', 'ctest-policy-allow-all-96799618']
2025-11-21 17:19:47,738 - INFO - VN ctest-vn-41729916 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-21 17:19:47,739 - DEBUG - Verifying the vn in opserver
2025-11-21 17:19:47,739 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35915649:ctest-vn-41729916 virtual network link through opserver 10.0.0.22
2025-11-21 17:19:47,739 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-21 17:19:47,749 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35915649:ctest-vn-41729916', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35915649:ctest-vn-41729916?flat'}
2025-11-21 17:19:47,749 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35915649:ctest-vn-41729916 is found in opserver
2025-11-21 17:19:47,758 - DEBUG - Do not have enough data to verify VN in agent
2025-11-21 17:19:47,763 - DEBUG - VRF ids for VN ctest-vn-41729916: {}
2025-11-21 17:19:47,831 - DEBUG - Services list from nova: [