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-compose] Failed to create circular links in services #1863

Closed
JamesBarwell opened this issue Aug 24, 2015 · 2 comments
Closed

[rancher-compose] Failed to create circular links in services #1863

JamesBarwell opened this issue Aug 24, 2015 · 2 comments

Comments

@JamesBarwell
Copy link

RancherOS: v0.4.0-rc2
Rancher: v0.32.0
Cattle: v0.75.0
User Interface: v0.40.0
Rancher Compose: v0.2.5

Description

I have two services that link to each other, described in the docker-compose.yml. I build them using rancher-compose.

Expected

Two services are created with links to each other.

Actual

Only one of the services links to the other, and I receive a warn in the rancher-compose output.

Details

Two services defined:

foo:
  restart: always
  tty: true
  image: tutum/hello-world
  stdin_open: true
  links:
    - bar:bar

bar:
  restart: always
  tty: true
  image: tutum/hello-world
  stdin_open: true
  links:
    - foo:foo
foo:
  scale: 1

bar:
  scale: 1

and I build them:

rancher-compose -f test/docker-compose.yml -r test/rancher-compose.yml create
INFO[0000] Creating environment test
INFO[0000] Creating service foo
WARN[0000] Failed to find service bar to link to
INFO[0000] Creating service bar

The services show up in the GUI with only bar linking to foo, and foo having no links. But the order seems to be random and quite often I see bar linking to foo, and foo linking to nothing. If I add the missing link using the GUI, it does appear successfully.

Is this functionality supported? Cheers.

@JamesBarwell
Copy link
Author

I've just been pointed towards issue #1851, which perhaps I've duplicated here. If I simply 'up' the service without building, I still get the warn in rancher-compose, however the service does come up with the correct link.

rancher-compose -f test/docker-compose.yml -r test/rancher-compose.yml up
INFO[0000] Creating environment test
INFO[0000] Project [test]: Starting project
INFO[0000] Creating service foo
WARN[0001] Failed to find service bar to link to
INFO[0001] [0/2] [bar]: Starting
INFO[0001] Creating service bar
INFO[0013] [1/2] [bar]: Started
INFO[0023] [2/2] [foo]: Started

@vincent99
Copy link
Contributor

Yes that is the same issue; please track it for updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants