Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1048696

Summary: [LOG] AttributeError: 'NoneType' object has no attribute 'name' While trying to create a new storage domain
Product: Red Hat Enterprise Virtualization Manager Reporter: Meital Bourvine <mbourvin>
Component: ovirt-engineAssignee: Idan Shaby <ishaby>
Status: CLOSED CURRENTRELEASE QA Contact: lkuchlan <lkuchlan>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.3.0CC: amureini, gchakkar, lpeer, nlevinki, pmukhedk, rbalakri, Rhev-m-bugs, scohen, tdosek, tnisan, yeylon
Target Milestone: ovirt-3.6.0-rcFlags: amureini: needinfo-
amureini: needinfo-
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
vdsm log none

Description Meital Bourvine 2014-01-06 07:18:01 UTC
Created attachment 845937 [details]
vdsm log

Description of problem:
AttributeError: 'NoneType' object has no attribute 'name'

Version-Release number of selected component (if applicable):
IS29

How reproducible:
100%

Steps to Reproduce:
1. Create a new storage domain (I tried with 1.1T, but I don't think that it's relevant)

Actual results:
The following error in vdsm.log:
Thread-3407::ERROR::2014-01-02 17:52:42,533::task::850::TaskManager.Task::(_setError) Task=`4f72357c-e36f-4941-aaeb-e80a02441c3a`::Unexpected error
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/task.py", line 857, in _run
    return fn(*args, **kargs)
  File "/usr/share/vdsm/logUtils.py", line 45, in wrapper
    res = f(*args, **kwargs)
  File "/usr/share/vdsm/storage/hsm.py", line 2617, in createStorageDomain
    domVersion)
  File "/usr/share/vdsm/storage/blockSD.py", line 516, in create
    mapping = cls.getMetaDataMapping(vgName)
  File "/usr/share/vdsm/storage/blockSD.py", line 655, in getMetaDataMapping
    pvInfo["guid"] = os.path.basename(pv.name)
AttributeError: 'NoneType' object has no attribute 'name'


Expected results:
No error

Additional info:
See attached log

Comment 1 Allon Mureinik 2014-01-06 12:38:46 UTC
What is the impact?
Is the domain created and this is just a log ugliness, or is the domain not created?

Comment 2 Allon Mureinik 2014-01-06 12:42:36 UTC
(In reply to Allon Mureinik from comment #1)
> What is the impact?
> Is the domain created and this is just a log ugliness, or is the domain not
> created?
Talked to Meital, and verbally asserted this is just a log issue.

Comment 4 Meital Bourvine 2014-02-17 10:23:56 UTC
If it's just a logging issue, why move it to 3.5?

Comment 12 Allon Mureinik 2015-04-09 19:05:02 UTC
http://gerrit.ovirt.org/27442 solves this bug. The other patch seemed like a neat enhancement at the time, but it will break existing engine behavior.

Comment 13 lkuchlan 2015-04-22 06:18:50 UTC
Tested using ovirt-engine-3.6.0-0.0.master.20150412172306.git55ba764

Comment 14 Allon Mureinik 2016-03-10 10:40:10 UTC
RHEV 3.6.0 has been released, setting status to CLOSED CURRENTRELEASE

Comment 15 Allon Mureinik 2016-03-10 10:40:11 UTC
RHEV 3.6.0 has been released, setting status to CLOSED CURRENTRELEASE

Comment 16 Allon Mureinik 2016-03-10 10:45:45 UTC
RHEV 3.6.0 has been released, setting status to CLOSED CURRENTRELEASE

Comment 17 Allon Mureinik 2016-03-10 12:02:21 UTC
RHEV 3.6.0 has been released, setting status to CLOSED CURRENTRELEASE