Comments (6)
Calling pulumi up isn't working since 3.112.0. 3.111.1 is working fine.
Is this changing the version of the pulumi python library or the CLI or both? Does it work on 3.112 CLI if you use 3.111.1 of the python library? Likewise how about 3.111.1 CLI with 3.112 python library?
from pulumi.
I did a few test runs with the different version combinations. The CLI always works when the python lib version is 3.111.1
CLI | Python Library | Result |
---|---|---|
3.111.1 | 3.111.1 | Works |
3.111.1 | 3.112.0 | IndexError: list index out of range |
3.111.1 | 3.113.0 | IndexError: list index out of range |
3.112.0 | 3.111.1 | Works |
3.112.0 | 3.112.0 | IndexError: list index out of range |
3.112.0 | 3.113.0 | IndexError: list index out of range |
3.113.0 | 3.111.1 | Works |
3.113.0 | 3.112.0 | IndexError: list index out of range |
3.113.0 | 3.113.0 | IndexError: list index out of range |
from pulumi.
Not sure if it helps, thats with --debug (Python lib & CLI 3.113.0)
debug: waiting for quiescence; 8874 outputs outstanding
debug: waiting for quiescence; 8873 outputs outstanding
debug: waiting for quiescence; 8872 outputs outstanding
debug: waiting for quiescence; 8871 outputs outstanding
error: Program failed with an unhandled exception:
Traceback (most recent call last):
File "/opt/homebrew/bin/pulumi-language-python-exec", line 191, in <module>
loop.run_until_complete(coro)
File "/opt/homebrew/Cellar/[email protected]/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/asyncio/base_events.py", line 685, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/Users/REDACTED/.venv/lib/python3.12/site-packages/pulumi/runtime/stack.py", line 132, in run_in_stack
await run_pulumi_func(run)
File "/Users/REDACTED/.venv/lib/python3.12/site-packages/pulumi/runtime/stack.py", line 53, in run_pulumi_func
await wait_for_rpcs()
File "/Users/REDACTED/.venv/lib/python3.12/site-packages/pulumi/runtime/stack.py", line 109, in wait_for_rpcs
await task
IndexError: list index out of range
from pulumi.
Ok thanks that narrows it down to an issue with the library not the CLI. I have a suspicion to what change could have caused this.
from pulumi.
So https://github.com/pulumi/pulumi/pull/15744/files changed how we wait for outputs and async tasks. I think this may have had the effect that an exception your code was throwing that used to be ignored/missed is now detected.
Worth taking a look at https://docs.python.org/3/library/asyncio-dev.html and running your program on 3.111.1 with debugging turned on to see if it picks up any uncaught exceptions.
from pulumi.
Thanks for the quick support
The following code caused the issue:
import time
import pulumi
async def wait_for_eventual_consistency(args: list) -> bool:
resource_id = args[0]
duration = 5 if args[1] is None else int(args[1])
if not pulumi.runtime.is_dry_run():
pulumi.log.info(
f"Waiting {duration} seconds for eventual consistency for resource {resource_id}"
)
time.sleep(duration)
return True
pulumi.Output.all(account.id).apply(pkg.wait_for_eventual_consistency)
With this error:
duration = 5 if args[1] is None else int(args[1])
~~~~^^^
IndexError: list index out of range
from pulumi.
Related Issues (20)
- In CLI different types of events are logged with --diff depending on whether it's a pty or not
- TestGenerateProgram/csharp-plain-lists is broken on master
- Consider a fallback import mechanism HOT 6
- `pulumi refresh` resulting in state integrity errors HOT 1
- when use vault kubernetes, inputs.tokenReviewerJwt field in stack checkpoint json is not encrypted HOT 2
- Python memory pressure from tracking all outputs till the end of the program
- Structured configuration errors in Pulumi.yaml (which work in Pulumi.stack.yaml) HOT 2
- Add the ability to override `PluginDownloadURL` if it is explicitly set on a plugin
- Add an `ArtifactorySource` as a `PluginSource` to plugins.go
- Do not warn on changing outputs during refresh HOT 1
- Cannot convert undefined or null to object at `@pulumi/runtime/closure/codePaths.ts:250:34` HOT 2
- Allow conformance test sdk generation to run in parallel
- Workflow failure: On Push HOT 4
- Invalid lists of enums in .NET
- CLI concurrent map read and map write panic
- `TestLanguageNewSmoke/java` broken on the main branch HOT 1
- v3.114.0 FileArchive Issue: file not found when using a relative path of more than 2 levels above. Lambda zip: no such file or directory. HOT 9
- Nu se deschide o fereastră
- Python automation.Stack.up() orphans _watch_logs thread HOT 2
- Accurate property and resource references in descriptions HOT 1
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 pulumi.