2025-12-18 19:33:15,424 - INFO - Domain Default found not creating
2025-12-18 19:33:15,596 - INFO - Project ctest-TestBasicPolicy-65390915 not found, creating it
2025-12-18 19:33:16,054 - INFO - Created Project:ctest-TestBasicPolicy-65390915, ID : 19eabfa6-49f1-48e3-b21e-a368ee8d9d89
2025-12-18 19:33:17,504 - INFO - ================================================================================
2025-12-18 19:33:17,504 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-18 19:33:17,504 - 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-12-18 19:33:17,758 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-12-18 19:33:17,758 - INFO - Initial checks done. Running the testcase now
2025-12-18 19:33:17,758 - INFO -
2025-12-18 19:33:18,285 - DEBUG - Response for create_network : {'network': {'id': '56c13957-6157-4ce9-9de1-200395817787', 'name': 'ctest-vn-39207841', 'tenant_id': '19eabfa649f148e3b21ea368ee8d9d89', 'project_id': '19eabfa649f148e3b21ea368ee8d9d89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65390915', 'ctest-vn-39207841'], 'port_security_enabled': True, 'description': ''}}
2025-12-18 19:33:18,459 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc8762ac-7e2c-42d9-bc70-d619868757ed', 'name': '', 'tenant_id': '19eabfa649f148e3b21ea368ee8d9d89', 'network_id': '56c13957-6157-4ce9-9de1-200395817787', 'ip_version': 4, 'cidr': '125.207.28.192/26', 'allocation_pools': [{'start': '125.207.28.194', 'end': '125.207.28.254'}], 'gateway_ip': '125.207.28.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.207.28.194', 'tags': [], 'project_id': '19eabfa649f148e3b21ea368ee8d9d89'}}
2025-12-18 19:33:18,504 - INFO - Created VN ctest-vn-39207841
2025-12-18 19:33:18,556 - DEBUG - VN ctest-vn-39207841 UUID is 56c13957-6157-4ce9-9de1-200395817787
2025-12-18 19:33:19,078 - DEBUG - Response for create_network : {'network': {'id': '2d3e5d9c-e144-4457-a04c-e3a6504e3c03', 'name': 'ctest-vn-67264281', 'tenant_id': '19eabfa649f148e3b21ea368ee8d9d89', 'project_id': '19eabfa649f148e3b21ea368ee8d9d89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65390915', 'ctest-vn-67264281'], 'port_security_enabled': True, 'description': ''}}
2025-12-18 19:33:19,288 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f88af4d-c89d-4296-b950-0eccb78cd996', 'name': '', 'tenant_id': '19eabfa649f148e3b21ea368ee8d9d89', 'network_id': '2d3e5d9c-e144-4457-a04c-e3a6504e3c03', 'ip_version': 4, 'cidr': '193.54.55.192/26', 'allocation_pools': [{'start': '193.54.55.194', 'end': '193.54.55.254'}], 'gateway_ip': '193.54.55.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.54.55.194', 'tags': [], 'project_id': '19eabfa649f148e3b21ea368ee8d9d89'}}
2025-12-18 19:33:19,305 - INFO - Created VN ctest-vn-67264281
2025-12-18 19:33:19,356 - DEBUG - VN ctest-vn-67264281 UUID is 2d3e5d9c-e144-4457-a04c-e3a6504e3c03
2025-12-18 19:33:19,504 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-65390915:ctest-vn-39207841, 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-65390915:ctest-vn-67264281, 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-12-18 19:33:19,798 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '56c13957-6157-4ce9-9de1-200395817787', 'name': 'ctest-vn-39207841', 'tenant_id': '19eabfa649f148e3b21ea368ee8d9d89', 'project_id': '19eabfa649f148e3b21ea368ee8d9d89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc8762ac-7e2c-42d9-bc70-d619868757ed'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65390915', 'ctest-vn-39207841'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65390915', 'ctest-policy-allow-all-22187254']], 'subnet_ipam': [{'subnet_cidr': '125.207.28.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-18 19:33:20,065 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d3e5d9c-e144-4457-a04c-e3a6504e3c03', 'name': 'ctest-vn-67264281', 'tenant_id': '19eabfa649f148e3b21ea368ee8d9d89', 'project_id': '19eabfa649f148e3b21ea368ee8d9d89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f88af4d-c89d-4296-b950-0eccb78cd996'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-65390915', 'ctest-vn-67264281'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-65390915', 'ctest-policy-allow-all-22187254']], 'subnet_ipam': [{'subnet_cidr': '193.54.55.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-18 19:33:20,212 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-18 19:33:20,509 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-18 19:33:20,539 - DEBUG - Requesting: http://10.0.0.38:8082/domain/885dd756-1bc4-4f83-8192-b24d622716b6
2025-12-18 19:33:20,552 - DEBUG - Requesting: http://10.0.0.38:8082/project/19eabfa6-49f1-48e3-b21e-a368ee8d9d89
2025-12-18 19:33:20,623 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/56c13957-6157-4ce9-9de1-200395817787
2025-12-18 19:33:20,633 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/56c13957-6157-4ce9-9de1-200395817787
2025-12-18 19:33:20,642 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/533c3666-975e-458f-9281-b48b110731d7
2025-12-18 19:33:20,649 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/533c3666-975e-458f-9281-b48b110731d7
2025-12-18 19:33:20,656 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9f90fefb-9c98-4159-95bc-d0ad5e1256ca
2025-12-18 19:33:20,662 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-18 19:33:20,662 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/56c13957-6157-4ce9-9de1-200395817787
2025-12-18 19:33:20,671 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/533c3666-975e-458f-9281-b48b110731d7
2025-12-18 19:33:20,687 - INFO - Verified VN network id 12 for VN 56c13957-6157-4ce9-9de1-200395817787
2025-12-18 19:33:20,687 - INFO - Verifications in API Server for VN ctest-vn-39207841 passed
2025-12-18 19:33:20,687 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/56c13957-6157-4ce9-9de1-200395817787
2025-12-18 19:33:20,696 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/533c3666-975e-458f-9281-b48b110731d7
2025-12-18 19:33:20,703 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/533c3666-975e-458f-9281-b48b110731d7
2025-12-18 19:33:20,710 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9f90fefb-9c98-4159-95bc-d0ad5e1256ca
2025-12-18 19:33:20,721 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65390915:ctest-vn-39207841', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65390915', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6251340805225008361', 'uuid-lslong': '11376409333479864199'}, 'enable': 'true', 'created': '2025-12-18T19:33:18', 'last-modified': '2025-12-18T19:33:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.947768'}
2025-12-18 19:33:20,729 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-18 19:33:20,729 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39207841 passed
2025-12-18 19:33:20,729 - DEBUG - ====Verifying policy data for ctest-vn-39207841 in API_Server ======
2025-12-18 19:33:20,729 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-18 19:33:20,735 - DEBUG - Requesting: http://10.0.0.38:8082/domain/885dd756-1bc4-4f83-8192-b24d622716b6
2025-12-18 19:33:20,745 - DEBUG - Requesting: http://10.0.0.38:8082/project/19eabfa6-49f1-48e3-b21e-a368ee8d9d89
2025-12-18 19:33:20,816 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/56c13957-6157-4ce9-9de1-200395817787
2025-12-18 19:33:20,825 - DEBUG - ==>Verifying data for policy with id: a7249516-64e6-42d3-996f-e23cb5e20d2e, fqn: ['default-domain', 'ctest-TestBasicPolicy-65390915', 'ctest-policy-allow-all-22187254']
2025-12-18 19:33:20,825 - INFO - VN ctest-vn-39207841 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-18 19:33:20,825 - DEBUG - Verifying the vn in opserver
2025-12-18 19:33:20,826 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65390915:ctest-vn-39207841 virtual network link through opserver 10.0.0.38
2025-12-18 19:33:20,826 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-18 19:33:21,142 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-18 19:33:21,205 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65390915:ctest-vn-39207841', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65390915:ctest-vn-39207841?flat'}
2025-12-18 19:33:21,205 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65390915:ctest-vn-39207841 is found in opserver
2025-12-18 19:33:21,215 - DEBUG - Do not have enough data to verify VN in agent
2025-12-18 19:33:21,219 - DEBUG - VRF ids for VN ctest-vn-39207841: {}
2025-12-18 19:33:21,219 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-18 19:33:21,224 - DEBUG - Requesting: http://10.0.0.38:8082/domain/885dd756-1bc4-4f83-8192-b24d622716b6
2025-12-18 19:33:21,234 - DEBUG - Requesting: http://10.0.0.38:8082/project/19eabfa6-49f1-48e3-b21e-a368ee8d9d89
2025-12-18 19:33:21,312 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2d3e5d9c-e144-4457-a04c-e3a6504e3c03
2025-12-18 19:33:21,323 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2d3e5d9c-e144-4457-a04c-e3a6504e3c03
2025-12-18 19:33:21,332 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1dcb17db-6cd7-4534-b36e-229c51a54df5
2025-12-18 19:33:21,340 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1dcb17db-6cd7-4534-b36e-229c51a54df5
2025-12-18 19:33:21,346 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f5d7c740-bdb3-46d9-ba6e-c0121212644c
2025-12-18 19:33:21,355 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-18 19:33:21,355 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2d3e5d9c-e144-4457-a04c-e3a6504e3c03
2025-12-18 19:33:21,364 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1dcb17db-6cd7-4534-b36e-229c51a54df5
2025-12-18 19:33:21,379 - INFO - Verified VN network id 13 for VN 2d3e5d9c-e144-4457-a04c-e3a6504e3c03
2025-12-18 19:33:21,379 - INFO - Verifications in API Server for VN ctest-vn-67264281 passed
2025-12-18 19:33:21,379 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2d3e5d9c-e144-4457-a04c-e3a6504e3c03
2025-12-18 19:33:21,388 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1dcb17db-6cd7-4534-b36e-229c51a54df5
2025-12-18 19:33:21,396 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1dcb17db-6cd7-4534-b36e-229c51a54df5
2025-12-18 19:33:21,404 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f5d7c740-bdb3-46d9-ba6e-c0121212644c
2025-12-18 19:33:21,416 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-65390915:ctest-vn-67264281', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-65390915', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3260146108638446679', 'uuid-lslong': '11550857447749860355'}, 'enable': 'true', 'created': '2025-12-18T19:33:19', 'last-modified': '2025-12-18T19:33:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.417628'}
2025-12-18 19:33:21,422 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-18 19:33:21,422 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67264281 passed
2025-12-18 19:33:21,423 - DEBUG - ====Verifying policy data for ctest-vn-67264281 in API_Server ======
2025-12-18 19:33:21,423 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-18 19:33:21,429 - DEBUG - Requesting: http://10.0.0.38:8082/domain/885dd756-1bc4-4f83-8192-b24d622716b6
2025-12-18 19:33:21,439 - DEBUG - Requesting: http://10.0.0.38:8082/project/19eabfa6-49f1-48e3-b21e-a368ee8d9d89
2025-12-18 19:33:21,509 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2d3e5d9c-e144-4457-a04c-e3a6504e3c03
2025-12-18 19:33:21,518 - DEBUG - ==>Verifying data for policy with id: a7249516-64e6-42d3-996f-e23cb5e20d2e, fqn: ['default-domain', 'ctest-TestBasicPolicy-65390915', 'ctest-policy-allow-all-22187254']
2025-12-18 19:33:21,518 - INFO - VN ctest-vn-67264281 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-18 19:33:21,518 - DEBUG - Verifying the vn in opserver
2025-12-18 19:33:21,518 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-65390915:ctest-vn-67264281 virtual network link through opserver 10.0.0.38
2025-12-18 19:33:21,518 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-18 19:33:21,527 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-65390915:ctest-vn-67264281', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-65390915:ctest-vn-67264281?flat'}
2025-12-18 19:33:21,527 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-65390915:ctest-vn-67264281 is found in opserver
2025-12-18 19:33:21,536 - DEBUG - Do not have enough data to verify VN in agent
2025-12-18 19:33:21,540 - DEBUG - VRF ids for VN ctest-vn-67264281: {}
2025-12-18 19:33:21,601 - DEBUG - Services list from nova: [