2024-11-11 01:48:33,420 - INFO - Domain Default found not creating
2024-11-11 01:48:33,582 - INFO - Project ctest-TestBasicPolicy-46445482 not found, creating it
2024-11-11 01:48:34,094 - INFO - Created Project:ctest-TestBasicPolicy-46445482, ID : 020eb88f-ae09-40d8-879f-7de8197e65b0
2024-11-11 01:48:35,730 - INFO - ================================================================================
2024-11-11 01:48:35,730 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-11 01:48:35,730 - 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
2024-11-11 01:48:35,992 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.34': '0'}} with
2024-11-11 01:48:35,992 - INFO - Initial checks done. Running the testcase now
2024-11-11 01:48:35,992 - INFO -
2024-11-11 01:48:36,644 - DEBUG - Response for create_network : {'network': {'id': 'e8717d46-def4-475a-b0de-4a42b9d742c7', 'name': 'ctest-vn-40313836', 'tenant_id': '020eb88fae0940d8879f7de8197e65b0', 'project_id': '020eb88fae0940d8879f7de8197e65b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46445482', 'ctest-vn-40313836'], 'port_security_enabled': True, 'description': ''}}
2024-11-11 01:48:36,800 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a78849d3-04c7-40e1-9a50-a63e2335548d', 'name': '', 'tenant_id': '020eb88fae0940d8879f7de8197e65b0', 'network_id': 'e8717d46-def4-475a-b0de-4a42b9d742c7', 'ip_version': 4, 'cidr': '190.146.135.128/26', 'allocation_pools': [{'start': '190.146.135.130', 'end': '190.146.135.190'}], 'gateway_ip': '190.146.135.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.146.135.130', 'tags': [], 'project_id': '020eb88fae0940d8879f7de8197e65b0'}}
2024-11-11 01:48:36,821 - INFO - Created VN ctest-vn-40313836
2024-11-11 01:48:36,882 - DEBUG - VN ctest-vn-40313836 UUID is e8717d46-def4-475a-b0de-4a42b9d742c7
2024-11-11 01:48:37,221 - DEBUG - Response for create_network : {'network': {'id': '04978707-2c6d-42df-bc87-3d2c63205be4', 'name': 'ctest-vn-17388436', 'tenant_id': '020eb88fae0940d8879f7de8197e65b0', 'project_id': '020eb88fae0940d8879f7de8197e65b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46445482', 'ctest-vn-17388436'], 'port_security_enabled': True, 'description': ''}}
2024-11-11 01:48:37,418 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb2c0d09-24b9-4061-8d4d-b7f258805e4c', 'name': '', 'tenant_id': '020eb88fae0940d8879f7de8197e65b0', 'network_id': '04978707-2c6d-42df-bc87-3d2c63205be4', 'ip_version': 4, 'cidr': '26.142.11.192/26', 'allocation_pools': [{'start': '26.142.11.194', 'end': '26.142.11.254'}], 'gateway_ip': '26.142.11.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.142.11.194', 'tags': [], 'project_id': '020eb88fae0940d8879f7de8197e65b0'}}
2024-11-11 01:48:37,438 - INFO - Created VN ctest-vn-17388436
2024-11-11 01:48:37,498 - DEBUG - VN ctest-vn-17388436 UUID is 04978707-2c6d-42df-bc87-3d2c63205be4
2024-11-11 01:48:37,621 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-40313836, 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-46445482:ctest-vn-17388436, 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]
2024-11-11 01:48:37,940 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e8717d46-def4-475a-b0de-4a42b9d742c7', 'name': 'ctest-vn-40313836', 'tenant_id': '020eb88fae0940d8879f7de8197e65b0', 'project_id': '020eb88fae0940d8879f7de8197e65b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a78849d3-04c7-40e1-9a50-a63e2335548d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46445482', 'ctest-vn-40313836'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46445482', 'ctest-policy-allow-all-61828627']], 'subnet_ipam': [{'subnet_cidr': '190.146.135.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-11 01:48:38,199 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '04978707-2c6d-42df-bc87-3d2c63205be4', 'name': 'ctest-vn-17388436', 'tenant_id': '020eb88fae0940d8879f7de8197e65b0', 'project_id': '020eb88fae0940d8879f7de8197e65b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb2c0d09-24b9-4061-8d4d-b7f258805e4c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46445482', 'ctest-vn-17388436'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46445482', 'ctest-policy-allow-all-61828627']], 'subnet_ipam': [{'subnet_cidr': '26.142.11.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-11 01:48:38,378 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-11-11 01:48:38,753 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-11-11 01:48:38,823 - DEBUG - Requesting: http://10.0.0.32:8082/domain/d3147976-a1a0-4ade-8575-85d3c25a1f83
2024-11-11 01:48:38,861 - DEBUG - Requesting: http://10.0.0.32:8082/project/020eb88f-ae09-40d8-879f-7de8197e65b0
2024-11-11 01:48:38,979 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e8717d46-def4-475a-b0de-4a42b9d742c7
2024-11-11 01:48:39,003 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e8717d46-def4-475a-b0de-4a42b9d742c7
2024-11-11 01:48:39,034 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/87cc612b-dbfe-43a0-9b31-ba4ded3de396
2024-11-11 01:48:39,063 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/87cc612b-dbfe-43a0-9b31-ba4ded3de396
2024-11-11 01:48:39,090 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/496f2ac1-5341-4971-9d72-b51cb3dffde6
2024-11-11 01:48:39,106 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-11 01:48:39,106 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e8717d46-def4-475a-b0de-4a42b9d742c7
2024-11-11 01:48:39,127 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/87cc612b-dbfe-43a0-9b31-ba4ded3de396
2024-11-11 01:48:39,160 - INFO - Verified VN network id 9 for VN e8717d46-def4-475a-b0de-4a42b9d742c7
2024-11-11 01:48:39,160 - INFO - Verifications in API Server for VN ctest-vn-40313836 passed
2024-11-11 01:48:39,161 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e8717d46-def4-475a-b0de-4a42b9d742c7
2024-11-11 01:48:39,191 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/87cc612b-dbfe-43a0-9b31-ba4ded3de396
2024-11-11 01:48:39,212 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/87cc612b-dbfe-43a0-9b31-ba4ded3de396
2024-11-11 01:48:39,226 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/496f2ac1-5341-4971-9d72-b51cb3dffde6
2024-11-11 01:48:39,244 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-40313836', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46445482', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16749306232509319002', 'uuid-lslong': '12744705645951271623'}, 'enable': 'true', 'created': '2024-11-11T01:48:36', 'last-modified': '2024-11-11T01:48:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.326355'}
2024-11-11 01:48:39,252 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-11 01:48:39,252 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40313836 passed
2024-11-11 01:48:39,253 - DEBUG - ====Verifying policy data for ctest-vn-40313836 in API_Server ======
2024-11-11 01:48:39,253 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-11-11 01:48:39,268 - DEBUG - Requesting: http://10.0.0.32:8082/domain/d3147976-a1a0-4ade-8575-85d3c25a1f83
2024-11-11 01:48:39,293 - DEBUG - Requesting: http://10.0.0.32:8082/project/020eb88f-ae09-40d8-879f-7de8197e65b0
2024-11-11 01:48:39,395 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/e8717d46-def4-475a-b0de-4a42b9d742c7
2024-11-11 01:48:39,414 - DEBUG - ==>Verifying data for policy with id: dabd7b17-a86a-49d4-8fd1-eac01373d201, fqn: ['default-domain', 'ctest-TestBasicPolicy-46445482', 'ctest-policy-allow-all-61828627']
2024-11-11 01:48:39,414 - INFO - VN ctest-vn-40313836 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-11 01:48:39,414 - DEBUG - Verifying the vn in opserver
2024-11-11 01:48:39,414 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-40313836 virtual network link through opserver 10.0.0.32
2024-11-11 01:48:39,414 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-11-11 01:48:39,849 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-11-11 01:48:39,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-40313836', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-40313836?flat'}
2024-11-11 01:48:39,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-40313836 is found in opserver
2024-11-11 01:48:39,946 - DEBUG - Do not have enough data to verify VN in agent
2024-11-11 01:48:39,951 - DEBUG - VRF ids for VN ctest-vn-40313836: {}
2024-11-11 01:48:39,951 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-11-11 01:48:39,957 - DEBUG - Requesting: http://10.0.0.32:8082/domain/d3147976-a1a0-4ade-8575-85d3c25a1f83
2024-11-11 01:48:39,972 - DEBUG - Requesting: http://10.0.0.32:8082/project/020eb88f-ae09-40d8-879f-7de8197e65b0
2024-11-11 01:48:40,059 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/04978707-2c6d-42df-bc87-3d2c63205be4
2024-11-11 01:48:40,078 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/04978707-2c6d-42df-bc87-3d2c63205be4
2024-11-11 01:48:40,094 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6bf0de34-be84-4611-bf7e-858cbf23c724
2024-11-11 01:48:40,104 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6bf0de34-be84-4611-bf7e-858cbf23c724
2024-11-11 01:48:40,115 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/ecfcb2c2-f70e-4fe9-a786-a354a5859d2f
2024-11-11 01:48:40,123 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-11 01:48:40,123 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/04978707-2c6d-42df-bc87-3d2c63205be4
2024-11-11 01:48:40,144 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6bf0de34-be84-4611-bf7e-858cbf23c724
2024-11-11 01:48:40,167 - INFO - Verified VN network id 10 for VN 04978707-2c6d-42df-bc87-3d2c63205be4
2024-11-11 01:48:40,167 - INFO - Verifications in API Server for VN ctest-vn-17388436 passed
2024-11-11 01:48:40,167 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/04978707-2c6d-42df-bc87-3d2c63205be4
2024-11-11 01:48:40,186 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6bf0de34-be84-4611-bf7e-858cbf23c724
2024-11-11 01:48:40,196 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/6bf0de34-be84-4611-bf7e-858cbf23c724
2024-11-11 01:48:40,207 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/ecfcb2c2-f70e-4fe9-a786-a354a5859d2f
2024-11-11 01:48:40,223 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-17388436', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46445482', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '330881562514899679', 'uuid-lslong': '13584894061837310948'}, 'enable': 'true', 'created': '2024-11-11T01:48:37', 'last-modified': '2024-11-11T01:48:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.056384'}
2024-11-11 01:48:40,231 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-11 01:48:40,231 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17388436 passed
2024-11-11 01:48:40,231 - DEBUG - ====Verifying policy data for ctest-vn-17388436 in API_Server ======
2024-11-11 01:48:40,231 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-11-11 01:48:40,238 - DEBUG - Requesting: http://10.0.0.32:8082/domain/d3147976-a1a0-4ade-8575-85d3c25a1f83
2024-11-11 01:48:40,288 - DEBUG - Requesting: http://10.0.0.32:8082/project/020eb88f-ae09-40d8-879f-7de8197e65b0
2024-11-11 01:48:40,340 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/04978707-2c6d-42df-bc87-3d2c63205be4
2024-11-11 01:48:40,356 - DEBUG - ==>Verifying data for policy with id: dabd7b17-a86a-49d4-8fd1-eac01373d201, fqn: ['default-domain', 'ctest-TestBasicPolicy-46445482', 'ctest-policy-allow-all-61828627']
2024-11-11 01:48:40,356 - INFO - VN ctest-vn-17388436 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-11 01:48:40,356 - DEBUG - Verifying the vn in opserver
2024-11-11 01:48:40,356 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-17388436 virtual network link through opserver 10.0.0.32
2024-11-11 01:48:40,356 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-11-11 01:48:40,368 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-17388436', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-17388436?flat'}
2024-11-11 01:48:40,368 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46445482:ctest-vn-17388436 is found in opserver
2024-11-11 01:48:40,379 - DEBUG - Do not have enough data to verify VN in agent
2024-11-11 01:48:40,385 - DEBUG - VRF ids for VN ctest-vn-17388436: {}
2024-11-11 01:48:40,442 - DEBUG - Services list from nova: [