Comments (7)
Hi @Vesli can you give details on the environment and the .drone.yml? I've never seen that problem before and I've had larger setups.
from drone-rancher.
Sure, let's take this example:
We have 5 stacks in this env. Each stacks has 1 to 3 containers - which I agree with you, is nothing terrific.
If I add one more stack to this env, drone result with my initial error "can't find the stack".
Concerning the drone file, here is the one we recently used and had this error:
pipeline:
## Master
push-master:
image: plugins/docker
secrets: [docker_username, docker_password]
repo: docker.domain.com:5000/descartes
registry: docker.domain.com:5000
tags: "latest"
when:
event: push
branch: master
rancher-deploy-master:
image: peloton/drone-rancher
url: http://rancher.domain.com:8080
secrets: [ plugin_access_key, plugin_secret_key ]
service: descartes/nomad
docker_image: docker.heyolly.com:5000/descartes:latest
start_first: true
time_out: 120
when:
event: push
branch: master
## Dev
push-dev:
image: plugins/docker
secrets: [docker_username, docker_password]
repo: docker.domain.com:5000/descartes
registry: docker.domain.com:5000
tags: "dev"
when:
event: push
branch: dev
rancher-deploy-dev:
image: peloton/drone-rancher
url: http://rancher.domain.com:8080
secrets: [ plugin_access_key, plugin_secret_key ]
service: descartes-dev/descartes
docker_image: docker.domain.com:5000/descartes:dev
start_first: true
time_out: 120
when:
event: push
branch: dev
## Feature branches.
push-feature:
image: plugins/docker
secrets: [docker_username, docker_password]
repo: docker.domain.com:5000/descartes
registry: docker.domain.com:5000
tags: "feature"
when:
event: push
branch:
exclude: [ dev, master, test-* ]
## Testing branch
push-staging:
image: plugins/docker
secrets: [docker_username, docker_password]
repo: docker.domain.com:5000/descartes
registry: docker.domain.com:5000
tags: ${DRONE_COMMIT_BRANCH}
when:
branch: test-*
rancher-deploy-staging:
image: peloton/drone-rancher
url: http://rancher.domain.com:8080
secrets: [ plugin_access_key, plugin_secret_key ]
service: vision-staging/Descartes #this was an other stack, but we had to remove it as it was producing the error***
docker_image: docker.domain.com:5000/descartes:${DRONE_COMMIT_BRANCH}
start_first: true
time_out: 120
when:
branch: test-*
###
# NOTIFY build
###
notify-build:
image: plugins/slack
webhook: https://hooks.slack.com/services/aosifu1948UIAO
channel: jenkins
username: The Mighty Pokeball
template: >
{{#success build.status}}
Build {{build.link}} succeeded on {{repo.name}} from branch {{uppercase build.branch}}!
{{else}}
Build {{build.link}} failed! {{repo.name}} from branch {{uppercase build.branch}}
{{/success}}
when:
status: [ failure ]
*** the stack name was Descartes-staging/descartes and was failing.
from drone-rancher.
@Vesli Sorry, looking at it nothing jumps out :( . sadly I haven't heard or seen anything like this so without access to it, it would be pretty hard for me to trouble shoot :/ have you tried running the commands by hand (local docker container) and seeing if you see the same error? then you could use a proxy to see if anything obvious is there
from drone-rancher.
@Vesli just wanted to check in if you ever found the issue?
from drone-rancher.
@josmo hey! thank you for your attention on it :)
Actually I'm still not so sure and haven't tried something else, but I would assume it might come from an environment API that allows drone to upgrade on rancher.
I need to setup more environment API keys and see how drone behave with those.
from drone-rancher.
Ok, so after spending some time on it I can confirm the problem:
I was using a general key API from rancher, for all the env / stack.
I assume that there is a timeout or a parser problem somewhere that block the plugin from finding the stack.
But now, I'm using a specific key per env and it's working!
from drone-rancher.
Cool Thanks for letting me know and closing it out :)
from drone-rancher.
Related Issues (18)
- Option: confirm upgrade HOT 3
- ability to update multiple services HOT 8
- Batch size and batch interval HOT 3
- Failed to list rancher services? HOT 10
- Rancher Load Balancer Support HOT 2
- Unable to find service HOT 5
- Ability to change sidekicks images when upgrading a service HOT 4
- custom env variable names HOT 2
- Ability to confirm before update HOT 2
- Research: Rancher 2.0 move away from cattle and using K8s HOT 31
- Error using Rancher v1 HOT 2
- How to clear a specific rancher environment? HOT 3
- Problem with secrets HOT 2
- Ability to create a service if does not exist HOT 1
- Support Rancher environments HOT 1
- Confirm fails HOT 11
- Force pull HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drone-rancher.