akamai / cli-property-manager

Use this Property Manager CLI to automate Akamai property changes and deployments across many environments.
Apache License 2.0
29 stars 22 forks source link

Property Manager: Check Activation Status and Deactivate commands are unreliable! #80

Closed saratrajan closed 1 year ago

saratrajan commented 1 year ago

Hello AkaTec/Dev Community,

We have been using Akamai and CLIs on ADO for a while now and have been playing around with most of the CLIs that Akamai offers. Recently we came across a few issues pertaining to the reliability of the command check-activation-status or even the deactivate commands provided within Property Manager.

Instance 1:

Unable to fetch activation status for valid properties When used against existing properties we are getting errors that say:

PM CLI Error: 'unknown_pm_cli_property' occurred:
 PM CLI property 'www-****.com' doesn't exist!

All of my teammates (who use Akamai CLI on their local machines) have confirmed this behavior offline.

Instance 2:

Activation information provided is wrong(whenever the command works that is) When used against existing properties we are not getting correct information as response. For e.g. we have a property (a recently on-boarded one) what is on V1 which is active on both Staging and Production. But the CLI response says:

{
    "message": "There is currently no activation pending. Current activation status of 'www-****.com' by network:",
    "data": [
        {
            "property": "www-****.com",
            "network": "staging",
            "status": "No version is active"
        },
        {
            "property": "www-****.com",
            "network": "production",
            "status": "No version is active"
        }
    ]
}

We are unable to enable Delete workflows from ADO pipelines as it requires to use check-activation-status and/or deactivate commands as a pre-requisite. Please consider this as a request and do let us know if you are aware of any known bugs that are being worked up on here.

Warm Regards, Sarat

saratrajan commented 1 year ago

I just heard back from AkaTec that one needs to import a property before fetching the active version using the command akamai pm check-activation-status -p '$(propertyName)'. Closing this issue for now eventhough it would have been meaningful to get the status without having to import, failing the purpose of APIs.

Thanks, Sarat