Hi Robert,
Thanks for your quick response.
No, I do not have a global policy assigned to any CMA.
I only have 2 layers in my Access Control policy:
Security (Firewall Blade Only)
Application (Application Control Blade Only)
This is the command I ran to export:
# ./opt/CPsuite-R80/fw1/Python/bin/python2.7 /home/admin/ExportImportPolicyPackage-master/import_export_package.py -op export --all -m 10.0.0.1 -d LAB_DOMAIN -n LAB_Policy -r -o LAB_Policy.out
I'm trying to import this into a another Domain and it failed.
What I provided you previously is a scrub of the original log where I removed all customer related object information and IPs.
I deleted the policy in the target Domain and tried again and got the same results... ALL objects are imported just fine but no rule.
===================================================================================================
Importing Access_Layer [IMPORTED LAYER 1 LAB_Policy Security]
Nothing to import...
Importing Access_Layer [IMPORTED LAYER 2 LAB_Global_Policy Security]
Adding access-rules
Imported 1 out of 1 access-rules (100%)
Importing Access_Layer [IMPORTED LAYER 1 LAB_Policy Application]
Adding access-rules
Imported 2 out of 2 access-rules (100%)
Importing Access_Layer [IMPORTED LAYER 1 LAB_Policy Security]
Traceback (most recent call last):
File "/home/admin/ExportImportPolicyPackage-master/import_export_package.py", line 47, in <module>
import_package(client, args)
File "/home/admin/ExportImportPolicyPackage-master/importing/import_package.py", line 52, in import_package
layers_to_attach = import_objects(args.file, client, {})
File "/home/admin/ExportImportPolicyPackage-master/importing/import_objects.py", line 86, in import_objects
import_objects(rulebase_object_file.name, client, changed_layer_names, layer_name)
File "/home/admin/ExportImportPolicyPackage-master/importing/import_objects.py", line 19, in import_objects
export_tar = tarfile.open(file_name, "r:gz")
File "/opt/CPsuite-R80/fw1/Python/lib/python2.7/tarfile.py", line 1693, in open
return func(name, filemode, fileobj, **kwargs)
File "/opt/CPsuite-R80/fw1/Python/lib/python2.7/tarfile.py", line 1740, in gzopen
fileobj = gzip.GzipFile(name, mode, compresslevel, fileobj)
File "/opt/CPsuite-R80/fw1/Python/lib/python2.7/gzip.py", line 94, in __init__
fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: 'exported__access_layer__LAB_Policy Security__2018_03_03_15_50.tar.gz'
===================================================================================================
I'm going to try exporting but this time I'll remove --all
Any advice is appreciated.