Bug 1330015

Summary: Unable to assign tags to Hosts
Product: Red Hat CloudForms Management Engine Reporter: Prasad Mukhedkar <pmukhedk>
Component: UI - OPSAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED NOTABUG QA Contact: Niyaz Akhtar Ansari <nansari>
Severity: urgent Docs Contact:
Priority: high    
Version: 5.3.0CC: cchen, hkataria, jdeubel, jhardy, mpovolny, mzazrivec, nansari, obarenbo, pmukhedk, sacpatil
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-28 17:23:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Comment 2 Sachin 2016-04-25 12:49:12 UTC
I wonder why this extra parameter("_"=>"") is been added in the customer log?

      Parameters: {"tag_cat"=>"visibility", "_"=>"", "id"=>"1000000000001"}

Whereas in our environment, we do not see the key with the name '_'
 
---

[----] I, [2016-04-25T11:19:28.213479 #10751:69a08c]  INFO -- : Started POST "/host/tag_edit_form_field_changed/1000000000003" for 127.0.0.1 at 2016-04-25 ...
[----] I, [2016-04-25T11:19:28.218081 #10751:69a08c]  INFO -- : Processing by HostController#tag_edit_form_field_changed as JS
[----] I, [2016-04-25T11:19:28.220748 #10751:69a08c]  INFO -- :   Parameters: {"tag_cat"=>"visibility", "id"=>"1000000000003"}
[----] I, [2016-04-25T11:19:28.253951 #10751:69a08c]  INFO -- :   Rendered layouts/_tag_edit_cat_tags.html.erb (0.9ms)
[----] I, [2016-04-25T11:19:28.264645 #10751:69a08c]  INFO -- : Completed 200 OK in 43.7ms (Views: 2.6ms | ActiveRecord: 3.6ms)

---

May be a good pointer to start with.

Comment 3 Milan Zázrivec 2016-04-26 12:10:38 UTC
(In reply to Sachin from comment #2)
> I wonder why this extra parameter("_"=>"") is been added in the customer log?
> 
>       Parameters: {"tag_cat"=>"visibility", "_"=>"", "id"=>"1000000000001"}
> 
> Whereas in our environment, we do not see the key with the name '_'
>  
> ---
> 
> [----] I, [2016-04-25T11:19:28.213479 #10751:69a08c]  INFO -- : Started POST
> "/host/tag_edit_form_field_changed/1000000000003" for 127.0.0.1 at
> 2016-04-25 ...
> [----] I, [2016-04-25T11:19:28.218081 #10751:69a08c]  INFO -- : Processing
> by HostController#tag_edit_form_field_changed as JS
> [----] I, [2016-04-25T11:19:28.220748 #10751:69a08c]  INFO -- :  
> Parameters: {"tag_cat"=>"visibility", "id"=>"1000000000003"}
> [----] I, [2016-04-25T11:19:28.253951 #10751:69a08c]  INFO -- :   Rendered
> layouts/_tag_edit_cat_tags.html.erb (0.9ms)
> [----] I, [2016-04-25T11:19:28.264645 #10751:69a08c]  INFO -- : Completed
> 200 OK in 43.7ms (Views: 2.6ms | ActiveRecord: 3.6ms)
> 
> ---
> 
> May be a good pointer to start with.

Nope. This is expected behavior.

Comment 4 Milan Zázrivec 2016-04-26 12:14:30 UTC
This sort of error should not happen under normal circumstances. For some
reason, the session data here seems to be messed up.

What you can try is to:

1. log into your CFME appliance as root
2. make sure nc package is installed
3. run as root in command line: # echo 'flush_all' | nc localhost 11211
4. log out / log into your CFME UI and re-try the procedure

Comment 10 Sachin 2016-04-28 04:34:54 UTC
Looks like we are able to access 'visibility' tags and tag the host. I don't see any error. Let me confirm once again and we'll revert back.

Comment 12 Milan Zázrivec 2016-04-28 07:41:50 UTC
Do we still have a problem here? Can this bug report be closed?