Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manual bulk node add: modifying tags on one node can delete tags from others #600

Closed
vjeffrey opened this issue Jun 14, 2019 · 1 comment · Fixed by #695
Closed

manual bulk node add: modifying tags on one node can delete tags from others #600

vjeffrey opened this issue Jun 14, 2019 · 1 comment · Fixed by #695
Assignees
Labels
bug 🐛 Something isn't working

Comments

@vjeffrey
Copy link

User Story

To reproduce, first get some compliance nodes into Automate node manager with some matching tags like so:

curl -s --insecure -H "api-token: $token_val" https://chef-automate.test/api/v0/nodes/bulk-create -d '
{"nodes": [{
     "name_prefix": "my-ssh-node",
     "manager":"automate",
     "target_config": {
        "backend":"ssh",
        "hosts":["localhost","127.0.0.1"],
        "port": 22
      },
      "tags": [
        { "key":"bleep", "value":"bloop" },
        { "key":"bada", "value":"bing" }
      ]
    },
    {
     "name": "my-other-node",
     "manager":"automate",
      "target_config": {
        "backend":"ssh",
        "hosts":["localhost"],
        "port": 22
      },
      "tags": [
        { "key":"bleep", "value":"bloop" }
      ]
    }
  ]
}'

And then go into Automate node manager, and change the e.g. value for the "bleep" tag on any of the 3 nodes that were added to something else, like "AAA", and the tags on the other nodes disappear afterwards, either all of them, or only the ones that were matching to the tag that was modified – we have observed both.

Definition of Done

Modifying tags on one node has no effect on the tags of another node

Related Resources

https://chefio.atlassian.net/browse/TRI-857?oldIssueView=true

@vjeffrey vjeffrey added the bug 🐛 Something isn't working label Jun 14, 2019
@alexpop alexpop self-assigned this Jun 24, 2019
@alexpop
Copy link
Contributor

alexpop commented Jun 24, 2019

Looking into this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants