2025-10-22 10:34:08,855 - INFO - Domain Default found not creating
2025-10-22 10:34:09,038 - INFO - Project ctest-TestBasicPolicy-98004489 not found, creating it
2025-10-22 10:34:09,609 - INFO - Created Project:ctest-TestBasicPolicy-98004489, ID : 9d5aaeb5-a481-49de-88f1-7dff36b95be6
2025-10-22 10:34:11,258 - INFO - ================================================================================
2025-10-22 10:34:11,258 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 10:34:11,258 - 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-22 10:34:11,515 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-10-22 10:34:11,515 - INFO - Initial checks done. Running the testcase now
2025-10-22 10:34:11,515 - INFO -
2025-10-22 10:34:12,128 - DEBUG - Response for create_network : {'network': {'id': '9aedd125-cb46-4059-a199-f4d208be0e00', 'name': 'ctest-vn-43328360', 'tenant_id': '9d5aaeb5a48149de88f17dff36b95be6', 'project_id': '9d5aaeb5a48149de88f17dff36b95be6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98004489', 'ctest-vn-43328360'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 10:34:12,335 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9cbc1a8-dc86-49d2-83c3-3811839afa59', 'name': '', 'tenant_id': '9d5aaeb5a48149de88f17dff36b95be6', 'network_id': '9aedd125-cb46-4059-a199-f4d208be0e00', 'ip_version': 4, 'cidr': '144.149.159.64/26', 'allocation_pools': [{'start': '144.149.159.66', 'end': '144.149.159.126'}], 'gateway_ip': '144.149.159.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.149.159.66', 'tags': [], 'project_id': '9d5aaeb5a48149de88f17dff36b95be6'}}
2025-10-22 10:34:12,356 - INFO - Created VN ctest-vn-43328360
2025-10-22 10:34:12,413 - DEBUG - VN ctest-vn-43328360 UUID is 9aedd125-cb46-4059-a199-f4d208be0e00
2025-10-22 10:34:12,752 - DEBUG - Response for create_network : {'network': {'id': '9f9c30a9-6007-49f6-b6d3-6c57e822cb5b', 'name': 'ctest-vn-61553888', 'tenant_id': '9d5aaeb5a48149de88f17dff36b95be6', 'project_id': '9d5aaeb5a48149de88f17dff36b95be6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98004489', 'ctest-vn-61553888'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 10:34:12,958 - DEBUG - Response for create_subnet : {'subnet': {'id': '6594a741-9e6a-4407-ad38-b86eb6ffb171', 'name': '', 'tenant_id': '9d5aaeb5a48149de88f17dff36b95be6', 'network_id': '9f9c30a9-6007-49f6-b6d3-6c57e822cb5b', 'ip_version': 4, 'cidr': '102.19.140.64/26', 'allocation_pools': [{'start': '102.19.140.66', 'end': '102.19.140.126'}], 'gateway_ip': '102.19.140.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.19.140.66', 'tags': [], 'project_id': '9d5aaeb5a48149de88f17dff36b95be6'}}
2025-10-22 10:34:12,982 - INFO - Created VN ctest-vn-61553888
2025-10-22 10:34:13,037 - DEBUG - VN ctest-vn-61553888 UUID is 9f9c30a9-6007-49f6-b6d3-6c57e822cb5b
2025-10-22 10:34:13,179 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98004489:ctest-vn-43328360, 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-98004489:ctest-vn-61553888, 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-22 10:34:13,739 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9aedd125-cb46-4059-a199-f4d208be0e00', 'name': 'ctest-vn-43328360', 'tenant_id': '9d5aaeb5a48149de88f17dff36b95be6', 'project_id': '9d5aaeb5a48149de88f17dff36b95be6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e9cbc1a8-dc86-49d2-83c3-3811839afa59'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98004489', 'ctest-vn-43328360'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98004489', 'ctest-policy-allow-all-55864009']], 'subnet_ipam': [{'subnet_cidr': '144.149.159.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 10:34:14,014 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9f9c30a9-6007-49f6-b6d3-6c57e822cb5b', 'name': 'ctest-vn-61553888', 'tenant_id': '9d5aaeb5a48149de88f17dff36b95be6', 'project_id': '9d5aaeb5a48149de88f17dff36b95be6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6594a741-9e6a-4407-ad38-b86eb6ffb171'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98004489', 'ctest-vn-61553888'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98004489', 'ctest-policy-allow-all-55864009']], 'subnet_ipam': [{'subnet_cidr': '102.19.140.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 10:34:14,152 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-22 10:34:14,500 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-22 10:34:14,555 - DEBUG - Requesting: http://10.0.0.22:8082/domain/801435cb-d0d9-4a4b-86b0-d3e5add8f350
2025-10-22 10:34:14,569 - DEBUG - Requesting: http://10.0.0.22:8082/project/9d5aaeb5-a481-49de-88f1-7dff36b95be6
2025-10-22 10:34:14,651 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9aedd125-cb46-4059-a199-f4d208be0e00
2025-10-22 10:34:14,664 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9aedd125-cb46-4059-a199-f4d208be0e00
2025-10-22 10:34:14,675 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6f8e3faa-d7d5-4a96-a60b-65088837d906
2025-10-22 10:34:14,685 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6f8e3faa-d7d5-4a96-a60b-65088837d906
2025-10-22 10:34:14,696 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/de400c08-28a9-4f6e-9fc9-7f6aa573b600
2025-10-22 10:34:14,703 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 10:34:14,703 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9aedd125-cb46-4059-a199-f4d208be0e00
2025-10-22 10:34:14,713 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6f8e3faa-d7d5-4a96-a60b-65088837d906
2025-10-22 10:34:14,729 - INFO - Verified VN network id 12 for VN 9aedd125-cb46-4059-a199-f4d208be0e00
2025-10-22 10:34:14,729 - INFO - Verifications in API Server for VN ctest-vn-43328360 passed
2025-10-22 10:34:14,729 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9aedd125-cb46-4059-a199-f4d208be0e00
2025-10-22 10:34:14,740 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6f8e3faa-d7d5-4a96-a60b-65088837d906
2025-10-22 10:34:14,752 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6f8e3faa-d7d5-4a96-a60b-65088837d906
2025-10-22 10:34:14,761 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/de400c08-28a9-4f6e-9fc9-7f6aa573b600
2025-10-22 10:34:14,776 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98004489:ctest-vn-43328360', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98004489', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11163809011575701593', 'uuid-lslong': '11644607494470110720'}, 'enable': 'true', 'created': '2025-10-22T10:34:12', 'last-modified': '2025-10-22T10:34:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.096208'}
2025-10-22 10:34:14,782 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 10:34:14,782 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43328360 passed
2025-10-22 10:34:14,783 - DEBUG - ====Verifying policy data for ctest-vn-43328360 in API_Server ======
2025-10-22 10:34:14,783 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-22 10:34:14,789 - DEBUG - Requesting: http://10.0.0.22:8082/domain/801435cb-d0d9-4a4b-86b0-d3e5add8f350
2025-10-22 10:34:14,802 - DEBUG - Requesting: http://10.0.0.22:8082/project/9d5aaeb5-a481-49de-88f1-7dff36b95be6
2025-10-22 10:34:14,880 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9aedd125-cb46-4059-a199-f4d208be0e00
2025-10-22 10:34:14,896 - DEBUG - ==>Verifying data for policy with id: ce0546ec-724f-4b2e-8714-126280c239d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-98004489', 'ctest-policy-allow-all-55864009']
2025-10-22 10:34:14,897 - INFO - VN ctest-vn-43328360 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 10:34:14,897 - DEBUG - Verifying the vn in opserver
2025-10-22 10:34:14,897 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98004489:ctest-vn-43328360 virtual network link through opserver 10.0.0.22
2025-10-22 10:34:14,897 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-22 10:34:15,237 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-22 10:34:15,305 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98004489:ctest-vn-43328360', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98004489:ctest-vn-43328360?flat'}
2025-10-22 10:34:15,305 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98004489:ctest-vn-43328360 is found in opserver
2025-10-22 10:34:15,317 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 10:34:15,322 - DEBUG - VRF ids for VN ctest-vn-43328360: {}
2025-10-22 10:34:15,322 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-22 10:34:15,329 - DEBUG - Requesting: http://10.0.0.22:8082/domain/801435cb-d0d9-4a4b-86b0-d3e5add8f350
2025-10-22 10:34:15,342 - DEBUG - Requesting: http://10.0.0.22:8082/project/9d5aaeb5-a481-49de-88f1-7dff36b95be6
2025-10-22 10:34:15,419 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9f9c30a9-6007-49f6-b6d3-6c57e822cb5b
2025-10-22 10:34:15,434 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9f9c30a9-6007-49f6-b6d3-6c57e822cb5b
2025-10-22 10:34:15,446 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6e9f618e-cdf7-4190-bea5-f360dbd43d0c
2025-10-22 10:34:15,455 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6e9f618e-cdf7-4190-bea5-f360dbd43d0c
2025-10-22 10:34:15,463 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/01a0ec8e-eebf-4bb2-b934-144d455d2025
2025-10-22 10:34:15,470 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 10:34:15,470 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9f9c30a9-6007-49f6-b6d3-6c57e822cb5b
2025-10-22 10:34:15,479 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6e9f618e-cdf7-4190-bea5-f360dbd43d0c
2025-10-22 10:34:15,494 - INFO - Verified VN network id 13 for VN 9f9c30a9-6007-49f6-b6d3-6c57e822cb5b
2025-10-22 10:34:15,495 - INFO - Verifications in API Server for VN ctest-vn-61553888 passed
2025-10-22 10:34:15,495 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9f9c30a9-6007-49f6-b6d3-6c57e822cb5b
2025-10-22 10:34:15,505 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6e9f618e-cdf7-4190-bea5-f360dbd43d0c
2025-10-22 10:34:15,512 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6e9f618e-cdf7-4190-bea5-f360dbd43d0c
2025-10-22 10:34:15,519 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/01a0ec8e-eebf-4bb2-b934-144d455d2025
2025-10-22 10:34:15,531 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98004489:ctest-vn-61553888', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98004489', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11501121052416100854', 'uuid-lslong': '13173992459801381723'}, 'enable': 'true', 'created': '2025-10-22T10:34:12', 'last-modified': '2025-10-22T10:34:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.548743'}
2025-10-22 10:34:15,537 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 10:34:15,537 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61553888 passed
2025-10-22 10:34:15,537 - DEBUG - ====Verifying policy data for ctest-vn-61553888 in API_Server ======
2025-10-22 10:34:15,537 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-22 10:34:15,543 - DEBUG - Requesting: http://10.0.0.22:8082/domain/801435cb-d0d9-4a4b-86b0-d3e5add8f350
2025-10-22 10:34:15,555 - DEBUG - Requesting: http://10.0.0.22:8082/project/9d5aaeb5-a481-49de-88f1-7dff36b95be6
2025-10-22 10:34:15,632 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9f9c30a9-6007-49f6-b6d3-6c57e822cb5b
2025-10-22 10:34:15,653 - DEBUG - ==>Verifying data for policy with id: ce0546ec-724f-4b2e-8714-126280c239d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-98004489', 'ctest-policy-allow-all-55864009']
2025-10-22 10:34:15,653 - INFO - VN ctest-vn-61553888 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 10:34:15,653 - DEBUG - Verifying the vn in opserver
2025-10-22 10:34:15,653 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98004489:ctest-vn-61553888 virtual network link through opserver 10.0.0.22
2025-10-22 10:34:15,653 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-22 10:34:15,664 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98004489:ctest-vn-61553888', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98004489:ctest-vn-61553888?flat'}
2025-10-22 10:34:15,664 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98004489:ctest-vn-61553888 is found in opserver
2025-10-22 10:34:15,674 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 10:34:15,679 - DEBUG - VRF ids for VN ctest-vn-61553888: {}
2025-10-22 10:34:15,741 - DEBUG - Services list from nova: [