-
Notifications
You must be signed in to change notification settings - Fork 54
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
newrelic-lambda integrations update
fails to update pre-0.9 stack due to No newrelic-log-ingestion function in region ...
error
#267
Comments
Oh. Maybe this is intended behaviour, according to https://github.com/newrelic/newrelic-lambda-cli/releases/tag/v0.9.0. If that's the case, how do we update our stacks? Are we stuck on 0.8.0 forever? Maybe there's some method to manually update them, or maybe this script could be upgraded to support the migration automatically? |
Hi @huonw, the new release assumes that one would create a new
The above command would create a new stack with a new
Yes, as per the release notes, this change is not compatible with log-ingestion function created with earlier versions. Also could you please indicate what you want to update? Is it the log-ingestion function? Thanks |
Thanks for the reply. We have a stacks we created with I tried using 0.9.0 and was getting the errors described in the issue and didn't know the cause, until diving into the code. I'm still somewhat unclear on what the recommended upgrade path is: delete the integration stack and recreate it? (As a stop gap, I've just used 0.8.0 and that's been enough to resolve the immediate problem.) As a user, it would've helped me to either have:
|
We also encountered this issue. As @huonw mentioned, the error message is completely useless. I'm also very disappointed that it's been almost three months without any solution from New Relic. I think the decision in v0.9.0 needs to be reversed until New Relic has a valid plan for migrating to the new function name. Also, I will say that adding a suffix to the function seems totally unnecessary. If anything, you should force the other thing to change to get rid of the suffix. |
We are looking into the ways to make the CLI changes backward compatible. Appreciate the feedback, Thank you! |
Description
Steps to Reproduce
newrelic-lambda integrations update ...
using CLI version 0.9.0Expected Behaviour
The update should succeed, either renaming the function or preserving it with the old name.
It looks like #254 may have introduced some
if
statements that aren't working as intended given its stated goal of preserving compatibility.newrelic-lambda-cli/newrelic_lambda_cli/integrations.py
Lines 89 to 103 in f472e28
In addition, it would be nice if the logs were more specific about which function doesn't exist. I would've identified the problem with far less effort if the error printed out
No newrelic-log-ingestion-0aa... function in region
, given we do have function callednewrelic-log-ingestion
as literally appears in the error message.Relevant Logs / Console output
The update fails, with error:
I inserted debug logs like the following:
It prints
DEBUG: unique_log_ingestion_name='newrelic-log-ingestion-0aa...'
. That is, the function name has a unique suffix. Our AWS account indeed doesn't have a lambda with this name; although does havenewrelic-log-ingestion
.Your Environment
macOS
Additional context
N/A
The text was updated successfully, but these errors were encountered: