{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-openwhisk-wskdeploy/issues/391","repository_url":"https://api.github.com/repos/apache/incubator-openwhisk-wskdeploy","labels_url":"https://api.github.com/repos/apache/incubator-openwhisk-wskdeploy/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-openwhisk-wskdeploy/issues/391/comments","events_url":"https://api.github.com/repos/apache/incubator-openwhisk-wskdeploy/issues/391/events","html_url":"https://github.com/apache/incubator-openwhisk-wskdeploy/issues/391","id":252937637,"number":391,"title":"Wskdeploy sometimes tries to create sequence before action","user":{"login":"zachschultz","id":2520702,"avatar_url":"https://avatars2.githubusercontent.com/u/2520702?v=4","gravatar_id":"","url":"https://api.github.com/users/zachschultz","html_url":"https://github.com/zachschultz","followers_url":"https://api.github.com/users/zachschultz/followers","following_url":"https://api.github.com/users/zachschultz/following{/other_user}","gists_url":"https://api.github.com/users/zachschultz/gists{/gist_id}","starred_url":"https://api.github.com/users/zachschultz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachschultz/subscriptions","organizations_url":"https://api.github.com/users/zachschultz/orgs","repos_url":"https://api.github.com/users/zachschultz/repos","events_url":"https://api.github.com/users/zachschultz/events{/privacy}","received_events_url":"https://api.github.com/users/zachschultz/received_events","type":"User","site_admin":false},"labels":[{"id":455886530,"url":"https://api.github.com/repos/apache/incubator-openwhisk-wskdeploy/labels/bug","name":"bug","color":"ee0701","default":true},{"id":554448721,"url":"https://api.github.com/repos/apache/incubator-openwhisk-wskdeploy/labels/priority:%20high","name":"priority: high","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-25T15:30:52Z","updated_at":"2017-08-28T08:52:40Z","closed_at":null,"body":"During testing and trying to deploy this [blueprint](https://github.com/zachschultz/owbp-cloudant-trigger/) with this [manifest file](https://github.com/zachschultz/owbp-cloudant-trigger/blob/master/runtimes/node/manifest.yaml) I noticed that I was getting the error: `Got error creating action with error message: Sequence component does not exist. (code 970378) and error code: 144.` On the next try, it succeeded.\r\n\r\nIn the manifest file, you can see that I tell wskdeploy to create an action called `process-change`, then below that I create a sequence that makes use of the action.\r\n\r\nThis leads me to believe that there may be an issue with `wskdeploy` trying to create items out of order, unless there is a flag or keyword I am missing that would tell wskdeploy to wait for the actions to be created before sequences were created.\r\n\r\nHere is the result from the first (failed) run:\r\n![image](https://user-images.githubusercontent.com/2520702/29721206-e0fb6826-8981-11e7-8948-3337767b242e.png)\r\n\r\nHere is the result from the next (successful) run:\r\n![image](https://user-images.githubusercontent.com/2520702/29721218-ebaa2190-8981-11e7-804d-5e1c2afdcae0.png)\r\n\r\n* note: don't mind the error code 246 at the end of this, that is related to the trigger feed issue I had opened up that is resolved\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/incubator-openwhisk-wskdeploy/issues/comments/325298401","html_url":"https://github.com/apache/incubator-openwhisk-wskdeploy/issues/391#issuecomment-325298401","issue_url":"https://api.github.com/repos/apache/incubator-openwhisk-wskdeploy/issues/391","id":325298401,"user":{"login":"daisy-ycguo","id":1657701,"avatar_url":"https://avatars0.githubusercontent.com/u/1657701?v=4","gravatar_id":"","url":"https://api.github.com/users/daisy-ycguo","html_url":"https://github.com/daisy-ycguo","followers_url":"https://api.github.com/users/daisy-ycguo/followers","following_url":"https://api.github.com/users/daisy-ycguo/following{/other_user}","gists_url":"https://api.github.com/users/daisy-ycguo/gists{/gist_id}","starred_url":"https://api.github.com/users/daisy-ycguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daisy-ycguo/subscriptions","organizations_url":"https://api.github.com/users/daisy-ycguo/orgs","repos_url":"https://api.github.com/users/daisy-ycguo/repos","events_url":"https://api.github.com/users/daisy-ycguo/events{/privacy}","received_events_url":"https://api.github.com/users/daisy-ycguo/received_events","type":"User","site_admin":false},"created_at":"2017-08-28T08:52:40Z","updated_at":"2017-08-28T08:52:40Z","body":"I think it should be a bug, although I didn't find the root cause yet. Look at printed help message when deploying this package,`process-change-cloudant-sequence` is displayed as an `action`, not `sequence`. It's a very rare error. Thank you for reporting, @zachschultz .\r\n\r\n```\r\nPackages:\r\nName: cloudant-trigger\r\n    bindings: \r\n  * dependency: openwhisk-cloudant\r\n    location: /whisk.system/cloudant\r\n\r\n  * action: process-change\r\n    bindings: \r\n    annotations: \r\n  * action: process-change-cloudant-sequence\r\n    bindings: \r\n    annotations: \r\n\r\n\r\nTriggers:\r\n* trigger: data-inserted-trigger\r\n    bindings: \r\n        - dbname : \"\"\r\n    annotations: \r\n        - name: feed value: openwhisk-cloudant/changes\r\n\r\n Rules\r\n* rule: log-change-rule\r\n    - trigger: data-inserted-trigger\r\n    - action: cloudant-trigger/process-change-cloudant-sequence\r\n\r\nDo you really want to deploy this? (y/N): \r\n```"}}
{"actor":{"display_login":"daisy-ycguo"}}