2024-08-29 21:02:36,674 - INFO - Domain Default found not creating
2024-08-29 21:02:37,116 - INFO - Project ctest-TestBasicPolicy-90613903 not found, creating it
2024-08-29 21:02:37,900 - INFO - Created Project:ctest-TestBasicPolicy-90613903, ID : 27c576df-2b82-4457-984a-40f1d3c73ac4
2024-08-29 21:02:40,286 - INFO - ================================================================================
2024-08-29 21:02:40,286 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-29 21:02:40,287 - 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-29 21:02:40,646 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.10': '0'}} with
2024-08-29 21:02:40,646 - INFO - Initial checks done. Running the testcase now
2024-08-29 21:02:40,646 - INFO -
2024-08-29 21:02:41,537 - DEBUG - Response for create_network : {'network': {'id': '755997f5-afae-4c38-b298-cc7e81045d62', 'name': 'ctest-vn-53165915', 'tenant_id': '27c576df2b824457984a40f1d3c73ac4', 'project_id': '27c576df2b824457984a40f1d3c73ac4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90613903', 'ctest-vn-53165915'], 'port_security_enabled': True, 'description': ''}}
2024-08-29 21:02:41,806 - DEBUG - Response for create_subnet : {'subnet': {'id': '190d5f0e-a8dc-42f8-83dc-073ee7ad7b7c', 'name': '', 'tenant_id': '27c576df2b824457984a40f1d3c73ac4', 'network_id': '755997f5-afae-4c38-b298-cc7e81045d62', 'ip_version': 4, 'cidr': '49.228.42.0/26', 'allocation_pools': [{'start': '49.228.42.2', 'end': '49.228.42.62'}], 'gateway_ip': '49.228.42.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.228.42.2', 'tags': [], 'project_id': '27c576df2b824457984a40f1d3c73ac4'}}
2024-08-29 21:02:41,846 - INFO - Created VN ctest-vn-53165915
2024-08-29 21:02:41,903 - DEBUG - VN ctest-vn-53165915 UUID is 755997f5-afae-4c38-b298-cc7e81045d62
2024-08-29 21:02:42,388 - DEBUG - Response for create_network : {'network': {'id': '2caf5e91-5eb6-4b7e-b943-9564a49a78e4', 'name': 'ctest-vn-88573300', 'tenant_id': '27c576df2b824457984a40f1d3c73ac4', 'project_id': '27c576df2b824457984a40f1d3c73ac4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90613903', 'ctest-vn-88573300'], 'port_security_enabled': True, 'description': ''}}
2024-08-29 21:02:42,644 - DEBUG - Response for create_subnet : {'subnet': {'id': '98846fb6-e1e9-4cea-8eb3-efdd3c9f2038', 'name': '', 'tenant_id': '27c576df2b824457984a40f1d3c73ac4', 'network_id': '2caf5e91-5eb6-4b7e-b943-9564a49a78e4', 'ip_version': 4, 'cidr': '66.37.132.0/26', 'allocation_pools': [{'start': '66.37.132.2', 'end': '66.37.132.62'}], 'gateway_ip': '66.37.132.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.37.132.2', 'tags': [], 'project_id': '27c576df2b824457984a40f1d3c73ac4'}}
2024-08-29 21:02:42,667 - INFO - Created VN ctest-vn-88573300
2024-08-29 21:02:42,720 - DEBUG - VN ctest-vn-88573300 UUID is 2caf5e91-5eb6-4b7e-b943-9564a49a78e4
2024-08-29 21:02:42,894 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-53165915, 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-90613903:ctest-vn-88573300, 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-29 21:02:43,365 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '755997f5-afae-4c38-b298-cc7e81045d62', 'name': 'ctest-vn-53165915', 'tenant_id': '27c576df2b824457984a40f1d3c73ac4', 'project_id': '27c576df2b824457984a40f1d3c73ac4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['190d5f0e-a8dc-42f8-83dc-073ee7ad7b7c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90613903', 'ctest-vn-53165915'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90613903', 'ctest-policy-allow-all-28423740']], 'subnet_ipam': [{'subnet_cidr': '49.228.42.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-29 21:02:43,737 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2caf5e91-5eb6-4b7e-b943-9564a49a78e4', 'name': 'ctest-vn-88573300', 'tenant_id': '27c576df2b824457984a40f1d3c73ac4', 'project_id': '27c576df2b824457984a40f1d3c73ac4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['98846fb6-e1e9-4cea-8eb3-efdd3c9f2038'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90613903', 'ctest-vn-88573300'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90613903', 'ctest-policy-allow-all-28423740']], 'subnet_ipam': [{'subnet_cidr': '66.37.132.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-29 21:02:43,879 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-08-29 21:02:44,232 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-08-29 21:02:44,279 - DEBUG - Requesting: http://10.0.0.52:8082/domain/24b399ab-0b2d-4476-a0fb-487312f1ca60
2024-08-29 21:02:44,293 - DEBUG - Requesting: http://10.0.0.52:8082/project/27c576df-2b82-4457-984a-40f1d3c73ac4
2024-08-29 21:02:44,387 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/755997f5-afae-4c38-b298-cc7e81045d62
2024-08-29 21:02:44,403 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/755997f5-afae-4c38-b298-cc7e81045d62
2024-08-29 21:02:44,413 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/66e47fc2-7fc7-421b-bc99-c628f6cb83ce
2024-08-29 21:02:44,429 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/66e47fc2-7fc7-421b-bc99-c628f6cb83ce
2024-08-29 21:02:44,450 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/5898e7c7-081f-4b72-afe4-c406847ed77f
2024-08-29 21:02:44,466 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-29 21:02:44,467 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/755997f5-afae-4c38-b298-cc7e81045d62
2024-08-29 21:02:44,484 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/66e47fc2-7fc7-421b-bc99-c628f6cb83ce
2024-08-29 21:02:44,506 - INFO - Verified VN network id 8 for VN 755997f5-afae-4c38-b298-cc7e81045d62
2024-08-29 21:02:44,507 - INFO - Verifications in API Server for VN ctest-vn-53165915 passed
2024-08-29 21:02:44,507 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/755997f5-afae-4c38-b298-cc7e81045d62
2024-08-29 21:02:44,520 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/66e47fc2-7fc7-421b-bc99-c628f6cb83ce
2024-08-29 21:02:44,532 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/66e47fc2-7fc7-421b-bc99-c628f6cb83ce
2024-08-29 21:02:44,542 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/5898e7c7-081f-4b72-afe4-c406847ed77f
2024-08-29 21:02:44,562 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-53165915', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90613903', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8455956856835034168', 'uuid-lslong': '12869260778913684834'}, 'enable': 'true', 'created': '2024-08-29T21:02:41', 'last-modified': '2024-08-29T21:02:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.260652'}
2024-08-29 21:02:44,572 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-29 21:02:44,572 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53165915 passed
2024-08-29 21:02:44,573 - DEBUG - ====Verifying policy data for ctest-vn-53165915 in API_Server ======
2024-08-29 21:02:44,573 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-08-29 21:02:44,584 - DEBUG - Requesting: http://10.0.0.52:8082/domain/24b399ab-0b2d-4476-a0fb-487312f1ca60
2024-08-29 21:02:44,612 - DEBUG - Requesting: http://10.0.0.52:8082/project/27c576df-2b82-4457-984a-40f1d3c73ac4
2024-08-29 21:02:44,731 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/755997f5-afae-4c38-b298-cc7e81045d62
2024-08-29 21:02:44,757 - DEBUG - ==>Verifying data for policy with id: 5b157fe6-97a1-4b2d-add6-690730b66b4d, fqn: ['default-domain', 'ctest-TestBasicPolicy-90613903', 'ctest-policy-allow-all-28423740']
2024-08-29 21:02:44,758 - INFO - VN ctest-vn-53165915 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-29 21:02:44,758 - DEBUG - Verifying the vn in opserver
2024-08-29 21:02:44,758 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-53165915 virtual network link through opserver 10.0.0.52
2024-08-29 21:02:44,758 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2024-08-29 21:02:45,119 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2024-08-29 21:02:45,221 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-53165915', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-53165915?flat'}
2024-08-29 21:02:45,221 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-53165915 is found in opserver
2024-08-29 21:02:45,244 - DEBUG - Do not have enough data to verify VN in agent
2024-08-29 21:02:45,254 - DEBUG - VRF ids for VN ctest-vn-53165915: {}
2024-08-29 21:02:45,254 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-08-29 21:02:45,262 - DEBUG - Requesting: http://10.0.0.52:8082/domain/24b399ab-0b2d-4476-a0fb-487312f1ca60
2024-08-29 21:02:45,281 - DEBUG - Requesting: http://10.0.0.52:8082/project/27c576df-2b82-4457-984a-40f1d3c73ac4
2024-08-29 21:02:45,381 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2caf5e91-5eb6-4b7e-b943-9564a49a78e4
2024-08-29 21:02:45,396 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2caf5e91-5eb6-4b7e-b943-9564a49a78e4
2024-08-29 21:02:45,409 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/44fbd43c-c8dc-480e-ab08-a012535dcff1
2024-08-29 21:02:45,419 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/44fbd43c-c8dc-480e-ab08-a012535dcff1
2024-08-29 21:02:45,429 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/94e5a766-0621-42ac-a7e0-4da4ef217d7a
2024-08-29 21:02:45,437 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-29 21:02:45,438 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2caf5e91-5eb6-4b7e-b943-9564a49a78e4
2024-08-29 21:02:45,449 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/44fbd43c-c8dc-480e-ab08-a012535dcff1
2024-08-29 21:02:45,466 - INFO - Verified VN network id 9 for VN 2caf5e91-5eb6-4b7e-b943-9564a49a78e4
2024-08-29 21:02:45,466 - INFO - Verifications in API Server for VN ctest-vn-88573300 passed
2024-08-29 21:02:45,466 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2caf5e91-5eb6-4b7e-b943-9564a49a78e4
2024-08-29 21:02:45,481 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/44fbd43c-c8dc-480e-ab08-a012535dcff1
2024-08-29 21:02:45,492 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/44fbd43c-c8dc-480e-ab08-a012535dcff1
2024-08-29 21:02:45,501 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/94e5a766-0621-42ac-a7e0-4da4ef217d7a
2024-08-29 21:02:45,519 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-88573300', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90613903', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3219896237045468030', 'uuid-lslong': '13349677979947137252'}, 'enable': 'true', 'created': '2024-08-29T21:02:42', 'last-modified': '2024-08-29T21:02:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.873515'}
2024-08-29 21:02:45,528 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-29 21:02:45,528 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88573300 passed
2024-08-29 21:02:45,528 - DEBUG - ====Verifying policy data for ctest-vn-88573300 in API_Server ======
2024-08-29 21:02:45,528 - DEBUG - Requesting: http://10.0.0.52:8082/domains
2024-08-29 21:02:45,535 - DEBUG - Requesting: http://10.0.0.52:8082/domain/24b399ab-0b2d-4476-a0fb-487312f1ca60
2024-08-29 21:02:45,558 - DEBUG - Requesting: http://10.0.0.52:8082/project/27c576df-2b82-4457-984a-40f1d3c73ac4
2024-08-29 21:02:45,653 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2caf5e91-5eb6-4b7e-b943-9564a49a78e4
2024-08-29 21:02:45,668 - DEBUG - ==>Verifying data for policy with id: 5b157fe6-97a1-4b2d-add6-690730b66b4d, fqn: ['default-domain', 'ctest-TestBasicPolicy-90613903', 'ctest-policy-allow-all-28423740']
2024-08-29 21:02:45,668 - INFO - VN ctest-vn-88573300 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-29 21:02:45,669 - DEBUG - Verifying the vn in opserver
2024-08-29 21:02:45,669 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-88573300 virtual network link through opserver 10.0.0.52
2024-08-29 21:02:45,669 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks
2024-08-29 21:02:45,688 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-88573300', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-88573300?flat'}
2024-08-29 21:02:45,688 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90613903:ctest-vn-88573300 is found in opserver
2024-08-29 21:02:45,706 - DEBUG - Do not have enough data to verify VN in agent
2024-08-29 21:02:45,713 - DEBUG - VRF ids for VN ctest-vn-88573300: {}
2024-08-29 21:02:45,777 - DEBUG - Services list from nova: [