-
Notifications
You must be signed in to change notification settings - Fork 495
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
(FACT-3160) Fix size calculations for AIX blockdevice and partitions #2528
(FACT-3160) Fix size calculations for AIX blockdevice and partitions #2528
Conversation
Can one of the admins verify this patch? |
I guess you'll have to update the tests accordingly in |
@smortex I don't think it's necessary, since the sizes in the specs are specified without using nr. of LP's and PP's. Tests would have only failed in previous versions if mirrored LV's have been used and/or there was free space (PPs) in the VGs. |
@loopway thank you for your pull request. Could you rebase your changes on top of |
* disks.rb: TOTAL PPs = USED PPs + FREE PPs. Therefor adding FREE PPs to TOTAL PPs produces incorrect disk sizes. * partitions.rb: Using physical_partitions (PPs) to calculate LV sizes are not suitable if there is more than one mirror (can be two or three). LPs * nr_of_mirrors = PPs. * info_extractor.rb: Adjusted regexp because using property LPs also matched MAX LPs.
a3a7885
to
dbc3ebe
Compare
retriggering actions |
@loopway did facter 3.x (in puppet-agent 5.x) correctly report The reason I ask is because facter 3.x on AIX called odm to collect this information: facter/lib/src/facts/aix/disk_resolver.cc Lines 18 to 69 in 6d7ffc6
Facter 3 incorrectly reports used as
While Facter 4 correctly reports
|
disks.rb: TOTAL PPs = USED PPs + FREE PPs. Therefor adding FREE PPs to TOTAL PPs produces incorrect disk sizes.
partitions.rb: Using physical_partitions (PPs) to calculate LV sizes are not suitable if there is more than one mirror (can be two or three). LPs * nr_of_mirrors = PPs.
info_extractor.rb: Adjusted regexp because using property LPs also matched MAX LPs.