{"action":"closed","issue":{"url":"https://api.github.com/repos/akamai/cli-property/issues/35","repository_url":"https://api.github.com/repos/akamai/cli-property","labels_url":"https://api.github.com/repos/akamai/cli-property/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/akamai/cli-property/issues/35/comments","events_url":"https://api.github.com/repos/akamai/cli-property/issues/35/events","html_url":"https://github.com/akamai/cli-property/issues/35","id":252006647,"number":35,"title":"Delete config fails if the config has not been activated","user":{"login":"akshayranganath","id":10872342,"avatar_url":"https://avatars0.githubusercontent.com/u/10872342?v=4","gravatar_id":"","url":"https://api.github.com/users/akshayranganath","html_url":"https://github.com/akshayranganath","followers_url":"https://api.github.com/users/akshayranganath/followers","following_url":"https://api.github.com/users/akshayranganath/following{/other_user}","gists_url":"https://api.github.com/users/akshayranganath/gists{/gist_id}","starred_url":"https://api.github.com/users/akshayranganath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshayranganath/subscriptions","organizations_url":"https://api.github.com/users/akshayranganath/orgs","repos_url":"https://api.github.com/users/akshayranganath/repos","events_url":"https://api.github.com/users/akshayranganath/events{/privacy}","received_events_url":"https://api.github.com/users/akshayranganath/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-08-22T15:56:16Z","updated_at":"2017-09-20T15:27:38Z","closed_at":"2017-09-20T15:27:38Z","author_association":"CONTRIBUTOR","body":"When trying to delete a configuration, it looks like the CLI issues a call to de-activate the configuration on staging and prod. However, it looks like it does not check if the configuration is even active on either of the networks.\r\n\r\nDue to this, we are seeing an error where the delete never really works. Here's the trace of the request.\r\n\r\n**Creating a new configuration**\r\n```bash\r\n$ ./akamai property create testdemo.ephemeral-config.com --hostnames test.test.com --origin origin-test.test.com\r\nCreating new property testdemo.ephemeral-config.com\r\n... retrieving list of Group Ids\r\n... retrieving list of Products for this contract\r\n... retrieving list of Products for this contract\r\nCreating property config testdemo.ephemeral-config.com\r\n... creating: 6584.003ms\r\n... retrieved rules formats: 563.067ms\r\nInitializing property cache\r\nInit PropertyManager cache (hostnames and property list)\r\n... retrieving list of Group Ids\r\n... retrieving properties from 10 groups\r\n... retrieving Hosts from 178 properties\r\nInit PropertyManager cache: 80499.980ms\r\nCreating new CPCode for property\r\n... creating new CPCode: 252.947ms\r\n```\r\n\r\n**Deleting the configuration**\r\n```bash\r\n$ ./akamai property delete testdemo.ephemeral-config.com\r\nDeleting testdemo.ephemeral-config.com\r\n... retrieved rules formats: 1512.737ms\r\n... searching propertyName for testdemo.ephemeral-config.com\r\n... searching hostname for testdemo.ephemeral-config.com\r\n... searching edgeHostname for testdemo.ephemeral-config.com\r\nCannot locate property using search\r\nInitializing property cache\r\nInit PropertyManager cache (hostnames and property list)\r\n... retrieving list of Group Ids\r\n... retrieving properties from 10 groups\r\n... retrieving Hosts from 178 properties\r\nInit PropertyManager cache: 4495.350ms\r\nDeactivating testdemo.ephemeral-config.com to STAGING\r\n... deactivating property (testdemo.ephemeral-config.com) v1 on STAGING\r\nERROR:  \"{\\n  \\\"type\\\" : \\\"https://problems.luna.akamaiapis.net/papi/v0/toolkit/property_version_not_active_in_staging\\\",\\n  \\\"instance\\\" : \\\"https://akab-eyt7c2nuge444oiq-dhyxfhoxgujxsoji.luna.akamaiapis.net/papi/v1/properties/prp_399543/activations?contractId=ctr_C-1ED34DY&groupId=grp_63802#16f7d62d-fd7e-475d-84fc-3f47b6ac37a6\\\",\\n  \\\"params\\\" : [ \\\"testdemo.ephemeral-config.com\\\" ]\\n}\"\r\n```\r\n\r\nThe use case we're trying to cover is the following:\r\nThe only way for a customer to easily validate the metadata is to push it as a configuration. If they're building an ephemeral config, this may be the only way. If they see any errors and want to delete the config, it will block their work-flow."}}
{"actor":{"display_login":"synedra"}}