2024-08-26 13:26:19,790 - INFO - Domain Default found not creating
2024-08-26 13:26:19,965 - INFO - Project ctest-TestBasicPolicy-00139761 not found, creating it
2024-08-26 13:26:20,478 - INFO - Created Project:ctest-TestBasicPolicy-00139761, ID : 6df10ddd-5d05-4656-8810-331daae61634
2024-08-26 13:26:22,093 - INFO - ================================================================================
2024-08-26 13:26:22,093 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-26 13:26:22,093 - 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-08-26 13:26:22,351 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.5': '0'}} with
2024-08-26 13:26:22,351 - INFO - Initial checks done. Running the testcase now
2024-08-26 13:26:22,351 - INFO -
2024-08-26 13:26:22,945 - DEBUG - Response for create_network : {'network': {'id': 'c433458d-cacf-4108-9f95-0d98850463ee', 'name': 'ctest-vn-57543399', 'tenant_id': '6df10ddd5d0546568810331daae61634', 'project_id': '6df10ddd5d0546568810331daae61634', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00139761', 'ctest-vn-57543399'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 13:26:23,110 - DEBUG - Response for create_subnet : {'subnet': {'id': '6194c0fe-d745-41d4-8762-462b8c4dc41e', 'name': '', 'tenant_id': '6df10ddd5d0546568810331daae61634', 'network_id': 'c433458d-cacf-4108-9f95-0d98850463ee', 'ip_version': 4, 'cidr': '152.200.81.192/26', 'allocation_pools': [{'start': '152.200.81.194', 'end': '152.200.81.254'}], 'gateway_ip': '152.200.81.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.200.81.194', 'tags': [], 'project_id': '6df10ddd5d0546568810331daae61634'}}
2024-08-26 13:26:23,134 - INFO - Created VN ctest-vn-57543399
2024-08-26 13:26:23,189 - DEBUG - VN ctest-vn-57543399 UUID is c433458d-cacf-4108-9f95-0d98850463ee
2024-08-26 13:26:23,562 - DEBUG - Response for create_network : {'network': {'id': '0aa4b49e-32c9-409c-8211-5530f7f96dab', 'name': 'ctest-vn-96527863', 'tenant_id': '6df10ddd5d0546568810331daae61634', 'project_id': '6df10ddd5d0546568810331daae61634', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00139761', 'ctest-vn-96527863'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 13:26:23,773 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e09f378-e129-4a33-82b4-b44eeb72a879', 'name': '', 'tenant_id': '6df10ddd5d0546568810331daae61634', 'network_id': '0aa4b49e-32c9-409c-8211-5530f7f96dab', 'ip_version': 4, 'cidr': '2.104.143.128/26', 'allocation_pools': [{'start': '2.104.143.130', 'end': '2.104.143.190'}], 'gateway_ip': '2.104.143.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.104.143.130', 'tags': [], 'project_id': '6df10ddd5d0546568810331daae61634'}}
2024-08-26 13:26:23,800 - INFO - Created VN ctest-vn-96527863
2024-08-26 13:26:23,857 - DEBUG - VN ctest-vn-96527863 UUID is 0aa4b49e-32c9-409c-8211-5530f7f96dab
2024-08-26 13:26:23,999 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-57543399, 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-00139761:ctest-vn-96527863, 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-08-26 13:26:24,325 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c433458d-cacf-4108-9f95-0d98850463ee', 'name': 'ctest-vn-57543399', 'tenant_id': '6df10ddd5d0546568810331daae61634', 'project_id': '6df10ddd5d0546568810331daae61634', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6194c0fe-d745-41d4-8762-462b8c4dc41e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00139761', 'ctest-vn-57543399'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00139761', 'ctest-policy-allow-all-88620884']], 'subnet_ipam': [{'subnet_cidr': '152.200.81.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 13:26:24,596 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0aa4b49e-32c9-409c-8211-5530f7f96dab', 'name': 'ctest-vn-96527863', 'tenant_id': '6df10ddd5d0546568810331daae61634', 'project_id': '6df10ddd5d0546568810331daae61634', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e09f378-e129-4a33-82b4-b44eeb72a879'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00139761', 'ctest-vn-96527863'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00139761', 'ctest-policy-allow-all-88620884']], 'subnet_ipam': [{'subnet_cidr': '2.104.143.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 13:26:24,769 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-26 13:26:25,074 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-26 13:26:25,123 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2ac98d5c-5607-4fd5-b91d-65de63fca5e4
2024-08-26 13:26:25,143 - DEBUG - Requesting: http://10.0.0.24:8082/project/6df10ddd-5d05-4656-8810-331daae61634
2024-08-26 13:26:25,223 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c433458d-cacf-4108-9f95-0d98850463ee
2024-08-26 13:26:25,236 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c433458d-cacf-4108-9f95-0d98850463ee
2024-08-26 13:26:25,248 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/59adad01-c63d-4e68-9764-870ca8d6eb17
2024-08-26 13:26:25,258 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/59adad01-c63d-4e68-9764-870ca8d6eb17
2024-08-26 13:26:25,267 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/8aaf84df-aa21-4e43-aec9-76d86e42e8e0
2024-08-26 13:26:25,276 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 13:26:25,276 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c433458d-cacf-4108-9f95-0d98850463ee
2024-08-26 13:26:25,286 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/59adad01-c63d-4e68-9764-870ca8d6eb17
2024-08-26 13:26:25,301 - INFO - Verified VN network id 8 for VN c433458d-cacf-4108-9f95-0d98850463ee
2024-08-26 13:26:25,302 - INFO - Verifications in API Server for VN ctest-vn-57543399 passed
2024-08-26 13:26:25,302 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c433458d-cacf-4108-9f95-0d98850463ee
2024-08-26 13:26:25,311 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/59adad01-c63d-4e68-9764-870ca8d6eb17
2024-08-26 13:26:25,319 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/59adad01-c63d-4e68-9764-870ca8d6eb17
2024-08-26 13:26:25,328 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/8aaf84df-aa21-4e43-aec9-76d86e42e8e0
2024-08-26 13:26:25,345 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-57543399', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00139761', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14137720130541404424', 'uuid-lslong': '11499112172278277102'}, 'enable': 'true', 'created': '2024-08-26T13:26:22', 'last-modified': '2024-08-26T13:26:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.043646'}
2024-08-26 13:26:25,355 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 13:26:25,355 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57543399 passed
2024-08-26 13:26:25,355 - DEBUG - ====Verifying policy data for ctest-vn-57543399 in API_Server ======
2024-08-26 13:26:25,355 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-26 13:26:25,364 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2ac98d5c-5607-4fd5-b91d-65de63fca5e4
2024-08-26 13:26:25,382 - DEBUG - Requesting: http://10.0.0.24:8082/project/6df10ddd-5d05-4656-8810-331daae61634
2024-08-26 13:26:25,465 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c433458d-cacf-4108-9f95-0d98850463ee
2024-08-26 13:26:25,476 - DEBUG - ==>Verifying data for policy with id: cbee41d6-de63-46ed-83e3-4f253d90de5f, fqn: ['default-domain', 'ctest-TestBasicPolicy-00139761', 'ctest-policy-allow-all-88620884']
2024-08-26 13:26:25,477 - INFO - VN ctest-vn-57543399 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 13:26:25,477 - DEBUG - Verifying the vn in opserver
2024-08-26 13:26:25,477 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-57543399 virtual network link through opserver 10.0.0.24
2024-08-26 13:26:25,477 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-08-26 13:26:25,788 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-08-26 13:26:25,860 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-57543399', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-57543399?flat'}
2024-08-26 13:26:25,860 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-57543399 is found in opserver
2024-08-26 13:26:25,873 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 13:26:25,880 - DEBUG - VRF ids for VN ctest-vn-57543399: {}
2024-08-26 13:26:25,880 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-26 13:26:25,888 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2ac98d5c-5607-4fd5-b91d-65de63fca5e4
2024-08-26 13:26:25,903 - DEBUG - Requesting: http://10.0.0.24:8082/project/6df10ddd-5d05-4656-8810-331daae61634
2024-08-26 13:26:25,979 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0aa4b49e-32c9-409c-8211-5530f7f96dab
2024-08-26 13:26:25,993 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0aa4b49e-32c9-409c-8211-5530f7f96dab
2024-08-26 13:26:26,003 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffd0836d-19ca-4250-b532-81c7e96cf192
2024-08-26 13:26:26,014 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffd0836d-19ca-4250-b532-81c7e96cf192
2024-08-26 13:26:26,022 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/9780297f-78f9-43f3-ad52-6f7bc4faf89f
2024-08-26 13:26:26,031 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 13:26:26,031 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0aa4b49e-32c9-409c-8211-5530f7f96dab
2024-08-26 13:26:26,041 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffd0836d-19ca-4250-b532-81c7e96cf192
2024-08-26 13:26:26,055 - INFO - Verified VN network id 9 for VN 0aa4b49e-32c9-409c-8211-5530f7f96dab
2024-08-26 13:26:26,055 - INFO - Verifications in API Server for VN ctest-vn-96527863 passed
2024-08-26 13:26:26,055 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0aa4b49e-32c9-409c-8211-5530f7f96dab
2024-08-26 13:26:26,065 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffd0836d-19ca-4250-b532-81c7e96cf192
2024-08-26 13:26:26,073 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/ffd0836d-19ca-4250-b532-81c7e96cf192
2024-08-26 13:26:26,083 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/9780297f-78f9-43f3-ad52-6f7bc4faf89f
2024-08-26 13:26:26,099 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-96527863', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00139761', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '766936428109709468', 'uuid-lslong': '9372365968341822891'}, 'enable': 'true', 'created': '2024-08-26T13:26:23', 'last-modified': '2024-08-26T13:26:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.531459'}
2024-08-26 13:26:26,107 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 13:26:26,107 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96527863 passed
2024-08-26 13:26:26,107 - DEBUG - ====Verifying policy data for ctest-vn-96527863 in API_Server ======
2024-08-26 13:26:26,107 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-08-26 13:26:26,115 - DEBUG - Requesting: http://10.0.0.24:8082/domain/2ac98d5c-5607-4fd5-b91d-65de63fca5e4
2024-08-26 13:26:26,130 - DEBUG - Requesting: http://10.0.0.24:8082/project/6df10ddd-5d05-4656-8810-331daae61634
2024-08-26 13:26:26,206 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/0aa4b49e-32c9-409c-8211-5530f7f96dab
2024-08-26 13:26:26,215 - DEBUG - ==>Verifying data for policy with id: cbee41d6-de63-46ed-83e3-4f253d90de5f, fqn: ['default-domain', 'ctest-TestBasicPolicy-00139761', 'ctest-policy-allow-all-88620884']
2024-08-26 13:26:26,215 - INFO - VN ctest-vn-96527863 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 13:26:26,215 - DEBUG - Verifying the vn in opserver
2024-08-26 13:26:26,215 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-96527863 virtual network link through opserver 10.0.0.24
2024-08-26 13:26:26,215 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-08-26 13:26:26,229 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-96527863', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-96527863?flat'}
2024-08-26 13:26:26,229 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00139761:ctest-vn-96527863 is found in opserver
2024-08-26 13:26:26,241 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 13:26:26,247 - DEBUG - VRF ids for VN ctest-vn-96527863: {}
2024-08-26 13:26:26,310 - DEBUG - Services list from nova: [