2025-10-16 17:13:34,135 - INFO - Domain Default found not creating
2025-10-16 17:13:34,396 - INFO - Project ctest-TestBasicPolicy-48742799 not found, creating it
2025-10-16 17:13:35,012 - INFO - Created Project:ctest-TestBasicPolicy-48742799, ID : 4e2e4413-ff95-4f5f-a8ee-5fa4fa096880
2025-10-16 17:13:37,175 - INFO - ================================================================================
2025-10-16 17:13:37,176 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-16 17:13:37,176 - 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-16 17:13:37,481 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0'}} with
2025-10-16 17:13:37,482 - INFO - Initial checks done. Running the testcase now
2025-10-16 17:13:37,482 - INFO -
2025-10-16 17:13:38,276 - DEBUG - Response for create_network : {'network': {'id': '09e6aee8-98e2-45a5-ab6e-73f7f9cda08f', 'name': 'ctest-vn-58495953', 'tenant_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'project_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48742799', 'ctest-vn-58495953'], 'port_security_enabled': True, 'description': ''}}
2025-10-16 17:13:38,532 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9d2734f-8dd8-46c3-b6b9-3f1e1ea233ff', 'name': '', 'tenant_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'network_id': '09e6aee8-98e2-45a5-ab6e-73f7f9cda08f', 'ip_version': 4, 'cidr': '166.120.232.192/26', 'allocation_pools': [{'start': '166.120.232.194', 'end': '166.120.232.254'}], 'gateway_ip': '166.120.232.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.120.232.194', 'tags': [], 'project_id': '4e2e4413ff954f5fa8ee5fa4fa096880'}}
2025-10-16 17:13:38,556 - INFO - Created VN ctest-vn-58495953
2025-10-16 17:13:38,610 - DEBUG - VN ctest-vn-58495953 UUID is 09e6aee8-98e2-45a5-ab6e-73f7f9cda08f
2025-10-16 17:13:39,290 - DEBUG - Response for create_network : {'network': {'id': '4402cf71-fa0b-4ed9-b7a8-11bc479e83a5', 'name': 'ctest-vn-91921080', 'tenant_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'project_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48742799', 'ctest-vn-91921080'], 'port_security_enabled': True, 'description': ''}}
2025-10-16 17:13:39,590 - DEBUG - Response for create_subnet : {'subnet': {'id': '8bf807ee-d9c5-4a3b-82b5-5d2d34ed86b1', 'name': '', 'tenant_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'network_id': '4402cf71-fa0b-4ed9-b7a8-11bc479e83a5', 'ip_version': 4, 'cidr': '123.88.72.128/26', 'allocation_pools': [{'start': '123.88.72.130', 'end': '123.88.72.190'}], 'gateway_ip': '123.88.72.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.88.72.130', 'tags': [], 'project_id': '4e2e4413ff954f5fa8ee5fa4fa096880'}}
2025-10-16 17:13:39,611 - INFO - Created VN ctest-vn-91921080
2025-10-16 17:13:39,666 - DEBUG - VN ctest-vn-91921080 UUID is 4402cf71-fa0b-4ed9-b7a8-11bc479e83a5
2025-10-16 17:13:39,787 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-58495953, 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-48742799:ctest-vn-91921080, 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-16 17:13:40,228 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '09e6aee8-98e2-45a5-ab6e-73f7f9cda08f', 'name': 'ctest-vn-58495953', 'tenant_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'project_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d9d2734f-8dd8-46c3-b6b9-3f1e1ea233ff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48742799', 'ctest-vn-58495953'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48742799', 'ctest-policy-allow-all-91146916']], 'subnet_ipam': [{'subnet_cidr': '166.120.232.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-16 17:13:40,544 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4402cf71-fa0b-4ed9-b7a8-11bc479e83a5', 'name': 'ctest-vn-91921080', 'tenant_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'project_id': '4e2e4413ff954f5fa8ee5fa4fa096880', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8bf807ee-d9c5-4a3b-82b5-5d2d34ed86b1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48742799', 'ctest-vn-91921080'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48742799', 'ctest-policy-allow-all-91146916']], 'subnet_ipam': [{'subnet_cidr': '123.88.72.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-16 17:13:40,703 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-16 17:13:41,053 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-16 17:13:41,101 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0287fead-cb08-4b1a-bd70-a6c5867738a2
2025-10-16 17:13:41,136 - DEBUG - Requesting: http://10.0.0.22:8082/project/4e2e4413-ff95-4f5f-a8ee-5fa4fa096880
2025-10-16 17:13:41,264 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/09e6aee8-98e2-45a5-ab6e-73f7f9cda08f
2025-10-16 17:13:41,292 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/09e6aee8-98e2-45a5-ab6e-73f7f9cda08f
2025-10-16 17:13:41,316 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/40cc46f0-baac-40fd-bfdb-46c8cee37a33
2025-10-16 17:13:41,339 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/40cc46f0-baac-40fd-bfdb-46c8cee37a33
2025-10-16 17:13:41,356 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/1b81e58a-901e-4515-bee2-a0d62a9d661c
2025-10-16 17:13:41,371 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-16 17:13:41,371 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/09e6aee8-98e2-45a5-ab6e-73f7f9cda08f
2025-10-16 17:13:41,386 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/40cc46f0-baac-40fd-bfdb-46c8cee37a33
2025-10-16 17:13:41,415 - INFO - Verified VN network id 11 for VN 09e6aee8-98e2-45a5-ab6e-73f7f9cda08f
2025-10-16 17:13:41,415 - INFO - Verifications in API Server for VN ctest-vn-58495953 passed
2025-10-16 17:13:41,415 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/09e6aee8-98e2-45a5-ab6e-73f7f9cda08f
2025-10-16 17:13:41,434 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/40cc46f0-baac-40fd-bfdb-46c8cee37a33
2025-10-16 17:13:41,446 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/40cc46f0-baac-40fd-bfdb-46c8cee37a33
2025-10-16 17:13:41,456 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/1b81e58a-901e-4515-bee2-a0d62a9d661c
2025-10-16 17:13:41,476 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-58495953', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48742799', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '713449905005413797', 'uuid-lslong': '12352938336808968335'}, 'enable': 'true', 'created': '2025-10-16T17:13:38', 'last-modified': '2025-10-16T17:13:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.314930'}
2025-10-16 17:13:41,487 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-16 17:13:41,487 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58495953 passed
2025-10-16 17:13:41,487 - DEBUG - ====Verifying policy data for ctest-vn-58495953 in API_Server ======
2025-10-16 17:13:41,487 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-16 17:13:41,494 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0287fead-cb08-4b1a-bd70-a6c5867738a2
2025-10-16 17:13:41,511 - DEBUG - Requesting: http://10.0.0.22:8082/project/4e2e4413-ff95-4f5f-a8ee-5fa4fa096880
2025-10-16 17:13:41,599 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/09e6aee8-98e2-45a5-ab6e-73f7f9cda08f
2025-10-16 17:13:41,613 - DEBUG - ==>Verifying data for policy with id: c03e595f-004b-4257-8e8e-cc9c581add33, fqn: ['default-domain', 'ctest-TestBasicPolicy-48742799', 'ctest-policy-allow-all-91146916']
2025-10-16 17:13:41,613 - INFO - VN ctest-vn-58495953 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-16 17:13:41,613 - DEBUG - Verifying the vn in opserver
2025-10-16 17:13:41,613 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-58495953 virtual network link through opserver 10.0.0.22
2025-10-16 17:13:41,614 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-16 17:13:41,965 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-16 17:13:42,072 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-58495953', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-58495953?flat'}
2025-10-16 17:13:42,073 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-58495953 is found in opserver
2025-10-16 17:13:42,100 - DEBUG - Do not have enough data to verify VN in agent
2025-10-16 17:13:42,109 - DEBUG - VRF ids for VN ctest-vn-58495953: {}
2025-10-16 17:13:42,109 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-16 17:13:42,119 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0287fead-cb08-4b1a-bd70-a6c5867738a2
2025-10-16 17:13:42,149 - DEBUG - Requesting: http://10.0.0.22:8082/project/4e2e4413-ff95-4f5f-a8ee-5fa4fa096880
2025-10-16 17:13:42,270 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4402cf71-fa0b-4ed9-b7a8-11bc479e83a5
2025-10-16 17:13:42,293 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4402cf71-fa0b-4ed9-b7a8-11bc479e83a5
2025-10-16 17:13:42,311 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a2d039f-9ad3-4756-9f28-29987ba5a81c
2025-10-16 17:13:42,324 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a2d039f-9ad3-4756-9f28-29987ba5a81c
2025-10-16 17:13:42,339 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/46350da0-f742-4de4-8d1d-c397d6df092f
2025-10-16 17:13:42,354 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-16 17:13:42,355 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4402cf71-fa0b-4ed9-b7a8-11bc479e83a5
2025-10-16 17:13:42,373 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a2d039f-9ad3-4756-9f28-29987ba5a81c
2025-10-16 17:13:42,406 - INFO - Verified VN network id 12 for VN 4402cf71-fa0b-4ed9-b7a8-11bc479e83a5
2025-10-16 17:13:42,407 - INFO - Verifications in API Server for VN ctest-vn-91921080 passed
2025-10-16 17:13:42,407 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4402cf71-fa0b-4ed9-b7a8-11bc479e83a5
2025-10-16 17:13:42,427 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a2d039f-9ad3-4756-9f28-29987ba5a81c
2025-10-16 17:13:42,443 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a2d039f-9ad3-4756-9f28-29987ba5a81c
2025-10-16 17:13:42,463 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/46350da0-f742-4de4-8d1d-c397d6df092f
2025-10-16 17:13:42,484 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-91921080', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48742799', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4900707432965820121', 'uuid-lslong': '13233847005381297061'}, 'enable': 'true', 'created': '2025-10-16T17:13:39', 'last-modified': '2025-10-16T17:13:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.989717'}
2025-10-16 17:13:42,490 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-16 17:13:42,490 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91921080 passed
2025-10-16 17:13:42,490 - DEBUG - ====Verifying policy data for ctest-vn-91921080 in API_Server ======
2025-10-16 17:13:42,490 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-16 17:13:42,499 - DEBUG - Requesting: http://10.0.0.22:8082/domain/0287fead-cb08-4b1a-bd70-a6c5867738a2
2025-10-16 17:13:42,515 - DEBUG - Requesting: http://10.0.0.22:8082/project/4e2e4413-ff95-4f5f-a8ee-5fa4fa096880
2025-10-16 17:13:42,623 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4402cf71-fa0b-4ed9-b7a8-11bc479e83a5
2025-10-16 17:13:42,643 - DEBUG - ==>Verifying data for policy with id: c03e595f-004b-4257-8e8e-cc9c581add33, fqn: ['default-domain', 'ctest-TestBasicPolicy-48742799', 'ctest-policy-allow-all-91146916']
2025-10-16 17:13:42,643 - INFO - VN ctest-vn-91921080 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-16 17:13:42,643 - DEBUG - Verifying the vn in opserver
2025-10-16 17:13:42,643 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-91921080 virtual network link through opserver 10.0.0.22
2025-10-16 17:13:42,644 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-16 17:13:42,664 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-91921080', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-91921080?flat'}
2025-10-16 17:13:42,664 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48742799:ctest-vn-91921080 is found in opserver
2025-10-16 17:13:42,692 - DEBUG - Do not have enough data to verify VN in agent
2025-10-16 17:13:42,699 - DEBUG - VRF ids for VN ctest-vn-91921080: {}
2025-10-16 17:13:42,796 - DEBUG - Services list from nova: [