title: Openshift: Unresolved Image
body: <p>i'm stuck with Openshift (Origin) and need some help.</p>
  <p>Let's say i want to add a grafana deployment via CLI to a new started cluster.</p>
  <p>What i do:</p>
  <ol>
  <li><p>Upload a template to my openshift cluster (oc create -f openshift-grafana.yml)</p>
  </li>
  <li><p>Pull the necessary image from the docker hub (oc import-image --confirm grafana/grafana)</p>
  </li>
  <li><p>Build a new app based on my template (oc new-app grafana)</p>
  </li>
  </ol>
  <p>These steps creates the deployment config and the routes.
  But then i'm not able to start a deployment via CLI.</p>
  <pre><code># oc deploy grafana                                                                                                                                            
  grafana deployment #1 waiting on image or update
  # oc rollout latest grafana                                                                                                                                    
  Error from server (BadRequest): cannot trigger a deployment for &quot;grafana&quot; because it contains unresolved imagesenter code here
  </code></pre>
  <p>In the openshift web console it looks like this:</p>
  <p><img src="https://i.stack.imgur.com/2YCfv.png" alt="" /></p>
  <p><img src="https://i.stack.imgur.com/MLyRm.png" alt="" /></p>
  <p><img src="https://i.stack.imgur.com/U5Iq3.png" alt="" /></p>
  <p>The images is there, even the link is working. In the web console i can click &quot;deploy&quot; and it's working. But nevertheless i'm not able to rollout a new version via command line.</p>
  <p>The only way it works is editing the deployment yml so openshift recognizes a change a starts a deployment based on &quot;config change&quot; (hint: i'm was not changing the image or image name)</p>
  <p>There is nothing special in my template, it was just an export via oc export from a working config.</p>
  <p>Any hint would be appreciated, i'm pretty much stuck.
  Thanks.</p>