You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a stack with a TtlSchedule resource and DriftSchedule resource.
If I run pulumi refresh -y the schedules' ids are removed from state.
So, if change the resource (say modify the time or cron) a subsequent pulumi up creates additional schedules.
Example
Use your favorite pulumi (python) program/stack with deployments configured and add the code below.
pulumi up -y
See the two schedules that were created.
pulumi refresh -y
Note that schedule Ids were removed from state
Modify the two schedule resources by modifying the time or cron properties
pulumi up -y
In Pulumi Cloud UI see that there are now two of each type of schedule instead of just modifying the original schedules.
CLI
Version 3.113.3
Go Version go1.22.2
Go Compiler gc
Plugins
KIND NAME VERSION
resource aws 6.32.0
resource pulumiservice 0.20.0
language python unknown
resource stackmgmt 3.1.0
Host
OS darwin
Version 13.6.6
Arch x86_64
This project is written in python: version='3.10.11'
Backend
Name pulumi.com
Dependencies:
NAME VERSION
pequod-stackmgmt 3.1.0
pip 23.0.1
pulumi_aws 6.32.0
setuptools 65.5.0
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered:
pulumiservice:index:TtlSchedule (ttlsched):
error: failed to delete schedule with scheduleId : failed to parse response body, status code 404: invalid character 'p' after top-level value
It requires state surgery to remove the TTL schedule URN.
### Summary
- Fixing 2 bugs:
- [First](#257) is
me forgetting to add scheduleId to output properties on Read
- Second one I discovered while working on the first one, when booleans
are not provided, they are still saved to output state, which causes
eternal diff when running pulumi update. Not sure how I missed that
originally.
### Testing
- make build and install
- Tested locally using Dotnet SDK
This is fixed in pull request, resolving the issue. We will do a new release of the provider this week, so that the change will be live. Resolving the issue.
What happened?
I have a stack with a TtlSchedule resource and DriftSchedule resource.
If I run
pulumi refresh -y
the schedules' ids are removed from state.So, if change the resource (say modify the time or cron) a subsequent
pulumi up
creates additional schedules.Example
pulumi up -y
pulumi refresh -y
pulumi up -y
Output of
pulumi about
CLI
Version 3.113.3
Go Version go1.22.2
Go Compiler gc
Plugins
KIND NAME VERSION
resource aws 6.32.0
resource pulumiservice 0.20.0
language python unknown
resource stackmgmt 3.1.0
Host
OS darwin
Version 13.6.6
Arch x86_64
This project is written in python: version='3.10.11'
Backend
Name pulumi.com
Dependencies:
NAME VERSION
pequod-stackmgmt 3.1.0
pip 23.0.1
pulumi_aws 6.32.0
setuptools 65.5.0
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: