2024-08-22 01:07:57,262 - INFO - Domain Default found not creating
2024-08-22 01:07:57,421 - INFO - Project ctest-TestBasicPolicy-56057872 not found, creating it
2024-08-22 01:07:57,889 - INFO - Created Project:ctest-TestBasicPolicy-56057872, ID : 6c15a016-ce4c-4e63-870c-ed84ada58122
2024-08-22 01:07:59,419 - INFO - ================================================================================
2024-08-22 01:07:59,419 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-22 01:07:59,419 - 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-22 01:07:59,681 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.13': '0'}} with
2024-08-22 01:07:59,682 - INFO - Initial checks done. Running the testcase now
2024-08-22 01:07:59,682 - INFO -
2024-08-22 01:08:00,222 - DEBUG - Response for create_network : {'network': {'id': '31b05ee8-7d16-4a79-83e5-6cacfb258b19', 'name': 'ctest-vn-89707540', 'tenant_id': '6c15a016ce4c4e63870ced84ada58122', 'project_id': '6c15a016ce4c4e63870ced84ada58122', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56057872', 'ctest-vn-89707540'], 'port_security_enabled': True, 'description': ''}}
2024-08-22 01:08:00,413 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee87c93c-a36e-47e9-bf13-ae5e29d12d29', 'name': '', 'tenant_id': '6c15a016ce4c4e63870ced84ada58122', 'network_id': '31b05ee8-7d16-4a79-83e5-6cacfb258b19', 'ip_version': 4, 'cidr': '157.207.139.128/26', 'allocation_pools': [{'start': '157.207.139.130', 'end': '157.207.139.190'}], 'gateway_ip': '157.207.139.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.207.139.130', 'tags': [], 'project_id': '6c15a016ce4c4e63870ced84ada58122'}}
2024-08-22 01:08:00,432 - INFO - Created VN ctest-vn-89707540
2024-08-22 01:08:00,484 - DEBUG - VN ctest-vn-89707540 UUID is 31b05ee8-7d16-4a79-83e5-6cacfb258b19
2024-08-22 01:08:00,763 - DEBUG - Response for create_network : {'network': {'id': '399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71', 'name': 'ctest-vn-96633741', 'tenant_id': '6c15a016ce4c4e63870ced84ada58122', 'project_id': '6c15a016ce4c4e63870ced84ada58122', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56057872', 'ctest-vn-96633741'], 'port_security_enabled': True, 'description': ''}}
2024-08-22 01:08:00,943 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a7e9043-ce0a-467b-8717-d13fc45cdf1f', 'name': '', 'tenant_id': '6c15a016ce4c4e63870ced84ada58122', 'network_id': '399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71', 'ip_version': 4, 'cidr': '15.190.37.192/26', 'allocation_pools': [{'start': '15.190.37.194', 'end': '15.190.37.254'}], 'gateway_ip': '15.190.37.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.190.37.194', 'tags': [], 'project_id': '6c15a016ce4c4e63870ced84ada58122'}}
2024-08-22 01:08:00,963 - INFO - Created VN ctest-vn-96633741
2024-08-22 01:08:01,016 - DEBUG - VN ctest-vn-96633741 UUID is 399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71
2024-08-22 01:08:01,129 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-89707540, 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-56057872:ctest-vn-96633741, 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-22 01:08:01,422 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '31b05ee8-7d16-4a79-83e5-6cacfb258b19', 'name': 'ctest-vn-89707540', 'tenant_id': '6c15a016ce4c4e63870ced84ada58122', 'project_id': '6c15a016ce4c4e63870ced84ada58122', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ee87c93c-a36e-47e9-bf13-ae5e29d12d29'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56057872', 'ctest-vn-89707540'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56057872', 'ctest-policy-allow-all-07110224']], 'subnet_ipam': [{'subnet_cidr': '157.207.139.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-22 01:08:01,646 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71', 'name': 'ctest-vn-96633741', 'tenant_id': '6c15a016ce4c4e63870ced84ada58122', 'project_id': '6c15a016ce4c4e63870ced84ada58122', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a7e9043-ce0a-467b-8717-d13fc45cdf1f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56057872', 'ctest-vn-96633741'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56057872', 'ctest-policy-allow-all-07110224']], 'subnet_ipam': [{'subnet_cidr': '15.190.37.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-22 01:08:01,828 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-08-22 01:08:02,121 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-08-22 01:08:02,151 - DEBUG - Requesting: http://10.0.0.28:8082/domain/92c28dd7-b0a1-4f8e-8bf0-a8e02962fc59
2024-08-22 01:08:02,164 - DEBUG - Requesting: http://10.0.0.28:8082/project/6c15a016-ce4c-4e63-870c-ed84ada58122
2024-08-22 01:08:02,231 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/31b05ee8-7d16-4a79-83e5-6cacfb258b19
2024-08-22 01:08:02,241 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/31b05ee8-7d16-4a79-83e5-6cacfb258b19
2024-08-22 01:08:02,249 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/416bf1a9-ef70-4d46-8e51-b828960954ab
2024-08-22 01:08:02,256 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/416bf1a9-ef70-4d46-8e51-b828960954ab
2024-08-22 01:08:02,263 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/8659f4f6-eccd-4f97-98cf-6946a9286622
2024-08-22 01:08:02,269 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-22 01:08:02,269 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/31b05ee8-7d16-4a79-83e5-6cacfb258b19
2024-08-22 01:08:02,277 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/416bf1a9-ef70-4d46-8e51-b828960954ab
2024-08-22 01:08:02,289 - INFO - Verified VN network id 9 for VN 31b05ee8-7d16-4a79-83e5-6cacfb258b19
2024-08-22 01:08:02,289 - INFO - Verifications in API Server for VN ctest-vn-89707540 passed
2024-08-22 01:08:02,289 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/31b05ee8-7d16-4a79-83e5-6cacfb258b19
2024-08-22 01:08:02,296 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/416bf1a9-ef70-4d46-8e51-b828960954ab
2024-08-22 01:08:02,303 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/416bf1a9-ef70-4d46-8e51-b828960954ab
2024-08-22 01:08:02,309 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/8659f4f6-eccd-4f97-98cf-6946a9286622
2024-08-22 01:08:02,321 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-89707540', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56057872', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3580466056383580793', 'uuid-lslong': '9504122078839016217'}, 'enable': 'true', 'created': '2024-08-22T01:08:00', 'last-modified': '2024-08-22T01:08:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.923755'}
2024-08-22 01:08:02,328 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-22 01:08:02,328 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89707540 passed
2024-08-22 01:08:02,328 - DEBUG - ====Verifying policy data for ctest-vn-89707540 in API_Server ======
2024-08-22 01:08:02,329 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-08-22 01:08:02,334 - DEBUG - Requesting: http://10.0.0.28:8082/domain/92c28dd7-b0a1-4f8e-8bf0-a8e02962fc59
2024-08-22 01:08:02,345 - DEBUG - Requesting: http://10.0.0.28:8082/project/6c15a016-ce4c-4e63-870c-ed84ada58122
2024-08-22 01:08:02,412 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/31b05ee8-7d16-4a79-83e5-6cacfb258b19
2024-08-22 01:08:02,420 - DEBUG - ==>Verifying data for policy with id: 67ff778e-64f3-4836-8666-fc9fe76e6837, fqn: ['default-domain', 'ctest-TestBasicPolicy-56057872', 'ctest-policy-allow-all-07110224']
2024-08-22 01:08:02,420 - INFO - VN ctest-vn-89707540 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-22 01:08:02,420 - DEBUG - Verifying the vn in opserver
2024-08-22 01:08:02,420 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-89707540 virtual network link through opserver 10.0.0.28
2024-08-22 01:08:02,421 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-08-22 01:08:02,712 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-08-22 01:08:02,773 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-89707540', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-89707540?flat'}
2024-08-22 01:08:02,773 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-89707540 is found in opserver
2024-08-22 01:08:02,784 - DEBUG - Do not have enough data to verify VN in agent
2024-08-22 01:08:02,789 - DEBUG - VRF ids for VN ctest-vn-89707540: {}
2024-08-22 01:08:02,789 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-08-22 01:08:02,795 - DEBUG - Requesting: http://10.0.0.28:8082/domain/92c28dd7-b0a1-4f8e-8bf0-a8e02962fc59
2024-08-22 01:08:02,806 - DEBUG - Requesting: http://10.0.0.28:8082/project/6c15a016-ce4c-4e63-870c-ed84ada58122
2024-08-22 01:08:02,875 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71
2024-08-22 01:08:02,886 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71
2024-08-22 01:08:02,894 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/71ce88da-c300-44e7-b11f-7376bf2edcf4
2024-08-22 01:08:02,901 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/71ce88da-c300-44e7-b11f-7376bf2edcf4
2024-08-22 01:08:02,908 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/b716b71c-057f-4520-9f3f-4df44a3fc416
2024-08-22 01:08:02,914 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-22 01:08:02,914 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71
2024-08-22 01:08:02,923 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/71ce88da-c300-44e7-b11f-7376bf2edcf4
2024-08-22 01:08:02,935 - INFO - Verified VN network id 10 for VN 399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71
2024-08-22 01:08:02,935 - INFO - Verifications in API Server for VN ctest-vn-96633741 passed
2024-08-22 01:08:02,935 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71
2024-08-22 01:08:02,943 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/71ce88da-c300-44e7-b11f-7376bf2edcf4
2024-08-22 01:08:02,950 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/71ce88da-c300-44e7-b11f-7376bf2edcf4
2024-08-22 01:08:02,956 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/b716b71c-057f-4520-9f3f-4df44a3fc416
2024-08-22 01:08:02,968 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-96633741', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56057872', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4152190688986874828', 'uuid-lslong': '10106495790005324657'}, 'enable': 'true', 'created': '2024-08-22T01:08:00', 'last-modified': '2024-08-22T01:08:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.341534'}
2024-08-22 01:08:02,974 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-22 01:08:02,974 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96633741 passed
2024-08-22 01:08:02,975 - DEBUG - ====Verifying policy data for ctest-vn-96633741 in API_Server ======
2024-08-22 01:08:02,975 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-08-22 01:08:02,981 - DEBUG - Requesting: http://10.0.0.28:8082/domain/92c28dd7-b0a1-4f8e-8bf0-a8e02962fc59
2024-08-22 01:08:02,993 - DEBUG - Requesting: http://10.0.0.28:8082/project/6c15a016-ce4c-4e63-870c-ed84ada58122
2024-08-22 01:08:03,066 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/399f8b6e-b0bf-43cc-8c41-7c5fdf3f8b71
2024-08-22 01:08:03,077 - DEBUG - ==>Verifying data for policy with id: 67ff778e-64f3-4836-8666-fc9fe76e6837, fqn: ['default-domain', 'ctest-TestBasicPolicy-56057872', 'ctest-policy-allow-all-07110224']
2024-08-22 01:08:03,077 - INFO - VN ctest-vn-96633741 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-22 01:08:03,077 - DEBUG - Verifying the vn in opserver
2024-08-22 01:08:03,077 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-96633741 virtual network link through opserver 10.0.0.28
2024-08-22 01:08:03,077 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-08-22 01:08:03,089 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-96633741', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-96633741?flat'}
2024-08-22 01:08:03,089 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56057872:ctest-vn-96633741 is found in opserver
2024-08-22 01:08:03,101 - DEBUG - Do not have enough data to verify VN in agent
2024-08-22 01:08:03,106 - DEBUG - VRF ids for VN ctest-vn-96633741: {}
2024-08-22 01:08:03,164 - DEBUG - Services list from nova: [