Bug 1344382 - [upgrade] After upgrade org/location auto get disassociated from discovery rules
Summary: [upgrade] After upgrade org/location auto get disassociated from discovery rules
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Upgrades
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Sachin Ghai
URL:
Whiteboard:
Depends On:
Blocks: 1335807
TreeView+ depends on / blocked
 
Reported: 2016-06-09 14:18 UTC by Sachin Ghai
Modified: 2019-04-01 20:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-13 10:00:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
foreman-debug (1.12 MB, application/x-xz)
2016-06-09 14:32 UTC, Sachin Ghai
no flags Details
hostgroup associated with discovery rule but no org/location after upgrade (23.73 KB, image/png)
2016-06-13 08:01 UTC, Sachin Ghai
no flags Details
in 6.1.9, no separte tabs under discovery rule to select org/location (37.56 KB, image/png)
2016-06-13 09:46 UTC, Sachin Ghai
no flags Details

Description Sachin Ghai 2016-06-09 14:18:32 UTC
Description of problem:
I did an upgrade from sat6.1.9 -> sat6.2 GA snap15.1. I defined a rule before upgrade and associated "Default Org" and Default Loc". Later, once upgrade was completed successfully when I checked the created rule before upgrade, I don't find it under Default Org.  Org/location auto got disassociated.

Version-Release number of selected component (if applicable):
upgrade from sat6.1.9 -> sat6.2 GA snap15.1. 

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:
org/location association with discovery rule should remain there

Additional info:

Comment 1 Sachin Ghai 2016-06-09 14:32:50 UTC
Created attachment 1166331 [details]
foreman-debug

Comment 4 Brad Buckingham 2016-06-09 19:40:34 UTC
Lukas, can you take a quick look at this bug?

Comment 6 Lukas Zapletal 2016-06-10 14:27:30 UTC
Sachin,

are you using administrator account when encountering the missing taxonomy? We added new permissions, check discovery rules permissions for the user in order to have full access there.

We also now enforce discovery rule to match hostgroup taxonomy, is hostgroup also associated to the org/loc? If not, rule can't be added to the taxonomy.

What was the foreman_discovery RPM version before and after upgrade please? I can't find it in the logs.

Comment 7 Sachin Ghai 2016-06-13 08:00:29 UTC
Yes. I created a discovery rule with admin account on sat6.1.9. "Default_Organization" and "Default_Location" were associated before upgrade and hostgroup was associated too with discovery rule. Please see the attached screenshot where hostgroup is associated with rule but no org/location after upgrade

I'll share the discovery rpm version

Comment 8 Sachin Ghai 2016-06-13 08:01:28 UTC
Created attachment 1167258 [details]
hostgroup associated with discovery rule but no org/location after upgrade

Comment 9 Lukas Zapletal 2016-06-13 08:45:36 UTC
I am not sure I understand, Any context gives you all org/loc, can you attach screenshot of the detail (edit) page of the rule (its taxonomy)?

Comment 10 Sachin Ghai 2016-06-13 09:45:42 UTC
I just installed sat619 and realized that in sat619, we don't have tabs to select org and locations while creating the discovery rule. However in 6.2, I do see separate tabs for organization and location selection.

So in this case, I'm assuming all defined rules with 6.1.9 (when no org/loc was selected explicitly) automatically be disassociated after upgrade with 6.2. 

Looks like its more a documentation issue.

Comment 11 Sachin Ghai 2016-06-13 09:46:31 UTC
Created attachment 1167387 [details]
in 6.1.9, no separte tabs under discovery rule to select org/location

Comment 12 Sachin Ghai 2016-06-13 10:00:17 UTC
I'm closing this bz as behaviour is expected. But I'll ask documentation team to add a note in upgrade docs. 

Note: After 6.2 upgrade, users needs to explicitly associate selected org/location with discovery rules.

Comment 13 Lukas Zapletal 2016-06-13 11:38:12 UTC
Looks like a good upgrading instruction, thanks.


Note You need to log in before you can comment on or make changes to this bug.