2025-07-01 14:52:32,653 - INFO - Domain Default found not creating
2025-07-01 14:52:32,859 - INFO - Project ctest-TestBasicPolicy-67439825 not found, creating it
2025-07-01 14:52:33,323 - INFO - Created Project:ctest-TestBasicPolicy-67439825, ID : e7e739e0-0dc4-4004-8c79-c51642c70abf
2025-07-01 14:52:34,810 - INFO - ================================================================================
2025-07-01 14:52:34,810 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-01 14:52:34,810 - 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-07-01 14:52:35,063 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.0.0.49': '0'}} with
2025-07-01 14:52:35,063 - INFO - Initial checks done. Running the testcase now
2025-07-01 14:52:35,063 - INFO -
2025-07-01 14:52:35,613 - DEBUG - Response for create_network : {'network': {'id': '3d86c470-2d33-4153-923c-96901538076a', 'name': 'ctest-vn-50514291', 'tenant_id': 'e7e739e00dc440048c79c51642c70abf', 'project_id': 'e7e739e00dc440048c79c51642c70abf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67439825', 'ctest-vn-50514291'], 'port_security_enabled': True, 'description': ''}}
2025-07-01 14:52:35,786 - DEBUG - Response for create_subnet : {'subnet': {'id': '8938d757-c1bd-47f0-97fb-ce3bda8666d0', 'name': '', 'tenant_id': 'e7e739e00dc440048c79c51642c70abf', 'network_id': '3d86c470-2d33-4153-923c-96901538076a', 'ip_version': 4, 'cidr': '54.4.251.192/26', 'allocation_pools': [{'start': '54.4.251.194', 'end': '54.4.251.254'}], 'gateway_ip': '54.4.251.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.4.251.194', 'tags': [], 'project_id': 'e7e739e00dc440048c79c51642c70abf'}}
2025-07-01 14:52:35,804 - INFO - Created VN ctest-vn-50514291
2025-07-01 14:52:35,857 - DEBUG - VN ctest-vn-50514291 UUID is 3d86c470-2d33-4153-923c-96901538076a
2025-07-01 14:52:36,184 - DEBUG - Response for create_network : {'network': {'id': '651b4394-2c1f-403d-a778-5d8d53d0899b', 'name': 'ctest-vn-59314327', 'tenant_id': 'e7e739e00dc440048c79c51642c70abf', 'project_id': 'e7e739e00dc440048c79c51642c70abf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67439825', 'ctest-vn-59314327'], 'port_security_enabled': True, 'description': ''}}
2025-07-01 14:52:36,343 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd065f3a2-011a-480d-8281-f48b71e19d96', 'name': '', 'tenant_id': 'e7e739e00dc440048c79c51642c70abf', 'network_id': '651b4394-2c1f-403d-a778-5d8d53d0899b', 'ip_version': 4, 'cidr': '111.65.90.0/26', 'allocation_pools': [{'start': '111.65.90.2', 'end': '111.65.90.62'}], 'gateway_ip': '111.65.90.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.65.90.2', 'tags': [], 'project_id': 'e7e739e00dc440048c79c51642c70abf'}}
2025-07-01 14:52:36,365 - INFO - Created VN ctest-vn-59314327
2025-07-01 14:52:36,417 - DEBUG - VN ctest-vn-59314327 UUID is 651b4394-2c1f-403d-a778-5d8d53d0899b
2025-07-01 14:52:36,533 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-50514291, 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-67439825:ctest-vn-59314327, 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-07-01 14:52:36,818 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3d86c470-2d33-4153-923c-96901538076a', 'name': 'ctest-vn-50514291', 'tenant_id': 'e7e739e00dc440048c79c51642c70abf', 'project_id': 'e7e739e00dc440048c79c51642c70abf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8938d757-c1bd-47f0-97fb-ce3bda8666d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67439825', 'ctest-vn-50514291'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67439825', 'ctest-policy-allow-all-69583214']], 'subnet_ipam': [{'subnet_cidr': '54.4.251.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-01 14:52:37,056 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '651b4394-2c1f-403d-a778-5d8d53d0899b', 'name': 'ctest-vn-59314327', 'tenant_id': 'e7e739e00dc440048c79c51642c70abf', 'project_id': 'e7e739e00dc440048c79c51642c70abf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d065f3a2-011a-480d-8281-f48b71e19d96'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67439825', 'ctest-vn-59314327'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67439825', 'ctest-policy-allow-all-69583214']], 'subnet_ipam': [{'subnet_cidr': '111.65.90.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-01 14:52:37,217 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-01 14:52:37,518 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-01 14:52:37,546 - DEBUG - Requesting: http://10.0.0.49:8082/domain/8b0116a9-d93e-48c2-9709-939b3ba99be6
2025-07-01 14:52:37,559 - DEBUG - Requesting: http://10.0.0.49:8082/project/e7e739e0-0dc4-4004-8c79-c51642c70abf
2025-07-01 14:52:37,635 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3d86c470-2d33-4153-923c-96901538076a
2025-07-01 14:52:37,649 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3d86c470-2d33-4153-923c-96901538076a
2025-07-01 14:52:37,660 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e037b4bc-a7dd-41f3-bb8c-a4448f4a4c52
2025-07-01 14:52:37,667 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e037b4bc-a7dd-41f3-bb8c-a4448f4a4c52
2025-07-01 14:52:37,674 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/d90a73f2-6216-4113-b73d-e1e3592f46b4
2025-07-01 14:52:37,680 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-01 14:52:37,680 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3d86c470-2d33-4153-923c-96901538076a
2025-07-01 14:52:37,689 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e037b4bc-a7dd-41f3-bb8c-a4448f4a4c52
2025-07-01 14:52:37,705 - INFO - Verified VN network id 8 for VN 3d86c470-2d33-4153-923c-96901538076a
2025-07-01 14:52:37,705 - INFO - Verifications in API Server for VN ctest-vn-50514291 passed
2025-07-01 14:52:37,705 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3d86c470-2d33-4153-923c-96901538076a
2025-07-01 14:52:37,715 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e037b4bc-a7dd-41f3-bb8c-a4448f4a4c52
2025-07-01 14:52:37,722 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e037b4bc-a7dd-41f3-bb8c-a4448f4a4c52
2025-07-01 14:52:37,729 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/d90a73f2-6216-4113-b73d-e1e3592f46b4
2025-07-01 14:52:37,743 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-50514291', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67439825', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4433446869266547027', 'uuid-lslong': '10537462773715568490'}, 'enable': 'true', 'created': '2025-07-01T14:52:35', 'last-modified': '2025-07-01T14:52:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.940895'}
2025-07-01 14:52:37,750 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-01 14:52:37,750 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50514291 passed
2025-07-01 14:52:37,750 - DEBUG - ====Verifying policy data for ctest-vn-50514291 in API_Server ======
2025-07-01 14:52:37,750 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-01 14:52:37,755 - DEBUG - Requesting: http://10.0.0.49:8082/domain/8b0116a9-d93e-48c2-9709-939b3ba99be6
2025-07-01 14:52:37,766 - DEBUG - Requesting: http://10.0.0.49:8082/project/e7e739e0-0dc4-4004-8c79-c51642c70abf
2025-07-01 14:52:37,841 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/3d86c470-2d33-4153-923c-96901538076a
2025-07-01 14:52:37,850 - DEBUG - ==>Verifying data for policy with id: 3300c057-4e49-4809-a058-4e34e4b0a936, fqn: ['default-domain', 'ctest-TestBasicPolicy-67439825', 'ctest-policy-allow-all-69583214']
2025-07-01 14:52:37,850 - INFO - VN ctest-vn-50514291 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-01 14:52:37,850 - DEBUG - Verifying the vn in opserver
2025-07-01 14:52:37,850 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-50514291 virtual network link through opserver 10.0.0.49
2025-07-01 14:52:37,850 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-01 14:52:38,146 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-01 14:52:41,202 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-50514291 virtual network link through opserver 10.0.0.49
2025-07-01 14:52:41,203 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-01 14:52:44,214 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-50514291 virtual network link through opserver 10.0.0.49
2025-07-01 14:52:44,214 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-01 14:52:47,225 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-50514291 virtual network link through opserver 10.0.0.49
2025-07-01 14:52:47,225 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-01 14:52:50,235 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-50514291 virtual network link through opserver 10.0.0.49
2025-07-01 14:52:50,235 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-01 14:52:53,244 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-50514291 virtual network link through opserver 10.0.0.49
2025-07-01 14:52:53,245 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-01 14:52:56,256 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-50514291 virtual network link through opserver 10.0.0.49
2025-07-01 14:52:56,256 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-01 14:52:59,268 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-50514291 virtual network link through opserver 10.0.0.49
2025-07-01 14:52:59,268 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-01 14:53:02,278 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-50514291 virtual network link through opserver 10.0.0.49
2025-07-01 14:53:02,278 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-01 14:53:05,288 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-50514291 virtual network link through opserver 10.0.0.49
2025-07-01 14:53:05,288 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-01 14:53:08,298 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-50514291 virtual network link through opserver 10.0.0.49
2025-07-01 14:53:08,298 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-01 14:53:08,308 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-50514291', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-50514291?flat'}
2025-07-01 14:53:08,308 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-50514291 is found in opserver
2025-07-01 14:53:08,318 - DEBUG - Do not have enough data to verify VN in agent
2025-07-01 14:53:08,324 - DEBUG - VRF ids for VN ctest-vn-50514291: {}
2025-07-01 14:53:08,324 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-01 14:53:08,330 - DEBUG - Requesting: http://10.0.0.49:8082/domain/8b0116a9-d93e-48c2-9709-939b3ba99be6
2025-07-01 14:53:08,340 - DEBUG - Requesting: http://10.0.0.49:8082/project/e7e739e0-0dc4-4004-8c79-c51642c70abf
2025-07-01 14:53:08,410 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/651b4394-2c1f-403d-a778-5d8d53d0899b
2025-07-01 14:53:08,421 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/651b4394-2c1f-403d-a778-5d8d53d0899b
2025-07-01 14:53:08,430 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a3047e0b-4e86-46c8-90ea-f413dee2e933
2025-07-01 14:53:08,437 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a3047e0b-4e86-46c8-90ea-f413dee2e933
2025-07-01 14:53:08,443 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/7a494977-7f9d-4e16-9c99-c463c9b8dd50
2025-07-01 14:53:08,449 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-01 14:53:08,449 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/651b4394-2c1f-403d-a778-5d8d53d0899b
2025-07-01 14:53:08,457 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a3047e0b-4e86-46c8-90ea-f413dee2e933
2025-07-01 14:53:08,469 - INFO - Verified VN network id 9 for VN 651b4394-2c1f-403d-a778-5d8d53d0899b
2025-07-01 14:53:08,469 - INFO - Verifications in API Server for VN ctest-vn-59314327 passed
2025-07-01 14:53:08,470 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/651b4394-2c1f-403d-a778-5d8d53d0899b
2025-07-01 14:53:08,478 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a3047e0b-4e86-46c8-90ea-f413dee2e933
2025-07-01 14:53:08,485 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/a3047e0b-4e86-46c8-90ea-f413dee2e933
2025-07-01 14:53:08,493 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/7a494977-7f9d-4e16-9c99-c463c9b8dd50
2025-07-01 14:53:08,504 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-59314327', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67439825', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7285491125876375613', 'uuid-lslong': '12067498063117191579'}, 'enable': 'true', 'created': '2025-07-01T14:52:36', 'last-modified': '2025-07-01T14:52:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:31.471273'}
2025-07-01 14:53:08,511 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-01 14:53:08,511 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59314327 passed
2025-07-01 14:53:08,511 - DEBUG - ====Verifying policy data for ctest-vn-59314327 in API_Server ======
2025-07-01 14:53:08,511 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-01 14:53:08,516 - DEBUG - Requesting: http://10.0.0.49:8082/domain/8b0116a9-d93e-48c2-9709-939b3ba99be6
2025-07-01 14:53:08,525 - DEBUG - Requesting: http://10.0.0.49:8082/project/e7e739e0-0dc4-4004-8c79-c51642c70abf
2025-07-01 14:53:08,600 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/651b4394-2c1f-403d-a778-5d8d53d0899b
2025-07-01 14:53:08,611 - DEBUG - ==>Verifying data for policy with id: 3300c057-4e49-4809-a058-4e34e4b0a936, fqn: ['default-domain', 'ctest-TestBasicPolicy-67439825', 'ctest-policy-allow-all-69583214']
2025-07-01 14:53:08,611 - INFO - VN ctest-vn-59314327 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-01 14:53:08,612 - DEBUG - Verifying the vn in opserver
2025-07-01 14:53:08,612 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-59314327 virtual network link through opserver 10.0.0.49
2025-07-01 14:53:08,612 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-01 14:53:08,621 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-59314327', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-59314327?flat'}
2025-07-01 14:53:08,621 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67439825:ctest-vn-59314327 is found in opserver
2025-07-01 14:53:08,630 - DEBUG - Do not have enough data to verify VN in agent
2025-07-01 14:53:08,634 - DEBUG - VRF ids for VN ctest-vn-59314327: {}
2025-07-01 14:53:08,701 - DEBUG - Services list from nova: [