2024-12-23 20:30:24,141 - INFO - Domain Default found not creating
2024-12-23 20:30:24,302 - INFO - Project ctest-TestBasicPolicy-28911465 not found, creating it
2024-12-23 20:30:24,769 - INFO - Created Project:ctest-TestBasicPolicy-28911465, ID : b57d073d-162d-4edd-9672-895476ddc8d7
2024-12-23 20:30:26,251 - INFO - ================================================================================
2024-12-23 20:30:26,251 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-12-23 20:30:26,251 - 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-12-23 20:30:26,513 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.6': '0'}} with
2024-12-23 20:30:26,513 - INFO - Initial checks done. Running the testcase now
2024-12-23 20:30:26,513 - INFO -
2024-12-23 20:30:27,118 - DEBUG - Response for create_network : {'network': {'id': '80945180-baf9-4667-8bb0-ff3f921634a3', 'name': 'ctest-vn-87949819', 'tenant_id': 'b57d073d162d4edd9672895476ddc8d7', 'project_id': 'b57d073d162d4edd9672895476ddc8d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28911465', 'ctest-vn-87949819'], 'port_security_enabled': True, 'description': ''}}
2024-12-23 20:30:27,307 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f2f3e237-3236-4a37-8576-7ebdb1da17bb', 'name': '', 'tenant_id': 'b57d073d162d4edd9672895476ddc8d7', 'network_id': '80945180-baf9-4667-8bb0-ff3f921634a3', 'ip_version': 4, 'cidr': '151.252.68.0/26', 'allocation_pools': [{'start': '151.252.68.2', 'end': '151.252.68.62'}], 'gateway_ip': '151.252.68.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.252.68.2', 'tags': [], 'project_id': 'b57d073d162d4edd9672895476ddc8d7'}}
2024-12-23 20:30:27,328 - INFO - Created VN ctest-vn-87949819
2024-12-23 20:30:27,381 - DEBUG - VN ctest-vn-87949819 UUID is 80945180-baf9-4667-8bb0-ff3f921634a3
2024-12-23 20:30:27,687 - DEBUG - Response for create_network : {'network': {'id': 'f4080c78-14f3-4101-b225-9dd2f5154f18', 'name': 'ctest-vn-86693867', 'tenant_id': 'b57d073d162d4edd9672895476ddc8d7', 'project_id': 'b57d073d162d4edd9672895476ddc8d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28911465', 'ctest-vn-86693867'], 'port_security_enabled': True, 'description': ''}}
2024-12-23 20:30:27,862 - DEBUG - Response for create_subnet : {'subnet': {'id': '97d20192-4fc6-4df5-9709-53cf808a80e0', 'name': '', 'tenant_id': 'b57d073d162d4edd9672895476ddc8d7', 'network_id': 'f4080c78-14f3-4101-b225-9dd2f5154f18', 'ip_version': 4, 'cidr': '4.42.51.128/26', 'allocation_pools': [{'start': '4.42.51.130', 'end': '4.42.51.190'}], 'gateway_ip': '4.42.51.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.42.51.130', 'tags': [], 'project_id': 'b57d073d162d4edd9672895476ddc8d7'}}
2024-12-23 20:30:27,881 - INFO - Created VN ctest-vn-86693867
2024-12-23 20:30:27,932 - DEBUG - VN ctest-vn-86693867 UUID is f4080c78-14f3-4101-b225-9dd2f5154f18
2024-12-23 20:30:28,050 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28911465:ctest-vn-87949819, 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-28911465:ctest-vn-86693867, 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-12-23 20:30:28,357 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '80945180-baf9-4667-8bb0-ff3f921634a3', 'name': 'ctest-vn-87949819', 'tenant_id': 'b57d073d162d4edd9672895476ddc8d7', 'project_id': 'b57d073d162d4edd9672895476ddc8d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f2f3e237-3236-4a37-8576-7ebdb1da17bb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28911465', 'ctest-vn-87949819'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28911465', 'ctest-policy-allow-all-69949262']], 'subnet_ipam': [{'subnet_cidr': '151.252.68.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-23 20:30:28,599 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f4080c78-14f3-4101-b225-9dd2f5154f18', 'name': 'ctest-vn-86693867', 'tenant_id': 'b57d073d162d4edd9672895476ddc8d7', 'project_id': 'b57d073d162d4edd9672895476ddc8d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['97d20192-4fc6-4df5-9709-53cf808a80e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28911465', 'ctest-vn-86693867'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28911465', 'ctest-policy-allow-all-69949262']], 'subnet_ipam': [{'subnet_cidr': '4.42.51.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-23 20:30:28,749 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-12-23 20:30:29,064 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-12-23 20:30:29,097 - DEBUG - Requesting: http://10.0.0.24:8082/domain/20cb5b83-b7f4-43ae-9091-6401c42ad226
2024-12-23 20:30:29,113 - DEBUG - Requesting: http://10.0.0.24:8082/project/b57d073d-162d-4edd-9672-895476ddc8d7
2024-12-23 20:30:29,198 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/80945180-baf9-4667-8bb0-ff3f921634a3
2024-12-23 20:30:29,210 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/80945180-baf9-4667-8bb0-ff3f921634a3
2024-12-23 20:30:29,223 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/00ec6765-750d-462b-85c5-1d19e63e14e3
2024-12-23 20:30:29,232 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/00ec6765-750d-462b-85c5-1d19e63e14e3
2024-12-23 20:30:29,240 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/b85b81b4-ee0f-4b15-8eb7-84f7f5e1dfcd
2024-12-23 20:30:29,247 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-23 20:30:29,248 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/80945180-baf9-4667-8bb0-ff3f921634a3
2024-12-23 20:30:29,257 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/00ec6765-750d-462b-85c5-1d19e63e14e3
2024-12-23 20:30:29,272 - INFO - Verified VN network id 8 for VN 80945180-baf9-4667-8bb0-ff3f921634a3
2024-12-23 20:30:29,272 - INFO - Verifications in API Server for VN ctest-vn-87949819 passed
2024-12-23 20:30:29,272 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/80945180-baf9-4667-8bb0-ff3f921634a3
2024-12-23 20:30:29,285 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/00ec6765-750d-462b-85c5-1d19e63e14e3
2024-12-23 20:30:29,292 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/00ec6765-750d-462b-85c5-1d19e63e14e3
2024-12-23 20:30:29,300 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/b85b81b4-ee0f-4b15-8eb7-84f7f5e1dfcd
2024-12-23 20:30:29,313 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28911465:ctest-vn-87949819', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28911465', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9265119946742515303', 'uuid-lslong': '10065825815672009891'}, 'enable': 'true', 'created': '2024-12-23T20:30:27', 'last-modified': '2024-12-23T20:30:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982957'}
2024-12-23 20:30:29,320 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-23 20:30:29,320 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87949819 passed
2024-12-23 20:30:29,320 - DEBUG - ====Verifying policy data for ctest-vn-87949819 in API_Server ======
2024-12-23 20:30:29,321 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-12-23 20:30:29,327 - DEBUG - Requesting: http://10.0.0.24:8082/domain/20cb5b83-b7f4-43ae-9091-6401c42ad226
2024-12-23 20:30:29,339 - DEBUG - Requesting: http://10.0.0.24:8082/project/b57d073d-162d-4edd-9672-895476ddc8d7
2024-12-23 20:30:29,413 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/80945180-baf9-4667-8bb0-ff3f921634a3
2024-12-23 20:30:29,424 - DEBUG - ==>Verifying data for policy with id: 4f5d2ef9-9b2f-42f5-846e-b862b21ad6a3, fqn: ['default-domain', 'ctest-TestBasicPolicy-28911465', 'ctest-policy-allow-all-69949262']
2024-12-23 20:30:29,424 - INFO - VN ctest-vn-87949819 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-23 20:30:29,424 - DEBUG - Verifying the vn in opserver
2024-12-23 20:30:29,424 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28911465:ctest-vn-87949819 virtual network link through opserver 10.0.0.24
2024-12-23 20:30:29,425 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-12-23 20:30:29,723 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-12-23 20:30:29,787 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28911465:ctest-vn-87949819', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28911465:ctest-vn-87949819?flat'}
2024-12-23 20:30:29,787 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28911465:ctest-vn-87949819 is found in opserver
2024-12-23 20:30:29,799 - DEBUG - Do not have enough data to verify VN in agent
2024-12-23 20:30:29,805 - DEBUG - VRF ids for VN ctest-vn-87949819: {}
2024-12-23 20:30:29,805 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-12-23 20:30:29,811 - DEBUG - Requesting: http://10.0.0.24:8082/domain/20cb5b83-b7f4-43ae-9091-6401c42ad226
2024-12-23 20:30:29,823 - DEBUG - Requesting: http://10.0.0.24:8082/project/b57d073d-162d-4edd-9672-895476ddc8d7
2024-12-23 20:30:29,895 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f4080c78-14f3-4101-b225-9dd2f5154f18
2024-12-23 20:30:29,908 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f4080c78-14f3-4101-b225-9dd2f5154f18
2024-12-23 20:30:29,918 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ed7ebbc5-f654-4ad6-a251-f8003333004c
2024-12-23 20:30:29,927 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ed7ebbc5-f654-4ad6-a251-f8003333004c
2024-12-23 20:30:29,936 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/96ec55e1-a3dd-4cf0-a989-d8bdf2ed8193
2024-12-23 20:30:29,952 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-23 20:30:29,952 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f4080c78-14f3-4101-b225-9dd2f5154f18
2024-12-23 20:30:29,962 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ed7ebbc5-f654-4ad6-a251-f8003333004c
2024-12-23 20:30:29,977 - INFO - Verified VN network id 9 for VN f4080c78-14f3-4101-b225-9dd2f5154f18
2024-12-23 20:30:29,978 - INFO - Verifications in API Server for VN ctest-vn-86693867 passed
2024-12-23 20:30:29,978 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f4080c78-14f3-4101-b225-9dd2f5154f18
2024-12-23 20:30:29,989 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ed7ebbc5-f654-4ad6-a251-f8003333004c
2024-12-23 20:30:29,997 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ed7ebbc5-f654-4ad6-a251-f8003333004c
2024-12-23 20:30:30,006 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/96ec55e1-a3dd-4cf0-a989-d8bdf2ed8193
2024-12-23 20:30:30,020 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28911465:ctest-vn-86693867', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28911465', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17584318454955196673', 'uuid-lslong': '12836839842269974296'}, 'enable': 'true', 'created': '2024-12-23T20:30:27', 'last-modified': '2024-12-23T20:30:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.442997'}
2024-12-23 20:30:30,028 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-23 20:30:30,028 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86693867 passed
2024-12-23 20:30:30,028 - DEBUG - ====Verifying policy data for ctest-vn-86693867 in API_Server ======
2024-12-23 20:30:30,028 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-12-23 20:30:30,035 - DEBUG - Requesting: http://10.0.0.24:8082/domain/20cb5b83-b7f4-43ae-9091-6401c42ad226
2024-12-23 20:30:30,047 - DEBUG - Requesting: http://10.0.0.24:8082/project/b57d073d-162d-4edd-9672-895476ddc8d7
2024-12-23 20:30:30,127 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f4080c78-14f3-4101-b225-9dd2f5154f18
2024-12-23 20:30:30,138 - DEBUG - ==>Verifying data for policy with id: 4f5d2ef9-9b2f-42f5-846e-b862b21ad6a3, fqn: ['default-domain', 'ctest-TestBasicPolicy-28911465', 'ctest-policy-allow-all-69949262']
2024-12-23 20:30:30,138 - INFO - VN ctest-vn-86693867 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-23 20:30:30,138 - DEBUG - Verifying the vn in opserver
2024-12-23 20:30:30,138 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28911465:ctest-vn-86693867 virtual network link through opserver 10.0.0.24
2024-12-23 20:30:30,138 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-12-23 20:30:30,150 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28911465:ctest-vn-86693867', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28911465:ctest-vn-86693867?flat'}
2024-12-23 20:30:30,150 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28911465:ctest-vn-86693867 is found in opserver
2024-12-23 20:30:30,162 - DEBUG - Do not have enough data to verify VN in agent
2024-12-23 20:30:30,167 - DEBUG - VRF ids for VN ctest-vn-86693867: {}
2024-12-23 20:30:30,222 - DEBUG - Services list from nova: [