aspire deploy fails on "process-parameters" if parameter resource definition has changed
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Describe the bug
Suddenly, `aspire deploy` started to fail on `process-parameters` phase on something changed with a resource.
This is expected: I'm on an active code development phase changing bits every now and then.
There is no clue provided how to get around it. Where are parameters definitions are stored? How to clear them? Nothing in my folder. Nothing in the `aspire` CLI. No clue at all.
```
aspire deploy -e Development --clear-cache --log-level trace
18:37:35 (pipeline-execution) → Starting pipeline-execution...
18:37:35 (process-parameters) → Starting process-parameters...
18:37:35 (process-parameters) i [DBG] Resource mi-kafka-password/mi-kafka-password changed state: Waiting -> Running
18:37:35 (process-parameters) i [TRC] Version: 1 Resource mi-kafka-password/mi-kafka-password update published: ResourceType = Parameter, CreationTimeStamp
= (null), State = { Text = Running, Style = (null) }, IsHidden = False, HeathStatus = Healthy, ResourceReady = False, ExitCode = (null), Urls = { },
EnvironmentVariables = { }, Properties = { resource.source = Parameters:mi-kafka-password Value = root }, HealthReports = { }, Commands = { }
18:37:35 (process-parameters) i [DBG] Resource mi-redis-password/mi-redis-password changed state: Waiting -> Running
18:37:35 (process-parameters) i [TRC] Version: 1 Resource mi-redis-password/mi-redis-password update published: ResourceType = Parameter, CreationTimeStamp
= (null), State = { Text = Running, Style = (null) }, IsHidden = False, HeathStatus = Healthy, ResourceReady = False, ExitCode = (null), Urls = { },
EnvironmentVariables = { }, Properties = { resource.source = Parameters:mi-redis-password Value = root }, HealthReports = { }, Commands = { }
18:37:35 (process-parameters) i [DBG] Resource mi-auditlog-username/mi-auditlog-username changed state: Waiting -> Running
18:37:35 (process-parameters) i [TRC] Version: 1 Resource mi-auditlog-username/mi-auditlog-username update published: ResourceType = Parameter,
CreationTimeStamp = (null), State = { Text = Running, Style = (null) }, IsHidden = False, HeathStatus = Healthy, ResourceReady = False, ExitCode = (null),
Urls = { }, EnvironmentVariables = { }, Properties = { resource.source = Parameters:mi-auditlog-username Value = postgres }, HealthReports = { },
Commands = { }
18:37:35 (process-parameters) i [DBG] Resource mi-auditlog-password/mi-auditlog-password changed state: Waiting -> Running
18:37:35 (process-parameters) i [TRC] Version: 1 Resource mi-auditlog-password/mi-auditlog-password update published: ResourceType = Parameter,
CreationTimeStamp = (null), State = { Text = Running, Style = (null) }, IsHidden = False, HeathStatus = Healthy, ResourceReady = False, ExitCode = (null),
Urls = { }, EnvironmentVariables = { }, Properties = { resource.source = Parameters:mi-auditlog-password Value = postgres }, HealthReports = { },
Commands = { }
18:37:35 (process-parameters) i [DBG] Resource mi-mongodb-username/mi-mongodb-username changed state: Waiting -> Running
18:37:35 (process-parameters) i [TRC] Version: 1 Resource mi-mongodb-username/mi-mongodb-username update published: ResourceType = Parameter,
CreationTimeStamp = (null), State = { Text = Running, Style = (null) }, IsHidden = False, HeathStatus = Healthy, ResourceReady = False, ExitCode = (null),
Urls = { }, EnvironmentVariables = { }, Properties = { resource.source = Parameters:mi-mongodb-username Value = root }, HealthReports = { }, Commands = {
}
18:37:35 (process-parameters) i [DBG] Resource mi-mongodb-password/mi-mongodb-password changed state: Waiting -> Running
18:37:35 (process-parameters) i [TRC] Version: 1 Resource mi-mongodb-password/mi-mongodb-password update published: ResourceType = Parameter,
CreationTimeStamp = (null), State = { Text = Running, Style = (null) }, IsHidden = False, HeathStatus = Healthy, ResourceReady = False, ExitCode = (null),
Urls = { }, EnvironmentVariables = { }, Properties = { resource.source = Parameters:mi-mongodb-password Value = root }, HealthReports = { }, Commands = {
}
18:37:35 (process-parameters) ✗ [ERR] Step 'process-parameters' failed.
18:37:35 (process-parameters) ✗ Step 'process-parameters' failed: Resource instance doesn't match resource previously registered with specified resource id
'mi-redis-password'.
18:37:35 (pipeline-execution) ✗ [ERR] Step 'process-parameters' failed: Resource instance doesn't match resource previously registered with specified
resource id 'mi-redis-password'.
18:37:35 (pipeline-execution) ✗ Failed
``
### Expected Behavior
_No response_
### Steps To Reproduce
_No response_
### Exceptions (if any)
_No response_
### .NET Version info
_No response_
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.