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

Fixes #20558 - anon/redhat providers seed idempotency #6904

Merged
merged 1 commit into from Aug 25, 2017

Conversation

lzap
Copy link
Contributor

@lzap lzap commented Aug 11, 2017

A customer is hitting "ActiveRecord::RecordInvalid: Validation failed: Providers is invalid" during "db/seeds.d/102-organizations.rb". Futher investigation reveals that create_anonymous_provider is called when there is already anonymous provider present. They had anonymous but not redhat, perhaps they run into issues during migration or script during their upgrade.

We don't know how this happened, but this is not important. What's important that the 102-organizations.rb seed script is supposed to be idempotent, there is a big banner at the top, but these lines are definitely not idempotent. My patch will fix that.

@theforeman-bot
Copy link

Issues: #20558

@jlsherrill
Copy link
Member

[test]

@lzap
Copy link
Contributor Author

lzap commented Aug 17, 2017

Looks unrelated to me - infra issue. Finished in 70.960493s, 2.7762 runs/s, 4.6505 assertions/s.

@ehelms
Copy link
Member

ehelms commented Aug 17, 2017

[test]

@lzap
Copy link
Contributor Author

lzap commented Aug 22, 2017

All green, thanks!

@ehelms ehelms merged commit 3cf0b60 into Katello:master Aug 25, 2017
@lzap lzap deleted the idempotent-seed-org-20558 branch August 29, 2017 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants