2024-08-24 02:14:43,968 - INFO - Domain Default found not creating
2024-08-24 02:14:44,641 - INFO - Project ctest-TestBasicPolicy-30126425 not found, creating it
2024-08-24 02:14:45,412 - INFO - Created Project:ctest-TestBasicPolicy-30126425, ID : 3dbaef60-26df-4226-acdf-52bf8beae3a5
2024-08-24 02:14:47,881 - INFO - ================================================================================
2024-08-24 02:14:47,881 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-24 02:14:47,881 - 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-24 02:14:48,162 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.5': '0'}} with
2024-08-24 02:14:48,162 - INFO - Initial checks done. Running the testcase now
2024-08-24 02:14:48,162 - INFO -
2024-08-24 02:14:48,886 - DEBUG - Response for create_network : {'network': {'id': 'd73295c7-5cad-4836-b752-9ad4029c9d60', 'name': 'ctest-vn-96451025', 'tenant_id': '3dbaef6026df4226acdf52bf8beae3a5', 'project_id': '3dbaef6026df4226acdf52bf8beae3a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30126425', 'ctest-vn-96451025'], 'port_security_enabled': True, 'description': ''}}
2024-08-24 02:14:49,133 - DEBUG - Response for create_subnet : {'subnet': {'id': '0eacf74a-b552-4fc4-b056-c624eb083e11', 'name': '', 'tenant_id': '3dbaef6026df4226acdf52bf8beae3a5', 'network_id': 'd73295c7-5cad-4836-b752-9ad4029c9d60', 'ip_version': 4, 'cidr': '24.215.63.64/26', 'allocation_pools': [{'start': '24.215.63.66', 'end': '24.215.63.126'}], 'gateway_ip': '24.215.63.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.215.63.66', 'tags': [], 'project_id': '3dbaef6026df4226acdf52bf8beae3a5'}}
2024-08-24 02:14:49,160 - INFO - Created VN ctest-vn-96451025
2024-08-24 02:14:49,211 - DEBUG - VN ctest-vn-96451025 UUID is d73295c7-5cad-4836-b752-9ad4029c9d60
2024-08-24 02:14:49,731 - DEBUG - Response for create_network : {'network': {'id': '4d2d04f7-3704-4eb1-8bf0-b10d4d030305', 'name': 'ctest-vn-96868915', 'tenant_id': '3dbaef6026df4226acdf52bf8beae3a5', 'project_id': '3dbaef6026df4226acdf52bf8beae3a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30126425', 'ctest-vn-96868915'], 'port_security_enabled': True, 'description': ''}}
2024-08-24 02:14:49,981 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd6a416cf-ca23-4e9c-a447-34d207d826d9', 'name': '', 'tenant_id': '3dbaef6026df4226acdf52bf8beae3a5', 'network_id': '4d2d04f7-3704-4eb1-8bf0-b10d4d030305', 'ip_version': 4, 'cidr': '188.210.217.128/26', 'allocation_pools': [{'start': '188.210.217.130', 'end': '188.210.217.190'}], 'gateway_ip': '188.210.217.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.210.217.130', 'tags': [], 'project_id': '3dbaef6026df4226acdf52bf8beae3a5'}}
2024-08-24 02:14:50,008 - INFO - Created VN ctest-vn-96868915
2024-08-24 02:14:50,068 - DEBUG - VN ctest-vn-96868915 UUID is 4d2d04f7-3704-4eb1-8bf0-b10d4d030305
2024-08-24 02:14:50,223 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30126425:ctest-vn-96451025, 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-30126425:ctest-vn-96868915, 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-24 02:14:50,637 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd73295c7-5cad-4836-b752-9ad4029c9d60', 'name': 'ctest-vn-96451025', 'tenant_id': '3dbaef6026df4226acdf52bf8beae3a5', 'project_id': '3dbaef6026df4226acdf52bf8beae3a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0eacf74a-b552-4fc4-b056-c624eb083e11'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30126425', 'ctest-vn-96451025'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30126425', 'ctest-policy-allow-all-77070792']], 'subnet_ipam': [{'subnet_cidr': '24.215.63.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-24 02:14:51,068 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d2d04f7-3704-4eb1-8bf0-b10d4d030305', 'name': 'ctest-vn-96868915', 'tenant_id': '3dbaef6026df4226acdf52bf8beae3a5', 'project_id': '3dbaef6026df4226acdf52bf8beae3a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d6a416cf-ca23-4e9c-a447-34d207d826d9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30126425', 'ctest-vn-96868915'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30126425', 'ctest-policy-allow-all-77070792']], 'subnet_ipam': [{'subnet_cidr': '188.210.217.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-24 02:14:51,260 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-08-24 02:14:51,606 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-08-24 02:14:51,664 - DEBUG - Requesting: http://10.0.0.56:8082/domain/38e34c85-27f6-4855-8fd4-ed95e89e35ba
2024-08-24 02:14:51,695 - DEBUG - Requesting: http://10.0.0.56:8082/project/3dbaef60-26df-4226-acdf-52bf8beae3a5
2024-08-24 02:14:51,832 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d73295c7-5cad-4836-b752-9ad4029c9d60
2024-08-24 02:14:51,866 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d73295c7-5cad-4836-b752-9ad4029c9d60
2024-08-24 02:14:51,887 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/e62002f4-9a1a-4aec-90a8-b5f536cf6bdb
2024-08-24 02:14:51,903 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/e62002f4-9a1a-4aec-90a8-b5f536cf6bdb
2024-08-24 02:14:51,917 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/fe6b8b25-915f-49fc-9baa-93b72447c1ef
2024-08-24 02:14:51,932 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-24 02:14:51,932 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d73295c7-5cad-4836-b752-9ad4029c9d60
2024-08-24 02:14:51,954 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/e62002f4-9a1a-4aec-90a8-b5f536cf6bdb
2024-08-24 02:14:51,987 - INFO - Verified VN network id 8 for VN d73295c7-5cad-4836-b752-9ad4029c9d60
2024-08-24 02:14:51,987 - INFO - Verifications in API Server for VN ctest-vn-96451025 passed
2024-08-24 02:14:51,987 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d73295c7-5cad-4836-b752-9ad4029c9d60
2024-08-24 02:14:52,012 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/e62002f4-9a1a-4aec-90a8-b5f536cf6bdb
2024-08-24 02:14:52,032 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/e62002f4-9a1a-4aec-90a8-b5f536cf6bdb
2024-08-24 02:14:52,051 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/fe6b8b25-915f-49fc-9baa-93b72447c1ef
2024-08-24 02:14:52,083 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30126425:ctest-vn-96451025', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30126425', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15506621150475929654', 'uuid-lslong': '13209790892398648672'}, 'enable': 'true', 'created': '2024-08-24T02:14:48', 'last-modified': '2024-08-24T02:14:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.487041'}
2024-08-24 02:14:52,097 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-24 02:14:52,097 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96451025 passed
2024-08-24 02:14:52,099 - DEBUG - ====Verifying policy data for ctest-vn-96451025 in API_Server ======
2024-08-24 02:14:52,099 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-08-24 02:14:52,115 - DEBUG - Requesting: http://10.0.0.56:8082/domain/38e34c85-27f6-4855-8fd4-ed95e89e35ba
2024-08-24 02:14:52,147 - DEBUG - Requesting: http://10.0.0.56:8082/project/3dbaef60-26df-4226-acdf-52bf8beae3a5
2024-08-24 02:14:52,288 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d73295c7-5cad-4836-b752-9ad4029c9d60
2024-08-24 02:14:52,314 - DEBUG - ==>Verifying data for policy with id: 288ac0de-8ef7-4312-98e9-0a3fb24a3cb7, fqn: ['default-domain', 'ctest-TestBasicPolicy-30126425', 'ctest-policy-allow-all-77070792']
2024-08-24 02:14:52,314 - INFO - VN ctest-vn-96451025 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-24 02:14:52,314 - DEBUG - Verifying the vn in opserver
2024-08-24 02:14:52,315 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30126425:ctest-vn-96451025 virtual network link through opserver 10.0.0.56
2024-08-24 02:14:52,315 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2024-08-24 02:14:52,656 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2024-08-24 02:14:52,761 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30126425:ctest-vn-96451025', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30126425:ctest-vn-96451025?flat'}
2024-08-24 02:14:52,761 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30126425:ctest-vn-96451025 is found in opserver
2024-08-24 02:14:52,793 - DEBUG - Do not have enough data to verify VN in agent
2024-08-24 02:14:52,811 - DEBUG - VRF ids for VN ctest-vn-96451025: {}
2024-08-24 02:14:52,811 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-08-24 02:14:52,828 - DEBUG - Requesting: http://10.0.0.56:8082/domain/38e34c85-27f6-4855-8fd4-ed95e89e35ba
2024-08-24 02:14:52,872 - DEBUG - Requesting: http://10.0.0.56:8082/project/3dbaef60-26df-4226-acdf-52bf8beae3a5
2024-08-24 02:14:52,955 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/4d2d04f7-3704-4eb1-8bf0-b10d4d030305
2024-08-24 02:14:52,983 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/4d2d04f7-3704-4eb1-8bf0-b10d4d030305
2024-08-24 02:14:53,004 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/12226751-2d85-4358-ac65-8805e7647ee3
2024-08-24 02:14:53,023 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/12226751-2d85-4358-ac65-8805e7647ee3
2024-08-24 02:14:53,043 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/13f81dff-5657-4643-96f8-0b18809ae9ea
2024-08-24 02:14:53,062 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-24 02:14:53,063 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/4d2d04f7-3704-4eb1-8bf0-b10d4d030305
2024-08-24 02:14:53,082 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/12226751-2d85-4358-ac65-8805e7647ee3
2024-08-24 02:14:53,113 - INFO - Verified VN network id 9 for VN 4d2d04f7-3704-4eb1-8bf0-b10d4d030305
2024-08-24 02:14:53,113 - INFO - Verifications in API Server for VN ctest-vn-96868915 passed
2024-08-24 02:14:53,113 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/4d2d04f7-3704-4eb1-8bf0-b10d4d030305
2024-08-24 02:14:53,136 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/12226751-2d85-4358-ac65-8805e7647ee3
2024-08-24 02:14:53,153 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/12226751-2d85-4358-ac65-8805e7647ee3
2024-08-24 02:14:53,169 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/13f81dff-5657-4643-96f8-0b18809ae9ea
2024-08-24 02:14:53,195 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30126425:ctest-vn-96868915', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30126425', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5561106574698892977', 'uuid-lslong': '10083754236367274757'}, 'enable': 'true', 'created': '2024-08-24T02:14:49', 'last-modified': '2024-08-24T02:14:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.233788'}
2024-08-24 02:14:53,207 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-24 02:14:53,207 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96868915 passed
2024-08-24 02:14:53,207 - DEBUG - ====Verifying policy data for ctest-vn-96868915 in API_Server ======
2024-08-24 02:14:53,207 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2024-08-24 02:14:53,220 - DEBUG - Requesting: http://10.0.0.56:8082/domain/38e34c85-27f6-4855-8fd4-ed95e89e35ba
2024-08-24 02:14:53,257 - DEBUG - Requesting: http://10.0.0.56:8082/project/3dbaef60-26df-4226-acdf-52bf8beae3a5
2024-08-24 02:14:53,368 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/4d2d04f7-3704-4eb1-8bf0-b10d4d030305
2024-08-24 02:14:53,386 - DEBUG - ==>Verifying data for policy with id: 288ac0de-8ef7-4312-98e9-0a3fb24a3cb7, fqn: ['default-domain', 'ctest-TestBasicPolicy-30126425', 'ctest-policy-allow-all-77070792']
2024-08-24 02:14:53,386 - INFO - VN ctest-vn-96868915 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-24 02:14:53,386 - DEBUG - Verifying the vn in opserver
2024-08-24 02:14:53,386 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30126425:ctest-vn-96868915 virtual network link through opserver 10.0.0.56
2024-08-24 02:14:53,386 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2024-08-24 02:14:53,412 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30126425:ctest-vn-96868915', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30126425:ctest-vn-96868915?flat'}
2024-08-24 02:14:53,412 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30126425:ctest-vn-96868915 is found in opserver
2024-08-24 02:14:53,438 - DEBUG - Do not have enough data to verify VN in agent
2024-08-24 02:14:53,450 - DEBUG - VRF ids for VN ctest-vn-96868915: {}
2024-08-24 02:14:53,536 - DEBUG - Services list from nova: [