2024-08-21 14:45:23,626 - INFO - Domain Default found not creating
2024-08-21 14:45:23,799 - INFO - Project ctest-TestBasicPolicy-64524616 not found, creating it
2024-08-21 14:45:24,280 - INFO - Created Project:ctest-TestBasicPolicy-64524616, ID : 0986456e-7db7-4943-b83f-e78cd40f9723
2024-08-21 14:45:25,834 - INFO - ================================================================================
2024-08-21 14:45:25,835 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-21 14:45:25,835 - 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-21 14:45:26,090 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.5': '0'}} with
2024-08-21 14:45:26,090 - INFO - Initial checks done. Running the testcase now
2024-08-21 14:45:26,090 - INFO -
2024-08-21 14:45:26,645 - DEBUG - Response for create_network : {'network': {'id': '10a5e52e-54c4-4db3-998f-dd53dbdd9957', 'name': 'ctest-vn-70862688', 'tenant_id': '0986456e7db74943b83fe78cd40f9723', 'project_id': '0986456e7db74943b83fe78cd40f9723', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64524616', 'ctest-vn-70862688'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 14:45:26,799 - DEBUG - Response for create_subnet : {'subnet': {'id': '3af6c487-5042-438b-a7b7-e8aa76dd4a9a', 'name': '', 'tenant_id': '0986456e7db74943b83fe78cd40f9723', 'network_id': '10a5e52e-54c4-4db3-998f-dd53dbdd9957', 'ip_version': 4, 'cidr': '135.74.22.64/26', 'allocation_pools': [{'start': '135.74.22.66', 'end': '135.74.22.126'}], 'gateway_ip': '135.74.22.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.74.22.66', 'tags': [], 'project_id': '0986456e7db74943b83fe78cd40f9723'}}
2024-08-21 14:45:26,819 - INFO - Created VN ctest-vn-70862688
2024-08-21 14:45:26,869 - DEBUG - VN ctest-vn-70862688 UUID is 10a5e52e-54c4-4db3-998f-dd53dbdd9957
2024-08-21 14:45:27,176 - DEBUG - Response for create_network : {'network': {'id': '11553bd9-2721-47f7-a82f-b5f11c52e9c0', 'name': 'ctest-vn-13727542', 'tenant_id': '0986456e7db74943b83fe78cd40f9723', 'project_id': '0986456e7db74943b83fe78cd40f9723', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64524616', 'ctest-vn-13727542'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 14:45:27,384 - DEBUG - Response for create_subnet : {'subnet': {'id': '00a50c6d-9400-456b-b109-192f2776a4da', 'name': '', 'tenant_id': '0986456e7db74943b83fe78cd40f9723', 'network_id': '11553bd9-2721-47f7-a82f-b5f11c52e9c0', 'ip_version': 4, 'cidr': '186.253.1.64/26', 'allocation_pools': [{'start': '186.253.1.66', 'end': '186.253.1.126'}], 'gateway_ip': '186.253.1.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.253.1.66', 'tags': [], 'project_id': '0986456e7db74943b83fe78cd40f9723'}}
2024-08-21 14:45:27,404 - INFO - Created VN ctest-vn-13727542
2024-08-21 14:45:27,457 - DEBUG - VN ctest-vn-13727542 UUID is 11553bd9-2721-47f7-a82f-b5f11c52e9c0
2024-08-21 14:45:27,572 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-70862688, 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-64524616:ctest-vn-13727542, 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-21 14:45:27,866 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '10a5e52e-54c4-4db3-998f-dd53dbdd9957', 'name': 'ctest-vn-70862688', 'tenant_id': '0986456e7db74943b83fe78cd40f9723', 'project_id': '0986456e7db74943b83fe78cd40f9723', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3af6c487-5042-438b-a7b7-e8aa76dd4a9a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64524616', 'ctest-vn-70862688'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64524616', 'ctest-policy-allow-all-75333300']], 'subnet_ipam': [{'subnet_cidr': '135.74.22.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 14:45:28,104 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11553bd9-2721-47f7-a82f-b5f11c52e9c0', 'name': 'ctest-vn-13727542', 'tenant_id': '0986456e7db74943b83fe78cd40f9723', 'project_id': '0986456e7db74943b83fe78cd40f9723', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['00a50c6d-9400-456b-b109-192f2776a4da'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64524616', 'ctest-vn-13727542'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64524616', 'ctest-policy-allow-all-75333300']], 'subnet_ipam': [{'subnet_cidr': '186.253.1.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 14:45:28,272 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-08-21 14:45:28,569 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-08-21 14:45:28,603 - DEBUG - Requesting: http://10.0.0.33:8082/domain/faa00ce0-8b62-47bc-a31c-2243cdfd0b29
2024-08-21 14:45:28,616 - DEBUG - Requesting: http://10.0.0.33:8082/project/0986456e-7db7-4943-b83f-e78cd40f9723
2024-08-21 14:45:28,686 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10a5e52e-54c4-4db3-998f-dd53dbdd9957
2024-08-21 14:45:28,696 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10a5e52e-54c4-4db3-998f-dd53dbdd9957
2024-08-21 14:45:28,705 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fcbccac9-080c-4611-91ea-b8eee7fec21f
2024-08-21 14:45:28,712 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fcbccac9-080c-4611-91ea-b8eee7fec21f
2024-08-21 14:45:28,721 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4ae9b690-03ae-424a-b534-fff6f8031e56
2024-08-21 14:45:28,728 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 14:45:28,728 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10a5e52e-54c4-4db3-998f-dd53dbdd9957
2024-08-21 14:45:28,736 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fcbccac9-080c-4611-91ea-b8eee7fec21f
2024-08-21 14:45:28,748 - INFO - Verified VN network id 9 for VN 10a5e52e-54c4-4db3-998f-dd53dbdd9957
2024-08-21 14:45:28,748 - INFO - Verifications in API Server for VN ctest-vn-70862688 passed
2024-08-21 14:45:28,748 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10a5e52e-54c4-4db3-998f-dd53dbdd9957
2024-08-21 14:45:28,757 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fcbccac9-080c-4611-91ea-b8eee7fec21f
2024-08-21 14:45:28,763 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fcbccac9-080c-4611-91ea-b8eee7fec21f
2024-08-21 14:45:28,770 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4ae9b690-03ae-424a-b534-fff6f8031e56
2024-08-21 14:45:28,782 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-70862688', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64524616', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1199616862917512627', 'uuid-lslong': '11065306161713355095'}, 'enable': 'true', 'created': '2024-08-21T14:45:26', 'last-modified': '2024-08-21T14:45:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934885'}
2024-08-21 14:45:28,789 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 14:45:28,789 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70862688 passed
2024-08-21 14:45:28,789 - DEBUG - ====Verifying policy data for ctest-vn-70862688 in API_Server ======
2024-08-21 14:45:28,789 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-08-21 14:45:28,796 - DEBUG - Requesting: http://10.0.0.33:8082/domain/faa00ce0-8b62-47bc-a31c-2243cdfd0b29
2024-08-21 14:45:28,808 - DEBUG - Requesting: http://10.0.0.33:8082/project/0986456e-7db7-4943-b83f-e78cd40f9723
2024-08-21 14:45:28,873 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10a5e52e-54c4-4db3-998f-dd53dbdd9957
2024-08-21 14:45:28,881 - DEBUG - ==>Verifying data for policy with id: ede33556-76a1-496c-bdf2-cf7160c64c97, fqn: ['default-domain', 'ctest-TestBasicPolicy-64524616', 'ctest-policy-allow-all-75333300']
2024-08-21 14:45:28,881 - INFO - VN ctest-vn-70862688 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 14:45:28,881 - DEBUG - Verifying the vn in opserver
2024-08-21 14:45:28,881 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-70862688 virtual network link through opserver 10.0.0.33
2024-08-21 14:45:28,882 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-08-21 14:45:29,176 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-08-21 14:45:29,236 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-70862688', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-70862688?flat'}
2024-08-21 14:45:29,236 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-70862688 is found in opserver
2024-08-21 14:45:29,246 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 14:45:29,252 - DEBUG - VRF ids for VN ctest-vn-70862688: {}
2024-08-21 14:45:29,252 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-08-21 14:45:29,258 - DEBUG - Requesting: http://10.0.0.33:8082/domain/faa00ce0-8b62-47bc-a31c-2243cdfd0b29
2024-08-21 14:45:29,269 - DEBUG - Requesting: http://10.0.0.33:8082/project/0986456e-7db7-4943-b83f-e78cd40f9723
2024-08-21 14:45:29,337 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/11553bd9-2721-47f7-a82f-b5f11c52e9c0
2024-08-21 14:45:29,349 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/11553bd9-2721-47f7-a82f-b5f11c52e9c0
2024-08-21 14:45:29,357 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ef382add-ad82-4566-baa6-494fad4daf77
2024-08-21 14:45:29,364 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ef382add-ad82-4566-baa6-494fad4daf77
2024-08-21 14:45:29,371 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/62e2e275-feff-42f0-9f19-63b496d96e60
2024-08-21 14:45:29,377 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 14:45:29,377 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/11553bd9-2721-47f7-a82f-b5f11c52e9c0
2024-08-21 14:45:29,385 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ef382add-ad82-4566-baa6-494fad4daf77
2024-08-21 14:45:29,397 - INFO - Verified VN network id 10 for VN 11553bd9-2721-47f7-a82f-b5f11c52e9c0
2024-08-21 14:45:29,397 - INFO - Verifications in API Server for VN ctest-vn-13727542 passed
2024-08-21 14:45:29,397 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/11553bd9-2721-47f7-a82f-b5f11c52e9c0
2024-08-21 14:45:29,408 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ef382add-ad82-4566-baa6-494fad4daf77
2024-08-21 14:45:29,415 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ef382add-ad82-4566-baa6-494fad4daf77
2024-08-21 14:45:29,422 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/62e2e275-feff-42f0-9f19-63b496d96e60
2024-08-21 14:45:29,435 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-13727542', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64524616', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1248970275515615223', 'uuid-lslong': '12119105169444235712'}, 'enable': 'true', 'created': '2024-08-21T14:45:27', 'last-modified': '2024-08-21T14:45:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.352088'}
2024-08-21 14:45:29,442 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 14:45:29,442 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13727542 passed
2024-08-21 14:45:29,442 - DEBUG - ====Verifying policy data for ctest-vn-13727542 in API_Server ======
2024-08-21 14:45:29,442 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-08-21 14:45:29,449 - DEBUG - Requesting: http://10.0.0.33:8082/domain/faa00ce0-8b62-47bc-a31c-2243cdfd0b29
2024-08-21 14:45:29,461 - DEBUG - Requesting: http://10.0.0.33:8082/project/0986456e-7db7-4943-b83f-e78cd40f9723
2024-08-21 14:45:29,529 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/11553bd9-2721-47f7-a82f-b5f11c52e9c0
2024-08-21 14:45:29,537 - DEBUG - ==>Verifying data for policy with id: ede33556-76a1-496c-bdf2-cf7160c64c97, fqn: ['default-domain', 'ctest-TestBasicPolicy-64524616', 'ctest-policy-allow-all-75333300']
2024-08-21 14:45:29,537 - INFO - VN ctest-vn-13727542 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 14:45:29,537 - DEBUG - Verifying the vn in opserver
2024-08-21 14:45:29,537 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-13727542 virtual network link through opserver 10.0.0.33
2024-08-21 14:45:29,537 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-08-21 14:45:29,548 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-13727542', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-13727542?flat'}
2024-08-21 14:45:29,548 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-13727542 is found in opserver
2024-08-21 14:45:29,559 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 14:45:29,565 - DEBUG - VRF ids for VN ctest-vn-13727542: {}
2024-08-21 14:45:29,618 - DEBUG - Services list from nova: [