Skip to content

cloudbyIndex approach to handle clouds with same name is broken #26187

@mawinter69

Description

@mawinter69

Jenkins and plugins versions report

Environment
Jenkins 2.547

Any of the cloud plugins that allow to to create clouds with same name, e.g. google-compute-engine or j

clouds

What Operating System are you using (both controller, and any agents involved in the problem)?

not relevant

Reproduction steps

  1. create 3 clouds with the same name but configure one field to be different on each cloud (e.g. project id in gce)
  2. open the configure page for cloud with index 2
  3. delete the first cloud
  4. change the instancecap of cloud 2 and save the cloud
  5. check the clouds project ids

Expected Results

clouds have different project id

Actual Results

clouds have same project id
but different instance caps

Anything else?

The problem is that when the first cloud is deleted the index of the other 2 clouds changes.
So while saving cloud 2 one actually modifies cloud 3.

Are you interested in contributing a fix?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions