Bug 2260402

Summary: Stack creation failure in Horizon due to "Volume ({ get_resource: Volume_test }) could not be found."
Product: Red Hat OpenStack Reporter: Conrado Gusso Bozza <cgussobo>
Component: openstack-heat-uiAssignee: OSP Team <rhos-maint>
Status: CLOSED EOL QA Contact: Ronnie Rasouli <rrasouli>
Severity: medium Docs Contact:
Priority: low    
Version: 16.2 (Train)CC: cgussobo, dhill, pweeks, ramishra, rhos-maint, wreiner
Target Milestone: ---Keywords: Reopened, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2260507 (view as bug list) Environment:
Last Closed: 2024-12-19 16:43:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2260507    
Attachments:
Description Flags
Evidence of test with OSP17.1 none

Description Conrado Gusso Bozza 2024-01-25 22:03:26 UTC
Description of problem:
A stack creation in Openstack dashboard fail with the error "The Volume ({ get_resource: Volume_test }) could not be found." despite of the volume "Volume_test" existence.

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


How reproducible:
Always

Steps to Reproduce:
1. In Horizon create an example project with a server, a volume and a volume attachment to be launched together as a stack.
2. Draw the lines to connect server and volume to the attachment in the canvas.
3. The "get" attributes in the attachment is auto filled.
4. Try to create a stack.

Actual results:
Pop-up error message with "The Volume ({ get_resource: Volume_test }) could not be found."


Expected results:
Stack created successfully.

Additional info:
Error in logs:
2024-01-01 01:01:01,507 24 WARNING horizon.exceptions Recoverable error: ERROR: Property error: : resources.VolumeAttachment_test.properties.volume_id: : Error validating value '{ get_resource: Volume_tes }': The Volume ({ get_resource: Volume_test }) could not be found.

Workaround:
Manually change the YAML file of the stack as below because what cause the issue is the double quotes automatically inserted in the parameter instance_uuid and volume_id.
From:
    properties: 
      instance_uuid: "{ get_resource: Server_test }"
      volume_id: "{ get_resource: Volume_tes }"
To:
    properties: 
      instance_uuid: { get_resource: Server_test }
      volume_id: { get_resource: Volume_test }

Comment 2 Conrado Gusso Bozza 2024-01-26 13:49:35 UTC
Created attachment 2010738 [details]
Evidence of test with OSP17.1

The issue occurs to Openstack 17.1 too. I attached a screenshot of a test.