2025-05-27 15:22:34,397 - INFO - Domain Default found not creating
2025-05-27 15:22:34,535 - INFO - Project ctest-TestBasicPolicy-88777549 not found, creating it
2025-05-27 15:22:34,999 - INFO - Created Project:ctest-TestBasicPolicy-88777549, ID : f04bdf71-4abe-4865-ac50-1da7599579f2
2025-05-27 15:22:36,526 - INFO - ================================================================================
2025-05-27 15:22:36,526 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-27 15:22:36,526 - 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 15:22:36,788 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.0.0.27': '0'}} with
2025-05-27 15:22:36,788 - INFO - Initial checks done. Running the testcase now
2025-05-27 15:22:36,789 - INFO -
2025-05-27 15:22:37,356 - DEBUG - Response for create_network : {'network': {'id': '50a3bfd8-e942-4863-83d9-01b9491cbb51', 'name': 'ctest-vn-12269314', 'tenant_id': 'f04bdf714abe4865ac501da7599579f2', 'project_id': 'f04bdf714abe4865ac501da7599579f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88777549', 'ctest-vn-12269314'], 'port_security_enabled': True, 'description': ''}}
2025-05-27 15:22:37,569 - DEBUG - Response for create_subnet : {'subnet': {'id': '60cb221b-6baf-4464-83fa-553fa4a0c32b', 'name': '', 'tenant_id': 'f04bdf714abe4865ac501da7599579f2', 'network_id': '50a3bfd8-e942-4863-83d9-01b9491cbb51', 'ip_version': 4, 'cidr': '113.102.252.192/26', 'allocation_pools': [{'start': '113.102.252.194', 'end': '113.102.252.254'}], 'gateway_ip': '113.102.252.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.102.252.194', 'tags': [], 'project_id': 'f04bdf714abe4865ac501da7599579f2'}}
2025-05-27 15:22:37,584 - INFO - Created VN ctest-vn-12269314
2025-05-27 15:22:37,639 - DEBUG - VN ctest-vn-12269314 UUID is 50a3bfd8-e942-4863-83d9-01b9491cbb51
2025-05-27 15:22:37,943 - DEBUG - Response for create_network : {'network': {'id': '992fcb8d-0d7c-44fb-8845-78e83f6c6e65', 'name': 'ctest-vn-62256214', 'tenant_id': 'f04bdf714abe4865ac501da7599579f2', 'project_id': 'f04bdf714abe4865ac501da7599579f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88777549', 'ctest-vn-62256214'], 'port_security_enabled': True, 'description': ''}}
2025-05-27 15:22:38,140 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef444587-bd47-45de-a7da-b92eb4a0c137', 'name': '', 'tenant_id': 'f04bdf714abe4865ac501da7599579f2', 'network_id': '992fcb8d-0d7c-44fb-8845-78e83f6c6e65', 'ip_version': 4, 'cidr': '199.25.61.192/26', 'allocation_pools': [{'start': '199.25.61.194', 'end': '199.25.61.254'}], 'gateway_ip': '199.25.61.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.25.61.194', 'tags': [], 'project_id': 'f04bdf714abe4865ac501da7599579f2'}}
2025-05-27 15:22:38,159 - INFO - Created VN ctest-vn-62256214
2025-05-27 15:22:38,212 - DEBUG - VN ctest-vn-62256214 UUID is 992fcb8d-0d7c-44fb-8845-78e83f6c6e65
2025-05-27 15:22:38,359 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88777549:ctest-vn-12269314, 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-88777549:ctest-vn-62256214, 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 15:22:38,641 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50a3bfd8-e942-4863-83d9-01b9491cbb51', 'name': 'ctest-vn-12269314', 'tenant_id': 'f04bdf714abe4865ac501da7599579f2', 'project_id': 'f04bdf714abe4865ac501da7599579f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['60cb221b-6baf-4464-83fa-553fa4a0c32b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88777549', 'ctest-vn-12269314'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88777549', 'ctest-policy-allow-all-06346267']], 'subnet_ipam': [{'subnet_cidr': '113.102.252.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-27 15:22:38,904 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '992fcb8d-0d7c-44fb-8845-78e83f6c6e65', 'name': 'ctest-vn-62256214', 'tenant_id': 'f04bdf714abe4865ac501da7599579f2', 'project_id': 'f04bdf714abe4865ac501da7599579f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef444587-bd47-45de-a7da-b92eb4a0c137'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88777549', 'ctest-vn-62256214'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88777549', 'ctest-policy-allow-all-06346267']], 'subnet_ipam': [{'subnet_cidr': '199.25.61.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-27 15:22:39,056 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-05-27 15:22:39,392 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-05-27 15:22:39,416 - DEBUG - Requesting: http://10.0.0.27:8082/domain/874a0299-f823-415f-9e6a-e2be69e54d9e
2025-05-27 15:22:39,426 - DEBUG - Requesting: http://10.0.0.27:8082/project/f04bdf71-4abe-4865-ac50-1da7599579f2
2025-05-27 15:22:39,493 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/50a3bfd8-e942-4863-83d9-01b9491cbb51
2025-05-27 15:22:39,502 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/50a3bfd8-e942-4863-83d9-01b9491cbb51
2025-05-27 15:22:39,509 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/57fa69d5-21d7-4536-b8c0-bee61a19f9dd
2025-05-27 15:22:39,515 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/57fa69d5-21d7-4536-b8c0-bee61a19f9dd
2025-05-27 15:22:39,520 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/83f0247e-9861-43f1-9cbf-e65879cac139
2025-05-27 15:22:39,524 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-27 15:22:39,524 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/50a3bfd8-e942-4863-83d9-01b9491cbb51
2025-05-27 15:22:39,532 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/57fa69d5-21d7-4536-b8c0-bee61a19f9dd
2025-05-27 15:22:39,543 - INFO - Verified VN network id 7 for VN 50a3bfd8-e942-4863-83d9-01b9491cbb51
2025-05-27 15:22:39,543 - INFO - Verifications in API Server for VN ctest-vn-12269314 passed
2025-05-27 15:22:39,543 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/50a3bfd8-e942-4863-83d9-01b9491cbb51
2025-05-27 15:22:39,550 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/57fa69d5-21d7-4536-b8c0-bee61a19f9dd
2025-05-27 15:22:39,555 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/57fa69d5-21d7-4536-b8c0-bee61a19f9dd
2025-05-27 15:22:39,561 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/83f0247e-9861-43f1-9cbf-e65879cac139
2025-05-27 15:22:39,571 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88777549:ctest-vn-12269314', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88777549', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5810698882585348195', 'uuid-lslong': '9500626784221969233'}, 'enable': 'true', 'created': '2025-05-27T15:22:37', 'last-modified': '2025-05-27T15:22:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.944895'}
2025-05-27 15:22:39,576 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-27 15:22:39,577 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12269314 passed
2025-05-27 15:22:39,577 - DEBUG - ====Verifying policy data for ctest-vn-12269314 in API_Server ======
2025-05-27 15:22:39,577 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-05-27 15:22:39,581 - DEBUG - Requesting: http://10.0.0.27:8082/domain/874a0299-f823-415f-9e6a-e2be69e54d9e
2025-05-27 15:22:39,590 - DEBUG - Requesting: http://10.0.0.27:8082/project/f04bdf71-4abe-4865-ac50-1da7599579f2
2025-05-27 15:22:39,660 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/50a3bfd8-e942-4863-83d9-01b9491cbb51
2025-05-27 15:22:39,668 - DEBUG - ==>Verifying data for policy with id: 63efc84d-f497-48ab-a50d-9d77956a4c22, fqn: ['default-domain', 'ctest-TestBasicPolicy-88777549', 'ctest-policy-allow-all-06346267']
2025-05-27 15:22:39,668 - INFO - VN ctest-vn-12269314 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-27 15:22:39,668 - DEBUG - Verifying the vn in opserver
2025-05-27 15:22:39,668 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88777549:ctest-vn-12269314 virtual network link through opserver 10.0.0.27
2025-05-27 15:22:39,668 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-05-27 15:22:39,997 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-05-27 15:22:43,045 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88777549:ctest-vn-12269314 virtual network link through opserver 10.0.0.27
2025-05-27 15:22:43,045 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-05-27 15:22:43,055 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88777549:ctest-vn-12269314', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88777549:ctest-vn-12269314?flat'}
2025-05-27 15:22:43,055 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88777549:ctest-vn-12269314 is found in opserver
2025-05-27 15:22:43,065 - DEBUG - Do not have enough data to verify VN in agent
2025-05-27 15:22:43,069 - DEBUG - VRF ids for VN ctest-vn-12269314: {}
2025-05-27 15:22:43,069 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-05-27 15:22:43,074 - DEBUG - Requesting: http://10.0.0.27:8082/domain/874a0299-f823-415f-9e6a-e2be69e54d9e
2025-05-27 15:22:43,083 - DEBUG - Requesting: http://10.0.0.27:8082/project/f04bdf71-4abe-4865-ac50-1da7599579f2
2025-05-27 15:22:43,154 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/992fcb8d-0d7c-44fb-8845-78e83f6c6e65
2025-05-27 15:22:43,163 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/992fcb8d-0d7c-44fb-8845-78e83f6c6e65
2025-05-27 15:22:43,173 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/945d1a2f-0ee8-4af4-9c09-da689d74befa
2025-05-27 15:22:43,181 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/945d1a2f-0ee8-4af4-9c09-da689d74befa
2025-05-27 15:22:43,186 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/79a845c1-6c07-4cea-aab5-3adff6d95896
2025-05-27 15:22:43,192 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-27 15:22:43,192 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/992fcb8d-0d7c-44fb-8845-78e83f6c6e65
2025-05-27 15:22:43,200 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/945d1a2f-0ee8-4af4-9c09-da689d74befa
2025-05-27 15:22:43,214 - INFO - Verified VN network id 8 for VN 992fcb8d-0d7c-44fb-8845-78e83f6c6e65
2025-05-27 15:22:43,214 - INFO - Verifications in API Server for VN ctest-vn-62256214 passed
2025-05-27 15:22:43,214 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/992fcb8d-0d7c-44fb-8845-78e83f6c6e65
2025-05-27 15:22:43,222 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/945d1a2f-0ee8-4af4-9c09-da689d74befa
2025-05-27 15:22:43,227 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/945d1a2f-0ee8-4af4-9c09-da689d74befa
2025-05-27 15:22:43,285 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/79a845c1-6c07-4cea-aab5-3adff6d95896
2025-05-27 15:22:43,296 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88777549:ctest-vn-62256214', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88777549', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11038265018385450235', 'uuid-lslong': '9819387501443051109'}, 'enable': 'true', 'created': '2025-05-27T15:22:37', 'last-modified': '2025-05-27T15:22:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.458454'}
2025-05-27 15:22:43,301 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-27 15:22:43,301 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62256214 passed
2025-05-27 15:22:43,301 - DEBUG - ====Verifying policy data for ctest-vn-62256214 in API_Server ======
2025-05-27 15:22:43,301 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-05-27 15:22:43,305 - DEBUG - Requesting: http://10.0.0.27:8082/domain/874a0299-f823-415f-9e6a-e2be69e54d9e
2025-05-27 15:22:43,314 - DEBUG - Requesting: http://10.0.0.27:8082/project/f04bdf71-4abe-4865-ac50-1da7599579f2
2025-05-27 15:22:43,386 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/992fcb8d-0d7c-44fb-8845-78e83f6c6e65
2025-05-27 15:22:43,393 - DEBUG - ==>Verifying data for policy with id: 63efc84d-f497-48ab-a50d-9d77956a4c22, fqn: ['default-domain', 'ctest-TestBasicPolicy-88777549', 'ctest-policy-allow-all-06346267']
2025-05-27 15:22:43,393 - INFO - VN ctest-vn-62256214 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-27 15:22:43,394 - DEBUG - Verifying the vn in opserver
2025-05-27 15:22:43,394 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88777549:ctest-vn-62256214 virtual network link through opserver 10.0.0.27
2025-05-27 15:22:43,394 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-05-27 15:22:43,402 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88777549:ctest-vn-62256214', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88777549:ctest-vn-62256214?flat'}
2025-05-27 15:22:43,402 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88777549:ctest-vn-62256214 is found in opserver
2025-05-27 15:22:43,410 - DEBUG - Do not have enough data to verify VN in agent
2025-05-27 15:22:43,414 - DEBUG - VRF ids for VN ctest-vn-62256214: {}
2025-05-27 15:22:43,462 - DEBUG - Services list from nova: [