2025-05-27 16:38:54,841 - INFO - Domain Default found not creating
2025-05-27 16:38:54,992 - INFO - Project ctest-TestBasicPolicy-60010969 not found, creating it
2025-05-27 16:38:55,471 - INFO - Created Project:ctest-TestBasicPolicy-60010969, ID : 1652620f-451a-4b29-a98b-386167187a6d
2025-05-27 16:38:57,035 - INFO - ================================================================================
2025-05-27 16:38:57,035 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-27 16:38:57,035 - 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-05-27 16:38:57,295 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-05-27 16:38:57,295 - INFO - Initial checks done. Running the testcase now
2025-05-27 16:38:57,295 - INFO -
2025-05-27 16:38:57,873 - DEBUG - Response for create_network : {'network': {'id': 'd6cbcd6c-290a-46bf-a733-b6bfb3199770', 'name': 'ctest-vn-21977196', 'tenant_id': '1652620f451a4b29a98b386167187a6d', 'project_id': '1652620f451a4b29a98b386167187a6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60010969', 'ctest-vn-21977196'], 'port_security_enabled': True, 'description': ''}}
2025-05-27 16:38:58,069 - DEBUG - Response for create_subnet : {'subnet': {'id': '23551752-a69e-43cf-b704-447d6b2a1cbd', 'name': '', 'tenant_id': '1652620f451a4b29a98b386167187a6d', 'network_id': 'd6cbcd6c-290a-46bf-a733-b6bfb3199770', 'ip_version': 4, 'cidr': '175.151.195.128/26', 'allocation_pools': [{'start': '175.151.195.130', 'end': '175.151.195.190'}], 'gateway_ip': '175.151.195.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.151.195.130', 'tags': [], 'project_id': '1652620f451a4b29a98b386167187a6d'}}
2025-05-27 16:38:58,087 - INFO - Created VN ctest-vn-21977196
2025-05-27 16:38:58,141 - DEBUG - VN ctest-vn-21977196 UUID is d6cbcd6c-290a-46bf-a733-b6bfb3199770
2025-05-27 16:38:58,430 - DEBUG - Response for create_network : {'network': {'id': 'c5af5348-4e72-4e1a-bdb2-e10ce0ebf488', 'name': 'ctest-vn-41287803', 'tenant_id': '1652620f451a4b29a98b386167187a6d', 'project_id': '1652620f451a4b29a98b386167187a6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60010969', 'ctest-vn-41287803'], 'port_security_enabled': True, 'description': ''}}
2025-05-27 16:38:58,704 - DEBUG - Response for create_subnet : {'subnet': {'id': '5575820d-6b03-4352-8c75-e3198b0b8311', 'name': '', 'tenant_id': '1652620f451a4b29a98b386167187a6d', 'network_id': 'c5af5348-4e72-4e1a-bdb2-e10ce0ebf488', 'ip_version': 4, 'cidr': '49.231.9.128/26', 'allocation_pools': [{'start': '49.231.9.130', 'end': '49.231.9.190'}], 'gateway_ip': '49.231.9.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.231.9.130', 'tags': [], 'project_id': '1652620f451a4b29a98b386167187a6d'}}
2025-05-27 16:38:58,721 - INFO - Created VN ctest-vn-41287803
2025-05-27 16:38:58,773 - DEBUG - VN ctest-vn-41287803 UUID is c5af5348-4e72-4e1a-bdb2-e10ce0ebf488
2025-05-27 16:38:58,925 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-21977196, 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-60010969:ctest-vn-41287803, 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-05-27 16:38:59,221 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6cbcd6c-290a-46bf-a733-b6bfb3199770', 'name': 'ctest-vn-21977196', 'tenant_id': '1652620f451a4b29a98b386167187a6d', 'project_id': '1652620f451a4b29a98b386167187a6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['23551752-a69e-43cf-b704-447d6b2a1cbd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60010969', 'ctest-vn-21977196'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60010969', 'ctest-policy-allow-all-25996034']], 'subnet_ipam': [{'subnet_cidr': '175.151.195.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-27 16:38:59,457 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c5af5348-4e72-4e1a-bdb2-e10ce0ebf488', 'name': 'ctest-vn-41287803', 'tenant_id': '1652620f451a4b29a98b386167187a6d', 'project_id': '1652620f451a4b29a98b386167187a6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5575820d-6b03-4352-8c75-e3198b0b8311'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60010969', 'ctest-vn-41287803'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60010969', 'ctest-policy-allow-all-25996034']], 'subnet_ipam': [{'subnet_cidr': '49.231.9.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-27 16:38:59,637 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-27 16:38:59,982 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-27 16:39:00,010 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4eebd446-0149-4001-bbd7-ea621d6a546a
2025-05-27 16:39:00,027 - DEBUG - Requesting: http://10.0.0.38:8082/project/1652620f-451a-4b29-a98b-386167187a6d
2025-05-27 16:39:00,108 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6cbcd6c-290a-46bf-a733-b6bfb3199770
2025-05-27 16:39:00,124 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6cbcd6c-290a-46bf-a733-b6bfb3199770
2025-05-27 16:39:00,135 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6adfa1d9-938f-44a2-9649-69c4d8c00358
2025-05-27 16:39:00,144 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6adfa1d9-938f-44a2-9649-69c4d8c00358
2025-05-27 16:39:00,151 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b125e52a-c34c-4e1a-9287-b2d8b44c0b16
2025-05-27 16:39:00,157 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-27 16:39:00,157 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6cbcd6c-290a-46bf-a733-b6bfb3199770
2025-05-27 16:39:00,167 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6adfa1d9-938f-44a2-9649-69c4d8c00358
2025-05-27 16:39:00,182 - INFO - Verified VN network id 7 for VN d6cbcd6c-290a-46bf-a733-b6bfb3199770
2025-05-27 16:39:00,182 - INFO - Verifications in API Server for VN ctest-vn-21977196 passed
2025-05-27 16:39:00,182 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6cbcd6c-290a-46bf-a733-b6bfb3199770
2025-05-27 16:39:00,193 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6adfa1d9-938f-44a2-9649-69c4d8c00358
2025-05-27 16:39:00,200 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6adfa1d9-938f-44a2-9649-69c4d8c00358
2025-05-27 16:39:00,208 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b125e52a-c34c-4e1a-9287-b2d8b44c0b16
2025-05-27 16:39:00,221 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-21977196', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60010969', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15477690408817542847', 'uuid-lslong': '12048174362606016368'}, 'enable': 'true', 'created': '2025-05-27T16:38:57', 'last-modified': '2025-05-27T16:38:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.021868'}
2025-05-27 16:39:00,227 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-27 16:39:00,227 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21977196 passed
2025-05-27 16:39:00,228 - DEBUG - ====Verifying policy data for ctest-vn-21977196 in API_Server ======
2025-05-27 16:39:00,228 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-27 16:39:00,233 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4eebd446-0149-4001-bbd7-ea621d6a546a
2025-05-27 16:39:00,245 - DEBUG - Requesting: http://10.0.0.38:8082/project/1652620f-451a-4b29-a98b-386167187a6d
2025-05-27 16:39:00,317 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6cbcd6c-290a-46bf-a733-b6bfb3199770
2025-05-27 16:39:00,329 - DEBUG - ==>Verifying data for policy with id: cf1118c1-f6f6-4d49-9c2d-7fe7fa5265cc, fqn: ['default-domain', 'ctest-TestBasicPolicy-60010969', 'ctest-policy-allow-all-25996034']
2025-05-27 16:39:00,329 - INFO - VN ctest-vn-21977196 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-27 16:39:00,329 - DEBUG - Verifying the vn in opserver
2025-05-27 16:39:00,329 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-21977196 virtual network link through opserver 10.0.0.38
2025-05-27 16:39:00,330 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-27 16:39:00,663 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-27 16:39:00,717 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-21977196', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-21977196?flat'}
2025-05-27 16:39:00,717 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-21977196 is found in opserver
2025-05-27 16:39:00,728 - DEBUG - Do not have enough data to verify VN in agent
2025-05-27 16:39:00,733 - DEBUG - VRF ids for VN ctest-vn-21977196: {}
2025-05-27 16:39:00,733 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-27 16:39:00,739 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4eebd446-0149-4001-bbd7-ea621d6a546a
2025-05-27 16:39:00,752 - DEBUG - Requesting: http://10.0.0.38:8082/project/1652620f-451a-4b29-a98b-386167187a6d
2025-05-27 16:39:00,829 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c5af5348-4e72-4e1a-bdb2-e10ce0ebf488
2025-05-27 16:39:00,841 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c5af5348-4e72-4e1a-bdb2-e10ce0ebf488
2025-05-27 16:39:00,851 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38aa07cf-e364-47db-a766-308829b27f2c
2025-05-27 16:39:00,859 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38aa07cf-e364-47db-a766-308829b27f2c
2025-05-27 16:39:00,866 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/27625f98-cdfe-4fb8-82ac-4f2a2748dd76
2025-05-27 16:39:00,874 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-27 16:39:00,874 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c5af5348-4e72-4e1a-bdb2-e10ce0ebf488
2025-05-27 16:39:00,884 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38aa07cf-e364-47db-a766-308829b27f2c
2025-05-27 16:39:00,899 - INFO - Verified VN network id 8 for VN c5af5348-4e72-4e1a-bdb2-e10ce0ebf488
2025-05-27 16:39:00,899 - INFO - Verifications in API Server for VN ctest-vn-41287803 passed
2025-05-27 16:39:00,899 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c5af5348-4e72-4e1a-bdb2-e10ce0ebf488
2025-05-27 16:39:00,910 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38aa07cf-e364-47db-a766-308829b27f2c
2025-05-27 16:39:00,917 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/38aa07cf-e364-47db-a766-308829b27f2c
2025-05-27 16:39:00,924 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/27625f98-cdfe-4fb8-82ac-4f2a2748dd76
2025-05-27 16:39:00,938 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-41287803', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60010969', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14244695716415032858', 'uuid-lslong': '13669235264452293768'}, 'enable': 'true', 'created': '2025-05-27T16:38:58', 'last-modified': '2025-05-27T16:38:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.506406'}
2025-05-27 16:39:00,945 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-27 16:39:00,945 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41287803 passed
2025-05-27 16:39:00,945 - DEBUG - ====Verifying policy data for ctest-vn-41287803 in API_Server ======
2025-05-27 16:39:00,945 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-27 16:39:00,952 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4eebd446-0149-4001-bbd7-ea621d6a546a
2025-05-27 16:39:00,963 - DEBUG - Requesting: http://10.0.0.38:8082/project/1652620f-451a-4b29-a98b-386167187a6d
2025-05-27 16:39:01,041 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c5af5348-4e72-4e1a-bdb2-e10ce0ebf488
2025-05-27 16:39:01,052 - DEBUG - ==>Verifying data for policy with id: cf1118c1-f6f6-4d49-9c2d-7fe7fa5265cc, fqn: ['default-domain', 'ctest-TestBasicPolicy-60010969', 'ctest-policy-allow-all-25996034']
2025-05-27 16:39:01,052 - INFO - VN ctest-vn-41287803 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-27 16:39:01,052 - DEBUG - Verifying the vn in opserver
2025-05-27 16:39:01,052 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-41287803 virtual network link through opserver 10.0.0.38
2025-05-27 16:39:01,052 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-27 16:39:01,063 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-41287803', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-41287803?flat'}
2025-05-27 16:39:01,063 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60010969:ctest-vn-41287803 is found in opserver
2025-05-27 16:39:01,075 - DEBUG - Do not have enough data to verify VN in agent
2025-05-27 16:39:01,081 - DEBUG - VRF ids for VN ctest-vn-41287803: {}
2025-05-27 16:39:01,140 - DEBUG - Services list from nova: [