Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 467772 Details for
Bug 651445
kickstarts 'logvol --percent' generates traceback on for unknown attribute 'vgFree'
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
new patch (inclusive of previous) that accounts for --percent and --recommended together in same vg
anaconda-percent.patch (text/plain), 3.64 KB, created by
John Ruemker
on 2010-12-09 15:55:35 UTC
(
hide
)
Description:
new patch (inclusive of previous) that accounts for --percent and --recommended together in same vg
Filename:
MIME Type:
Creator:
John Ruemker
Created:
2010-12-09 15:55:35 UTC
Size:
3.64 KB
patch
obsolete
>diff --git a/kickstart.py b/kickstart.py >index cc138ad..400bec7 100644 >--- a/kickstart.py >+++ b/kickstart.py >@@ -656,7 +656,7 @@ class PartitionData(commands.partition.F12_PartData): > self.mountpoint = "" > if self.recommended: > (self.size, self.maxSizeMB) = iutil.swapSuggestion() >- self.grow = True >+ self.grow = False > # if people want to specify no mountpoint for some reason, let them > # this is really needed for pSeries boot partitions :( > elif self.mountpoint == "None": >diff --git a/storage/partitioning.py b/storage/partitioning.py >index e12b3e3..3f27fc7 100644 >--- a/storage/partitioning.py >+++ b/storage/partitioning.py >@@ -1717,14 +1717,16 @@ def growLVM(storage): > > # This first loop is to calculate percentage-based growth > # amounts. These are based on total free space. >+ using_percents = False > lvs = vg.lvs > lvs.sort(cmp=lvCompare) > for lv in lvs: > if not lv.req_grow or not lv.req_percent: > continue > >+ using_percents = True > portion = (lv.req_percent * 0.01) >- grow = portion * vg.vgFree >+ grow = portion * vg.freeSpace > new_size = lv.req_size + grow > if lv.req_max_size and new_size > lv.req_max_size: > grow -= (new_size - lv.req_max_size) >@@ -1790,29 +1792,34 @@ def growLVM(storage): > lv.size += grow_amounts[lv.name] > > # now there shouldn't be any free space left, but if there is we >- # should allocate it to one of the LVs >- vg_free = vg.freeSpace >- log.debug("vg %s has %dMB free" % (vg.name, vg_free)) >- if vg_free: >- for lv in lvs: >- if not lv.req_grow: >- continue >+ # should allocate it to one of the LVs, unless percentages have >+ # been specified >+ if not using_percents: >+ vg_free = vg.freeSpace >+ log.debug("vg %s has %dMB free" % (vg.name, vg_free)) >+ if vg_free: >+ for lv in lvs: >+ if not lv.req_grow: >+ continue > >- if lv.req_max_size and lv.size == lv.req_max_size: >- continue >+ if lv.req_percent > 0: >+ continue > >- if lv.format.maxSize and lv.size == lv.format.maxSize: >- continue >+ if lv.req_max_size and lv.size == lv.req_max_size: >+ continue >+ >+ if lv.format.maxSize and lv.size == lv.format.maxSize: >+ continue > >- # first come, first served >- projected = lv.size + vg.freeSpace >- if lv.req_max_size and projected > lv.req_max_size: >- projected = lv.req_max_size >+ # first come, first served >+ projected = lv.size + vg.freeSpace >+ if lv.req_max_size and projected > lv.req_max_size: >+ projected = lv.req_max_size > >- if lv.format.maxSize and projected > lv.format.maxSize: >- projected = lv.format.maxSize >+ if lv.format.maxSize and projected > lv.format.maxSize: >+ projected = lv.format.maxSize > >- log.debug("giving leftover %dMB to %s" % (projected - lv.size, >+ log.debug("giving leftover %dMB to %s" % (projected - lv.size, > lv.name)) >- lv.size = projected >+ lv.size = projected >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 651445
:
459149
|
459153
|
459203
|
459204
| 467772 |
467773