2024-08-27 04:43:24,851 - INFO - Domain Default found not creating
2024-08-27 04:43:25,043 - INFO - Project ctest-TestBasicPolicy-22634844 not found, creating it
2024-08-27 04:43:25,556 - INFO - Created Project:ctest-TestBasicPolicy-22634844, ID : d3d17b94-4ed3-4373-82a7-ae9dd8c69df3
2024-08-27 04:43:27,119 - INFO - ================================================================================
2024-08-27 04:43:27,120 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-27 04:43:27,120 - 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 04:43:27,379 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.23': '0'}} with
2024-08-27 04:43:27,379 - INFO - Initial checks done. Running the testcase now
2024-08-27 04:43:27,379 - INFO -
2024-08-27 04:43:27,957 - DEBUG - Response for create_network : {'network': {'id': '77b61fae-ea8b-428c-99a5-cb57623963de', 'name': 'ctest-vn-80332750', 'tenant_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'project_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22634844', 'ctest-vn-80332750'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 04:43:28,176 - DEBUG - Response for create_subnet : {'subnet': {'id': '49e5795a-6c46-4cc9-8ea1-5b22f8d4ab68', 'name': '', 'tenant_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'network_id': '77b61fae-ea8b-428c-99a5-cb57623963de', 'ip_version': 4, 'cidr': '65.6.247.0/26', 'allocation_pools': [{'start': '65.6.247.2', 'end': '65.6.247.62'}], 'gateway_ip': '65.6.247.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.6.247.2', 'tags': [], 'project_id': 'd3d17b944ed3437382a7ae9dd8c69df3'}}
2024-08-27 04:43:28,197 - INFO - Created VN ctest-vn-80332750
2024-08-27 04:43:28,248 - DEBUG - VN ctest-vn-80332750 UUID is 77b61fae-ea8b-428c-99a5-cb57623963de
2024-08-27 04:43:28,645 - DEBUG - Response for create_network : {'network': {'id': '6298d673-12fc-4135-9201-bcbbbc2834e4', 'name': 'ctest-vn-74387237', 'tenant_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'project_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22634844', 'ctest-vn-74387237'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 04:43:28,818 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c000c239-f346-43c4-9e84-1915b887e37e', 'name': '', 'tenant_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'network_id': '6298d673-12fc-4135-9201-bcbbbc2834e4', 'ip_version': 4, 'cidr': '218.27.161.0/26', 'allocation_pools': [{'start': '218.27.161.2', 'end': '218.27.161.62'}], 'gateway_ip': '218.27.161.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.27.161.2', 'tags': [], 'project_id': 'd3d17b944ed3437382a7ae9dd8c69df3'}}
2024-08-27 04:43:28,838 - INFO - Created VN ctest-vn-74387237
2024-08-27 04:43:28,892 - DEBUG - VN ctest-vn-74387237 UUID is 6298d673-12fc-4135-9201-bcbbbc2834e4
2024-08-27 04:43:29,014 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-80332750, 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-22634844:ctest-vn-74387237, 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 04:43:29,336 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '77b61fae-ea8b-428c-99a5-cb57623963de', 'name': 'ctest-vn-80332750', 'tenant_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'project_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49e5795a-6c46-4cc9-8ea1-5b22f8d4ab68'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22634844', 'ctest-vn-80332750'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22634844', 'ctest-policy-allow-all-90736801']], 'subnet_ipam': [{'subnet_cidr': '65.6.247.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 04:43:29,588 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6298d673-12fc-4135-9201-bcbbbc2834e4', 'name': 'ctest-vn-74387237', 'tenant_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'project_id': 'd3d17b944ed3437382a7ae9dd8c69df3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c000c239-f346-43c4-9e84-1915b887e37e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22634844', 'ctest-vn-74387237'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22634844', 'ctest-policy-allow-all-90736801']], 'subnet_ipam': [{'subnet_cidr': '218.27.161.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 04:43:29,776 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-08-27 04:43:30,076 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-08-27 04:43:30,113 - DEBUG - Requesting: http://10.0.0.45:8082/domain/3500bfaf-ad27-4522-bbe9-9655cb84d15f
2024-08-27 04:43:30,130 - DEBUG - Requesting: http://10.0.0.45:8082/project/d3d17b94-4ed3-4373-82a7-ae9dd8c69df3
2024-08-27 04:43:30,206 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/77b61fae-ea8b-428c-99a5-cb57623963de
2024-08-27 04:43:30,216 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/77b61fae-ea8b-428c-99a5-cb57623963de
2024-08-27 04:43:30,226 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1d126eb1-df76-4c90-ad4a-8659b11c88f2
2024-08-27 04:43:30,235 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1d126eb1-df76-4c90-ad4a-8659b11c88f2
2024-08-27 04:43:30,242 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/5db82a20-9f2d-49f0-8206-a2a59cc1f65f
2024-08-27 04:43:30,249 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 04:43:30,249 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/77b61fae-ea8b-428c-99a5-cb57623963de
2024-08-27 04:43:30,258 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1d126eb1-df76-4c90-ad4a-8659b11c88f2
2024-08-27 04:43:30,272 - INFO - Verified VN network id 8 for VN 77b61fae-ea8b-428c-99a5-cb57623963de
2024-08-27 04:43:30,273 - INFO - Verifications in API Server for VN ctest-vn-80332750 passed
2024-08-27 04:43:30,273 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/77b61fae-ea8b-428c-99a5-cb57623963de
2024-08-27 04:43:30,282 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1d126eb1-df76-4c90-ad4a-8659b11c88f2
2024-08-27 04:43:30,291 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/1d126eb1-df76-4c90-ad4a-8659b11c88f2
2024-08-27 04:43:30,304 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/5db82a20-9f2d-49f0-8206-a2a59cc1f65f
2024-08-27 04:43:30,324 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-80332750', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22634844', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8626116972394529420', 'uuid-lslong': '11071478835130754014'}, 'enable': 'true', 'created': '2024-08-27T04:43:27', 'last-modified': '2024-08-27T04:43:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.020863'}
2024-08-27 04:43:30,334 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 04:43:30,334 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80332750 passed
2024-08-27 04:43:30,334 - DEBUG - ====Verifying policy data for ctest-vn-80332750 in API_Server ======
2024-08-27 04:43:30,334 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-08-27 04:43:30,342 - DEBUG - Requesting: http://10.0.0.45:8082/domain/3500bfaf-ad27-4522-bbe9-9655cb84d15f
2024-08-27 04:43:30,357 - DEBUG - Requesting: http://10.0.0.45:8082/project/d3d17b94-4ed3-4373-82a7-ae9dd8c69df3
2024-08-27 04:43:30,435 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/77b61fae-ea8b-428c-99a5-cb57623963de
2024-08-27 04:43:30,444 - DEBUG - ==>Verifying data for policy with id: 96a9e43e-51a4-41fa-8a41-7d235514b042, fqn: ['default-domain', 'ctest-TestBasicPolicy-22634844', 'ctest-policy-allow-all-90736801']
2024-08-27 04:43:30,444 - INFO - VN ctest-vn-80332750 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 04:43:30,445 - DEBUG - Verifying the vn in opserver
2024-08-27 04:43:30,445 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-80332750 virtual network link through opserver 10.0.0.45
2024-08-27 04:43:30,445 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-08-27 04:43:30,742 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-08-27 04:43:30,814 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-80332750', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-80332750?flat'}
2024-08-27 04:43:30,814 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-80332750 is found in opserver
2024-08-27 04:43:30,828 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 04:43:30,834 - DEBUG - VRF ids for VN ctest-vn-80332750: {}
2024-08-27 04:43:30,834 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-08-27 04:43:30,841 - DEBUG - Requesting: http://10.0.0.45:8082/domain/3500bfaf-ad27-4522-bbe9-9655cb84d15f
2024-08-27 04:43:30,854 - DEBUG - Requesting: http://10.0.0.45:8082/project/d3d17b94-4ed3-4373-82a7-ae9dd8c69df3
2024-08-27 04:43:30,927 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6298d673-12fc-4135-9201-bcbbbc2834e4
2024-08-27 04:43:30,954 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6298d673-12fc-4135-9201-bcbbbc2834e4
2024-08-27 04:43:30,966 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/d5e21470-4ce6-4171-86c2-d9c4797eda0b
2024-08-27 04:43:30,977 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/d5e21470-4ce6-4171-86c2-d9c4797eda0b
2024-08-27 04:43:30,985 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/2245054b-3839-4147-affb-bb09b161a2bf
2024-08-27 04:43:30,992 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 04:43:30,992 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6298d673-12fc-4135-9201-bcbbbc2834e4
2024-08-27 04:43:31,001 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/d5e21470-4ce6-4171-86c2-d9c4797eda0b
2024-08-27 04:43:31,016 - INFO - Verified VN network id 9 for VN 6298d673-12fc-4135-9201-bcbbbc2834e4
2024-08-27 04:43:31,016 - INFO - Verifications in API Server for VN ctest-vn-74387237 passed
2024-08-27 04:43:31,016 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6298d673-12fc-4135-9201-bcbbbc2834e4
2024-08-27 04:43:31,026 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/d5e21470-4ce6-4171-86c2-d9c4797eda0b
2024-08-27 04:43:31,036 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/d5e21470-4ce6-4171-86c2-d9c4797eda0b
2024-08-27 04:43:31,044 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/2245054b-3839-4147-affb-bb09b161a2bf
2024-08-27 04:43:31,059 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-74387237', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22634844', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7104664201905062197', 'uuid-lslong': '10520897719015847140'}, 'enable': 'true', 'created': '2024-08-27T04:43:28', 'last-modified': '2024-08-27T04:43:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.492261'}
2024-08-27 04:43:31,066 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 04:43:31,066 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74387237 passed
2024-08-27 04:43:31,066 - DEBUG - ====Verifying policy data for ctest-vn-74387237 in API_Server ======
2024-08-27 04:43:31,066 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-08-27 04:43:31,073 - DEBUG - Requesting: http://10.0.0.45:8082/domain/3500bfaf-ad27-4522-bbe9-9655cb84d15f
2024-08-27 04:43:31,086 - DEBUG - Requesting: http://10.0.0.45:8082/project/d3d17b94-4ed3-4373-82a7-ae9dd8c69df3
2024-08-27 04:43:31,159 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6298d673-12fc-4135-9201-bcbbbc2834e4
2024-08-27 04:43:31,172 - DEBUG - ==>Verifying data for policy with id: 96a9e43e-51a4-41fa-8a41-7d235514b042, fqn: ['default-domain', 'ctest-TestBasicPolicy-22634844', 'ctest-policy-allow-all-90736801']
2024-08-27 04:43:31,172 - INFO - VN ctest-vn-74387237 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 04:43:31,172 - DEBUG - Verifying the vn in opserver
2024-08-27 04:43:31,172 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-74387237 virtual network link through opserver 10.0.0.45
2024-08-27 04:43:31,172 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-08-27 04:43:31,187 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-74387237', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-74387237?flat'}
2024-08-27 04:43:31,187 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22634844:ctest-vn-74387237 is found in opserver
2024-08-27 04:43:31,199 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 04:43:31,205 - DEBUG - VRF ids for VN ctest-vn-74387237: {}
2024-08-27 04:43:31,271 - DEBUG - Services list from nova: [