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

rancher.metadata container name collision in backend (different behaviour compared to rancher.api) #2130

Closed
PicoCreator opened this issue Sep 18, 2017 · 1 comment

Comments

@PicoCreator
Copy link

Do you want to request a feature or report a bug?

Bug (Unless its intentional)

What did you do?

Docker System : Rancher v1.6.5
Deployed latest official image : traefik:v1.4.0-rc2-alpine

With the following command for meta-data mode (formatted to be easier to read)

--web --rancher 
	--rancher.domain=rancher.localhost 
	--rancher.enableservicehealthfilter=false 
	--rancher.exposedbydefault=false 
	--rancher.metadata

Along with the following container labels

io.rancher.container.agent.role=environment
io.rancher.container.create_agent=true

Multiple stacks was then created, with different stack names. But same container names (web-studio in this case)

Each container is defined with the following traefik labels

traefik.enable=true
traefik.frontend.rule=Host:the-container-unique-url.domain.something
traefik.port=80

Note: this is a followup from #2125

What did you expect to see?

Every container, from each stack, with its own "host name rule" for frontend, and its own backend, as seen below, when traefik is using rancher.api

screen shot 2017-09-18 at 1 13 33 pm

What did you see instead?

A single backend, for all the various frontend, when traefik is using rancher.metadata

screen shot 2017-09-18 at 1 13 15 pm copy

Note : that both this traefik configuration was deployed side by side to the same rancher testing infrastructure. So both configuration was expected to be same

Output of traefik version: (What version of Traefik are you using?)

Version:      v1.4.0-rc2
Codename:     roquefort
Go version:   go1.9
Built:        2017-09-08_07:31:37PM
OS/Arch:      linux/amd64

What is your environment & configuration (arguments, toml, provider, platform, ...)?

None: See setup above

@SantoDE
Copy link
Collaborator

SantoDE commented Sep 18, 2017

Hi @PicoCreator ,

this is already fixed in #2107, so it should be available with the next rc for 1.4 :)

@SantoDE SantoDE closed this as completed Sep 18, 2017
@SantoDE SantoDE added kind/bug/fix a bug fix and removed kind/bug/possible a possible bug that needs analysis before it is confirmed or fixed. labels Sep 18, 2017
@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
@nmengin nmengin added kind/bug/confirmed a confirmed bug (reproducible). and removed kind/bug/fix a bug fix labels Dec 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants