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

Adds structure to hardware relationship, parse_hardware and missed attributes #35

Closed
wants to merge 6 commits into from

Conversation

odravison
Copy link

@odravison odravison commented Mar 23, 2017

Adding structure needed to relationship between physical server and hardware, such as:

  1. parse_hardware method
  2. has_one relationship into PhysicalServer model
  3. adding some missed attributes into parse_nodes method

Depends on: #34

Odravison Amaral added 2 commits March 23, 2017 16:09
Adding structure needed to relationship between physical server and hardware, such as:

1. `parse_hardware` method
2. `has_one` relationship into PhysicalServer model
3. adding some missed attributes into `parse_nodes` method
@miq-bot
Copy link
Member

miq-bot commented Mar 23, 2017

@odravison unrecognized command 'add_labe', ignoring...

Accepted commands are: add_label, assign, close_issue, move_issue, remove_label, rm_label, set_milestone

@odravison
Copy link
Author

@miq-bot add_label WIP

@miq-bot miq-bot changed the title Adds structure to hardware relationship, parse_hardware and missed attributes [WIP] Adds structure to hardware relationship, parse_hardware and missed attributes Mar 23, 2017
@miq-bot miq-bot added the wip label Mar 23, 2017
@miq-bot
Copy link
Member

miq-bot commented Mar 24, 2017

Checked commits odravison/manageiq-providers-lenovo@f8696d3~...a5e6aad with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks good. 👍

@odravison
Copy link
Author

@miq-bot remove_label WIP

@miq-bot miq-bot changed the title [WIP] Adds structure to hardware relationship, parse_hardware and missed attributes Adds structure to hardware relationship, parse_hardware and missed attributes Mar 24, 2017
@miq-bot miq-bot removed the wip label Mar 24, 2017
@@ -1,5 +1,7 @@
module ManageIQ::Providers
class Lenovo::PhysicalInfraManager::PhysicalServer < ::PhysicalServer
has_one :hardware
Copy link
Member

Choose a reason for hiding this comment

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

This isn't needed here, as this Lenovo::PhysicalInfraManager::PhysicalServer inherits from PhysicalServer in the main ManageIQ repo. That model has the dependencies. See this PR ManageIQ/manageiq#14430

@@ -69,23 +88,43 @@ def parse_firmware(firmware, uuid)
}
end

def parse_hardware(node)
Copy link
Member

Choose a reason for hiding this comment

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

This is great, I wasn't sure what data we needed to be parsed. 👍

Copy link
Member

Choose a reason for hiding this comment

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

The data that we need parse are: total memory in node.memoryModules, total CPU cores and the maximum processor frequency in node.processors, as you can see in the method. It was decided during a meeting with Lenovo guys.

@miq-bot
Copy link
Member

miq-bot commented Apr 4, 2017

This pull request is not mergeable. Please rebase and repush.

@walteraa
Copy link
Member

walteraa commented Apr 6, 2017

This PR should be closed.

:macAddresses => node.macAddress.split(",").flatten,
:ipv4Addresses => node.ipv4Addresses.split.flatten,
:ipv6Addresses => node.ipv6Addresses.split.flatten
:type => ManageIQ::Providers::Lenovo::PhysicalInfraManager::PhysicalServer.name,
Copy link
Member

Choose a reason for hiding this comment

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

This needs rebasing now that #34 has been merged.

Copy link
Member

Choose a reason for hiding this comment

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

This PR should be closed and splited in two others:

  1. Parse hardware informations(Parse provider and save(MIQ) Processor and memory infomation #39)
  2. Add missing attributes

Copy link
Member

Choose a reason for hiding this comment

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

The second one PR was opened: #40

@rodneyhbrown7
Copy link
Contributor

Odravison can you close this PR?

@AndreyMenezes
Copy link
Member

@juliancheal can you close this PR? Odravison don't work with us anymore.

@juliancheal juliancheal closed this May 4, 2017
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