2025-05-05 02:06:45,157 - INFO - Domain Default found not creating
2025-05-05 02:06:45,279 - INFO - Project ctest-TestBasicPolicy-83950176 not found, creating it
2025-05-05 02:06:45,732 - INFO - Created Project:ctest-TestBasicPolicy-83950176, ID : 48e7607c-4775-41b1-8bb5-a714ed5a0f95
2025-05-05 02:06:47,054 - INFO - ================================================================================
2025-05-05 02:06:47,055 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-05 02:06:47,055 - 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-05 02:06:47,306 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with
2025-05-05 02:06:47,307 - INFO - Initial checks done. Running the testcase now
2025-05-05 02:06:47,307 - INFO -
2025-05-05 02:06:48,086 - DEBUG - Response for create_network : {'network': {'id': '2bece20b-35c8-4e62-8065-8d59167ccf93', 'name': 'ctest-vn-90408301', 'tenant_id': '48e7607c477541b18bb5a714ed5a0f95', 'project_id': '48e7607c477541b18bb5a714ed5a0f95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83950176', 'ctest-vn-90408301'], 'port_security_enabled': True, 'description': ''}}
2025-05-05 02:06:48,388 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eee338ac-2e96-43db-9c08-55aae0971358', 'name': '', 'tenant_id': '48e7607c477541b18bb5a714ed5a0f95', 'network_id': '2bece20b-35c8-4e62-8065-8d59167ccf93', 'ip_version': 4, 'cidr': '28.186.87.192/26', 'allocation_pools': [{'start': '28.186.87.194', 'end': '28.186.87.254'}], 'gateway_ip': '28.186.87.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.186.87.194', 'tags': [], 'project_id': '48e7607c477541b18bb5a714ed5a0f95'}}
2025-05-05 02:06:48,407 - INFO - Created VN ctest-vn-90408301
2025-05-05 02:06:48,460 - DEBUG - VN ctest-vn-90408301 UUID is 2bece20b-35c8-4e62-8065-8d59167ccf93
2025-05-05 02:06:48,779 - DEBUG - Response for create_network : {'network': {'id': '1e012a2a-fed2-402d-9771-e6da97b04e0e', 'name': 'ctest-vn-48502909', 'tenant_id': '48e7607c477541b18bb5a714ed5a0f95', 'project_id': '48e7607c477541b18bb5a714ed5a0f95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83950176', 'ctest-vn-48502909'], 'port_security_enabled': True, 'description': ''}}
2025-05-05 02:06:48,926 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ab403aac-dd9d-4b14-a171-6ae71579c178', 'name': '', 'tenant_id': '48e7607c477541b18bb5a714ed5a0f95', 'network_id': '1e012a2a-fed2-402d-9771-e6da97b04e0e', 'ip_version': 4, 'cidr': '51.131.10.64/26', 'allocation_pools': [{'start': '51.131.10.66', 'end': '51.131.10.126'}], 'gateway_ip': '51.131.10.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.131.10.66', 'tags': [], 'project_id': '48e7607c477541b18bb5a714ed5a0f95'}}
2025-05-05 02:06:48,941 - INFO - Created VN ctest-vn-48502909
2025-05-05 02:06:48,992 - DEBUG - VN ctest-vn-48502909 UUID is 1e012a2a-fed2-402d-9771-e6da97b04e0e
2025-05-05 02:06:49,140 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83950176:ctest-vn-90408301, 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-83950176:ctest-vn-48502909, 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-05 02:06:49,433 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2bece20b-35c8-4e62-8065-8d59167ccf93', 'name': 'ctest-vn-90408301', 'tenant_id': '48e7607c477541b18bb5a714ed5a0f95', 'project_id': '48e7607c477541b18bb5a714ed5a0f95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eee338ac-2e96-43db-9c08-55aae0971358'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83950176', 'ctest-vn-90408301'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83950176', 'ctest-policy-allow-all-15023421']], 'subnet_ipam': [{'subnet_cidr': '28.186.87.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-05 02:06:49,659 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1e012a2a-fed2-402d-9771-e6da97b04e0e', 'name': 'ctest-vn-48502909', 'tenant_id': '48e7607c477541b18bb5a714ed5a0f95', 'project_id': '48e7607c477541b18bb5a714ed5a0f95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ab403aac-dd9d-4b14-a171-6ae71579c178'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83950176', 'ctest-vn-48502909'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83950176', 'ctest-policy-allow-all-15023421']], 'subnet_ipam': [{'subnet_cidr': '51.131.10.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-05 02:06:49,816 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-05 02:06:50,109 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-05 02:06:50,136 - DEBUG - Requesting: http://10.0.0.38:8082/domain/15de78b2-cb4d-49de-94f9-32c178720b38
2025-05-05 02:06:50,151 - DEBUG - Requesting: http://10.0.0.38:8082/project/48e7607c-4775-41b1-8bb5-a714ed5a0f95
2025-05-05 02:06:50,225 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2bece20b-35c8-4e62-8065-8d59167ccf93
2025-05-05 02:06:50,235 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2bece20b-35c8-4e62-8065-8d59167ccf93
2025-05-05 02:06:50,245 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/30d65881-1771-43a8-b173-39739c444dde
2025-05-05 02:06:50,251 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/30d65881-1771-43a8-b173-39739c444dde
2025-05-05 02:06:50,258 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b79b870b-f12f-4575-b354-3da2d4ee244d
2025-05-05 02:06:50,264 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-05 02:06:50,264 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2bece20b-35c8-4e62-8065-8d59167ccf93
2025-05-05 02:06:50,273 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/30d65881-1771-43a8-b173-39739c444dde
2025-05-05 02:06:50,285 - INFO - Verified VN network id 9 for VN 2bece20b-35c8-4e62-8065-8d59167ccf93
2025-05-05 02:06:50,285 - INFO - Verifications in API Server for VN ctest-vn-90408301 passed
2025-05-05 02:06:50,285 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2bece20b-35c8-4e62-8065-8d59167ccf93
2025-05-05 02:06:50,294 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/30d65881-1771-43a8-b173-39739c444dde
2025-05-05 02:06:50,300 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/30d65881-1771-43a8-b173-39739c444dde
2025-05-05 02:06:50,306 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b79b870b-f12f-4575-b354-3da2d4ee244d
2025-05-05 02:06:50,316 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83950176:ctest-vn-90408301', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83950176', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3165153175909453410', 'uuid-lslong': '9251956423271436179'}, 'enable': 'true', 'created': '2025-05-05T02:06:47', 'last-modified': '2025-05-05T02:06:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.903775'}
2025-05-05 02:06:50,322 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-05 02:06:50,322 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90408301 passed
2025-05-05 02:06:50,323 - DEBUG - ====Verifying policy data for ctest-vn-90408301 in API_Server ======
2025-05-05 02:06:50,323 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-05 02:06:50,327 - DEBUG - Requesting: http://10.0.0.38:8082/domain/15de78b2-cb4d-49de-94f9-32c178720b38
2025-05-05 02:06:50,338 - DEBUG - Requesting: http://10.0.0.38:8082/project/48e7607c-4775-41b1-8bb5-a714ed5a0f95
2025-05-05 02:06:50,415 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2bece20b-35c8-4e62-8065-8d59167ccf93
2025-05-05 02:06:50,425 - DEBUG - ==>Verifying data for policy with id: 694329ab-87f5-4217-a3a9-ea638a2da73d, fqn: ['default-domain', 'ctest-TestBasicPolicy-83950176', 'ctest-policy-allow-all-15023421']
2025-05-05 02:06:50,425 - INFO - VN ctest-vn-90408301 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-05 02:06:50,425 - DEBUG - Verifying the vn in opserver
2025-05-05 02:06:50,425 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83950176:ctest-vn-90408301 virtual network link through opserver 10.0.0.38
2025-05-05 02:06:50,425 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-05 02:06:50,711 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-05 02:06:50,762 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83950176:ctest-vn-90408301', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83950176:ctest-vn-90408301?flat'}
2025-05-05 02:06:50,762 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83950176:ctest-vn-90408301 is found in opserver
2025-05-05 02:06:50,773 - DEBUG - Do not have enough data to verify VN in agent
2025-05-05 02:06:50,778 - DEBUG - VRF ids for VN ctest-vn-90408301: {}
2025-05-05 02:06:50,778 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-05 02:06:50,784 - DEBUG - Requesting: http://10.0.0.38:8082/domain/15de78b2-cb4d-49de-94f9-32c178720b38
2025-05-05 02:06:50,797 - DEBUG - Requesting: http://10.0.0.38:8082/project/48e7607c-4775-41b1-8bb5-a714ed5a0f95
2025-05-05 02:06:50,869 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1e012a2a-fed2-402d-9771-e6da97b04e0e
2025-05-05 02:06:50,881 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1e012a2a-fed2-402d-9771-e6da97b04e0e
2025-05-05 02:06:50,890 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6a82210a-262f-4349-a292-51cff20d2573
2025-05-05 02:06:50,897 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6a82210a-262f-4349-a292-51cff20d2573
2025-05-05 02:06:50,903 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8e3c75ac-e20e-49ec-b1ff-a3ea7670b923
2025-05-05 02:06:50,909 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-05 02:06:50,909 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1e012a2a-fed2-402d-9771-e6da97b04e0e
2025-05-05 02:06:50,919 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6a82210a-262f-4349-a292-51cff20d2573
2025-05-05 02:06:50,932 - INFO - Verified VN network id 10 for VN 1e012a2a-fed2-402d-9771-e6da97b04e0e
2025-05-05 02:06:50,932 - INFO - Verifications in API Server for VN ctest-vn-48502909 passed
2025-05-05 02:06:50,932 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1e012a2a-fed2-402d-9771-e6da97b04e0e
2025-05-05 02:06:50,942 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6a82210a-262f-4349-a292-51cff20d2573
2025-05-05 02:06:50,948 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6a82210a-262f-4349-a292-51cff20d2573
2025-05-05 02:06:50,956 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8e3c75ac-e20e-49ec-b1ff-a3ea7670b923
2025-05-05 02:06:50,968 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83950176:ctest-vn-48502909', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83950176', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2162055660266733613', 'uuid-lslong': '10912757198617595406'}, 'enable': 'true', 'created': '2025-05-05T02:06:48', 'last-modified': '2025-05-05T02:06:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.329578'}
2025-05-05 02:06:50,975 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-05 02:06:50,975 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48502909 passed
2025-05-05 02:06:50,976 - DEBUG - ====Verifying policy data for ctest-vn-48502909 in API_Server ======
2025-05-05 02:06:50,976 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-05 02:06:50,982 - DEBUG - Requesting: http://10.0.0.38:8082/domain/15de78b2-cb4d-49de-94f9-32c178720b38
2025-05-05 02:06:50,993 - DEBUG - Requesting: http://10.0.0.38:8082/project/48e7607c-4775-41b1-8bb5-a714ed5a0f95
2025-05-05 02:06:51,063 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1e012a2a-fed2-402d-9771-e6da97b04e0e
2025-05-05 02:06:51,073 - DEBUG - ==>Verifying data for policy with id: 694329ab-87f5-4217-a3a9-ea638a2da73d, fqn: ['default-domain', 'ctest-TestBasicPolicy-83950176', 'ctest-policy-allow-all-15023421']
2025-05-05 02:06:51,073 - INFO - VN ctest-vn-48502909 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-05 02:06:51,073 - DEBUG - Verifying the vn in opserver
2025-05-05 02:06:51,073 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83950176:ctest-vn-48502909 virtual network link through opserver 10.0.0.38
2025-05-05 02:06:51,073 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-05 02:06:51,082 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83950176:ctest-vn-48502909', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83950176:ctest-vn-48502909?flat'}
2025-05-05 02:06:51,083 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83950176:ctest-vn-48502909 is found in opserver
2025-05-05 02:06:51,093 - DEBUG - Do not have enough data to verify VN in agent
2025-05-05 02:06:51,097 - DEBUG - VRF ids for VN ctest-vn-48502909: {}
2025-05-05 02:06:51,148 - DEBUG - Services list from nova: [