{"action":"created","issue":{"url":"https://api.github.com/repos/projectatomic/atomicapp/issues/669","repository_url":"https://api.github.com/repos/projectatomic/atomicapp","labels_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/669/labels{/name}","comments_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/669/comments","events_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/669/events","html_url":"https://github.com/projectatomic/atomicapp/issues/669","id":145748935,"number":669,"title":"Order of OpenShift artifacts in Nulecule file","user":{"login":"kadel","id":57206,"avatar_url":"https://avatars.githubusercontent.com/u/57206?v=3","gravatar_id":"","url":"https://api.github.com/users/kadel","html_url":"https://github.com/kadel","followers_url":"https://api.github.com/users/kadel/followers","following_url":"https://api.github.com/users/kadel/following{/other_user}","gists_url":"https://api.github.com/users/kadel/gists{/gist_id}","starred_url":"https://api.github.com/users/kadel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadel/subscriptions","organizations_url":"https://api.github.com/users/kadel/orgs","repos_url":"https://api.github.com/users/kadel/repos","events_url":"https://api.github.com/users/kadel/events{/privacy}","received_events_url":"https://api.github.com/users/kadel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-04T17:21:14Z","updated_at":"2016-04-05T07:31:04Z","closed_at":null,"body":"If I remember correctly in previous version we deployed OpenShift artifacts in order which they appear in Nulecule file.\r\nBut this is not happening anymore :-(\r\n\r\nProblem is that with OpenShift you sometimes need to create some objects before another.\r\n\r\nin Nulecule:\r\n```\r\n    openshift:\r\n    - file://artifacts/openshift/mlbparks-DeploymentConfig.json\r\n    - file://artifacts/openshift/mongodb-DeploymentConfig.json\r\n    - file://artifacts/openshift/mlbparks-BuildConfig.json\r\n    - file://artifacts/openshift/mlbparks-ImageStream.json\r\n    - file://artifacts/openshift/mlbparks-Service.json\r\n    - file://artifacts/openshift/mongodb-Service.json\r\n```\r\n\r\ndebug output:\r\n```\r\n1459790051 - [DEBUG] - providers/openshift.py - Processing artifact: artifacts/openshift/.mlbparks-DeploymentConfig.json\r\n1459790051 - [DEBUG] - providers/openshift.py - Processing artifact: artifacts/openshift/.mongodb-DeploymentConfig.json\r\n1459790051 - [DEBUG] - providers/openshift.py - Processing artifact: artifacts/openshift/.mlbparks-BuildConfig.json\r\n1459790051 - [DEBUG] - providers/openshift.py - Processing artifact: artifacts/openshift/.mlbparks-ImageStream.json\r\n1459790051 - [DEBUG] - providers/openshift.py - Processing artifact: artifacts/openshift/.mlbparks-Service.json\r\n1459790051 - [DEBUG] - providers/openshift.py - Processing artifact: artifacts/openshift/.mongodb-Service.json\r\n1459790051 - [DEBUG] - providers/openshift.py - Deploying to OpenShift\r\n1459790051 - [DEBUG] - providers/openshift.py - url: https://127.0.0.1:8443/oapi/v1/namespaces/mlbimport/buildconfigs/?access_token=syqKpsfCXAT4nZaerLot3xrsZcCrKkRZEAti-RC1NLM\r\n1459790051 - [INFO] - providers/openshift.py - Object mlbparks successfully deployed.\r\n1459790051 - [DEBUG] - providers/openshift.py - url: https://127.0.0.1:8443/oapi/v1/namespaces/mlbimport/imagestreams/?access_token=syqKpsfCXAT4nZaerLot3xrsZcCrKkRZEAti-RC1NLM\r\n1459790051 - [INFO] - providers/openshift.py - Object mlbparks successfully deployed.\r\n1459790051 - [DEBUG] - providers/openshift.py - url: https://127.0.0.1:8443/api/v1/namespaces/mlbimport/services/?access_token=syqKpsfCXAT4nZaerLot3xrsZcCrKkRZEAti-RC1NLM\r\n1459790051 - [INFO] - providers/openshift.py - Object mlbparks successfully deployed.\r\n1459790051 - [DEBUG] - providers/openshift.py - url: https://127.0.0.1:8443/api/v1/namespaces/mlbimport/services/?access_token=syqKpsfCXAT4nZaerLot3xrsZcCrKkRZEAti-RC1NLM\r\n1459790051 - [INFO] - providers/openshift.py - Object mongodb successfully deployed.\r\n1459790051 - [DEBUG] - providers/openshift.py - url: https://127.0.0.1:8443/oapi/v1/namespaces/mlbimport/deploymentconfigs/?access_token=syqKpsfCXAT4nZaerLot3xrsZcCrKkRZEAti-RC1NLM\r\n1459790051 - [INFO] - providers/openshift.py - Object mlbparks successfully deployed.\r\n1459790051 - [DEBUG] - providers/openshift.py - url: https://127.0.0.1:8443/oapi/v1/namespaces/mlbimport/deploymentconfigs/?access_token=syqKpsfCXAT4nZaerLot3xrsZcCrKkRZEAti-RC1NLM\r\n1459790051 - [INFO] - providers/openshift.py - Object mongodb successfully deployed.\r\n```\r\n\r\nHere it can bee seen that processing is happening in same order as in Nulecule file, but then deployment is in completely different one :-("},"comment":{"url":"https://api.github.com/repos/projectatomic/atomicapp/issues/comments/205698284","html_url":"https://github.com/projectatomic/atomicapp/issues/669#issuecomment-205698284","issue_url":"https://api.github.com/repos/projectatomic/atomicapp/issues/669","id":205698284,"user":{"login":"kadel","id":57206,"avatar_url":"https://avatars.githubusercontent.com/u/57206?v=3","gravatar_id":"","url":"https://api.github.com/users/kadel","html_url":"https://github.com/kadel","followers_url":"https://api.github.com/users/kadel/followers","following_url":"https://api.github.com/users/kadel/following{/other_user}","gists_url":"https://api.github.com/users/kadel/gists{/gist_id}","starred_url":"https://api.github.com/users/kadel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadel/subscriptions","organizations_url":"https://api.github.com/users/kadel/orgs","repos_url":"https://api.github.com/users/kadel/repos","events_url":"https://api.github.com/users/kadel/events{/privacy}","received_events_url":"https://api.github.com/users/kadel/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T07:31:04Z","updated_at":"2016-04-05T07:31:04Z","body":"@dustymabe right now my concern is mainly about deploying imageStream before buildConfig because of this bug https://github.com/openshift/origin/issues/4518\r\nI think that deploying artifact in order they are specified in Nulecule might be enought to solve most of ordering issue with OpenShift. \r\nPerson who is creating Nulecule app then can decide what is right order of deployment for his application.\r\n\r\nThere is also this one that touches ordering issue https://github.com/projectatomic/atomicapp/issues/18 "}}