2024-09-17 16:28:13,036 - INFO - Domain Default found not creating
2024-09-17 16:28:13,229 - INFO - Project ctest-TestBasicPolicy-98532259 not found, creating it
2024-09-17 16:28:13,756 - INFO - Created Project:ctest-TestBasicPolicy-98532259, ID : af7eea39-9103-4f81-bfc1-45a20eaa2f4f
2024-09-17 16:28:15,493 - INFO - ================================================================================
2024-09-17 16:28:15,493 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-17 16:28:15,493 - 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-17 16:28:15,748 - DEBUG - Nothing to compare xmpp stats {'10.0.0.59': {'10.20.0.24': '0'}} with
2024-09-17 16:28:15,748 - INFO - Initial checks done. Running the testcase now
2024-09-17 16:28:15,748 - INFO -
2024-09-17 16:28:16,442 - DEBUG - Response for create_network : {'network': {'id': '72a2db93-98e2-4ef4-b364-3957697562ac', 'name': 'ctest-vn-12908504', 'tenant_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'project_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98532259', 'ctest-vn-12908504'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 16:28:16,634 - DEBUG - Response for create_subnet : {'subnet': {'id': '0597745e-f439-4337-bc06-e3987864818d', 'name': '', 'tenant_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'network_id': '72a2db93-98e2-4ef4-b364-3957697562ac', 'ip_version': 4, 'cidr': '220.175.40.128/26', 'allocation_pools': [{'start': '220.175.40.130', 'end': '220.175.40.190'}], 'gateway_ip': '220.175.40.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.175.40.130', 'tags': [], 'project_id': 'af7eea3991034f81bfc145a20eaa2f4f'}}
2024-09-17 16:28:16,656 - INFO - Created VN ctest-vn-12908504
2024-09-17 16:28:16,718 - DEBUG - VN ctest-vn-12908504 UUID is 72a2db93-98e2-4ef4-b364-3957697562ac
2024-09-17 16:28:17,149 - DEBUG - Response for create_network : {'network': {'id': '142f8d51-74c5-4dad-be46-762bb9ae5a09', 'name': 'ctest-vn-97472893', 'tenant_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'project_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98532259', 'ctest-vn-97472893'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 16:28:17,345 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f361eff1-2767-44d6-bf86-5130dbfadef2', 'name': '', 'tenant_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'network_id': '142f8d51-74c5-4dad-be46-762bb9ae5a09', 'ip_version': 4, 'cidr': '215.222.123.0/26', 'allocation_pools': [{'start': '215.222.123.2', 'end': '215.222.123.62'}], 'gateway_ip': '215.222.123.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.222.123.2', 'tags': [], 'project_id': 'af7eea3991034f81bfc145a20eaa2f4f'}}
2024-09-17 16:28:17,371 - INFO - Created VN ctest-vn-97472893
2024-09-17 16:28:17,430 - DEBUG - VN ctest-vn-97472893 UUID is 142f8d51-74c5-4dad-be46-762bb9ae5a09
2024-09-17 16:28:17,564 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-12908504, 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-98532259:ctest-vn-97472893, 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-17 16:28:17,904 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '72a2db93-98e2-4ef4-b364-3957697562ac', 'name': 'ctest-vn-12908504', 'tenant_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'project_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0597745e-f439-4337-bc06-e3987864818d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98532259', 'ctest-vn-12908504'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98532259', 'ctest-policy-allow-all-20181738']], 'subnet_ipam': [{'subnet_cidr': '220.175.40.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 16:28:18,163 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '142f8d51-74c5-4dad-be46-762bb9ae5a09', 'name': 'ctest-vn-97472893', 'tenant_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'project_id': 'af7eea3991034f81bfc145a20eaa2f4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f361eff1-2767-44d6-bf86-5130dbfadef2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98532259', 'ctest-vn-97472893'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98532259', 'ctest-policy-allow-all-20181738']], 'subnet_ipam': [{'subnet_cidr': '215.222.123.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 16:28:18,338 - DEBUG - Requesting: http://10.0.0.59:8082/domains
2024-09-17 16:28:18,695 - DEBUG - Requesting: http://10.0.0.59:8082/domains
2024-09-17 16:28:18,731 - DEBUG - Requesting: http://10.0.0.59:8082/domain/79811cd8-eb8a-4a2d-abe1-83a89e491162
2024-09-17 16:28:18,749 - DEBUG - Requesting: http://10.0.0.59:8082/project/af7eea39-9103-4f81-bfc1-45a20eaa2f4f
2024-09-17 16:28:18,841 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/72a2db93-98e2-4ef4-b364-3957697562ac
2024-09-17 16:28:18,859 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/72a2db93-98e2-4ef4-b364-3957697562ac
2024-09-17 16:28:18,877 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/d71101b4-c39c-4143-8c88-7b4afd1b41f8
2024-09-17 16:28:18,890 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/d71101b4-c39c-4143-8c88-7b4afd1b41f8
2024-09-17 16:28:18,903 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/bb11eb28-d431-4947-8a95-c3a97504a146
2024-09-17 16:28:18,914 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 16:28:18,914 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/72a2db93-98e2-4ef4-b364-3957697562ac
2024-09-17 16:28:18,930 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/d71101b4-c39c-4143-8c88-7b4afd1b41f8
2024-09-17 16:28:18,958 - INFO - Verified VN network id 8 for VN 72a2db93-98e2-4ef4-b364-3957697562ac
2024-09-17 16:28:18,958 - INFO - Verifications in API Server for VN ctest-vn-12908504 passed
2024-09-17 16:28:18,958 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/72a2db93-98e2-4ef4-b364-3957697562ac
2024-09-17 16:28:18,986 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/d71101b4-c39c-4143-8c88-7b4afd1b41f8
2024-09-17 16:28:19,000 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/d71101b4-c39c-4143-8c88-7b4afd1b41f8
2024-09-17 16:28:19,015 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/bb11eb28-d431-4947-8a95-c3a97504a146
2024-09-17 16:28:19,034 - DEBUG - Control-node 10.0.0.59 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-12908504', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98532259', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8260406093522554612', 'uuid-lslong': '12926519878054404780'}, 'enable': 'true', 'created': '2024-09-17T16:28:16', 'last-modified': '2024-09-17T16:28:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.165242'}
2024-09-17 16:28:19,044 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 16:28:19,044 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12908504 passed
2024-09-17 16:28:19,044 - DEBUG - ====Verifying policy data for ctest-vn-12908504 in API_Server ======
2024-09-17 16:28:19,044 - DEBUG - Requesting: http://10.0.0.59:8082/domains
2024-09-17 16:28:19,052 - DEBUG - Requesting: http://10.0.0.59:8082/domain/79811cd8-eb8a-4a2d-abe1-83a89e491162
2024-09-17 16:28:19,074 - DEBUG - Requesting: http://10.0.0.59:8082/project/af7eea39-9103-4f81-bfc1-45a20eaa2f4f
2024-09-17 16:28:19,156 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/72a2db93-98e2-4ef4-b364-3957697562ac
2024-09-17 16:28:19,171 - DEBUG - ==>Verifying data for policy with id: 8caeb62e-306b-4e2b-9223-07a28e735a5c, fqn: ['default-domain', 'ctest-TestBasicPolicy-98532259', 'ctest-policy-allow-all-20181738']
2024-09-17 16:28:19,171 - INFO - VN ctest-vn-12908504 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 16:28:19,171 - DEBUG - Verifying the vn in opserver
2024-09-17 16:28:19,172 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-12908504 virtual network link through opserver 10.0.0.59
2024-09-17 16:28:19,172 - DEBUG - Requesting: http://10.0.0.59:8081/analytics/uves/virtual-networks
2024-09-17 16:28:19,515 - DEBUG - Requesting: http://10.0.0.59:8081/analytics/uves/virtual-networks
2024-09-17 16:28:19,585 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-12908504', 'href': 'http://10.0.0.59:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-12908504?flat'}
2024-09-17 16:28:19,585 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-12908504 is found in opserver
2024-09-17 16:28:19,604 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 16:28:19,610 - DEBUG - VRF ids for VN ctest-vn-12908504: {}
2024-09-17 16:28:19,610 - DEBUG - Requesting: http://10.0.0.59:8082/domains
2024-09-17 16:28:19,617 - DEBUG - Requesting: http://10.0.0.59:8082/domain/79811cd8-eb8a-4a2d-abe1-83a89e491162
2024-09-17 16:28:19,632 - DEBUG - Requesting: http://10.0.0.59:8082/project/af7eea39-9103-4f81-bfc1-45a20eaa2f4f
2024-09-17 16:28:19,719 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/142f8d51-74c5-4dad-be46-762bb9ae5a09
2024-09-17 16:28:19,738 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/142f8d51-74c5-4dad-be46-762bb9ae5a09
2024-09-17 16:28:19,755 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/a6caa3bd-9b6d-4215-bb14-ecc5eb7cdc88
2024-09-17 16:28:19,765 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/a6caa3bd-9b6d-4215-bb14-ecc5eb7cdc88
2024-09-17 16:28:19,775 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/e8e14a3e-a3df-40c2-8b18-c9a279a6e905
2024-09-17 16:28:19,784 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 16:28:19,784 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/142f8d51-74c5-4dad-be46-762bb9ae5a09
2024-09-17 16:28:19,803 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/a6caa3bd-9b6d-4215-bb14-ecc5eb7cdc88
2024-09-17 16:28:19,830 - INFO - Verified VN network id 9 for VN 142f8d51-74c5-4dad-be46-762bb9ae5a09
2024-09-17 16:28:19,830 - INFO - Verifications in API Server for VN ctest-vn-97472893 passed
2024-09-17 16:28:19,830 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/142f8d51-74c5-4dad-be46-762bb9ae5a09
2024-09-17 16:28:19,845 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/a6caa3bd-9b6d-4215-bb14-ecc5eb7cdc88
2024-09-17 16:28:19,855 - DEBUG - Requesting: http://10.0.0.59:8082/routing-instance/a6caa3bd-9b6d-4215-bb14-ecc5eb7cdc88
2024-09-17 16:28:19,864 - DEBUG - Requesting: http://10.0.0.59:8082/route-target/e8e14a3e-a3df-40c2-8b18-c9a279a6e905
2024-09-17 16:28:19,882 - DEBUG - Control-node 10.0.0.59 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-97472893', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98532259', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1454536585654914477', 'uuid-lslong': '13710776045746936329'}, 'enable': 'true', 'created': '2024-09-17T16:28:17', 'last-modified': '2024-09-17T16:28:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.747244'}
2024-09-17 16:28:19,891 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 16:28:19,891 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97472893 passed
2024-09-17 16:28:19,892 - DEBUG - ====Verifying policy data for ctest-vn-97472893 in API_Server ======
2024-09-17 16:28:19,892 - DEBUG - Requesting: http://10.0.0.59:8082/domains
2024-09-17 16:28:19,899 - DEBUG - Requesting: http://10.0.0.59:8082/domain/79811cd8-eb8a-4a2d-abe1-83a89e491162
2024-09-17 16:28:19,919 - DEBUG - Requesting: http://10.0.0.59:8082/project/af7eea39-9103-4f81-bfc1-45a20eaa2f4f
2024-09-17 16:28:20,010 - DEBUG - Requesting: http://10.0.0.59:8082/virtual-network/142f8d51-74c5-4dad-be46-762bb9ae5a09
2024-09-17 16:28:20,027 - DEBUG - ==>Verifying data for policy with id: 8caeb62e-306b-4e2b-9223-07a28e735a5c, fqn: ['default-domain', 'ctest-TestBasicPolicy-98532259', 'ctest-policy-allow-all-20181738']
2024-09-17 16:28:20,028 - INFO - VN ctest-vn-97472893 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 16:28:20,028 - DEBUG - Verifying the vn in opserver
2024-09-17 16:28:20,028 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-97472893 virtual network link through opserver 10.0.0.59
2024-09-17 16:28:20,028 - DEBUG - Requesting: http://10.0.0.59:8081/analytics/uves/virtual-networks
2024-09-17 16:28:20,043 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-97472893', 'href': 'http://10.0.0.59:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-97472893?flat'}
2024-09-17 16:28:20,043 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98532259:ctest-vn-97472893 is found in opserver
2024-09-17 16:28:20,056 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 16:28:20,062 - DEBUG - VRF ids for VN ctest-vn-97472893: {}
2024-09-17 16:28:20,134 - DEBUG - Services list from nova: [