Bug 1449279

Summary: Attaching EBS volume to an instance results in error
Product: Red Hat CloudForms Management Engine Reporter: Matouš Mojžíš <mmojzis>
Component: ProvidersAssignee: Bronagh Sorota <bsorota>
Status: CLOSED CURRENTRELEASE QA Contact: Matouš Mojžíš <mmojzis>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: cpelland, dajohnso, gregor.berginc, jfrey, jhardy, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: cloud:storage:volume:ec2
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1449843 (view as bug list) Environment:
Last Closed: 2018-03-06 14:33:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1449843    

Description Matouš Mojžíš 2017-05-09 14:05:47 UTC
Description of problem:


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

How reproducible:
Always

Steps to Reproduce:
1. Have an ec2 provider with at least one instance 
2. Go to Storage -> Block storage -> Volumes
3. Attach a volume to an instance

Actual results:
[----] E, [2017-05-09T10:00:07.959027 #2849:3ab13c] ERROR -- : MIQ(MiqQueue#deliver) Message id: [69407], Error: [missing required parameter params[:device]]
[----] E, [2017-05-09T10:00:07.959774 #2849:3ab13c] ERROR -- : [ArgumentError]: missing required parameter params[:device]  Method:[rescue in deliver]
[----] E, [2017-05-09T10:00:07.960050 #2849:3ab13c] ERROR -- : /opt/rh/cfme-gemset/gems/aws-sdk-core-2.8.14/lib/aws-sdk-core/param_validator.rb:28:in `validate!'
[----] E, [2017-05-09T10:00:11.151706 #2930:cbee2c] ERROR -- : MIQ(cloud_volume_controller-wait_for_task): Unable to attach Cloud Volume "100" to i-0a2d9cf6bdc7e43c0: missing required parameter params[:device]


Expected results:


Additional info:

Comment 2 Gregor Berginc 2017-05-09 16:16:20 UTC
This should be fixed in the UI by making sure the device field is required. Contrary to OpenStack, EBS will fail if the field is empty. I'll propose a change in a PR.

Comment 3 Gregor Berginc 2017-05-09 18:35:58 UTC
Addressed in https://github.com/ManageIQ/manageiq-ui-classic/pull/1321 as explained in my first comment.

Comment 7 Bronagh Sorota 2017-06-08 13:19:05 UTC
*** Bug 1450777 has been marked as a duplicate of this bug. ***

Comment 8 Matouš Mojžíš 2017-12-01 11:58:51 UTC
Verified in 5.9.0.11.
Volume can be attached with no errors.