Bug 2260402 - Stack creation failure in Horizon due to "Volume ({ get_resource: Volume_test }) could not be found."
Summary: Stack creation failure in Horizon due to "Volume ({ get_resource: Volume_test...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-heat-ui
Version: 16.2 (Train)
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: OSP Team
QA Contact: Ronnie Rasouli
URL:
Whiteboard:
Depends On:
Blocks: 2260507
TreeView+ depends on / blocked
 
Reported: 2024-01-25 22:03 UTC by Conrado Gusso Bozza
Modified: 2024-12-19 16:43 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2260507 (view as bug list)
Environment:
Last Closed: 2024-12-19 16:43:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Evidence of test with OSP17.1 (150.34 KB, image/png)
2024-01-26 13:49 UTC, Conrado Gusso Bozza
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-31275 0 None None None 2024-01-25 22:04:00 UTC

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.


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