-
Notifications
You must be signed in to change notification settings - Fork 229
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
CLI can't successfully deploy to 'custom' named stack #96
Comments
Can you jump in on this? |
@alexellis Theoretically maybe, but in reality I have so much going on in so many different things right now that I am hesitant to commit to anything new. If/when i find spare time/energy to actually contribute something code-wise, I will, but I don't know if/when that will be. |
Hopefully able to check this out later, not setup to build/run In the meantime, I see that it was released as 0.4.14 Tried bumping in homebrew (similar to previous updates), but hangs here. Maybe @johnmccabe has a better idea?
Edit: Done by @ilovezfs :3 |
@itscaro So testing the default 'fail case', openfaas/cli still report the deploy as sucessful, even though it isn't. Did a little digging on slack as to where this seems to be coming from the other day, can't remember where it was off hand (in the gateway+CLI from memory). But basically, I would expect that the error shown in the logs should be returned somehow to fail the deploy command, or provide some more useful feedback there. Can we reopen to track that aspect?
As for testing the new changes, it looks like it works correctly.
Including it the network in my
Not sure if this additional key in the |
@alias1, @alexellis should it be a new issue in |
…penfaas#96) Signed-off-by: Minh-Quan TRAN <account@itscaro.me>
There is technically no error, just unexpected behaviour. The service responded 200 because it was a valid request and accepted by the scheduler. Maybe we can update the documentation to make this clearer. |
Hrmm.. i'm not sure if I would agree that there is 'no error', but I suppose that depends on how you're defining it. The log line specifically states error:
If I'm not sure how quickly the gateway returns a @itscaro It probably makes sense to raise it as an issue there. I'll go open something when I have a spare minute to figure it out what to include. |
I didn't see that there was an error logged, in which case we can change the http code and response message. It's a quick fix. https://github.com/alexellis/faas/blob/master/gateway/handlers/createhandler.go#L57 |
Opened @itscaro Also, related to this issue. Using the command line flag with the yaml file, the yaml file seems to take precedence. Do we have a defined 'order of operations' across So in the following example, it would appear to deploy to
|
Expected Behaviour
When I deploy a command to my custom named stack, it works (or gives me an error saying it can't)
Current Behaviour
The CLI claims to successfully deploy the command, but it doesn't work. There is an error in the logs of the gateway. The CLI appears to have hardcoded the name:
https://github.com/alexellis/faas-cli/blob/3a2e81471c69275571d71f84c158bb787fb1ad7b/proxy/deploy.go#L44
There also seems to be a
defaultNetwork
defined that may not be used anywhere yet:https://github.com/alexellis/faas-cli/blob/fa5668b52afea6fc90434d67cfe211572da03cbd/commands/faas.go#L12
Possible Solution
Allow the network to be specified in the CLI. Return a proper error when deploys fail. Investigate whether the gateway can determine the correct network itself, without relying on the CLI telling it.
Steps to Reproduce (for bugs)
Context
Your Environment
The text was updated successfully, but these errors were encountered: