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

Update disk's controller type parsing #207

Merged
merged 1 commit into from
Mar 14, 2018

Conversation

miha-plesko
Copy link
Contributor

Disk controller type parsing was completely wrong, since it relied on

a) parent disk
b) description

But there is no such thing as "parent disk", disk.parent actually points to "parent controller". Inventoring crashed hard when such "parent disk" was not found!

With this commit we update refresh parser to now properly inventory controller type based on disk's bus subtype. Also, we prevent distinguising real disks from simple ones (like CD) based on "disk.description", which is rather unreliable, and now distinguish based on disk's bus type.

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

@miq-bot add_label enhancement,gaprindashvili/yes
@miq-bot assign @agrare

Disk controller type parsing was completely wrong, since it relied on

a) parent disk
b) description

But there is no such thing as "parent disk", `disk.parent` actually points
to "parent controller". Inventoring crashed hard when such "parent disk" was
not found!

With this commit we update refresh parser to now properly inventory controller
type based on disk's bus subtype. Also, we prevent distinguising real disks from
simple ones (like CD) based on "disk.description", which is rather unreliable,
and now distinguish based on disk's bus type.

Signed-off-by: Miha Pleško <[email protected]>
@miq-bot
Copy link
Member

miq-bot commented Mar 8, 2018

Checked commit miha-plesko@af42e32 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 🏆

@miha-plesko
Copy link
Contributor Author

/cc @sasoc this may be interesting for you since you're working on graph refresh.

@agrare agrare merged commit 33ed4b8 into ManageIQ:master Mar 14, 2018
@agrare agrare added this to the Sprint 82 Ending Mar 26, 2018 milestone Mar 14, 2018
simaishi pushed a commit that referenced this pull request Apr 3, 2018
Update disk's controller type parsing
(cherry picked from commit 33ed4b8)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1563363
@simaishi
Copy link
Contributor

simaishi commented Apr 3, 2018

Gaprindashvili backport details:

$ git log -1
commit a0788d44321972c2e4a6088fdcd8a6ab63ff904f
Author: Adam Grare <[email protected]>
Date:   Wed Mar 14 13:37:42 2018 -0400

    Merge pull request #207 from miha-plesko/disk-parsing
    
    Update disk's controller type parsing
    (cherry picked from commit 33ed4b8f4957125eacadb9e5184a714358f9585a)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1563363

@miha-plesko miha-plesko deleted the disk-parsing branch January 7, 2019 08:25
agrare pushed a commit to agrare/manageiq-providers-vmware that referenced this pull request Apr 15, 2019
…oning_spec_fix

Use proper request_task subclass for provisioning spec.
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.

4 participants