2025-11-01 19:24:14,063 - INFO - Domain Default found not creating
2025-11-01 19:24:14,224 - INFO - Project ctest-TestBasicPolicy-62573562 not found, creating it
2025-11-01 19:24:14,720 - INFO - Created Project:ctest-TestBasicPolicy-62573562, ID : 93a7ba13-3a87-4691-be0a-09b32b9ed70f
2025-11-01 19:24:16,203 - INFO - ================================================================================
2025-11-01 19:24:16,203 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-01 19:24:16,203 - 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-11-01 19:24:16,460 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-11-01 19:24:16,460 - INFO - Initial checks done. Running the testcase now
2025-11-01 19:24:16,460 - INFO -
2025-11-01 19:24:17,006 - DEBUG - Response for create_network : {'network': {'id': 'e3999d15-5aa0-4400-8e8a-70ae2851770b', 'name': 'ctest-vn-09836176', 'tenant_id': '93a7ba133a874691be0a09b32b9ed70f', 'project_id': '93a7ba133a874691be0a09b32b9ed70f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62573562', 'ctest-vn-09836176'], 'port_security_enabled': True, 'description': ''}}
2025-11-01 19:24:17,163 - DEBUG - Response for create_subnet : {'subnet': {'id': '23ee7518-3f61-4a5e-8619-17ac059b0a1c', 'name': '', 'tenant_id': '93a7ba133a874691be0a09b32b9ed70f', 'network_id': 'e3999d15-5aa0-4400-8e8a-70ae2851770b', 'ip_version': 4, 'cidr': '188.145.4.64/26', 'allocation_pools': [{'start': '188.145.4.66', 'end': '188.145.4.126'}], 'gateway_ip': '188.145.4.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.145.4.66', 'tags': [], 'project_id': '93a7ba133a874691be0a09b32b9ed70f'}}
2025-11-01 19:24:17,184 - INFO - Created VN ctest-vn-09836176
2025-11-01 19:24:17,238 - DEBUG - VN ctest-vn-09836176 UUID is e3999d15-5aa0-4400-8e8a-70ae2851770b
2025-11-01 19:24:17,548 - DEBUG - Response for create_network : {'network': {'id': 'dfbf26d6-d905-41bb-9b54-59e1e3cf8b38', 'name': 'ctest-vn-95567111', 'tenant_id': '93a7ba133a874691be0a09b32b9ed70f', 'project_id': '93a7ba133a874691be0a09b32b9ed70f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62573562', 'ctest-vn-95567111'], 'port_security_enabled': True, 'description': ''}}
2025-11-01 19:24:17,709 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9ce0665-ecd8-4fff-855a-067353271d11', 'name': '', 'tenant_id': '93a7ba133a874691be0a09b32b9ed70f', 'network_id': 'dfbf26d6-d905-41bb-9b54-59e1e3cf8b38', 'ip_version': 4, 'cidr': '78.113.55.64/26', 'allocation_pools': [{'start': '78.113.55.66', 'end': '78.113.55.126'}], 'gateway_ip': '78.113.55.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.113.55.66', 'tags': [], 'project_id': '93a7ba133a874691be0a09b32b9ed70f'}}
2025-11-01 19:24:17,729 - INFO - Created VN ctest-vn-95567111
2025-11-01 19:24:17,782 - DEBUG - VN ctest-vn-95567111 UUID is dfbf26d6-d905-41bb-9b54-59e1e3cf8b38
2025-11-01 19:24:17,900 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62573562:ctest-vn-09836176, 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-62573562:ctest-vn-95567111, 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-11-01 19:24:18,202 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e3999d15-5aa0-4400-8e8a-70ae2851770b', 'name': 'ctest-vn-09836176', 'tenant_id': '93a7ba133a874691be0a09b32b9ed70f', 'project_id': '93a7ba133a874691be0a09b32b9ed70f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['23ee7518-3f61-4a5e-8619-17ac059b0a1c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62573562', 'ctest-vn-09836176'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62573562', 'ctest-policy-allow-all-32242988']], 'subnet_ipam': [{'subnet_cidr': '188.145.4.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-01 19:24:18,434 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dfbf26d6-d905-41bb-9b54-59e1e3cf8b38', 'name': 'ctest-vn-95567111', 'tenant_id': '93a7ba133a874691be0a09b32b9ed70f', 'project_id': '93a7ba133a874691be0a09b32b9ed70f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9ce0665-ecd8-4fff-855a-067353271d11'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62573562', 'ctest-vn-95567111'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62573562', 'ctest-policy-allow-all-32242988']], 'subnet_ipam': [{'subnet_cidr': '78.113.55.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-01 19:24:18,574 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-01 19:24:18,868 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-01 19:24:18,897 - DEBUG - Requesting: http://10.0.0.48:8082/domain/242bec7a-e5d7-414a-8a1e-318ce10ff8cf
2025-11-01 19:24:18,911 - DEBUG - Requesting: http://10.0.0.48:8082/project/93a7ba13-3a87-4691-be0a-09b32b9ed70f
2025-11-01 19:24:18,983 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/e3999d15-5aa0-4400-8e8a-70ae2851770b
2025-11-01 19:24:18,993 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/e3999d15-5aa0-4400-8e8a-70ae2851770b
2025-11-01 19:24:19,003 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0c05daaf-fb0f-4078-ac6d-6c27b1a5e935
2025-11-01 19:24:19,011 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0c05daaf-fb0f-4078-ac6d-6c27b1a5e935
2025-11-01 19:24:19,020 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/39d1e272-ec44-43c1-90c1-20349b7d4d2a
2025-11-01 19:24:19,028 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-01 19:24:19,028 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/e3999d15-5aa0-4400-8e8a-70ae2851770b
2025-11-01 19:24:19,038 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0c05daaf-fb0f-4078-ac6d-6c27b1a5e935
2025-11-01 19:24:19,053 - INFO - Verified VN network id 11 for VN e3999d15-5aa0-4400-8e8a-70ae2851770b
2025-11-01 19:24:19,053 - INFO - Verifications in API Server for VN ctest-vn-09836176 passed
2025-11-01 19:24:19,053 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/e3999d15-5aa0-4400-8e8a-70ae2851770b
2025-11-01 19:24:19,062 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0c05daaf-fb0f-4078-ac6d-6c27b1a5e935
2025-11-01 19:24:19,069 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0c05daaf-fb0f-4078-ac6d-6c27b1a5e935
2025-11-01 19:24:19,076 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/39d1e272-ec44-43c1-90c1-20349b7d4d2a
2025-11-01 19:24:19,089 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62573562:ctest-vn-09836176', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62573562', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16400312233086698496', 'uuid-lslong': '10271145793474885387'}, 'enable': 'true', 'created': '2025-11-01T19:24:16', 'last-modified': '2025-11-01T19:24:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.910676'}
2025-11-01 19:24:19,096 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-01 19:24:19,096 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09836176 passed
2025-11-01 19:24:19,096 - DEBUG - ====Verifying policy data for ctest-vn-09836176 in API_Server ======
2025-11-01 19:24:19,096 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-01 19:24:19,102 - DEBUG - Requesting: http://10.0.0.48:8082/domain/242bec7a-e5d7-414a-8a1e-318ce10ff8cf
2025-11-01 19:24:19,115 - DEBUG - Requesting: http://10.0.0.48:8082/project/93a7ba13-3a87-4691-be0a-09b32b9ed70f
2025-11-01 19:24:19,184 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/e3999d15-5aa0-4400-8e8a-70ae2851770b
2025-11-01 19:24:19,194 - DEBUG - ==>Verifying data for policy with id: cb955ab9-1355-4523-b5a9-5b5f4d8c05fe, fqn: ['default-domain', 'ctest-TestBasicPolicy-62573562', 'ctest-policy-allow-all-32242988']
2025-11-01 19:24:19,194 - INFO - VN ctest-vn-09836176 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-01 19:24:19,194 - DEBUG - Verifying the vn in opserver
2025-11-01 19:24:19,195 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62573562:ctest-vn-09836176 virtual network link through opserver 10.0.0.48
2025-11-01 19:24:19,195 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-11-01 19:24:19,504 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-11-01 19:24:19,565 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62573562:ctest-vn-09836176', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62573562:ctest-vn-09836176?flat'}
2025-11-01 19:24:19,565 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62573562:ctest-vn-09836176 is found in opserver
2025-11-01 19:24:19,577 - DEBUG - Do not have enough data to verify VN in agent
2025-11-01 19:24:19,582 - DEBUG - VRF ids for VN ctest-vn-09836176: {}
2025-11-01 19:24:19,582 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-01 19:24:19,589 - DEBUG - Requesting: http://10.0.0.48:8082/domain/242bec7a-e5d7-414a-8a1e-318ce10ff8cf
2025-11-01 19:24:19,601 - DEBUG - Requesting: http://10.0.0.48:8082/project/93a7ba13-3a87-4691-be0a-09b32b9ed70f
2025-11-01 19:24:19,674 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/dfbf26d6-d905-41bb-9b54-59e1e3cf8b38
2025-11-01 19:24:19,686 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/dfbf26d6-d905-41bb-9b54-59e1e3cf8b38
2025-11-01 19:24:19,697 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7327fb9a-b5d8-4882-9ef7-89170a4e274d
2025-11-01 19:24:19,704 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7327fb9a-b5d8-4882-9ef7-89170a4e274d
2025-11-01 19:24:19,714 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/56527804-e50c-4725-bdf6-4dcd0a444aba
2025-11-01 19:24:19,722 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-01 19:24:19,722 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/dfbf26d6-d905-41bb-9b54-59e1e3cf8b38
2025-11-01 19:24:19,732 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7327fb9a-b5d8-4882-9ef7-89170a4e274d
2025-11-01 19:24:19,746 - INFO - Verified VN network id 12 for VN dfbf26d6-d905-41bb-9b54-59e1e3cf8b38
2025-11-01 19:24:19,746 - INFO - Verifications in API Server for VN ctest-vn-95567111 passed
2025-11-01 19:24:19,746 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/dfbf26d6-d905-41bb-9b54-59e1e3cf8b38
2025-11-01 19:24:19,756 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7327fb9a-b5d8-4882-9ef7-89170a4e274d
2025-11-01 19:24:19,762 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/7327fb9a-b5d8-4882-9ef7-89170a4e274d
2025-11-01 19:24:19,771 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/56527804-e50c-4725-bdf6-4dcd0a444aba
2025-11-01 19:24:19,784 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62573562:ctest-vn-95567111', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62573562', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16122647895215522235', 'uuid-lslong': '11192669800647068472'}, 'enable': 'true', 'created': '2025-11-01T19:24:17', 'last-modified': '2025-11-01T19:24:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.376382'}
2025-11-01 19:24:19,790 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-01 19:24:19,790 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95567111 passed
2025-11-01 19:24:19,790 - DEBUG - ====Verifying policy data for ctest-vn-95567111 in API_Server ======
2025-11-01 19:24:19,790 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-01 19:24:19,796 - DEBUG - Requesting: http://10.0.0.48:8082/domain/242bec7a-e5d7-414a-8a1e-318ce10ff8cf
2025-11-01 19:24:19,807 - DEBUG - Requesting: http://10.0.0.48:8082/project/93a7ba13-3a87-4691-be0a-09b32b9ed70f
2025-11-01 19:24:19,874 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/dfbf26d6-d905-41bb-9b54-59e1e3cf8b38
2025-11-01 19:24:19,882 - DEBUG - ==>Verifying data for policy with id: cb955ab9-1355-4523-b5a9-5b5f4d8c05fe, fqn: ['default-domain', 'ctest-TestBasicPolicy-62573562', 'ctest-policy-allow-all-32242988']
2025-11-01 19:24:19,882 - INFO - VN ctest-vn-95567111 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-01 19:24:19,882 - DEBUG - Verifying the vn in opserver
2025-11-01 19:24:19,882 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62573562:ctest-vn-95567111 virtual network link through opserver 10.0.0.48
2025-11-01 19:24:19,882 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-11-01 19:24:19,893 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62573562:ctest-vn-95567111', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62573562:ctest-vn-95567111?flat'}
2025-11-01 19:24:19,893 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62573562:ctest-vn-95567111 is found in opserver
2025-11-01 19:24:19,902 - DEBUG - Do not have enough data to verify VN in agent
2025-11-01 19:24:19,907 - DEBUG - VRF ids for VN ctest-vn-95567111: {}
2025-11-01 19:24:19,971 - DEBUG - Services list from nova: [