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

Policy to prevent Tag/Untag does not work #15882

Open
cben opened this issue Aug 23, 2017 · 12 comments
Open

Policy to prevent Tag/Untag does not work #15882

cben opened this issue Aug 23, 2017 · 12 comments

Comments

@cben
Copy link
Contributor

cben commented Aug 23, 2017

  1. Created a container node policy with Tag Request and UnTag Request events.
  2. Added Prevent current event from proceeding action.
  3. Created & assigned policy profile so the policy is active.
  4. Edit Tags in UI — added a tag, saved, removed, saved.

Expected: The tag is not added, nor removed.
Actual: https://gist.github.com/cben/fa09fbb6760531a30a725d9f66df2d4f — policy.log looks great, the Prevent action runs, but the tag was still added/removed!

@miq-bot add-labels control, bug

@cben
Copy link
Contributor Author

cben commented Aug 23, 2017

@lfu I see you did 2 fixes #14427 #14641 about Prevent not working — do you think similar fix would apply for [Un]Tag Request?
The current tag policy checking code is:
https://github.com/ManageIQ/manageiq/blob/8da73f2cf8e1a5/app/models/classification.rb#L286

@lfu
Copy link
Member

lfu commented Aug 23, 2017

@cben Tag event should not be prevented from policy as doing so may hit performance issue.

@cben
Copy link
Contributor Author

cben commented Aug 23, 2017 via email

@lfu
Copy link
Member

lfu commented Aug 24, 2017

@gmcculloug @Fryguy Thoughts?

@bronaghs
Copy link

@miq-bot assign @lfu

@Fryguy
Copy link
Member

Fryguy commented Sep 6, 2017

¯\_(ツ)_/¯ @gtanzillo ?

@miq-bot
Copy link
Member

miq-bot commented Apr 2, 2018

This issue has been automatically marked as stale because it has not been updated for at least 6 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions!

@miq-bot miq-bot added the stale label Apr 2, 2018
@JPrause
Copy link
Member

JPrause commented Jan 23, 2019

@cben is this still a valid issue. If not can you close.
If there's no update by next week, I'll be closing this issue.

@cben
Copy link
Contributor Author

cben commented Jan 27, 2019

@miq-bot remove-label stale

Didn't retest but I assume this wasn't magically fixed.
@gtanzillo @gmcculloug @Fryguy should request_assign_company_tag, request_unassign_company_tag events be removed? They're pointless & misleading if "Prevent current event" action has no effect, right?
@lfu says above #15882 (comment) making Prevent work would have problematic performance.

@miq-bot miq-bot removed the stale label Jan 27, 2019
@miq-bot
Copy link
Member

miq-bot commented Jul 29, 2019

This issue has been automatically marked as stale because it has not been updated for at least 6 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions!

@miq-bot miq-bot added the stale label Jul 29, 2019
@JPrause
Copy link
Member

JPrause commented Sep 25, 2019

@miq-bot remove_label stale
@miq-bot add_label pinned

@miq-bot
Copy link
Member

miq-bot commented Feb 27, 2023

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

@Fryguy Fryguy removed the stale label Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants