Rancher Service Update using v2-beta API 1.3.0

Hi There,

started to using Rancher 1.3.0 - I wanted to update an existing Service with a new Docker Image. I am using this snippets:

  1. Fetch Projects from API
  2. Select “Default”
  3. Fetch Stacks
  4. Select my Stack to be updated (All Services in one stack should get the update)
  5. Select all Services from this stack
  6. Update the launchConfig Object with a new imageUuid Version (Using docker:mydockerhost/app:1.1.0-SNAPSHOT)
    From now on it is not working:
  7. that fire an PUT Request. In Curl:
curl -X PUT -H 'Content-Type: application/json' -d '
    "vcpu":1}}' myrancher:8080/v2-beta/projects/1a5/services/1s12?action=upgrade"

In the response, I get back the old version number “1.0.0-SNAPSHOT” - so the update failed. No error in the audit-log. I tried:

curl -X POST -H 'Content-Type: application/json' myrancher:8080/v2-beta/projects/1a5/services/1s12?action=finishupgrade`

But get an Error Response:


The Error Message is not quiet helpful…
As I could not find an example using the new API, I finally decided to try out the forums. What am I doing wrong ?