Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Can't add dynamic ports using PUT #3051

Closed
gkleiman opened this issue Jan 21, 2016 · 0 comments
Closed

Can't add dynamic ports using PUT #3051

gkleiman opened this issue Jan 21, 2016 · 0 comments
Assignees
Milestone

Comments

@gkleiman
Copy link
Contributor

http DELETE :8080/v2/groups
http POST :8080/v2/apps <<EOF
{
  "id": "/foo",
  "cmd": "sleep 1000",
  "ports": [
      0
  ]
}
EOF
http PUT :8080/v2/apps <<EOF
[
  {
    "id": "/foo",
    "cmd": "sleep 1000",
    "ports": [
        0,
        0
    ]
  }
]
EOF

Results in the following instead of in a app with 2 dynamic ports:

{
  "message": "Object is not valid",
  "details": [
    {
      "attribute": "apps[0].ports",
      "error": "Elements must be unique"
    }
  ]
}
@gkleiman gkleiman self-assigned this Jan 21, 2016
@gkleiman gkleiman added this to the 0.15.0 milestone Jan 21, 2016
aquamatthias added a commit that referenced this issue Jan 21, 2016
Fixes #3051 - Improve service ports allocation
@d2iq-archive d2iq-archive locked and limited conversation to collaborators Mar 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants