Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a service with scheduling rule of affinity to itself is unsuccessful #5032

Closed
soumyalj opened this issue Jun 7, 2016 · 3 comments
Closed
Assignees
Labels
kind/bug Issues that are defects reported by users or that we know have reached a real release

Comments

@soumyalj
Copy link

soumyalj commented Jun 7, 2016

Rancher Version:: v1.1.0-dev4-rc1

OS and where are the hosts located? (cloud, bare metal, etc): Ubuntu, Cloud

Environment Type: (Cattle/Kubernetes/Swarm/Mesos): Cattle

Steps to Reproduce:

  1. Create a service "myaff" with scheduling rule:
Host must have service with service name "myaff"

The following is the API settings:
"labels": {
"io.rancher.container.pull_image": "always",
"io.rancher.scheduler.affinity:container_label": "io.rancher.stack_service.name=myaff",
},
The scheduling fails and the containers do not start up successfully.

Activating (Waiting for [instance:Default_myaff_1]. Instance status: Scheduling failed: io.cattle.platform.allocator.constraint.ContainerLabelAffinityConstraint@6eb61a85)

@soumyalj soumyalj added the kind/bug Issues that are defects reported by users or that we know have reached a real release label Jun 7, 2016
@soumyalj soumyalj added this to the Release 1.1.0 milestone Jun 7, 2016
@deniseschannon
Copy link

@soumyalj The value must be <stackname>/<servicename> even if it's in the same stack.

Please re-test using that syntax.

@soumyalj
Copy link
Author

soumyalj commented Jun 7, 2016

Tested again with stackname/servicename. The Issue still persists.
API below:

"io.rancher.scheduler.affinity:container_label": "io.rancher.stack_service.name=default/test6",

@deniseschannon
Copy link

This use case is not supported.

We do not support affinity to yourself as there will never be a container already scheduled on a host to schedule with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues that are defects reported by users or that we know have reached a real release
Projects
None yet
Development

No branches or pull requests

2 participants