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

Archive nodes in graph refresh #209

Merged
merged 2 commits into from
Jan 16, 2018
Merged

Conversation

zeari
Copy link

@zeari zeari commented Jan 8, 2018

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

@cben @moolitayer Please review
Trying to come up with specs

@miq-bot add_label gaprindashvili/yes

@cben
Copy link
Contributor

cben commented Jan 8, 2018

fix LGTM, needs spec

Copy link
Contributor

@Ladas Ladas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cben
Copy link
Contributor

cben commented Jan 9, 2018 via email

@Ladas
Copy link
Contributor

Ladas commented Jan 9, 2018

@cben right, that would be for more complex reconnect, which we could do, if there is something to match when UUID changes. The reconnect I am suggesting would be mostly for consistency, to avoid duplication, before the unique indexes are in place.

@elad661
Copy link
Contributor

elad661 commented Jan 9, 2018

you said yesterday you know how to add nodes, so maybe you have an idea?

@cben I thought that the way to add a node to openshift (idk if it's different in kubernetes) is to run the installer again on the same cluster, with the new node listed in the inventory. It didn't work for a node that was already a member of the cluster before - my guess is you have to uninstall openshift on the node before you run the installer again, so it's probable that it'll have a new UID. This is only a guess, I haven't actually tried it (Ari gave up on his cluster after the first attempt, and just deployed a new one).

If needed, I can give it another try and see if the UID changes.

@cben
Copy link
Contributor

cben commented Jan 9, 2018

@Ladas if uid changes, we don't want reconnect. I was hoping that it always changes, therefore we won't need reconnect ;-)

In any case, this is an edge case of little consequence - there is little conceptual difference between new node and rejoined node...
I'm in favor of merging and tracking in an issue.

Copy link
Contributor

@Ladas Ladas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cben I'll leave it to your expertise then. Unique indexes should be merged this release, so maybe we do not need to bother with reconnect. :-)

@Ladas
Copy link
Contributor

Ladas commented Jan 9, 2018

@cben we should still add the specs though

@zeari zeari force-pushed the archive_nodes branch 2 times, most recently from 022fd73 to 25ccae5 Compare January 15, 2018 12:58
Copy link
Contributor

@cben cben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test LGTM 👍.
Codeclimate can be ignored, InventoryCollection definitions are inherently "similar blocks of code".

@zeari
Copy link
Author

zeari commented Jan 15, 2018

ping @moolitayer Added a spec

@@ -497,6 +500,7 @@ def assert_specific_persistent_volume_claim
end

it "archives objects" do
expect(@archived_node.reload.archived?).to eq(true)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please add a count like in lines 504 505 for the container nodes?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe also move the create after 1st refresh than before 2nd. Then we'd have:

  • "1st refresh pretending it saw an extra node"
  • counts: 2 active nodes
  • 2nd refresh
  • counts: 1 active 1 archived node

fits better into the mental mold than 1 active -> 1 active 1 archived?

@miq-bot
Copy link
Member

miq-bot commented Jan 15, 2018

Checked commits zeari/manageiq-providers-kubernetes@e6eca12~...d48271d with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 🍰

Copy link

@moolitayer moolitayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@moolitayer moolitayer merged commit 3087870 into ManageIQ:master Jan 16, 2018
@moolitayer moolitayer added this to the Sprint 77 Ending Jan 15, 2018 milestone Jan 16, 2018
simaishi pushed a commit that referenced this pull request Jan 16, 2018
Archive nodes in graph refresh
(cherry picked from commit 3087870)
@simaishi
Copy link

Gaprindashvili backport details:

$ git log -1
commit 9073e19b108140be97560e3e194979ecd5c62b91
Author: Mooli Tayer <[email protected]>
Date:   Tue Jan 16 15:21:47 2018 +0200

    Merge pull request #209 from zeari/archive_nodes
    
    Archive nodes in graph refresh
    (cherry picked from commit 3087870235e1ded39b057c18fcd4223fafd9be6a)

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.

7 participants