2024-10-23 18:07:50,882 - INFO - Domain Default found not creating
2024-10-23 18:07:51,095 - INFO - Project ctest-TestBasicPolicy-08874671 not found, creating it
2024-10-23 18:07:51,796 - INFO - Created Project:ctest-TestBasicPolicy-08874671, ID : 914132cc-2bb9-470b-8deb-0212787fe852
2024-10-23 18:07:53,419 - INFO - ================================================================================
2024-10-23 18:07:53,419 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-23 18:07:53,420 - 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-10-23 18:07:53,682 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.6': '0'}} with
2024-10-23 18:07:53,682 - INFO - Initial checks done. Running the testcase now
2024-10-23 18:07:53,682 - INFO -
2024-10-23 18:07:54,348 - DEBUG - Response for create_network : {'network': {'id': '27301014-6b31-4e8d-bb85-b00b7b8f2465', 'name': 'ctest-vn-59896120', 'tenant_id': '914132cc2bb9470b8deb0212787fe852', 'project_id': '914132cc2bb9470b8deb0212787fe852', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08874671', 'ctest-vn-59896120'], 'port_security_enabled': True, 'description': ''}}
2024-10-23 18:07:54,612 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6c08d77-9b6a-453e-9b24-f287b7f7cfa5', 'name': '', 'tenant_id': '914132cc2bb9470b8deb0212787fe852', 'network_id': '27301014-6b31-4e8d-bb85-b00b7b8f2465', 'ip_version': 4, 'cidr': '149.174.214.0/26', 'allocation_pools': [{'start': '149.174.214.2', 'end': '149.174.214.62'}], 'gateway_ip': '149.174.214.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.174.214.2', 'tags': [], 'project_id': '914132cc2bb9470b8deb0212787fe852'}}
2024-10-23 18:07:54,634 - INFO - Created VN ctest-vn-59896120
2024-10-23 18:07:54,694 - DEBUG - VN ctest-vn-59896120 UUID is 27301014-6b31-4e8d-bb85-b00b7b8f2465
2024-10-23 18:07:55,043 - DEBUG - Response for create_network : {'network': {'id': '3aaa3e13-922b-47c0-931f-8de41288ca6c', 'name': 'ctest-vn-85429427', 'tenant_id': '914132cc2bb9470b8deb0212787fe852', 'project_id': '914132cc2bb9470b8deb0212787fe852', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08874671', 'ctest-vn-85429427'], 'port_security_enabled': True, 'description': ''}}
2024-10-23 18:07:55,273 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba14e682-3bca-4f9b-b96e-18daf3b24235', 'name': '', 'tenant_id': '914132cc2bb9470b8deb0212787fe852', 'network_id': '3aaa3e13-922b-47c0-931f-8de41288ca6c', 'ip_version': 4, 'cidr': '144.161.78.0/26', 'allocation_pools': [{'start': '144.161.78.2', 'end': '144.161.78.62'}], 'gateway_ip': '144.161.78.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.161.78.2', 'tags': [], 'project_id': '914132cc2bb9470b8deb0212787fe852'}}
2024-10-23 18:07:55,295 - INFO - Created VN ctest-vn-85429427
2024-10-23 18:07:55,358 - DEBUG - VN ctest-vn-85429427 UUID is 3aaa3e13-922b-47c0-931f-8de41288ca6c
2024-10-23 18:07:55,501 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-59896120, 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-08874671:ctest-vn-85429427, 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-10-23 18:07:55,901 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '27301014-6b31-4e8d-bb85-b00b7b8f2465', 'name': 'ctest-vn-59896120', 'tenant_id': '914132cc2bb9470b8deb0212787fe852', 'project_id': '914132cc2bb9470b8deb0212787fe852', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c6c08d77-9b6a-453e-9b24-f287b7f7cfa5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08874671', 'ctest-vn-59896120'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08874671', 'ctest-policy-allow-all-15992487']], 'subnet_ipam': [{'subnet_cidr': '149.174.214.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-23 18:07:56,195 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3aaa3e13-922b-47c0-931f-8de41288ca6c', 'name': 'ctest-vn-85429427', 'tenant_id': '914132cc2bb9470b8deb0212787fe852', 'project_id': '914132cc2bb9470b8deb0212787fe852', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ba14e682-3bca-4f9b-b96e-18daf3b24235'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08874671', 'ctest-vn-85429427'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08874671', 'ctest-policy-allow-all-15992487']], 'subnet_ipam': [{'subnet_cidr': '144.161.78.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-23 18:07:56,382 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-10-23 18:07:56,700 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-10-23 18:07:56,744 - DEBUG - Requesting: http://10.0.0.45:8082/domain/563e2a4a-ad82-46b3-aa7a-3322071980c9
2024-10-23 18:07:56,767 - DEBUG - Requesting: http://10.0.0.45:8082/project/914132cc-2bb9-470b-8deb-0212787fe852
2024-10-23 18:07:56,867 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/27301014-6b31-4e8d-bb85-b00b7b8f2465
2024-10-23 18:07:56,885 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/27301014-6b31-4e8d-bb85-b00b7b8f2465
2024-10-23 18:07:56,902 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/72bc4571-f1ba-452c-8521-9c7e154b72d4
2024-10-23 18:07:56,914 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/72bc4571-f1ba-452c-8521-9c7e154b72d4
2024-10-23 18:07:56,926 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/73404013-65b2-4e35-b4ed-94cb7bd3932c
2024-10-23 18:07:56,936 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-23 18:07:56,936 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/27301014-6b31-4e8d-bb85-b00b7b8f2465
2024-10-23 18:07:56,957 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/72bc4571-f1ba-452c-8521-9c7e154b72d4
2024-10-23 18:07:56,984 - INFO - Verified VN network id 7 for VN 27301014-6b31-4e8d-bb85-b00b7b8f2465
2024-10-23 18:07:56,984 - INFO - Verifications in API Server for VN ctest-vn-59896120 passed
2024-10-23 18:07:56,984 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/27301014-6b31-4e8d-bb85-b00b7b8f2465
2024-10-23 18:07:57,005 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/72bc4571-f1ba-452c-8521-9c7e154b72d4
2024-10-23 18:07:57,017 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/72bc4571-f1ba-452c-8521-9c7e154b72d4
2024-10-23 18:07:57,029 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/73404013-65b2-4e35-b4ed-94cb7bd3932c
2024-10-23 18:07:57,049 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-59896120', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08874671', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2823774646245084813', 'uuid-lslong': '13512399820359148645'}, 'enable': 'true', 'created': '2024-10-23T18:07:54', 'last-modified': '2024-10-23T18:07:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.209154'}
2024-10-23 18:07:57,059 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-23 18:07:57,059 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59896120 passed
2024-10-23 18:07:57,059 - DEBUG - ====Verifying policy data for ctest-vn-59896120 in API_Server ======
2024-10-23 18:07:57,059 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-10-23 18:07:57,071 - DEBUG - Requesting: http://10.0.0.45:8082/domain/563e2a4a-ad82-46b3-aa7a-3322071980c9
2024-10-23 18:07:57,087 - DEBUG - Requesting: http://10.0.0.45:8082/project/914132cc-2bb9-470b-8deb-0212787fe852
2024-10-23 18:07:57,173 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/27301014-6b31-4e8d-bb85-b00b7b8f2465
2024-10-23 18:07:57,191 - DEBUG - ==>Verifying data for policy with id: ff8f61da-de4c-42ad-9302-d188c656fa22, fqn: ['default-domain', 'ctest-TestBasicPolicy-08874671', 'ctest-policy-allow-all-15992487']
2024-10-23 18:07:57,191 - INFO - VN ctest-vn-59896120 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-23 18:07:57,191 - DEBUG - Verifying the vn in opserver
2024-10-23 18:07:57,191 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-59896120 virtual network link through opserver 10.0.0.45
2024-10-23 18:07:57,192 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-10-23 18:07:57,502 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-10-23 18:07:57,589 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-59896120', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-59896120?flat'}
2024-10-23 18:07:57,589 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-59896120 is found in opserver
2024-10-23 18:07:57,608 - DEBUG - Do not have enough data to verify VN in agent
2024-10-23 18:07:57,618 - DEBUG - VRF ids for VN ctest-vn-59896120: {}
2024-10-23 18:07:57,618 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-10-23 18:07:57,626 - DEBUG - Requesting: http://10.0.0.45:8082/domain/563e2a4a-ad82-46b3-aa7a-3322071980c9
2024-10-23 18:07:57,644 - DEBUG - Requesting: http://10.0.0.45:8082/project/914132cc-2bb9-470b-8deb-0212787fe852
2024-10-23 18:07:57,735 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/3aaa3e13-922b-47c0-931f-8de41288ca6c
2024-10-23 18:07:57,757 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/3aaa3e13-922b-47c0-931f-8de41288ca6c
2024-10-23 18:07:57,775 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/12bb270f-6d8a-4dc7-9c8a-d84c8619fe6a
2024-10-23 18:07:57,786 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/12bb270f-6d8a-4dc7-9c8a-d84c8619fe6a
2024-10-23 18:07:57,799 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/11708b6e-177a-49f7-8f0c-50eb8f7480f0
2024-10-23 18:07:57,809 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-23 18:07:57,809 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/3aaa3e13-922b-47c0-931f-8de41288ca6c
2024-10-23 18:07:57,829 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/12bb270f-6d8a-4dc7-9c8a-d84c8619fe6a
2024-10-23 18:07:57,860 - INFO - Verified VN network id 8 for VN 3aaa3e13-922b-47c0-931f-8de41288ca6c
2024-10-23 18:07:57,860 - INFO - Verifications in API Server for VN ctest-vn-85429427 passed
2024-10-23 18:07:57,861 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/3aaa3e13-922b-47c0-931f-8de41288ca6c
2024-10-23 18:07:57,885 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/12bb270f-6d8a-4dc7-9c8a-d84c8619fe6a
2024-10-23 18:07:57,901 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/12bb270f-6d8a-4dc7-9c8a-d84c8619fe6a
2024-10-23 18:07:57,915 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/11708b6e-177a-49f7-8f0c-50eb8f7480f0
2024-10-23 18:07:57,935 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-85429427', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08874671', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4227259454018242496', 'uuid-lslong': '10601348058556451436'}, 'enable': 'true', 'created': '2024-10-23T18:07:55', 'last-modified': '2024-10-23T18:07:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.782435'}
2024-10-23 18:07:57,945 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-23 18:07:57,946 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85429427 passed
2024-10-23 18:07:57,947 - DEBUG - ====Verifying policy data for ctest-vn-85429427 in API_Server ======
2024-10-23 18:07:57,947 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-10-23 18:07:57,955 - DEBUG - Requesting: http://10.0.0.45:8082/domain/563e2a4a-ad82-46b3-aa7a-3322071980c9
2024-10-23 18:07:57,976 - DEBUG - Requesting: http://10.0.0.45:8082/project/914132cc-2bb9-470b-8deb-0212787fe852
2024-10-23 18:07:58,067 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/3aaa3e13-922b-47c0-931f-8de41288ca6c
2024-10-23 18:07:58,084 - DEBUG - ==>Verifying data for policy with id: ff8f61da-de4c-42ad-9302-d188c656fa22, fqn: ['default-domain', 'ctest-TestBasicPolicy-08874671', 'ctest-policy-allow-all-15992487']
2024-10-23 18:07:58,084 - INFO - VN ctest-vn-85429427 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-23 18:07:58,085 - DEBUG - Verifying the vn in opserver
2024-10-23 18:07:58,085 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-85429427 virtual network link through opserver 10.0.0.45
2024-10-23 18:07:58,085 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-10-23 18:07:58,101 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-85429427', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-85429427?flat'}
2024-10-23 18:07:58,101 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08874671:ctest-vn-85429427 is found in opserver
2024-10-23 18:07:58,120 - DEBUG - Do not have enough data to verify VN in agent
2024-10-23 18:07:58,130 - DEBUG - VRF ids for VN ctest-vn-85429427: {}
2024-10-23 18:07:58,205 - DEBUG - Services list from nova: [