2024-09-19 18:44:07,104 - INFO - Domain Default found not creating
2024-09-19 18:44:07,516 - INFO - Project ctest-TestBasicPolicy-99559149 not found, creating it
2024-09-19 18:44:08,230 - INFO - Created Project:ctest-TestBasicPolicy-99559149, ID : 6e7bf022-bd20-44e1-aa26-fcd53e2b1e46
2024-09-19 18:44:10,633 - INFO - ================================================================================
2024-09-19 18:44:10,634 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-19 18:44:10,634 - 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-19 18:44:10,956 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.20': '0'}} with
2024-09-19 18:44:10,956 - INFO - Initial checks done. Running the testcase now
2024-09-19 18:44:10,956 - INFO -
2024-09-19 18:44:11,945 - DEBUG - Response for create_network : {'network': {'id': '08e6eecc-4789-4eee-991c-a817908ce842', 'name': 'ctest-vn-16428759', 'tenant_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'project_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99559149', 'ctest-vn-16428759'], 'port_security_enabled': True, 'description': ''}}
2024-09-19 18:44:12,237 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b616809a-a81b-48df-bcd3-c8a26495ffd5', 'name': '', 'tenant_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'network_id': '08e6eecc-4789-4eee-991c-a817908ce842', 'ip_version': 4, 'cidr': '24.91.78.128/26', 'allocation_pools': [{'start': '24.91.78.130', 'end': '24.91.78.190'}], 'gateway_ip': '24.91.78.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.91.78.130', 'tags': [], 'project_id': '6e7bf022bd2044e1aa26fcd53e2b1e46'}}
2024-09-19 18:44:12,283 - INFO - Created VN ctest-vn-16428759
2024-09-19 18:44:12,354 - DEBUG - VN ctest-vn-16428759 UUID is 08e6eecc-4789-4eee-991c-a817908ce842
2024-09-19 18:44:12,747 - DEBUG - Response for create_network : {'network': {'id': 'c27dd510-bccc-4584-8c60-cbbb3d22c782', 'name': 'ctest-vn-41390247', 'tenant_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'project_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99559149', 'ctest-vn-41390247'], 'port_security_enabled': True, 'description': ''}}
2024-09-19 18:44:12,991 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c176147e-a167-4c7c-a019-c768aec0e818', 'name': '', 'tenant_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'network_id': 'c27dd510-bccc-4584-8c60-cbbb3d22c782', 'ip_version': 4, 'cidr': '115.50.89.64/26', 'allocation_pools': [{'start': '115.50.89.66', 'end': '115.50.89.126'}], 'gateway_ip': '115.50.89.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.50.89.66', 'tags': [], 'project_id': '6e7bf022bd2044e1aa26fcd53e2b1e46'}}
2024-09-19 18:44:13,012 - INFO - Created VN ctest-vn-41390247
2024-09-19 18:44:13,074 - DEBUG - VN ctest-vn-41390247 UUID is c27dd510-bccc-4584-8c60-cbbb3d22c782
2024-09-19 18:44:13,263 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-16428759, 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-99559149:ctest-vn-41390247, 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-19 18:44:13,781 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '08e6eecc-4789-4eee-991c-a817908ce842', 'name': 'ctest-vn-16428759', 'tenant_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'project_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b616809a-a81b-48df-bcd3-c8a26495ffd5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99559149', 'ctest-vn-16428759'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99559149', 'ctest-policy-allow-all-42856460']], 'subnet_ipam': [{'subnet_cidr': '24.91.78.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-19 18:44:14,174 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c27dd510-bccc-4584-8c60-cbbb3d22c782', 'name': 'ctest-vn-41390247', 'tenant_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'project_id': '6e7bf022bd2044e1aa26fcd53e2b1e46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c176147e-a167-4c7c-a019-c768aec0e818'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99559149', 'ctest-vn-41390247'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99559149', 'ctest-policy-allow-all-42856460']], 'subnet_ipam': [{'subnet_cidr': '115.50.89.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-19 18:44:14,357 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-19 18:44:14,900 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-19 18:44:14,995 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f969ea6-b8e3-4725-81e4-b6b63e29d1fd
2024-09-19 18:44:15,045 - DEBUG - Requesting: http://10.0.0.31:8082/project/6e7bf022-bd20-44e1-aa26-fcd53e2b1e46
2024-09-19 18:44:15,125 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/08e6eecc-4789-4eee-991c-a817908ce842
2024-09-19 18:44:15,155 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/08e6eecc-4789-4eee-991c-a817908ce842
2024-09-19 18:44:15,179 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/75fa4af9-5c13-42f8-aed8-2db3da2b4aee
2024-09-19 18:44:15,195 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/75fa4af9-5c13-42f8-aed8-2db3da2b4aee
2024-09-19 18:44:15,216 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/85952d3f-f307-4d8c-9704-e958281d4c44
2024-09-19 18:44:15,231 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-19 18:44:15,231 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/08e6eecc-4789-4eee-991c-a817908ce842
2024-09-19 18:44:15,258 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/75fa4af9-5c13-42f8-aed8-2db3da2b4aee
2024-09-19 18:44:15,318 - INFO - Verified VN network id 8 for VN 08e6eecc-4789-4eee-991c-a817908ce842
2024-09-19 18:44:15,319 - INFO - Verifications in API Server for VN ctest-vn-16428759 passed
2024-09-19 18:44:15,319 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/08e6eecc-4789-4eee-991c-a817908ce842
2024-09-19 18:44:15,361 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/75fa4af9-5c13-42f8-aed8-2db3da2b4aee
2024-09-19 18:44:15,379 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/75fa4af9-5c13-42f8-aed8-2db3da2b4aee
2024-09-19 18:44:15,400 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/85952d3f-f307-4d8c-9704-e958281d4c44
2024-09-19 18:44:15,434 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-16428759', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99559149', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '641462558087794414', 'uuid-lslong': '11032878006313740354'}, 'enable': 'true', 'created': '2024-09-19T18:44:11', 'last-modified': '2024-09-19T18:44:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.696830'}
2024-09-19 18:44:15,454 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-19 18:44:15,455 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16428759 passed
2024-09-19 18:44:15,456 - DEBUG - ====Verifying policy data for ctest-vn-16428759 in API_Server ======
2024-09-19 18:44:15,456 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-19 18:44:15,478 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f969ea6-b8e3-4725-81e4-b6b63e29d1fd
2024-09-19 18:44:15,523 - DEBUG - Requesting: http://10.0.0.31:8082/project/6e7bf022-bd20-44e1-aa26-fcd53e2b1e46
2024-09-19 18:44:15,677 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/08e6eecc-4789-4eee-991c-a817908ce842
2024-09-19 18:44:15,716 - DEBUG - ==>Verifying data for policy with id: 33836a18-6ab5-4f99-bc41-3a1bca253d5f, fqn: ['default-domain', 'ctest-TestBasicPolicy-99559149', 'ctest-policy-allow-all-42856460']
2024-09-19 18:44:15,716 - INFO - VN ctest-vn-16428759 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-19 18:44:15,716 - DEBUG - Verifying the vn in opserver
2024-09-19 18:44:15,717 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-16428759 virtual network link through opserver 10.0.0.31
2024-09-19 18:44:15,717 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-09-19 18:44:16,034 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-09-19 18:44:16,140 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-16428759', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-16428759?flat'}
2024-09-19 18:44:16,140 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-16428759 is found in opserver
2024-09-19 18:44:16,169 - DEBUG - Do not have enough data to verify VN in agent
2024-09-19 18:44:16,175 - DEBUG - VRF ids for VN ctest-vn-16428759: {}
2024-09-19 18:44:16,175 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-19 18:44:16,185 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f969ea6-b8e3-4725-81e4-b6b63e29d1fd
2024-09-19 18:44:16,214 - DEBUG - Requesting: http://10.0.0.31:8082/project/6e7bf022-bd20-44e1-aa26-fcd53e2b1e46
2024-09-19 18:44:16,371 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/c27dd510-bccc-4584-8c60-cbbb3d22c782
2024-09-19 18:44:16,408 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/c27dd510-bccc-4584-8c60-cbbb3d22c782
2024-09-19 18:44:16,439 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4c114348-a5ae-4947-9685-adb39eb9080c
2024-09-19 18:44:16,459 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4c114348-a5ae-4947-9685-adb39eb9080c
2024-09-19 18:44:16,481 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/f8ad27b8-2743-4c60-a992-09001aabca95
2024-09-19 18:44:16,499 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-19 18:44:16,500 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/c27dd510-bccc-4584-8c60-cbbb3d22c782
2024-09-19 18:44:16,530 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4c114348-a5ae-4947-9685-adb39eb9080c
2024-09-19 18:44:16,569 - INFO - Verified VN network id 9 for VN c27dd510-bccc-4584-8c60-cbbb3d22c782
2024-09-19 18:44:16,570 - INFO - Verifications in API Server for VN ctest-vn-41390247 passed
2024-09-19 18:44:16,570 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/c27dd510-bccc-4584-8c60-cbbb3d22c782
2024-09-19 18:44:16,599 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4c114348-a5ae-4947-9685-adb39eb9080c
2024-09-19 18:44:16,620 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4c114348-a5ae-4947-9685-adb39eb9080c
2024-09-19 18:44:16,641 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/f8ad27b8-2743-4c60-a992-09001aabca95
2024-09-19 18:44:16,671 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-41390247', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99559149', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14014591883310548356', 'uuid-lslong': '10115308768119146370'}, 'enable': 'true', 'created': '2024-09-19T18:44:12', 'last-modified': '2024-09-19T18:44:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.574867'}
2024-09-19 18:44:16,686 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-19 18:44:16,686 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41390247 passed
2024-09-19 18:44:16,687 - DEBUG - ====Verifying policy data for ctest-vn-41390247 in API_Server ======
2024-09-19 18:44:16,687 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-09-19 18:44:16,701 - DEBUG - Requesting: http://10.0.0.31:8082/domain/1f969ea6-b8e3-4725-81e4-b6b63e29d1fd
2024-09-19 18:44:16,734 - DEBUG - Requesting: http://10.0.0.31:8082/project/6e7bf022-bd20-44e1-aa26-fcd53e2b1e46
2024-09-19 18:44:16,882 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/c27dd510-bccc-4584-8c60-cbbb3d22c782
2024-09-19 18:44:16,918 - DEBUG - ==>Verifying data for policy with id: 33836a18-6ab5-4f99-bc41-3a1bca253d5f, fqn: ['default-domain', 'ctest-TestBasicPolicy-99559149', 'ctest-policy-allow-all-42856460']
2024-09-19 18:44:16,918 - INFO - VN ctest-vn-41390247 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-19 18:44:16,918 - DEBUG - Verifying the vn in opserver
2024-09-19 18:44:16,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-41390247 virtual network link through opserver 10.0.0.31
2024-09-19 18:44:16,919 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-09-19 18:44:16,941 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-41390247', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-41390247?flat'}
2024-09-19 18:44:16,941 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99559149:ctest-vn-41390247 is found in opserver
2024-09-19 18:44:16,967 - DEBUG - Do not have enough data to verify VN in agent
2024-09-19 18:44:16,986 - DEBUG - VRF ids for VN ctest-vn-41390247: {}
2024-09-19 18:44:17,107 - DEBUG - Services list from nova: [