2024-08-20 16:28:43,000 - INFO - Domain Default found not creating
2024-08-20 16:28:43,185 - INFO - Project ctest-TestBasicPolicy-72553142 not found, creating it
2024-08-20 16:28:43,649 - INFO - Created Project:ctest-TestBasicPolicy-72553142, ID : 8921d522-9276-457c-8884-3dceea870470
2024-08-20 16:28:45,162 - INFO - ================================================================================
2024-08-20 16:28:45,162 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-20 16:28:45,162 - 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-20 16:28:45,420 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.21': '0'}} with
2024-08-20 16:28:45,420 - INFO - Initial checks done. Running the testcase now
2024-08-20 16:28:45,420 - INFO -
2024-08-20 16:28:45,968 - DEBUG - Response for create_network : {'network': {'id': '74c69fa1-3e64-4cda-b857-1461855b2d2e', 'name': 'ctest-vn-76781620', 'tenant_id': '8921d5229276457c88843dceea870470', 'project_id': '8921d5229276457c88843dceea870470', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72553142', 'ctest-vn-76781620'], 'port_security_enabled': True, 'description': ''}}
2024-08-20 16:28:46,142 - DEBUG - Response for create_subnet : {'subnet': {'id': '882fe0e8-e4b7-442a-92e0-d1b94cbd0dcf', 'name': '', 'tenant_id': '8921d5229276457c88843dceea870470', 'network_id': '74c69fa1-3e64-4cda-b857-1461855b2d2e', 'ip_version': 4, 'cidr': '87.2.181.64/26', 'allocation_pools': [{'start': '87.2.181.66', 'end': '87.2.181.126'}], 'gateway_ip': '87.2.181.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.2.181.66', 'tags': [], 'project_id': '8921d5229276457c88843dceea870470'}}
2024-08-20 16:28:46,162 - INFO - Created VN ctest-vn-76781620
2024-08-20 16:28:46,212 - DEBUG - VN ctest-vn-76781620 UUID is 74c69fa1-3e64-4cda-b857-1461855b2d2e
2024-08-20 16:28:46,494 - DEBUG - Response for create_network : {'network': {'id': 'a590cb02-e202-4f15-900f-b0b255176182', 'name': 'ctest-vn-35383344', 'tenant_id': '8921d5229276457c88843dceea870470', 'project_id': '8921d5229276457c88843dceea870470', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72553142', 'ctest-vn-35383344'], 'port_security_enabled': True, 'description': ''}}
2024-08-20 16:28:46,688 - DEBUG - Response for create_subnet : {'subnet': {'id': '0844fa19-a188-4cb6-a328-9a650503b02b', 'name': '', 'tenant_id': '8921d5229276457c88843dceea870470', 'network_id': 'a590cb02-e202-4f15-900f-b0b255176182', 'ip_version': 4, 'cidr': '81.232.53.0/26', 'allocation_pools': [{'start': '81.232.53.2', 'end': '81.232.53.62'}], 'gateway_ip': '81.232.53.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.232.53.2', 'tags': [], 'project_id': '8921d5229276457c88843dceea870470'}}
2024-08-20 16:28:46,709 - INFO - Created VN ctest-vn-35383344
2024-08-20 16:28:46,760 - DEBUG - VN ctest-vn-35383344 UUID is a590cb02-e202-4f15-900f-b0b255176182
2024-08-20 16:28:46,875 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72553142:ctest-vn-76781620, 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-72553142:ctest-vn-35383344, 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-20 16:28:47,170 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '74c69fa1-3e64-4cda-b857-1461855b2d2e', 'name': 'ctest-vn-76781620', 'tenant_id': '8921d5229276457c88843dceea870470', 'project_id': '8921d5229276457c88843dceea870470', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['882fe0e8-e4b7-442a-92e0-d1b94cbd0dcf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72553142', 'ctest-vn-76781620'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72553142', 'ctest-policy-allow-all-33062726']], 'subnet_ipam': [{'subnet_cidr': '87.2.181.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-20 16:28:47,418 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a590cb02-e202-4f15-900f-b0b255176182', 'name': 'ctest-vn-35383344', 'tenant_id': '8921d5229276457c88843dceea870470', 'project_id': '8921d5229276457c88843dceea870470', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0844fa19-a188-4cb6-a328-9a650503b02b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72553142', 'ctest-vn-35383344'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72553142', 'ctest-policy-allow-all-33062726']], 'subnet_ipam': [{'subnet_cidr': '81.232.53.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-20 16:28:47,564 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-08-20 16:28:47,864 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-08-20 16:28:47,894 - DEBUG - Requesting: http://10.0.0.30:8082/domain/41c72296-e8e4-4a41-ab8e-c49845aab7d6
2024-08-20 16:28:47,912 - DEBUG - Requesting: http://10.0.0.30:8082/project/8921d522-9276-457c-8884-3dceea870470
2024-08-20 16:28:48,000 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/74c69fa1-3e64-4cda-b857-1461855b2d2e
2024-08-20 16:28:48,012 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/74c69fa1-3e64-4cda-b857-1461855b2d2e
2024-08-20 16:28:48,020 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a9949df0-bc1d-4a09-9d4a-b5acf4339e11
2024-08-20 16:28:48,027 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a9949df0-bc1d-4a09-9d4a-b5acf4339e11
2024-08-20 16:28:48,035 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/f4dac2d5-2ada-40e4-aea6-477f18a47de5
2024-08-20 16:28:48,042 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-20 16:28:48,042 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/74c69fa1-3e64-4cda-b857-1461855b2d2e
2024-08-20 16:28:48,051 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a9949df0-bc1d-4a09-9d4a-b5acf4339e11
2024-08-20 16:28:48,065 - INFO - Verified VN network id 8 for VN 74c69fa1-3e64-4cda-b857-1461855b2d2e
2024-08-20 16:28:48,066 - INFO - Verifications in API Server for VN ctest-vn-76781620 passed
2024-08-20 16:28:48,066 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/74c69fa1-3e64-4cda-b857-1461855b2d2e
2024-08-20 16:28:48,074 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a9949df0-bc1d-4a09-9d4a-b5acf4339e11
2024-08-20 16:28:48,082 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/a9949df0-bc1d-4a09-9d4a-b5acf4339e11
2024-08-20 16:28:48,089 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/f4dac2d5-2ada-40e4-aea6-477f18a47de5
2024-08-20 16:28:48,101 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72553142:ctest-vn-76781620', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72553142', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8414588468673662170', 'uuid-lslong': '13283108035034295598'}, 'enable': 'true', 'created': '2024-08-20T16:28:45', 'last-modified': '2024-08-20T16:28:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.959715'}
2024-08-20 16:28:48,108 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-20 16:28:48,108 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76781620 passed
2024-08-20 16:28:48,108 - DEBUG - ====Verifying policy data for ctest-vn-76781620 in API_Server ======
2024-08-20 16:28:48,108 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-08-20 16:28:48,114 - DEBUG - Requesting: http://10.0.0.30:8082/domain/41c72296-e8e4-4a41-ab8e-c49845aab7d6
2024-08-20 16:28:48,127 - DEBUG - Requesting: http://10.0.0.30:8082/project/8921d522-9276-457c-8884-3dceea870470
2024-08-20 16:28:48,198 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/74c69fa1-3e64-4cda-b857-1461855b2d2e
2024-08-20 16:28:48,206 - DEBUG - ==>Verifying data for policy with id: 2dea058b-ad32-41a1-ab9d-6b625ae31d08, fqn: ['default-domain', 'ctest-TestBasicPolicy-72553142', 'ctest-policy-allow-all-33062726']
2024-08-20 16:28:48,206 - INFO - VN ctest-vn-76781620 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-20 16:28:48,206 - DEBUG - Verifying the vn in opserver
2024-08-20 16:28:48,206 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72553142:ctest-vn-76781620 virtual network link through opserver 10.0.0.30
2024-08-20 16:28:48,206 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-08-20 16:28:48,501 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-08-20 16:28:48,570 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72553142:ctest-vn-76781620', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72553142:ctest-vn-76781620?flat'}
2024-08-20 16:28:48,571 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72553142:ctest-vn-76781620 is found in opserver
2024-08-20 16:28:48,584 - DEBUG - Do not have enough data to verify VN in agent
2024-08-20 16:28:48,590 - DEBUG - VRF ids for VN ctest-vn-76781620: {}
2024-08-20 16:28:48,590 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-08-20 16:28:48,597 - DEBUG - Requesting: http://10.0.0.30:8082/domain/41c72296-e8e4-4a41-ab8e-c49845aab7d6
2024-08-20 16:28:48,609 - DEBUG - Requesting: http://10.0.0.30:8082/project/8921d522-9276-457c-8884-3dceea870470
2024-08-20 16:28:48,680 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a590cb02-e202-4f15-900f-b0b255176182
2024-08-20 16:28:48,691 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a590cb02-e202-4f15-900f-b0b255176182
2024-08-20 16:28:48,699 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/56307046-7fad-4b83-bcc0-7b25b14e3a05
2024-08-20 16:28:48,706 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/56307046-7fad-4b83-bcc0-7b25b14e3a05
2024-08-20 16:28:48,714 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/17f73747-31b7-4fa0-9c7b-35433e303609
2024-08-20 16:28:48,720 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-20 16:28:48,720 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a590cb02-e202-4f15-900f-b0b255176182
2024-08-20 16:28:48,730 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/56307046-7fad-4b83-bcc0-7b25b14e3a05
2024-08-20 16:28:48,745 - INFO - Verified VN network id 9 for VN a590cb02-e202-4f15-900f-b0b255176182
2024-08-20 16:28:48,745 - INFO - Verifications in API Server for VN ctest-vn-35383344 passed
2024-08-20 16:28:48,745 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a590cb02-e202-4f15-900f-b0b255176182
2024-08-20 16:28:48,757 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/56307046-7fad-4b83-bcc0-7b25b14e3a05
2024-08-20 16:28:48,766 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/56307046-7fad-4b83-bcc0-7b25b14e3a05
2024-08-20 16:28:48,777 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/17f73747-31b7-4fa0-9c7b-35433e303609
2024-08-20 16:28:48,793 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72553142:ctest-vn-35383344', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72553142', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11930258626146619157', 'uuid-lslong': '10380709946090545538'}, 'enable': 'true', 'created': '2024-08-20T16:28:46', 'last-modified': '2024-08-20T16:28:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.398622'}
2024-08-20 16:28:48,802 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-20 16:28:48,802 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35383344 passed
2024-08-20 16:28:48,802 - DEBUG - ====Verifying policy data for ctest-vn-35383344 in API_Server ======
2024-08-20 16:28:48,802 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-08-20 16:28:48,810 - DEBUG - Requesting: http://10.0.0.30:8082/domain/41c72296-e8e4-4a41-ab8e-c49845aab7d6
2024-08-20 16:28:48,824 - DEBUG - Requesting: http://10.0.0.30:8082/project/8921d522-9276-457c-8884-3dceea870470
2024-08-20 16:28:48,893 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a590cb02-e202-4f15-900f-b0b255176182
2024-08-20 16:28:48,904 - DEBUG - ==>Verifying data for policy with id: 2dea058b-ad32-41a1-ab9d-6b625ae31d08, fqn: ['default-domain', 'ctest-TestBasicPolicy-72553142', 'ctest-policy-allow-all-33062726']
2024-08-20 16:28:48,904 - INFO - VN ctest-vn-35383344 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-20 16:28:48,904 - DEBUG - Verifying the vn in opserver
2024-08-20 16:28:48,904 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72553142:ctest-vn-35383344 virtual network link through opserver 10.0.0.30
2024-08-20 16:28:48,904 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-08-20 16:28:48,918 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72553142:ctest-vn-35383344', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72553142:ctest-vn-35383344?flat'}
2024-08-20 16:28:48,918 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72553142:ctest-vn-35383344 is found in opserver
2024-08-20 16:28:48,930 - DEBUG - Do not have enough data to verify VN in agent
2024-08-20 16:28:48,935 - DEBUG - VRF ids for VN ctest-vn-35383344: {}
2024-08-20 16:28:48,991 - DEBUG - Services list from nova: [