2025-10-27 15:31:10,431 - INFO - Domain Default found not creating
2025-10-27 15:31:10,608 - INFO - Project ctest-TestBasicPolicy-23312926 not found, creating it
2025-10-27 15:31:11,102 - INFO - Created Project:ctest-TestBasicPolicy-23312926, ID : 46407d22-28af-4ce3-be7f-1754fe386688
2025-10-27 15:31:12,589 - INFO - ================================================================================
2025-10-27 15:31:12,590 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-27 15:31:12,590 - 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-27 15:31:12,848 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with
2025-10-27 15:31:12,848 - INFO - Initial checks done. Running the testcase now
2025-10-27 15:31:12,848 - INFO -
2025-10-27 15:31:13,415 - DEBUG - Response for create_network : {'network': {'id': 'd1486e2e-4602-466b-92f5-a6b36d90d9e0', 'name': 'ctest-vn-01476729', 'tenant_id': '46407d2228af4ce3be7f1754fe386688', 'project_id': '46407d2228af4ce3be7f1754fe386688', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23312926', 'ctest-vn-01476729'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 15:31:13,593 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dd6c90e0-82fd-4881-96e4-0e8613cb4b2c', 'name': '', 'tenant_id': '46407d2228af4ce3be7f1754fe386688', 'network_id': 'd1486e2e-4602-466b-92f5-a6b36d90d9e0', 'ip_version': 4, 'cidr': '16.39.228.64/26', 'allocation_pools': [{'start': '16.39.228.66', 'end': '16.39.228.126'}], 'gateway_ip': '16.39.228.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.39.228.66', 'tags': [], 'project_id': '46407d2228af4ce3be7f1754fe386688'}}
2025-10-27 15:31:13,613 - INFO - Created VN ctest-vn-01476729
2025-10-27 15:31:13,668 - DEBUG - VN ctest-vn-01476729 UUID is d1486e2e-4602-466b-92f5-a6b36d90d9e0
2025-10-27 15:31:13,987 - DEBUG - Response for create_network : {'network': {'id': 'a8d88ce9-dc6e-4d98-95bd-5f1ff6b93643', 'name': 'ctest-vn-91018852', 'tenant_id': '46407d2228af4ce3be7f1754fe386688', 'project_id': '46407d2228af4ce3be7f1754fe386688', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23312926', 'ctest-vn-91018852'], 'port_security_enabled': True, 'description': ''}}
2025-10-27 15:31:14,212 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a506b738-ea0d-4cff-add3-7e34352d3102', 'name': '', 'tenant_id': '46407d2228af4ce3be7f1754fe386688', 'network_id': 'a8d88ce9-dc6e-4d98-95bd-5f1ff6b93643', 'ip_version': 4, 'cidr': '27.44.121.192/26', 'allocation_pools': [{'start': '27.44.121.194', 'end': '27.44.121.254'}], 'gateway_ip': '27.44.121.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.44.121.194', 'tags': [], 'project_id': '46407d2228af4ce3be7f1754fe386688'}}
2025-10-27 15:31:14,231 - INFO - Created VN ctest-vn-91018852
2025-10-27 15:31:14,284 - DEBUG - VN ctest-vn-91018852 UUID is a8d88ce9-dc6e-4d98-95bd-5f1ff6b93643
2025-10-27 15:31:14,403 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23312926:ctest-vn-01476729, 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-23312926:ctest-vn-91018852, 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-27 15:31:14,718 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd1486e2e-4602-466b-92f5-a6b36d90d9e0', 'name': 'ctest-vn-01476729', 'tenant_id': '46407d2228af4ce3be7f1754fe386688', 'project_id': '46407d2228af4ce3be7f1754fe386688', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dd6c90e0-82fd-4881-96e4-0e8613cb4b2c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23312926', 'ctest-vn-01476729'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23312926', 'ctest-policy-allow-all-61365074']], 'subnet_ipam': [{'subnet_cidr': '16.39.228.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 15:31:14,970 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a8d88ce9-dc6e-4d98-95bd-5f1ff6b93643', 'name': 'ctest-vn-91018852', 'tenant_id': '46407d2228af4ce3be7f1754fe386688', 'project_id': '46407d2228af4ce3be7f1754fe386688', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a506b738-ea0d-4cff-add3-7e34352d3102'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23312926', 'ctest-vn-91018852'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23312926', 'ctest-policy-allow-all-61365074']], 'subnet_ipam': [{'subnet_cidr': '27.44.121.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-27 15:31:15,128 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-27 15:31:15,425 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-27 15:31:15,456 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d76280c2-653c-4aba-871f-8168b1bbb601
2025-10-27 15:31:15,469 - DEBUG - Requesting: http://10.0.0.27:8082/project/46407d22-28af-4ce3-be7f-1754fe386688
2025-10-27 15:31:15,543 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d1486e2e-4602-466b-92f5-a6b36d90d9e0
2025-10-27 15:31:15,555 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d1486e2e-4602-466b-92f5-a6b36d90d9e0
2025-10-27 15:31:15,565 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/fd684e60-4353-48e6-96be-0da7b43d9fbb
2025-10-27 15:31:15,575 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/fd684e60-4353-48e6-96be-0da7b43d9fbb
2025-10-27 15:31:15,583 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/f1525915-8a79-4573-ad03-a27f9b9d38c3
2025-10-27 15:31:15,590 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 15:31:15,590 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d1486e2e-4602-466b-92f5-a6b36d90d9e0
2025-10-27 15:31:15,601 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/fd684e60-4353-48e6-96be-0da7b43d9fbb
2025-10-27 15:31:15,617 - INFO - Verified VN network id 11 for VN d1486e2e-4602-466b-92f5-a6b36d90d9e0
2025-10-27 15:31:15,617 - INFO - Verifications in API Server for VN ctest-vn-01476729 passed
2025-10-27 15:31:15,618 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d1486e2e-4602-466b-92f5-a6b36d90d9e0
2025-10-27 15:31:15,631 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/fd684e60-4353-48e6-96be-0da7b43d9fbb
2025-10-27 15:31:15,640 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/fd684e60-4353-48e6-96be-0da7b43d9fbb
2025-10-27 15:31:15,650 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/f1525915-8a79-4573-ad03-a27f9b9d38c3
2025-10-27 15:31:15,663 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23312926:ctest-vn-01476729', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23312926', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15080424497272211051', 'uuid-lslong': '10589553388399155680'}, 'enable': 'true', 'created': '2025-10-27T15:31:13', 'last-modified': '2025-10-27T15:31:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.968648'}
2025-10-27 15:31:15,671 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-27 15:31:15,671 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01476729 passed
2025-10-27 15:31:15,671 - DEBUG - ====Verifying policy data for ctest-vn-01476729 in API_Server ======
2025-10-27 15:31:15,671 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-27 15:31:15,678 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d76280c2-653c-4aba-871f-8168b1bbb601
2025-10-27 15:31:15,691 - DEBUG - Requesting: http://10.0.0.27:8082/project/46407d22-28af-4ce3-be7f-1754fe386688
2025-10-27 15:31:15,762 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d1486e2e-4602-466b-92f5-a6b36d90d9e0
2025-10-27 15:31:15,772 - DEBUG - ==>Verifying data for policy with id: 388c3046-b6e3-4c3a-9fd0-72743ebf7d6e, fqn: ['default-domain', 'ctest-TestBasicPolicy-23312926', 'ctest-policy-allow-all-61365074']
2025-10-27 15:31:15,772 - INFO - VN ctest-vn-01476729 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 15:31:15,772 - DEBUG - Verifying the vn in opserver
2025-10-27 15:31:15,772 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23312926:ctest-vn-01476729 virtual network link through opserver 10.0.0.27
2025-10-27 15:31:15,772 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-27 15:31:16,079 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-27 15:31:16,146 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23312926:ctest-vn-01476729', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23312926:ctest-vn-01476729?flat'}
2025-10-27 15:31:16,146 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23312926:ctest-vn-01476729 is found in opserver
2025-10-27 15:31:16,156 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 15:31:16,161 - DEBUG - VRF ids for VN ctest-vn-01476729: {}
2025-10-27 15:31:16,161 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-27 15:31:16,167 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d76280c2-653c-4aba-871f-8168b1bbb601
2025-10-27 15:31:16,179 - DEBUG - Requesting: http://10.0.0.27:8082/project/46407d22-28af-4ce3-be7f-1754fe386688
2025-10-27 15:31:16,255 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a8d88ce9-dc6e-4d98-95bd-5f1ff6b93643
2025-10-27 15:31:16,270 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a8d88ce9-dc6e-4d98-95bd-5f1ff6b93643
2025-10-27 15:31:16,281 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0482b132-2358-47c0-ac50-946c33449bce
2025-10-27 15:31:16,289 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0482b132-2358-47c0-ac50-946c33449bce
2025-10-27 15:31:16,297 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/8b1edcf0-61dc-473e-aa2a-989447bbd2cd
2025-10-27 15:31:16,306 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 15:31:16,306 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a8d88ce9-dc6e-4d98-95bd-5f1ff6b93643
2025-10-27 15:31:16,319 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0482b132-2358-47c0-ac50-946c33449bce
2025-10-27 15:31:16,344 - INFO - Verified VN network id 12 for VN a8d88ce9-dc6e-4d98-95bd-5f1ff6b93643
2025-10-27 15:31:16,344 - INFO - Verifications in API Server for VN ctest-vn-91018852 passed
2025-10-27 15:31:16,344 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a8d88ce9-dc6e-4d98-95bd-5f1ff6b93643
2025-10-27 15:31:16,356 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0482b132-2358-47c0-ac50-946c33449bce
2025-10-27 15:31:16,363 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0482b132-2358-47c0-ac50-946c33449bce
2025-10-27 15:31:16,371 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/8b1edcf0-61dc-473e-aa2a-989447bbd2cd
2025-10-27 15:31:16,384 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23312926:ctest-vn-91018852', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23312926', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12166629329394879896', 'uuid-lslong': '10789884873137534531'}, 'enable': 'true', 'created': '2025-10-27T15:31:13', 'last-modified': '2025-10-27T15:31:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.444020'}
2025-10-27 15:31:16,390 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-27 15:31:16,390 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91018852 passed
2025-10-27 15:31:16,390 - DEBUG - ====Verifying policy data for ctest-vn-91018852 in API_Server ======
2025-10-27 15:31:16,390 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-27 15:31:16,396 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d76280c2-653c-4aba-871f-8168b1bbb601
2025-10-27 15:31:16,408 - DEBUG - Requesting: http://10.0.0.27:8082/project/46407d22-28af-4ce3-be7f-1754fe386688
2025-10-27 15:31:16,482 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a8d88ce9-dc6e-4d98-95bd-5f1ff6b93643
2025-10-27 15:31:16,493 - DEBUG - ==>Verifying data for policy with id: 388c3046-b6e3-4c3a-9fd0-72743ebf7d6e, fqn: ['default-domain', 'ctest-TestBasicPolicy-23312926', 'ctest-policy-allow-all-61365074']
2025-10-27 15:31:16,493 - INFO - VN ctest-vn-91018852 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-27 15:31:16,493 - DEBUG - Verifying the vn in opserver
2025-10-27 15:31:16,493 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23312926:ctest-vn-91018852 virtual network link through opserver 10.0.0.27
2025-10-27 15:31:16,493 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-27 15:31:16,506 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23312926:ctest-vn-91018852', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23312926:ctest-vn-91018852?flat'}
2025-10-27 15:31:16,506 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23312926:ctest-vn-91018852 is found in opserver
2025-10-27 15:31:16,521 - DEBUG - Do not have enough data to verify VN in agent
2025-10-27 15:31:16,530 - DEBUG - VRF ids for VN ctest-vn-91018852: {}
2025-10-27 15:31:16,598 - DEBUG - Services list from nova: [