2024-10-25 17:15:19,701 - INFO - Domain Default found not creating
2024-10-25 17:15:19,890 - INFO - Project ctest-TestBasicPolicy-88739162 not found, creating it
2024-10-25 17:15:20,430 - INFO - Created Project:ctest-TestBasicPolicy-88739162, ID : a1056908-8dac-4a42-a055-10813e6755e6
2024-10-25 17:15:22,074 - INFO - ================================================================================
2024-10-25 17:15:22,074 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-25 17:15:22,074 - 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-25 17:15:22,343 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.7': '0'}} with
2024-10-25 17:15:22,343 - INFO - Initial checks done. Running the testcase now
2024-10-25 17:15:22,343 - INFO -
2024-10-25 17:15:22,980 - DEBUG - Response for create_network : {'network': {'id': 'ddb94766-e1c5-46a7-a7ce-2aec7ff491f2', 'name': 'ctest-vn-31964266', 'tenant_id': 'a10569088dac4a42a05510813e6755e6', 'project_id': 'a10569088dac4a42a05510813e6755e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88739162', 'ctest-vn-31964266'], 'port_security_enabled': True, 'description': ''}}
2024-10-25 17:15:23,199 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b69dee43-4abb-4129-a3a6-30e705552e78', 'name': '', 'tenant_id': 'a10569088dac4a42a05510813e6755e6', 'network_id': 'ddb94766-e1c5-46a7-a7ce-2aec7ff491f2', 'ip_version': 4, 'cidr': '26.214.54.0/26', 'allocation_pools': [{'start': '26.214.54.2', 'end': '26.214.54.62'}], 'gateway_ip': '26.214.54.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.214.54.2', 'tags': [], 'project_id': 'a10569088dac4a42a05510813e6755e6'}}
2024-10-25 17:15:23,220 - INFO - Created VN ctest-vn-31964266
2024-10-25 17:15:23,282 - DEBUG - VN ctest-vn-31964266 UUID is ddb94766-e1c5-46a7-a7ce-2aec7ff491f2
2024-10-25 17:15:23,617 - DEBUG - Response for create_network : {'network': {'id': '791db36a-483a-4dbc-a703-f71dd95d7999', 'name': 'ctest-vn-55585138', 'tenant_id': 'a10569088dac4a42a05510813e6755e6', 'project_id': 'a10569088dac4a42a05510813e6755e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88739162', 'ctest-vn-55585138'], 'port_security_enabled': True, 'description': ''}}
2024-10-25 17:15:23,778 - DEBUG - Response for create_subnet : {'subnet': {'id': '2fe2dcf1-86b9-44a3-8709-02e20d5a5a69', 'name': '', 'tenant_id': 'a10569088dac4a42a05510813e6755e6', 'network_id': '791db36a-483a-4dbc-a703-f71dd95d7999', 'ip_version': 4, 'cidr': '99.155.216.128/26', 'allocation_pools': [{'start': '99.155.216.130', 'end': '99.155.216.190'}], 'gateway_ip': '99.155.216.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.155.216.130', 'tags': [], 'project_id': 'a10569088dac4a42a05510813e6755e6'}}
2024-10-25 17:15:23,800 - INFO - Created VN ctest-vn-55585138
2024-10-25 17:15:23,858 - DEBUG - VN ctest-vn-55585138 UUID is 791db36a-483a-4dbc-a703-f71dd95d7999
2024-10-25 17:15:23,985 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88739162:ctest-vn-31964266, 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-88739162:ctest-vn-55585138, 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-25 17:15:24,317 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ddb94766-e1c5-46a7-a7ce-2aec7ff491f2', 'name': 'ctest-vn-31964266', 'tenant_id': 'a10569088dac4a42a05510813e6755e6', 'project_id': 'a10569088dac4a42a05510813e6755e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b69dee43-4abb-4129-a3a6-30e705552e78'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88739162', 'ctest-vn-31964266'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88739162', 'ctest-policy-allow-all-50498728']], 'subnet_ipam': [{'subnet_cidr': '26.214.54.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-25 17:15:24,633 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '791db36a-483a-4dbc-a703-f71dd95d7999', 'name': 'ctest-vn-55585138', 'tenant_id': 'a10569088dac4a42a05510813e6755e6', 'project_id': 'a10569088dac4a42a05510813e6755e6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2fe2dcf1-86b9-44a3-8709-02e20d5a5a69'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88739162', 'ctest-vn-55585138'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88739162', 'ctest-policy-allow-all-50498728']], 'subnet_ipam': [{'subnet_cidr': '99.155.216.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-25 17:15:24,786 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-25 17:15:25,100 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-25 17:15:25,133 - DEBUG - Requesting: http://10.0.0.32:8082/domain/5e24c51b-3750-4985-a038-61a12c05c2aa
2024-10-25 17:15:25,149 - DEBUG - Requesting: http://10.0.0.32:8082/project/a1056908-8dac-4a42-a055-10813e6755e6
2024-10-25 17:15:25,232 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/ddb94766-e1c5-46a7-a7ce-2aec7ff491f2
2024-10-25 17:15:25,250 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/ddb94766-e1c5-46a7-a7ce-2aec7ff491f2
2024-10-25 17:15:25,265 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/5d050539-1c02-416b-9f18-261e4e30707f
2024-10-25 17:15:25,274 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/5d050539-1c02-416b-9f18-261e4e30707f
2024-10-25 17:15:25,285 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/09047b1a-84e0-4111-8f98-cc073112d761
2024-10-25 17:15:25,294 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-25 17:15:25,294 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/ddb94766-e1c5-46a7-a7ce-2aec7ff491f2
2024-10-25 17:15:25,308 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/5d050539-1c02-416b-9f18-261e4e30707f
2024-10-25 17:15:25,328 - INFO - Verified VN network id 8 for VN ddb94766-e1c5-46a7-a7ce-2aec7ff491f2
2024-10-25 17:15:25,329 - INFO - Verifications in API Server for VN ctest-vn-31964266 passed
2024-10-25 17:15:25,329 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/ddb94766-e1c5-46a7-a7ce-2aec7ff491f2
2024-10-25 17:15:25,345 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/5d050539-1c02-416b-9f18-261e4e30707f
2024-10-25 17:15:25,356 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/5d050539-1c02-416b-9f18-261e4e30707f
2024-10-25 17:15:25,366 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/09047b1a-84e0-4111-8f98-cc073112d761
2024-10-25 17:15:25,380 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88739162:ctest-vn-31964266', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88739162', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15976879660273583783', 'uuid-lslong': '12091649244783743474'}, 'enable': 'true', 'created': '2024-10-25T17:15:22', 'last-modified': '2024-10-25T17:15:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.094253'}
2024-10-25 17:15:25,386 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-25 17:15:25,387 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31964266 passed
2024-10-25 17:15:25,387 - DEBUG - ====Verifying policy data for ctest-vn-31964266 in API_Server ======
2024-10-25 17:15:25,387 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-25 17:15:25,394 - DEBUG - Requesting: http://10.0.0.32:8082/domain/5e24c51b-3750-4985-a038-61a12c05c2aa
2024-10-25 17:15:25,409 - DEBUG - Requesting: http://10.0.0.32:8082/project/a1056908-8dac-4a42-a055-10813e6755e6
2024-10-25 17:15:25,491 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/ddb94766-e1c5-46a7-a7ce-2aec7ff491f2
2024-10-25 17:15:25,504 - DEBUG - ==>Verifying data for policy with id: d3e27c57-7054-4122-8be8-1b2b087bd4bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-88739162', 'ctest-policy-allow-all-50498728']
2024-10-25 17:15:25,505 - INFO - VN ctest-vn-31964266 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-25 17:15:25,505 - DEBUG - Verifying the vn in opserver
2024-10-25 17:15:25,505 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88739162:ctest-vn-31964266 virtual network link through opserver 10.0.0.32
2024-10-25 17:15:25,505 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-10-25 17:15:25,806 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-10-25 17:15:25,875 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88739162:ctest-vn-31964266', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88739162:ctest-vn-31964266?flat'}
2024-10-25 17:15:25,875 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88739162:ctest-vn-31964266 is found in opserver
2024-10-25 17:15:25,886 - DEBUG - Do not have enough data to verify VN in agent
2024-10-25 17:15:25,892 - DEBUG - VRF ids for VN ctest-vn-31964266: {}
2024-10-25 17:15:25,892 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-25 17:15:25,899 - DEBUG - Requesting: http://10.0.0.32:8082/domain/5e24c51b-3750-4985-a038-61a12c05c2aa
2024-10-25 17:15:25,913 - DEBUG - Requesting: http://10.0.0.32:8082/project/a1056908-8dac-4a42-a055-10813e6755e6
2024-10-25 17:15:26,005 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/791db36a-483a-4dbc-a703-f71dd95d7999
2024-10-25 17:15:26,027 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/791db36a-483a-4dbc-a703-f71dd95d7999
2024-10-25 17:15:26,042 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/4b82d980-b2d5-47bf-8a38-82efdbda27c7
2024-10-25 17:15:26,054 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/4b82d980-b2d5-47bf-8a38-82efdbda27c7
2024-10-25 17:15:26,065 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/cf714161-fabe-41a3-be13-8396c78b0afc
2024-10-25 17:15:26,074 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-25 17:15:26,074 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/791db36a-483a-4dbc-a703-f71dd95d7999
2024-10-25 17:15:26,088 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/4b82d980-b2d5-47bf-8a38-82efdbda27c7
2024-10-25 17:15:26,113 - INFO - Verified VN network id 9 for VN 791db36a-483a-4dbc-a703-f71dd95d7999
2024-10-25 17:15:26,114 - INFO - Verifications in API Server for VN ctest-vn-55585138 passed
2024-10-25 17:15:26,114 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/791db36a-483a-4dbc-a703-f71dd95d7999
2024-10-25 17:15:26,131 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/4b82d980-b2d5-47bf-8a38-82efdbda27c7
2024-10-25 17:15:26,141 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/4b82d980-b2d5-47bf-8a38-82efdbda27c7
2024-10-25 17:15:26,151 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/cf714161-fabe-41a3-be13-8396c78b0afc
2024-10-25 17:15:26,169 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88739162:ctest-vn-55585138', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88739162', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8727328921973575100', 'uuid-lslong': '12034734336836991385'}, 'enable': 'true', 'created': '2024-10-25T17:15:23', 'last-modified': '2024-10-25T17:15:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.608402'}
2024-10-25 17:15:26,177 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-25 17:15:26,177 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55585138 passed
2024-10-25 17:15:26,177 - DEBUG - ====Verifying policy data for ctest-vn-55585138 in API_Server ======
2024-10-25 17:15:26,177 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-10-25 17:15:26,185 - DEBUG - Requesting: http://10.0.0.32:8082/domain/5e24c51b-3750-4985-a038-61a12c05c2aa
2024-10-25 17:15:26,200 - DEBUG - Requesting: http://10.0.0.32:8082/project/a1056908-8dac-4a42-a055-10813e6755e6
2024-10-25 17:15:26,279 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/791db36a-483a-4dbc-a703-f71dd95d7999
2024-10-25 17:15:26,294 - DEBUG - ==>Verifying data for policy with id: d3e27c57-7054-4122-8be8-1b2b087bd4bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-88739162', 'ctest-policy-allow-all-50498728']
2024-10-25 17:15:26,294 - INFO - VN ctest-vn-55585138 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-25 17:15:26,294 - DEBUG - Verifying the vn in opserver
2024-10-25 17:15:26,294 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88739162:ctest-vn-55585138 virtual network link through opserver 10.0.0.32
2024-10-25 17:15:26,294 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-10-25 17:15:26,306 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88739162:ctest-vn-55585138', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88739162:ctest-vn-55585138?flat'}
2024-10-25 17:15:26,306 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88739162:ctest-vn-55585138 is found in opserver
2024-10-25 17:15:26,317 - DEBUG - Do not have enough data to verify VN in agent
2024-10-25 17:15:26,323 - DEBUG - VRF ids for VN ctest-vn-55585138: {}
2024-10-25 17:15:26,380 - DEBUG - Services list from nova: [