Bug 1475260

Summary: unable to provision against openstack with a volume attached
Product: Red Hat CloudForms Management Engine Reporter: Felix Dewaleyne <fdewaley>
Component: ProvidersAssignee: Sam Lucidi <slucidi>
Status: CLOSED CURRENTRELEASE QA Contact: Ido Ovadia <iovadia>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.8.0CC: ealcaniz, fdewaley, gblomqui, iovadia, jfrey, jhardy, obarenbo, simaishi, slucidi, tzumainn
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.9.0   
Hardware: All   
OS: All   
Whiteboard: openstack
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1482170 (view as bug list) Environment:
Last Closed: 2018-03-06 15:51:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1482170    

Description Felix Dewaleyne 2017-07-26 10:12:45 UTC
Description of problem:
when provisioning against openstack with a volume attached, an error in volume_attachment.rb makes the provision fail

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


How reproducible:
all the time

Steps to Reproduce:
1.provision against openstack with a volume attached
2.
3.

Actual results:
[----] E, [2017-07-24T10:15:40.170201 #22188:389140] ERROR -- : Q-task_id([miq_provision_1000000000470]) MIQ(ManageIQ::Providers::Openstack::CloudManager::Provision#provision_error) [[NoMethodError]: undefined method `status' for nil:NilClass] encountered during phase [poll_volumes_complete]
[----] E, [2017-07-24T10:15:40.170359 #22188:389140] ERROR -- : Q-task_id([miq_provision_1000000000470]) /var/www/miq/vmdb/app/models/manageiq/providers/openstack/cloud_manager/provision/volume_attachment.rb:28:in `block (2 levels) in do_volume_creation_check'
/var/www/miq/vmdb/app/models/manageiq/providers/openstack/cloud_manager/provision/volume_attachment.rb:26:in `each'
[...]


Expected results:
provision passes

Additional info:
this isn't the only error present in the logs - there is also
[----] E, [2017-07-24T10:13:22.463452 #6651:389140] ERROR -- : [NoMethodError]: undefined method `name' for nil:NilClass  Method:[rescue in block in refresh]
[----] E, [2017-07-24T10:13:22.464024 #6651:389140] ERROR -- : /var/www/miq/vmdb/app/models/manageiq/providers/openstack/cloud_manager.rb:107:in `swift_service'
/var/www/miq/vmdb/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser.rb:19:in `initialize'
/var/www/miq/vmdb/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser.rb:9:in `new'
/var/www/miq/vmdb/app/models/manageiq/providers/storage_manager/swift_manager/refresh_parser.rb:9:in `ems_inv_to_hashes'

Comment 13 Ido Ovadia 2018-02-07 15:59:09 UTC
Verified
========
CFME 5.9.0.20