oxidized icon indicating copy to clipboard operation
oxidized copied to clipboard

Create hpebladevcmodul.rb

Open STetzel opened this issue 6 years ago • 12 comments

Added simple model for hpe bladecenter virtualconnect modul.

STetzel avatar May 15 '18 09:05 STetzel

@STetzel Thanks for the PR!

This model seems to be a subset of the hpebladesystem.rb model that is currently in the repository.

Could you provide some context as to why this new model is needed? Have you attempted to run the existing hpebladesystem.rb model against your equipment? Both models appear to target HPE's Virtual Connect product line.

wk avatar May 16 '18 21:05 wk

@wk Sorry about my late reply. No it is not a subset. The model hpebladecenter backuped the OA modules (management and configuration). But the VC (Virtual Connect) modules are for the network configuration with so-called Flex10 network cards. They are separate modules with their own configuration.

STetzel avatar Jun 18 '18 10:06 STetzel

@STetzel Can you take a look at the failed tests please.

You will also need to add this model to https://github.com/ytti/oxidized/blob/master/docs/Supported-OS-Types.md and also update the changelog as per the top post.

laf avatar Jul 21 '18 22:07 laf

Codecov Report

Merging #1342 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1342   +/-   ##
=======================================
  Coverage   63.32%   63.32%           
=======================================
  Files          30       30           
  Lines        1475     1475           
=======================================
  Hits          934      934           
  Misses        541      541

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 765c108...8880f4d. Read the comment docs.

codecov-io avatar Sep 20 '18 13:09 codecov-io

@STetzel Can you add this model to the docs as per my last comment as well please?

laf avatar Sep 21 '18 21:09 laf

@STetzel thanks for working on this further; the intention of the request by @laf was that you introduce these additional changes as part of this PR by appending them as additional commits to STetzel:master. You seem to have opened two additional PRs instead, which I've closed as they are not stand-alone PRs that require independent evaluation.

This looks like a welcome addition to the model collection, but for the sake of completeness please:

  • Apply the changes from #1544 and $1545 to this PR instead as additional commits
  • Consider if perhaps a more suitable name can be found for this model that's concise, complete, and relevant (perhaps hpebladevcm?) or attempt to identify the internal name of the operating system on these devices so that the model can follow that name (rather than a specific device name / model).

wk avatar Sep 26 '18 22:09 wk

@wk is there anything missing from the commit now ?

STetzel avatar Dec 10 '18 18:12 STetzel

This looks good to go in principle, the only remaining question is the name.

Could you take a moment to clarify as to why you've chosen to shorten "module" to "modul" in both the filename and OS Type? What is the actual exact product name for this as the vendor itself describes it? Is there a reason the proposed "hpebladevcm" is inadequate?

Since "modul" is not an English word, it'd be great if we could arrive at something that's intuitive now - since renaming anything later will require inconveniencing users who already have the name in their configuration.

wk avatar Dec 11 '18 22:12 wk

Product name is "Virtual Connect" (https://www.hpe.com/us/en/product-catalog/servers/virtual-connect.hits-12.html) that said: show network command is not useful imho, it is included in config

i would do:

show domain
show firmware *
show enclosure *
show server *
show interconnect *
show config -includePoolInfo

the * in the commands above change the output format to extended, so it does not wrap item names the -includePoolInfo is useful so the configuration includes the auto-assigned wwn from the pool else they are hidden in the output

lberra avatar Jan 03 '19 18:01 lberra

@lberra That sounds reasonable; would you consider:

  • Taking this PR and renaming the model to hpbladevc.rb
  • Implementing the suggested changes
  • Testing it against real hardware and documenting the hardware and firmware version in a comment at the top of the module (you can see other modules for an example of this)
  • Submitting this as a new PR (or as a pull against @STetzel fork if he concurs with these changes)

@STetzel, what are your thoughts on the suggestions of @lberra above?

wk avatar Feb 03 '19 19:02 wk

@wk @lberra sounds great

STetzel avatar Feb 04 '19 21:02 STetzel

Please fix the merge conflict

mortzu avatar May 13 '22 19:05 mortzu