RESTful knowledge exchange
Post Reply
Dossing
Influencer
Posts: 19
Liked: 2 times
Joined: May 17, 2021 11:40 am
Full Name: Søren Døssing
Location: Denmark
Contact:

Bug Report: CreateJob storageOptimization Auto

Post by Dossing »

https://helpcenter.veeam.com/docs/backu ... /CreateJob

When creating a job with the REST API, there is supposely an option to use "auto" on the storageOptimization.
It should be valid Enum: "Auto" "LocalTargetLarge" "LocalTarget" "LANTarget" "WANTarget" "LocalTargetLarge8192" "LocalTargetLarge4096"
In other words it should somehow figure a block size by using an auto function.
You can create jobs with "storageOptimization": "Auto" :

Code: Select all

"storage": {
    "advancedSettings": {
        "storageData": {
            "storageOptimization": "Auto"
        }
    }
}
When using the GUI, there isn't really an option to choose an "auto" option:

Image

The created job fails with an error:
Image
ronnmartin61
Veeam Software
Posts: 428
Liked: 123 times
Joined: Mar 07, 2016 3:55 pm
Full Name: Ronn Martin
Contact:

Re: Bug Report: CreateJob storageOptimization Auto

Post by ronnmartin61 »

"Auto" seems to work correctly in my lab. Assuming you chopped the "storage" JSON down in your post to illustrate this particular setting? If not you're missing some required parameters. Here is my working snippet -

Code: Select all

                'storage': {
                        'backupRepositoryID': backupRepo,
                        'backupProxies' : {
                                'autoselection': True
                        },
                        'retentionPolicy': {
                                'type': 'Days',
                                'quantity': 8
                        },
                        'advancedSettings': {
                                'backupModeType': 'Incremental',
                                'storageData': {
                                        'excludeSwapFileBlocks': True,
                                        'storageOptimization': 'Auto'
                                }
                        }
                },
Dossing
Influencer
Posts: 19
Liked: 2 times
Joined: May 17, 2021 11:40 am
Full Name: Søren Døssing
Location: Denmark
Contact:

Re: Bug Report: CreateJob storageOptimization Auto

Post by Dossing »

Yes i cut it down to now cause too much confusion.
This is the full storage section which fails when running a backup:

Code: Select all

    
    "storage"         = @{
        "backupRepositoryId" = "$repoid"
        "backupProxies"      = @{
            "autoSelection" = "true"
        }
        "retentionPolicy"    = @{
            "type"     = "Days"
            "quantity" = "31"
        }
        "gfsPolicy"          = @{
            "isEnabled" = "true"
            "weekly"    = @{
                "isEnabled"            = "true"
                "keepForNumberOfWeeks" = "4"
                "desiredTime"          = "saturday"
            }
            "monthly"   = @{
                "isEnabled"             = "true"
                "keepForNumberOfMonths" = "3"
                "desiredTime"           = "First"
            }
            "yearly"    = @{
                "isEnabled"            = "true"
                "keepForNumberOfYears" = "1"
                "desiredTime"          = "January"
            }
        }
        "advancedSettings"   = @{
            "backupModeType"  = "Incremental"
            "synthenticFulls" = @{
                "isEnabled" = "true"
                "days"      = @(
                    "saturday"
                )
            }
            "backupHealth"    = @{
                "isEnabled" = "true"
                "weekly"    = @{
                    "isEnabled" = "true"
                    "days"      = @(
                        "friday"
                    )
                }
                "monthly"   = @{
                    "isEnabled" = "false"
                }
            }
            "storageData"     = @{
                "enableInlineDataDedup"    = "true"
                "excludeSwapFileBlocks"    = "true"
                "excludeDeletedFileBlocks" = "true"
                "compressionLevel"         = "Auto"
                "storageOptimization"      = "Auto"
                "encryption"               = @{
                    "isEnabled"                  = "true"
                    "encryptionPasswordIdOrNull" = "$encryptionkeyid"
                }
            }
        }
    }
    
Dossing
Influencer
Posts: 19
Liked: 2 times
Joined: May 17, 2021 11:40 am
Full Name: Søren Døssing
Location: Denmark
Contact:

Re: Bug Report: CreateJob storageOptimization Auto

Post by Dossing »

This is Build: 11.0.1.1261 P20220302
ronnmartin61
Veeam Software
Posts: 428
Liked: 123 times
Joined: Mar 07, 2016 3:55 pm
Full Name: Ronn Martin
Contact:

Re: Bug Report: CreateJob storageOptimization Auto

Post by ronnmartin61 »

My apologies as I did not read your original post correctly. I thought the issue was regarding job creation. Yes I'm able to duplicate your results in my lab when the job is run -

https://www.dropbox.com/s/93h5unrcxc8l0 ... r.PNG?dl=0

even though everything looks correct in the job settings -

https://www.dropbox.com/s/bip0s8vfi1s98 ... s.PNG?dl=0

Yes I would agree this appears to be some sort of bug...
oleg.feoktistov
Veeam Software
Posts: 1912
Liked: 635 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Bug Report: CreateJob storageOptimization Auto

Post by oleg.feoktistov » 1 person likes this post

It is a bug. Looks like Auto value was added as a part of some options from backend, which are not supported anymore or were used for autotests. I see the same with compressionLevel: Auto option. We will remove these values in v12 as a part of bugfix. Meanwhile, please use other available values. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests