2024-08-21 14:43:13,917 - INFO - Domain Default found not creating
2024-08-21 14:43:14,109 - INFO - Project ctest-TestBasicPolicy-38410868 not found, creating it
2024-08-21 14:43:17,915 - INFO - Created Project:ctest-TestBasicPolicy-38410868, ID : d0d5cb1e-a148-42b9-9a59-3ea9a9296913
2024-08-21 14:43:19,400 - INFO - ================================================================================
2024-08-21 14:43:19,400 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-21 14:43:19,400 - 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-21 14:43:19,662 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.17': '0'}} with
2024-08-21 14:43:19,662 - INFO - Initial checks done. Running the testcase now
2024-08-21 14:43:19,662 - INFO -
2024-08-21 14:43:20,215 - DEBUG - Response for create_network : {'network': {'id': '2d4e844c-ffe5-4eba-8789-3f73df96b856', 'name': 'ctest-vn-50386781', 'tenant_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'project_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38410868', 'ctest-vn-50386781'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 14:43:20,446 - DEBUG - Response for create_subnet : {'subnet': {'id': '7073d9f5-7e69-4324-8c2d-dccfcaaa7487', 'name': '', 'tenant_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'network_id': '2d4e844c-ffe5-4eba-8789-3f73df96b856', 'ip_version': 4, 'cidr': '88.196.53.0/26', 'allocation_pools': [{'start': '88.196.53.2', 'end': '88.196.53.62'}], 'gateway_ip': '88.196.53.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.196.53.2', 'tags': [], 'project_id': 'd0d5cb1ea14842b99a593ea9a9296913'}}
2024-08-21 14:43:20,465 - INFO - Created VN ctest-vn-50386781
2024-08-21 14:43:20,520 - DEBUG - VN ctest-vn-50386781 UUID is 2d4e844c-ffe5-4eba-8789-3f73df96b856
2024-08-21 14:43:20,812 - DEBUG - Response for create_network : {'network': {'id': '112bdbb6-cc0e-4a11-9d36-539c196f1242', 'name': 'ctest-vn-82316247', 'tenant_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'project_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38410868', 'ctest-vn-82316247'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 14:43:21,035 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac173b5b-161d-4e1d-9af4-e4d02f81d461', 'name': '', 'tenant_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'network_id': '112bdbb6-cc0e-4a11-9d36-539c196f1242', 'ip_version': 4, 'cidr': '109.100.3.64/26', 'allocation_pools': [{'start': '109.100.3.66', 'end': '109.100.3.126'}], 'gateway_ip': '109.100.3.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.100.3.66', 'tags': [], 'project_id': 'd0d5cb1ea14842b99a593ea9a9296913'}}
2024-08-21 14:43:21,054 - INFO - Created VN ctest-vn-82316247
2024-08-21 14:43:21,104 - DEBUG - VN ctest-vn-82316247 UUID is 112bdbb6-cc0e-4a11-9d36-539c196f1242
2024-08-21 14:43:21,218 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-50386781, 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-38410868:ctest-vn-82316247, 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-21 14:43:21,511 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d4e844c-ffe5-4eba-8789-3f73df96b856', 'name': 'ctest-vn-50386781', 'tenant_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'project_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7073d9f5-7e69-4324-8c2d-dccfcaaa7487'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38410868', 'ctest-vn-50386781'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38410868', 'ctest-policy-allow-all-51203860']], 'subnet_ipam': [{'subnet_cidr': '88.196.53.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 14:43:24,230 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '112bdbb6-cc0e-4a11-9d36-539c196f1242', 'name': 'ctest-vn-82316247', 'tenant_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'project_id': 'd0d5cb1ea14842b99a593ea9a9296913', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ac173b5b-161d-4e1d-9af4-e4d02f81d461'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38410868', 'ctest-vn-82316247'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38410868', 'ctest-policy-allow-all-51203860']], 'subnet_ipam': [{'subnet_cidr': '109.100.3.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 14:43:24,416 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-08-21 14:43:24,896 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-08-21 14:43:24,937 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dbd473-bca2-4061-ad31-ce9fd0c95da1
2024-08-21 14:43:24,952 - DEBUG - Requesting: http://10.0.0.12:8082/project/d0d5cb1e-a148-42b9-9a59-3ea9a9296913
2024-08-21 14:43:25,036 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2d4e844c-ffe5-4eba-8789-3f73df96b856
2024-08-21 14:43:25,047 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2d4e844c-ffe5-4eba-8789-3f73df96b856
2024-08-21 14:43:25,055 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/b41b87f1-e20c-4320-ab24-0fb12915a547
2024-08-21 14:43:25,062 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/b41b87f1-e20c-4320-ab24-0fb12915a547
2024-08-21 14:43:25,069 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/715ef729-60a9-4f7b-be7e-4fd1c1d48543
2024-08-21 14:43:25,078 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 14:43:25,078 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2d4e844c-ffe5-4eba-8789-3f73df96b856
2024-08-21 14:43:25,087 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/b41b87f1-e20c-4320-ab24-0fb12915a547
2024-08-21 14:43:25,099 - INFO - Verified VN network id 7 for VN 2d4e844c-ffe5-4eba-8789-3f73df96b856
2024-08-21 14:43:25,099 - INFO - Verifications in API Server for VN ctest-vn-50386781 passed
2024-08-21 14:43:25,099 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2d4e844c-ffe5-4eba-8789-3f73df96b856
2024-08-21 14:43:25,107 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/b41b87f1-e20c-4320-ab24-0fb12915a547
2024-08-21 14:43:25,114 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/b41b87f1-e20c-4320-ab24-0fb12915a547
2024-08-21 14:43:25,121 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/715ef729-60a9-4f7b-be7e-4fd1c1d48543
2024-08-21 14:43:25,133 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-50386781', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38410868', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3264692246135787194', 'uuid-lslong': '9766407033834616918'}, 'enable': 'true', 'created': '2024-08-21T14:43:20', 'last-modified': '2024-08-21T14:43:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.646021'}
2024-08-21 14:43:25,140 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 14:43:25,140 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50386781 passed
2024-08-21 14:43:25,140 - DEBUG - ====Verifying policy data for ctest-vn-50386781 in API_Server ======
2024-08-21 14:43:25,141 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-08-21 14:43:25,147 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dbd473-bca2-4061-ad31-ce9fd0c95da1
2024-08-21 14:43:25,158 - DEBUG - Requesting: http://10.0.0.12:8082/project/d0d5cb1e-a148-42b9-9a59-3ea9a9296913
2024-08-21 14:43:25,229 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/2d4e844c-ffe5-4eba-8789-3f73df96b856
2024-08-21 14:43:25,237 - DEBUG - ==>Verifying data for policy with id: f3c0e525-88de-45ab-a1fd-3a162d2d586c, fqn: ['default-domain', 'ctest-TestBasicPolicy-38410868', 'ctest-policy-allow-all-51203860']
2024-08-21 14:43:25,237 - INFO - VN ctest-vn-50386781 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 14:43:25,238 - DEBUG - Verifying the vn in opserver
2024-08-21 14:43:25,238 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-50386781 virtual network link through opserver 10.0.0.12
2024-08-21 14:43:25,238 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-08-21 14:43:25,542 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-08-21 14:43:25,623 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-50386781', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-50386781?flat'}
2024-08-21 14:43:25,624 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-50386781 is found in opserver
2024-08-21 14:43:25,635 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 14:43:25,640 - DEBUG - VRF ids for VN ctest-vn-50386781: {}
2024-08-21 14:43:25,640 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-08-21 14:43:25,646 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dbd473-bca2-4061-ad31-ce9fd0c95da1
2024-08-21 14:43:25,661 - DEBUG - Requesting: http://10.0.0.12:8082/project/d0d5cb1e-a148-42b9-9a59-3ea9a9296913
2024-08-21 14:43:25,735 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/112bdbb6-cc0e-4a11-9d36-539c196f1242
2024-08-21 14:43:25,746 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/112bdbb6-cc0e-4a11-9d36-539c196f1242
2024-08-21 14:43:25,755 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a534ffeb-7289-4f73-89d6-5d7829a1e102
2024-08-21 14:43:25,765 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a534ffeb-7289-4f73-89d6-5d7829a1e102
2024-08-21 14:43:25,773 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/870ca3e6-c9f2-4c0b-a888-f90ce9edd625
2024-08-21 14:43:25,780 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 14:43:25,780 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/112bdbb6-cc0e-4a11-9d36-539c196f1242
2024-08-21 14:43:25,789 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a534ffeb-7289-4f73-89d6-5d7829a1e102
2024-08-21 14:43:25,802 - INFO - Verified VN network id 8 for VN 112bdbb6-cc0e-4a11-9d36-539c196f1242
2024-08-21 14:43:25,803 - INFO - Verifications in API Server for VN ctest-vn-82316247 passed
2024-08-21 14:43:25,803 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/112bdbb6-cc0e-4a11-9d36-539c196f1242
2024-08-21 14:43:25,812 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a534ffeb-7289-4f73-89d6-5d7829a1e102
2024-08-21 14:43:25,819 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a534ffeb-7289-4f73-89d6-5d7829a1e102
2024-08-21 14:43:25,827 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/870ca3e6-c9f2-4c0b-a888-f90ce9edd625
2024-08-21 14:43:25,840 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-82316247', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38410868', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1237324100797352465', 'uuid-lslong': '11328333842603774530'}, 'enable': 'true', 'created': '2024-08-21T14:43:20', 'last-modified': '2024-08-21T14:43:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.119939'}
2024-08-21 14:43:25,846 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 14:43:25,846 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82316247 passed
2024-08-21 14:43:25,846 - DEBUG - ====Verifying policy data for ctest-vn-82316247 in API_Server ======
2024-08-21 14:43:25,846 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-08-21 14:43:25,852 - DEBUG - Requesting: http://10.0.0.12:8082/domain/31dbd473-bca2-4061-ad31-ce9fd0c95da1
2024-08-21 14:43:25,864 - DEBUG - Requesting: http://10.0.0.12:8082/project/d0d5cb1e-a148-42b9-9a59-3ea9a9296913
2024-08-21 14:43:25,941 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/112bdbb6-cc0e-4a11-9d36-539c196f1242
2024-08-21 14:43:25,949 - DEBUG - ==>Verifying data for policy with id: f3c0e525-88de-45ab-a1fd-3a162d2d586c, fqn: ['default-domain', 'ctest-TestBasicPolicy-38410868', 'ctest-policy-allow-all-51203860']
2024-08-21 14:43:25,949 - INFO - VN ctest-vn-82316247 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 14:43:25,949 - DEBUG - Verifying the vn in opserver
2024-08-21 14:43:25,949 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-82316247 virtual network link through opserver 10.0.0.12
2024-08-21 14:43:25,949 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-08-21 14:43:25,960 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-82316247', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-82316247?flat'}
2024-08-21 14:43:25,960 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38410868:ctest-vn-82316247 is found in opserver
2024-08-21 14:43:25,971 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 14:43:25,976 - DEBUG - VRF ids for VN ctest-vn-82316247: {}
2024-08-21 14:43:26,030 - DEBUG - Services list from nova: [