Bug 922832 - Cannot create unnamed volume group
Summary: Cannot create unnamed volume group
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: David Lehman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-18 16:02 UTC by Jan Safranek
Modified: 2013-05-22 03:14 UTC (History)
3 users (show)

Fixed In Version: anaconda-19.24-1.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-22 03:14:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Safranek 2013-03-18 16:02:02 UTC
Following code used to create a volume group in F18/Anaconda:
sdb1 = storage.devicetree.getDeviceByPath('/dev/sdb1')
vg = storage.newVG(parents=[sdb1])
action = ActionCreateDevice(vg)
# schedule and execute the action now

In today's Blivet, I get traceback:
  File "/usr/lib/python2.7/site-packages/openlmi/common/cmpi_logging.py", line 107, in helper_func
    ret = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/openlmi/storage/util/storage.py", line 144, in do_storage_action
    storage.devicetree.processActions(dryRun=False)
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 241, in processActions
    action.execute()
  File "/usr/lib/python2.7/site-packages/blivet/deviceaction.py", line 272, in execute
    self.device.create()
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 789, in create
    raise DeviceCreateError(str(e), self.name)
DeviceCreateError: ('vgcreate failed for : running lvm vgcreate -s 1m --config  devices { filter=["r|/loop0$|","r|/loop1$|","r|/loop2$|","r|/loop3$|","r|/loop4$|","r|/loop5$|","r|/loop6$|","r|/loop7$|"] }   /dev/sdb1 failed', '')

In Blivet logs I can see:
INFO:   New volume group name "" is invalid
INFO:   Run `vgcreate --help' for more information.

It seems storage.newVG does not add 'name' parameter as it used to do. With debugger, I can step into newVG(), which calls suggestContainerName(hostname='', prefix=None). The function depends on shortProductName variable, which is empty string and suggestContainerName eventually returns empty string ''.

Version-Release number of selected component (if applicable):
python-blivet-0.8-1.fc20.noarch

Comment 1 Fedora Update System 2013-05-03 23:04:33 UTC
anaconda-19.24-1.fc19, python-blivet-0.12-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/python-blivet-0.12-1.fc19,anaconda-19.24-1.fc19

Comment 2 Fedora Update System 2013-05-04 18:50:48 UTC
Package anaconda-19.24-1.fc19, python-blivet-0.12-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing anaconda-19.24-1.fc19 python-blivet-0.12-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-7403/python-blivet-0.12-1.fc19,anaconda-19.24-1.fc19
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2013-05-22 03:14:59 UTC
anaconda-19.24-1.fc19, python-blivet-0.12-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.