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

Properly create tenant default group for population #18025

Merged
merged 1 commit into from
Sep 26, 2018

Conversation

kbrock
Copy link
Member

@kbrock kbrock commented Sep 26, 2018

When creating a tenant, if there are already groups in the database,
it would assign a random group.

This can only happen for customers who had a database before tenancy
was introduced in 2015

The fix: it will now only assign a tenant group.

https://bugzilla.redhat.com/show_bug.cgi?id=1625788

I'm also adding a migration to automatically fix customer's databases

When creating a tenant, if there are already groups in the database,
it would assign a random group.
This would manifest by having a seemingly random group assigned to newly
discovered VMs/Hosts. There can then be privilege issues as the admins
possibly don't have access to the group.

This only happens for customers who had a database before tenancy
was introduced in 2015. It incorrectly assigned during the migration
process in 20151021174140_assign_tenant_default_group

The fix: it will now only assign a tenant group.

https://bugzilla.redhat.com/show_bug.cgi?id=1625788

I'm also adding a migration to automatically fix customer's databases
Since the issue was introduced in a migration in the first place.
@kbrock kbrock changed the title Properly create tenant default group for population Properly create tenant default group for populatio Sep 26, 2018
@miq-bot
Copy link
Member

miq-bot commented Sep 26, 2018

Checked commit kbrock@bea02fc with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 👍

@bdunne bdunne changed the title Properly create tenant default group for populatio Properly create tenant default group for population Sep 26, 2018
@bdunne bdunne merged commit 88c3637 into ManageIQ:master Sep 26, 2018
@bdunne bdunne added this to the Sprint 96 Ending Oct 8, 2018 milestone Sep 26, 2018
@bdunne bdunne self-assigned this Sep 26, 2018
@kbrock kbrock deleted the bz_1625788 branch September 28, 2018 00:18
simaishi pushed a commit that referenced this pull request Oct 1, 2018
Properly create tenant default group for population

(cherry picked from commit 88c3637)

https://bugzilla.redhat.com/show_bug.cgi?id=1625788
@simaishi
Copy link
Contributor

simaishi commented Oct 1, 2018

Hammer backport details:

$ git log -1
commit 30b9835fa4818516851d0badcde2dfad8a539b82
Author: Brandon Dunne <[email protected]>
Date:   Wed Sep 26 18:05:43 2018 -0400

    Merge pull request #18025 from kbrock/bz_1625788
    
    Properly create tenant default group for population
    
    (cherry picked from commit 88c363749d0769568dc867bb20c2a8f384933cac)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1625788

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants