-
Notifications
You must be signed in to change notification settings - Fork 125
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
Add evm_owner, tenant, group to orch stacks #288
Conversation
@miq-bot add_label wip, hammer/yes |
af3717f
to
9545e77
Compare
@miq-bot remove_label hammer/yes |
6b8db66
to
d4d08bf
Compare
db/migrate/20181010134649_add_evm_owner_to_orchestration_stacks.rb
Outdated
Show resolved
Hide resolved
644268e
to
25919b9
Compare
db/migrate/20181016140921_migrate_orch_stacks_to_have_ownership_concept.rb
Outdated
Show resolved
Hide resolved
db/migrate/20181016140921_migrate_orch_stacks_to_have_ownership_concept.rb
Outdated
Show resolved
Hide resolved
db/migrate/20181016140921_migrate_orch_stacks_to_have_ownership_concept.rb
Outdated
Show resolved
Hide resolved
db/migrate/20181016140921_migrate_orch_stacks_to_have_ownership_concept.rb
Outdated
Show resolved
Hide resolved
db/migrate/20181010134649_add_evm_owner_to_orchestration_stacks.rb
Outdated
Show resolved
Hide resolved
77b5fc0
to
019f44f
Compare
f0dc611
to
126a640
Compare
@miq-bot add_reviewer @tinaafitz |
2751fb1
to
c1bf143
Compare
4b29f14
to
86d7c98
Compare
Checked commit d-m-u@86d7c98 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
No, there are schema changes. I changed the labels accordingly. |
Not sure if this is a Problem, but, this migration fails when updating a gaprindashvili db to ivanchuk:
|
Wow, what a coincidence, I was just looking into https://bugzilla.redhat.com/show_bug.cgi?id=1732808 which reports the same error. @himdel Do you have a reproducer environment? |
Heheh, nice, I can share the db dump :) (edit: pm'd) |
@bdunne @himdel What version of id_regions? maybe id_regions isn't 0.3.0? You'll get that error if an old version migration is run with rails 5.1+. This PR was needed to fix this: |
Hmmm, that could be it :) I'm seeing 0.3.0 but running the migration again...
but I started my repo from hammer, so I guess the same |
oh wow... yeah, I can see that...
|
The bundle update completes before the database is migrated in |
Well, However, bundler also rewrites So... that could still be possible.. (I do remember having problems with ruby run from ruby when dealing with webpacker, so it does ring a bell, a bit :).) Don't we have a clear bundle environment thing somewhere? |
Bundler.with_clean_env do
system("bundle exec rake update:actual_ui")
end I think we would need that ^^ for |
@himdel can you help me recreate it? Based on your information, I tried the following:
The first step migrates the db back to the latest migration on hammer. I can't recreate it this way. Maybe I need something in my database in that table? |
Note, I put some findings into the bz... it looks like an issue of one migration running before another one polluting the memory space. If you migrate a second time, it works. |
@jrafanie Sorry, apparenty not any more :(. All I can tell you is that I took my manageiq hammer copy, updated to ivanchuk, and pointed it to a new database that came from a gaprindashvili copy I had lying around. I can confirm that even if bin/update updates id.regions from 0.2.2 to 0.3.0 in the same run as running db:migrate, the migration passes. so, it was probably not that. |
As part of the work for ManageIQ/manageiq#17951 (comment), orchestration stacks need an owner in order to be able to retire them as a request. Since we have group and tenant ids along with evm_owners, they're here too...
TODO: Things n stuff associated with this that still need to happen: we need to get both pathways sorted -- stacks that we discover from the providers need the user set, and ones we create ourselves need the user set at the end of provisioning.
As discussed with Madhu and GM, the approach of using the service owner and then the ems owner is the preferable way to do this.