2024-09-09 21:07:08,184 - INFO - Domain Default found not creating
2024-09-09 21:07:08,344 - INFO - Project ctest-TestBasicPolicy-06030214 not found, creating it
2024-09-09 21:07:08,812 - INFO - Created Project:ctest-TestBasicPolicy-06030214, ID : bd60b183-6ec9-46d4-9bfa-7aae8879a739
2024-09-09 21:07:10,320 - INFO - ================================================================================
2024-09-09 21:07:10,321 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-09 21:07:10,321 - 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-09-09 21:07:10,582 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.27': '0'}} with
2024-09-09 21:07:10,582 - INFO - Initial checks done. Running the testcase now
2024-09-09 21:07:10,582 - INFO -
2024-09-09 21:07:11,134 - DEBUG - Response for create_network : {'network': {'id': '040f0162-bd7d-4995-b8d1-9644592cc10a', 'name': 'ctest-vn-03522995', 'tenant_id': 'bd60b1836ec946d49bfa7aae8879a739', 'project_id': 'bd60b1836ec946d49bfa7aae8879a739', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06030214', 'ctest-vn-03522995'], 'port_security_enabled': True, 'description': ''}}
2024-09-09 21:07:11,288 - DEBUG - Response for create_subnet : {'subnet': {'id': 'abf9c6ce-b9cf-434c-b3e1-fc8b84bacd00', 'name': '', 'tenant_id': 'bd60b1836ec946d49bfa7aae8879a739', 'network_id': '040f0162-bd7d-4995-b8d1-9644592cc10a', 'ip_version': 4, 'cidr': '187.141.0.128/26', 'allocation_pools': [{'start': '187.141.0.130', 'end': '187.141.0.190'}], 'gateway_ip': '187.141.0.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.141.0.130', 'tags': [], 'project_id': 'bd60b1836ec946d49bfa7aae8879a739'}}
2024-09-09 21:07:11,313 - INFO - Created VN ctest-vn-03522995
2024-09-09 21:07:11,364 - DEBUG - VN ctest-vn-03522995 UUID is 040f0162-bd7d-4995-b8d1-9644592cc10a
2024-09-09 21:07:11,647 - DEBUG - Response for create_network : {'network': {'id': 'be331dfb-5ecb-49fe-a5a4-c83ae925acc0', 'name': 'ctest-vn-36376516', 'tenant_id': 'bd60b1836ec946d49bfa7aae8879a739', 'project_id': 'bd60b1836ec946d49bfa7aae8879a739', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06030214', 'ctest-vn-36376516'], 'port_security_enabled': True, 'description': ''}}
2024-09-09 21:07:11,881 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1c53e4f-122c-4631-b07d-5b4140b64906', 'name': '', 'tenant_id': 'bd60b1836ec946d49bfa7aae8879a739', 'network_id': 'be331dfb-5ecb-49fe-a5a4-c83ae925acc0', 'ip_version': 4, 'cidr': '196.140.198.192/26', 'allocation_pools': [{'start': '196.140.198.194', 'end': '196.140.198.254'}], 'gateway_ip': '196.140.198.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.140.198.194', 'tags': [], 'project_id': 'bd60b1836ec946d49bfa7aae8879a739'}}
2024-09-09 21:07:11,905 - INFO - Created VN ctest-vn-36376516
2024-09-09 21:07:11,956 - DEBUG - VN ctest-vn-36376516 UUID is be331dfb-5ecb-49fe-a5a4-c83ae925acc0
2024-09-09 21:07:12,074 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06030214:ctest-vn-03522995, 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-06030214:ctest-vn-36376516, 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-09-09 21:07:12,355 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '040f0162-bd7d-4995-b8d1-9644592cc10a', 'name': 'ctest-vn-03522995', 'tenant_id': 'bd60b1836ec946d49bfa7aae8879a739', 'project_id': 'bd60b1836ec946d49bfa7aae8879a739', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['abf9c6ce-b9cf-434c-b3e1-fc8b84bacd00'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06030214', 'ctest-vn-03522995'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06030214', 'ctest-policy-allow-all-16748689']], 'subnet_ipam': [{'subnet_cidr': '187.141.0.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-09 21:07:12,583 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be331dfb-5ecb-49fe-a5a4-c83ae925acc0', 'name': 'ctest-vn-36376516', 'tenant_id': 'bd60b1836ec946d49bfa7aae8879a739', 'project_id': 'bd60b1836ec946d49bfa7aae8879a739', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1c53e4f-122c-4631-b07d-5b4140b64906'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06030214', 'ctest-vn-36376516'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06030214', 'ctest-policy-allow-all-16748689']], 'subnet_ipam': [{'subnet_cidr': '196.140.198.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-09 21:07:12,732 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-09 21:07:13,034 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-09 21:07:13,065 - DEBUG - Requesting: http://10.0.0.28:8082/domain/1107be02-48ac-4dbd-aa24-a5b89b918443
2024-09-09 21:07:13,081 - DEBUG - Requesting: http://10.0.0.28:8082/project/bd60b183-6ec9-46d4-9bfa-7aae8879a739
2024-09-09 21:07:13,153 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/040f0162-bd7d-4995-b8d1-9644592cc10a
2024-09-09 21:07:13,163 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/040f0162-bd7d-4995-b8d1-9644592cc10a
2024-09-09 21:07:13,171 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/cd87d268-1fba-427b-8c7d-259a337bfa7e
2024-09-09 21:07:13,178 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/cd87d268-1fba-427b-8c7d-259a337bfa7e
2024-09-09 21:07:13,184 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/d6eb7adc-9188-412f-b66d-9d5c03f5fc02
2024-09-09 21:07:13,190 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-09 21:07:13,190 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/040f0162-bd7d-4995-b8d1-9644592cc10a
2024-09-09 21:07:13,198 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/cd87d268-1fba-427b-8c7d-259a337bfa7e
2024-09-09 21:07:13,208 - INFO - Verified VN network id 8 for VN 040f0162-bd7d-4995-b8d1-9644592cc10a
2024-09-09 21:07:13,208 - INFO - Verifications in API Server for VN ctest-vn-03522995 passed
2024-09-09 21:07:13,208 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/040f0162-bd7d-4995-b8d1-9644592cc10a
2024-09-09 21:07:13,217 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/cd87d268-1fba-427b-8c7d-259a337bfa7e
2024-09-09 21:07:13,224 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/cd87d268-1fba-427b-8c7d-259a337bfa7e
2024-09-09 21:07:13,231 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/d6eb7adc-9188-412f-b66d-9d5c03f5fc02
2024-09-09 21:07:13,241 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06030214:ctest-vn-03522995', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06030214', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '292454024399899029', 'uuid-lslong': '13317590793409315082'}, 'enable': 'true', 'created': '2024-09-09T21:07:11', 'last-modified': '2024-09-09T21:07:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.907108'}
2024-09-09 21:07:13,248 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-09 21:07:13,248 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03522995 passed
2024-09-09 21:07:13,248 - DEBUG - ====Verifying policy data for ctest-vn-03522995 in API_Server ======
2024-09-09 21:07:13,248 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-09 21:07:13,257 - DEBUG - Requesting: http://10.0.0.28:8082/domain/1107be02-48ac-4dbd-aa24-a5b89b918443
2024-09-09 21:07:13,269 - DEBUG - Requesting: http://10.0.0.28:8082/project/bd60b183-6ec9-46d4-9bfa-7aae8879a739
2024-09-09 21:07:13,346 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/040f0162-bd7d-4995-b8d1-9644592cc10a
2024-09-09 21:07:13,354 - DEBUG - ==>Verifying data for policy with id: 888f5864-32ae-40d5-bfb1-6153e3c2047e, fqn: ['default-domain', 'ctest-TestBasicPolicy-06030214', 'ctest-policy-allow-all-16748689']
2024-09-09 21:07:13,355 - INFO - VN ctest-vn-03522995 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-09 21:07:13,355 - DEBUG - Verifying the vn in opserver
2024-09-09 21:07:13,355 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06030214:ctest-vn-03522995 virtual network link through opserver 10.0.0.28
2024-09-09 21:07:13,355 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-09 21:07:13,650 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-09 21:07:13,711 - DEBUG - Response Code: 500
2024-09-09 21:07:16,712 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06030214:ctest-vn-03522995 virtual network link through opserver 10.0.0.28
2024-09-09 21:07:16,713 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-09 21:07:16,726 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06030214:ctest-vn-03522995', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06030214:ctest-vn-03522995?flat'}
2024-09-09 21:07:16,726 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06030214:ctest-vn-03522995 is found in opserver
2024-09-09 21:07:16,738 - DEBUG - Do not have enough data to verify VN in agent
2024-09-09 21:07:16,744 - DEBUG - VRF ids for VN ctest-vn-03522995: {}
2024-09-09 21:07:16,744 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-09 21:07:16,750 - DEBUG - Requesting: http://10.0.0.28:8082/domain/1107be02-48ac-4dbd-aa24-a5b89b918443
2024-09-09 21:07:16,763 - DEBUG - Requesting: http://10.0.0.28:8082/project/bd60b183-6ec9-46d4-9bfa-7aae8879a739
2024-09-09 21:07:16,833 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/be331dfb-5ecb-49fe-a5a4-c83ae925acc0
2024-09-09 21:07:16,844 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/be331dfb-5ecb-49fe-a5a4-c83ae925acc0
2024-09-09 21:07:16,852 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/189e75d4-9670-4b74-ae0c-2fb06b977024
2024-09-09 21:07:16,859 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/189e75d4-9670-4b74-ae0c-2fb06b977024
2024-09-09 21:07:16,865 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/8a2fdd53-f5e9-44c7-a65c-7985f2d99f44
2024-09-09 21:07:16,871 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-09 21:07:16,871 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/be331dfb-5ecb-49fe-a5a4-c83ae925acc0
2024-09-09 21:07:16,878 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/189e75d4-9670-4b74-ae0c-2fb06b977024
2024-09-09 21:07:16,890 - INFO - Verified VN network id 9 for VN be331dfb-5ecb-49fe-a5a4-c83ae925acc0
2024-09-09 21:07:16,890 - INFO - Verifications in API Server for VN ctest-vn-36376516 passed
2024-09-09 21:07:16,890 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/be331dfb-5ecb-49fe-a5a4-c83ae925acc0
2024-09-09 21:07:16,897 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/189e75d4-9670-4b74-ae0c-2fb06b977024
2024-09-09 21:07:16,903 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/189e75d4-9670-4b74-ae0c-2fb06b977024
2024-09-09 21:07:16,910 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/8a2fdd53-f5e9-44c7-a65c-7985f2d99f44
2024-09-09 21:07:16,921 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06030214:ctest-vn-36376516', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06030214', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13705331056482929150', 'uuid-lslong': '11935885067783875776'}, 'enable': 'true', 'created': '2024-09-09T21:07:11', 'last-modified': '2024-09-09T21:07:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.360188'}
2024-09-09 21:07:16,928 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-09 21:07:16,928 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36376516 passed
2024-09-09 21:07:16,928 - DEBUG - ====Verifying policy data for ctest-vn-36376516 in API_Server ======
2024-09-09 21:07:16,929 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-09 21:07:16,935 - DEBUG - Requesting: http://10.0.0.28:8082/domain/1107be02-48ac-4dbd-aa24-a5b89b918443
2024-09-09 21:07:16,948 - DEBUG - Requesting: http://10.0.0.28:8082/project/bd60b183-6ec9-46d4-9bfa-7aae8879a739
2024-09-09 21:07:17,019 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/be331dfb-5ecb-49fe-a5a4-c83ae925acc0
2024-09-09 21:07:17,028 - DEBUG - ==>Verifying data for policy with id: 888f5864-32ae-40d5-bfb1-6153e3c2047e, fqn: ['default-domain', 'ctest-TestBasicPolicy-06030214', 'ctest-policy-allow-all-16748689']
2024-09-09 21:07:17,028 - INFO - VN ctest-vn-36376516 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-09 21:07:17,028 - DEBUG - Verifying the vn in opserver
2024-09-09 21:07:17,028 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06030214:ctest-vn-36376516 virtual network link through opserver 10.0.0.28
2024-09-09 21:07:17,028 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-09 21:07:17,040 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06030214:ctest-vn-36376516', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06030214:ctest-vn-36376516?flat'}
2024-09-09 21:07:17,040 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06030214:ctest-vn-36376516 is found in opserver
2024-09-09 21:07:17,051 - DEBUG - Do not have enough data to verify VN in agent
2024-09-09 21:07:17,057 - DEBUG - VRF ids for VN ctest-vn-36376516: {}
2024-09-09 21:07:17,126 - DEBUG - Services list from nova: [