2025-12-03 20:01:49,901 - INFO - Domain Default found not creating
2025-12-03 20:01:50,212 - INFO - Project ctest-TestBasicPolicy-21933055 not found, creating it
2025-12-03 20:01:50,742 - INFO - Created Project:ctest-TestBasicPolicy-21933055, ID : be57d2da-2016-4a72-855d-30084d809411
2025-12-03 20:01:52,745 - INFO - ================================================================================
2025-12-03 20:01:52,745 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-03 20:01:52,745 - 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-03 20:01:53,045 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-12-03 20:01:53,045 - INFO - Initial checks done. Running the testcase now
2025-12-03 20:01:53,046 - INFO -
2025-12-03 20:01:53,913 - DEBUG - Response for create_network : {'network': {'id': '544d4055-b0e4-41c3-9dc1-415bfacfc22e', 'name': 'ctest-vn-51352816', 'tenant_id': 'be57d2da20164a72855d30084d809411', 'project_id': 'be57d2da20164a72855d30084d809411', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21933055', 'ctest-vn-51352816'], 'port_security_enabled': True, 'description': ''}}
2025-12-03 20:01:54,169 - DEBUG - Response for create_subnet : {'subnet': {'id': '3aa0b729-d5d5-4358-8710-7568d1c63f3c', 'name': '', 'tenant_id': 'be57d2da20164a72855d30084d809411', 'network_id': '544d4055-b0e4-41c3-9dc1-415bfacfc22e', 'ip_version': 4, 'cidr': '190.19.145.0/26', 'allocation_pools': [{'start': '190.19.145.2', 'end': '190.19.145.62'}], 'gateway_ip': '190.19.145.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.19.145.2', 'tags': [], 'project_id': 'be57d2da20164a72855d30084d809411'}}
2025-12-03 20:01:54,196 - INFO - Created VN ctest-vn-51352816
2025-12-03 20:01:54,248 - DEBUG - VN ctest-vn-51352816 UUID is 544d4055-b0e4-41c3-9dc1-415bfacfc22e
2025-12-03 20:01:54,647 - DEBUG - Response for create_network : {'network': {'id': '3fd56c5d-afab-4cde-9096-ad4397ca325a', 'name': 'ctest-vn-54927359', 'tenant_id': 'be57d2da20164a72855d30084d809411', 'project_id': 'be57d2da20164a72855d30084d809411', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21933055', 'ctest-vn-54927359'], 'port_security_enabled': True, 'description': ''}}
2025-12-03 20:01:54,897 - DEBUG - Response for create_subnet : {'subnet': {'id': '4082cf7a-94e0-4ff0-b112-0805d30d54ba', 'name': '', 'tenant_id': 'be57d2da20164a72855d30084d809411', 'network_id': '3fd56c5d-afab-4cde-9096-ad4397ca325a', 'ip_version': 4, 'cidr': '163.163.176.0/26', 'allocation_pools': [{'start': '163.163.176.2', 'end': '163.163.176.62'}], 'gateway_ip': '163.163.176.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.163.176.2', 'tags': [], 'project_id': 'be57d2da20164a72855d30084d809411'}}
2025-12-03 20:01:54,922 - INFO - Created VN ctest-vn-54927359
2025-12-03 20:01:54,980 - DEBUG - VN ctest-vn-54927359 UUID is 3fd56c5d-afab-4cde-9096-ad4397ca325a
2025-12-03 20:01:55,164 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21933055:ctest-vn-51352816, 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-21933055:ctest-vn-54927359, 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-03 20:01:55,575 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '544d4055-b0e4-41c3-9dc1-415bfacfc22e', 'name': 'ctest-vn-51352816', 'tenant_id': 'be57d2da20164a72855d30084d809411', 'project_id': 'be57d2da20164a72855d30084d809411', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3aa0b729-d5d5-4358-8710-7568d1c63f3c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21933055', 'ctest-vn-51352816'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21933055', 'ctest-policy-allow-all-40130432']], 'subnet_ipam': [{'subnet_cidr': '190.19.145.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-03 20:01:55,918 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3fd56c5d-afab-4cde-9096-ad4397ca325a', 'name': 'ctest-vn-54927359', 'tenant_id': 'be57d2da20164a72855d30084d809411', 'project_id': 'be57d2da20164a72855d30084d809411', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4082cf7a-94e0-4ff0-b112-0805d30d54ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21933055', 'ctest-vn-54927359'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21933055', 'ctest-policy-allow-all-40130432']], 'subnet_ipam': [{'subnet_cidr': '163.163.176.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-03 20:01:56,096 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-03 20:01:56,421 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-03 20:01:56,504 - DEBUG - Requesting: http://10.0.0.38:8082/domain/915a2447-1660-402b-9d23-ed749ed9e3ab
2025-12-03 20:01:56,538 - DEBUG - Requesting: http://10.0.0.38:8082/project/be57d2da-2016-4a72-855d-30084d809411
2025-12-03 20:01:56,655 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/544d4055-b0e4-41c3-9dc1-415bfacfc22e
2025-12-03 20:01:56,685 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/544d4055-b0e4-41c3-9dc1-415bfacfc22e
2025-12-03 20:01:56,703 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f47a9015-d5cd-4853-9fd1-1dce6327b445
2025-12-03 20:01:56,717 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f47a9015-d5cd-4853-9fd1-1dce6327b445
2025-12-03 20:01:56,728 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d61ecdf3-0494-4d2d-a073-c2ba71b3665d
2025-12-03 20:01:56,739 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-03 20:01:56,739 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/544d4055-b0e4-41c3-9dc1-415bfacfc22e
2025-12-03 20:01:56,757 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f47a9015-d5cd-4853-9fd1-1dce6327b445
2025-12-03 20:01:56,793 - INFO - Verified VN network id 11 for VN 544d4055-b0e4-41c3-9dc1-415bfacfc22e
2025-12-03 20:01:56,793 - INFO - Verifications in API Server for VN ctest-vn-51352816 passed
2025-12-03 20:01:56,793 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/544d4055-b0e4-41c3-9dc1-415bfacfc22e
2025-12-03 20:01:56,816 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f47a9015-d5cd-4853-9fd1-1dce6327b445
2025-12-03 20:01:56,827 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f47a9015-d5cd-4853-9fd1-1dce6327b445
2025-12-03 20:01:56,838 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d61ecdf3-0494-4d2d-a073-c2ba71b3665d
2025-12-03 20:01:56,863 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21933055:ctest-vn-51352816', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21933055', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6074582209176814019', 'uuid-lslong': '11367438797765591598'}, 'enable': 'true', 'created': '2025-12-03T20:01:53', 'last-modified': '2025-12-03T20:01:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.338913'}
2025-12-03 20:01:56,874 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-03 20:01:56,874 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51352816 passed
2025-12-03 20:01:56,874 - DEBUG - ====Verifying policy data for ctest-vn-51352816 in API_Server ======
2025-12-03 20:01:56,874 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-03 20:01:56,883 - DEBUG - Requesting: http://10.0.0.38:8082/domain/915a2447-1660-402b-9d23-ed749ed9e3ab
2025-12-03 20:01:56,913 - DEBUG - Requesting: http://10.0.0.38:8082/project/be57d2da-2016-4a72-855d-30084d809411
2025-12-03 20:01:57,013 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/544d4055-b0e4-41c3-9dc1-415bfacfc22e
2025-12-03 20:01:57,029 - DEBUG - ==>Verifying data for policy with id: 8fe59c6f-d275-4dca-8109-5c31457d0024, fqn: ['default-domain', 'ctest-TestBasicPolicy-21933055', 'ctest-policy-allow-all-40130432']
2025-12-03 20:01:57,030 - INFO - VN ctest-vn-51352816 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-03 20:01:57,030 - DEBUG - Verifying the vn in opserver
2025-12-03 20:01:57,030 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21933055:ctest-vn-51352816 virtual network link through opserver 10.0.0.38
2025-12-03 20:01:57,030 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-03 20:01:57,339 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-03 20:01:57,430 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21933055:ctest-vn-51352816', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21933055:ctest-vn-51352816?flat'}
2025-12-03 20:01:57,430 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21933055:ctest-vn-51352816 is found in opserver
2025-12-03 20:01:57,450 - DEBUG - Do not have enough data to verify VN in agent
2025-12-03 20:01:57,456 - DEBUG - VRF ids for VN ctest-vn-51352816: {}
2025-12-03 20:01:57,456 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-03 20:01:57,467 - DEBUG - Requesting: http://10.0.0.38:8082/domain/915a2447-1660-402b-9d23-ed749ed9e3ab
2025-12-03 20:01:57,492 - DEBUG - Requesting: http://10.0.0.38:8082/project/be57d2da-2016-4a72-855d-30084d809411
2025-12-03 20:01:57,604 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3fd56c5d-afab-4cde-9096-ad4397ca325a
2025-12-03 20:01:57,631 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3fd56c5d-afab-4cde-9096-ad4397ca325a
2025-12-03 20:01:57,656 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2844c4ed-43d7-442c-9bd2-ff5c7aeddfb1
2025-12-03 20:01:57,670 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2844c4ed-43d7-442c-9bd2-ff5c7aeddfb1
2025-12-03 20:01:57,684 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8bbef91d-19c7-4882-b122-74efea25435e
2025-12-03 20:01:57,699 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-03 20:01:57,699 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3fd56c5d-afab-4cde-9096-ad4397ca325a
2025-12-03 20:01:57,718 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2844c4ed-43d7-442c-9bd2-ff5c7aeddfb1
2025-12-03 20:01:57,747 - INFO - Verified VN network id 12 for VN 3fd56c5d-afab-4cde-9096-ad4397ca325a
2025-12-03 20:01:57,747 - INFO - Verifications in API Server for VN ctest-vn-54927359 passed
2025-12-03 20:01:57,748 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3fd56c5d-afab-4cde-9096-ad4397ca325a
2025-12-03 20:01:57,768 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2844c4ed-43d7-442c-9bd2-ff5c7aeddfb1
2025-12-03 20:01:57,780 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2844c4ed-43d7-442c-9bd2-ff5c7aeddfb1
2025-12-03 20:01:57,789 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8bbef91d-19c7-4882-b122-74efea25435e
2025-12-03 20:01:57,806 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21933055:ctest-vn-54927359', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21933055', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4599701744063827166', 'uuid-lslong': '10418705293789246042'}, 'enable': 'true', 'created': '2025-12-03T20:01:54', 'last-modified': '2025-12-03T20:01:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.924899'}
2025-12-03 20:01:57,816 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-03 20:01:57,816 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54927359 passed
2025-12-03 20:01:57,816 - DEBUG - ====Verifying policy data for ctest-vn-54927359 in API_Server ======
2025-12-03 20:01:57,816 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-12-03 20:01:57,826 - DEBUG - Requesting: http://10.0.0.38:8082/domain/915a2447-1660-402b-9d23-ed749ed9e3ab
2025-12-03 20:01:57,852 - DEBUG - Requesting: http://10.0.0.38:8082/project/be57d2da-2016-4a72-855d-30084d809411
2025-12-03 20:01:57,976 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3fd56c5d-afab-4cde-9096-ad4397ca325a
2025-12-03 20:01:57,996 - DEBUG - ==>Verifying data for policy with id: 8fe59c6f-d275-4dca-8109-5c31457d0024, fqn: ['default-domain', 'ctest-TestBasicPolicy-21933055', 'ctest-policy-allow-all-40130432']
2025-12-03 20:01:57,996 - INFO - VN ctest-vn-54927359 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-03 20:01:57,996 - DEBUG - Verifying the vn in opserver
2025-12-03 20:01:57,996 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21933055:ctest-vn-54927359 virtual network link through opserver 10.0.0.38
2025-12-03 20:01:57,997 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-12-03 20:01:58,014 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21933055:ctest-vn-54927359', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21933055:ctest-vn-54927359?flat'}
2025-12-03 20:01:58,014 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21933055:ctest-vn-54927359 is found in opserver
2025-12-03 20:01:58,029 - DEBUG - Do not have enough data to verify VN in agent
2025-12-03 20:01:58,037 - DEBUG - VRF ids for VN ctest-vn-54927359: {}
2025-12-03 20:01:58,167 - DEBUG - Services list from nova: [