Compute Profile cannot be deleted after a new version of Pipeline is created after Editing
Description
Issue Summary
Deletion of compute profile fails with the error message Please delete all assignments before deleting the profile, after the pipeline is edited and the compute profile is changed.
Repro Steps
Create a Compute Profile (let’s say my-profile1) from System Admin > Configuration > System Compute Profiles > Create New Profile > Dataproc > [Enter details] > click Create.
Deploy a pipeline. For instance DatafusionQuickStart pipeline from Hub.
In the pipeline page click on Configure > Compute Config > Select my-profile created in Step 1.
In the profile details page see that the this pipeline shown as using this profile (my-profile1).
Edit the pipeline by clicking Actions > Edit > Make changes to the Pipeline > Deploy.
Now change the compte profile for the pipeline by clicking on Configure > Compute Config > Select profile other than my-profile .
Now go back to the Profile details page for my-profile1, the pipeline using this profile won’t be shown.
Disable the profile before deleting it.
Try deleting the profile it will fail with the error Please delete all assignments before deleting the profile. [screenshot attached below]
Expectation
Profile should have got deleted after the compute profile for the pipeline was changed.
Notes
Probably this issue was introduced in 6.8.0 when LCM was introduced.
Issue Summary
Deletion of compute profile fails with the error message
Please delete all assignments before deleting the profile
, after the pipeline is edited and the compute profile is changed.Repro Steps
Create a Compute Profile (let’s say
my-profile1
) fromSystem Admin
>Configuration
>System Compute Profiles
>Create New Profile
>Dataproc
> [Enter details] > clickCreate
.Deploy a pipeline. For instance
DatafusionQuickStart
pipeline from Hub.In the pipeline page click on
Configure
>Compute Config
> Selectmy-profile
created in Step 1.In the profile details page see that the this pipeline shown as using this profile (
my-profile1)
.Edit the pipeline by clicking
Actions
>Edit
> Make changes to the Pipeline >Deploy.
Now change the compte profile for the pipeline by clicking on
Configure
>Compute Config
> Select profile other thanmy-profile
.Now go back to the Profile details page for
my-profile1
, the pipeline using this profile won’t be shown.Disable the profile before deleting it.
Try deleting the profile it will fail with the error
Please delete all assignments before deleting the profile.
[screenshot attached below]Expectation
Profile should have got deleted after the compute profile for the pipeline was changed.
Notes
Probably this issue was introduced in 6.8.0 when LCM was introduced.