2024-08-27 16:43:34,971 - INFO - Domain Default found not creating
2024-08-27 16:43:35,143 - INFO - Project ctest-TestBasicPolicy-43828776 not found, creating it
2024-08-27 16:43:35,624 - INFO - Created Project:ctest-TestBasicPolicy-43828776, ID : 549c53f3-b5d7-457b-9ed0-f27702f8e63a
2024-08-27 16:43:37,118 - INFO - ================================================================================
2024-08-27 16:43:37,118 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-27 16:43:37,118 - 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-27 16:43:37,374 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.5': '0'}} with
2024-08-27 16:43:37,375 - INFO - Initial checks done. Running the testcase now
2024-08-27 16:43:37,375 - INFO -
2024-08-27 16:43:37,918 - DEBUG - Response for create_network : {'network': {'id': 'f25891dc-ca7c-4d30-bab3-12f8445790c7', 'name': 'ctest-vn-43220196', 'tenant_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'project_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43828776', 'ctest-vn-43220196'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 16:43:38,121 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b98c9a33-0286-4fce-bbb8-bf3165d33cf7', 'name': '', 'tenant_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'network_id': 'f25891dc-ca7c-4d30-bab3-12f8445790c7', 'ip_version': 4, 'cidr': '165.167.151.128/26', 'allocation_pools': [{'start': '165.167.151.130', 'end': '165.167.151.190'}], 'gateway_ip': '165.167.151.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.167.151.130', 'tags': [], 'project_id': '549c53f3b5d7457b9ed0f27702f8e63a'}}
2024-08-27 16:43:38,140 - INFO - Created VN ctest-vn-43220196
2024-08-27 16:43:38,202 - DEBUG - VN ctest-vn-43220196 UUID is f25891dc-ca7c-4d30-bab3-12f8445790c7
2024-08-27 16:43:38,495 - DEBUG - Response for create_network : {'network': {'id': '6296ade6-65e3-4691-9ad7-401780259a24', 'name': 'ctest-vn-35824684', 'tenant_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'project_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43828776', 'ctest-vn-35824684'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 16:43:38,689 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f71d0654-d2d6-4bbd-9e8c-5ece0d719e42', 'name': '', 'tenant_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'network_id': '6296ade6-65e3-4691-9ad7-401780259a24', 'ip_version': 4, 'cidr': '115.58.203.0/26', 'allocation_pools': [{'start': '115.58.203.2', 'end': '115.58.203.62'}], 'gateway_ip': '115.58.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.58.203.2', 'tags': [], 'project_id': '549c53f3b5d7457b9ed0f27702f8e63a'}}
2024-08-27 16:43:38,708 - INFO - Created VN ctest-vn-35824684
2024-08-27 16:43:38,761 - DEBUG - VN ctest-vn-35824684 UUID is 6296ade6-65e3-4691-9ad7-401780259a24
2024-08-27 16:43:38,870 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-43220196, 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-43828776:ctest-vn-35824684, 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-27 16:43:39,158 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f25891dc-ca7c-4d30-bab3-12f8445790c7', 'name': 'ctest-vn-43220196', 'tenant_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'project_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b98c9a33-0286-4fce-bbb8-bf3165d33cf7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43828776', 'ctest-vn-43220196'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43828776', 'ctest-policy-allow-all-27231515']], 'subnet_ipam': [{'subnet_cidr': '165.167.151.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 16:43:39,400 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6296ade6-65e3-4691-9ad7-401780259a24', 'name': 'ctest-vn-35824684', 'tenant_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'project_id': '549c53f3b5d7457b9ed0f27702f8e63a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f71d0654-d2d6-4bbd-9e8c-5ece0d719e42'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43828776', 'ctest-vn-35824684'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43828776', 'ctest-policy-allow-all-27231515']], 'subnet_ipam': [{'subnet_cidr': '115.58.203.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 16:43:39,561 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-08-27 16:43:39,854 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-08-27 16:43:39,886 - DEBUG - Requesting: http://10.0.0.23:8082/domain/aae2f8df-7888-426f-802c-550db83506fe
2024-08-27 16:43:39,900 - DEBUG - Requesting: http://10.0.0.23:8082/project/549c53f3-b5d7-457b-9ed0-f27702f8e63a
2024-08-27 16:43:39,969 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f25891dc-ca7c-4d30-bab3-12f8445790c7
2024-08-27 16:43:39,979 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f25891dc-ca7c-4d30-bab3-12f8445790c7
2024-08-27 16:43:39,987 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0faae86c-d18c-4412-8c5c-d7108a26bdb4
2024-08-27 16:43:39,995 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0faae86c-d18c-4412-8c5c-d7108a26bdb4
2024-08-27 16:43:40,003 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/d70f2bac-f599-4dff-bd8c-0d8ac89b0695
2024-08-27 16:43:40,010 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 16:43:40,010 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f25891dc-ca7c-4d30-bab3-12f8445790c7
2024-08-27 16:43:40,018 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0faae86c-d18c-4412-8c5c-d7108a26bdb4
2024-08-27 16:43:40,033 - INFO - Verified VN network id 9 for VN f25891dc-ca7c-4d30-bab3-12f8445790c7
2024-08-27 16:43:40,033 - INFO - Verifications in API Server for VN ctest-vn-43220196 passed
2024-08-27 16:43:40,033 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f25891dc-ca7c-4d30-bab3-12f8445790c7
2024-08-27 16:43:40,041 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0faae86c-d18c-4412-8c5c-d7108a26bdb4
2024-08-27 16:43:40,048 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/0faae86c-d18c-4412-8c5c-d7108a26bdb4
2024-08-27 16:43:40,055 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/d70f2bac-f599-4dff-bd8c-0d8ac89b0695
2024-08-27 16:43:40,068 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-43220196', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43828776', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17462867932605074736', 'uuid-lslong': '13453117369393582279'}, 'enable': 'true', 'created': '2024-08-27T16:43:37', 'last-modified': '2024-08-27T16:43:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.926916'}
2024-08-27 16:43:40,076 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 16:43:40,077 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43220196 passed
2024-08-27 16:43:40,077 - DEBUG - ====Verifying policy data for ctest-vn-43220196 in API_Server ======
2024-08-27 16:43:40,077 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-08-27 16:43:40,084 - DEBUG - Requesting: http://10.0.0.23:8082/domain/aae2f8df-7888-426f-802c-550db83506fe
2024-08-27 16:43:40,097 - DEBUG - Requesting: http://10.0.0.23:8082/project/549c53f3-b5d7-457b-9ed0-f27702f8e63a
2024-08-27 16:43:40,169 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f25891dc-ca7c-4d30-bab3-12f8445790c7
2024-08-27 16:43:40,178 - DEBUG - ==>Verifying data for policy with id: 3b674156-c8f6-41d2-b685-e839cebd098e, fqn: ['default-domain', 'ctest-TestBasicPolicy-43828776', 'ctest-policy-allow-all-27231515']
2024-08-27 16:43:40,178 - INFO - VN ctest-vn-43220196 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 16:43:40,178 - DEBUG - Verifying the vn in opserver
2024-08-27 16:43:40,178 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-43220196 virtual network link through opserver 10.0.0.23
2024-08-27 16:43:40,178 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-08-27 16:43:40,469 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-08-27 16:43:40,532 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-43220196', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-43220196?flat'}
2024-08-27 16:43:40,532 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-43220196 is found in opserver
2024-08-27 16:43:40,543 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 16:43:40,549 - DEBUG - VRF ids for VN ctest-vn-43220196: {}
2024-08-27 16:43:40,549 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-08-27 16:43:40,555 - DEBUG - Requesting: http://10.0.0.23:8082/domain/aae2f8df-7888-426f-802c-550db83506fe
2024-08-27 16:43:40,568 - DEBUG - Requesting: http://10.0.0.23:8082/project/549c53f3-b5d7-457b-9ed0-f27702f8e63a
2024-08-27 16:43:40,638 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/6296ade6-65e3-4691-9ad7-401780259a24
2024-08-27 16:43:40,648 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/6296ade6-65e3-4691-9ad7-401780259a24
2024-08-27 16:43:40,657 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7feb2848-9f14-4901-8570-c9117d8ecace
2024-08-27 16:43:40,665 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7feb2848-9f14-4901-8570-c9117d8ecace
2024-08-27 16:43:40,674 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/ea4bee2b-b895-4d06-bf19-a3d7188e5997
2024-08-27 16:43:40,682 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 16:43:40,682 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/6296ade6-65e3-4691-9ad7-401780259a24
2024-08-27 16:43:40,692 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7feb2848-9f14-4901-8570-c9117d8ecace
2024-08-27 16:43:40,707 - INFO - Verified VN network id 10 for VN 6296ade6-65e3-4691-9ad7-401780259a24
2024-08-27 16:43:40,707 - INFO - Verifications in API Server for VN ctest-vn-35824684 passed
2024-08-27 16:43:40,707 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/6296ade6-65e3-4691-9ad7-401780259a24
2024-08-27 16:43:40,716 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7feb2848-9f14-4901-8570-c9117d8ecace
2024-08-27 16:43:40,723 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7feb2848-9f14-4901-8570-c9117d8ecace
2024-08-27 16:43:40,731 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/ea4bee2b-b895-4d06-bf19-a3d7188e5997
2024-08-27 16:43:40,745 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-35824684', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43828776', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7104056667287013009', 'uuid-lslong': '11157457071512066596'}, 'enable': 'true', 'created': '2024-08-27T16:43:38', 'last-modified': '2024-08-27T16:43:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.373048'}
2024-08-27 16:43:40,753 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 16:43:40,753 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35824684 passed
2024-08-27 16:43:40,753 - DEBUG - ====Verifying policy data for ctest-vn-35824684 in API_Server ======
2024-08-27 16:43:40,753 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-08-27 16:43:40,759 - DEBUG - Requesting: http://10.0.0.23:8082/domain/aae2f8df-7888-426f-802c-550db83506fe
2024-08-27 16:43:40,772 - DEBUG - Requesting: http://10.0.0.23:8082/project/549c53f3-b5d7-457b-9ed0-f27702f8e63a
2024-08-27 16:43:40,843 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/6296ade6-65e3-4691-9ad7-401780259a24
2024-08-27 16:43:40,853 - DEBUG - ==>Verifying data for policy with id: 3b674156-c8f6-41d2-b685-e839cebd098e, fqn: ['default-domain', 'ctest-TestBasicPolicy-43828776', 'ctest-policy-allow-all-27231515']
2024-08-27 16:43:40,853 - INFO - VN ctest-vn-35824684 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 16:43:40,853 - DEBUG - Verifying the vn in opserver
2024-08-27 16:43:40,853 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-35824684 virtual network link through opserver 10.0.0.23
2024-08-27 16:43:40,853 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-08-27 16:43:40,866 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-35824684', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-35824684?flat'}
2024-08-27 16:43:40,866 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43828776:ctest-vn-35824684 is found in opserver
2024-08-27 16:43:40,879 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 16:43:40,885 - DEBUG - VRF ids for VN ctest-vn-35824684: {}
2024-08-27 16:43:40,942 - DEBUG - Services list from nova: [