I am using the below HEAT template for Project and Quota creation in 1 template. And marking the Cinder quota resource dependent on Project resource it still fails

Bug #1837830 reported by Devendra
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Heat
Invalid
Undecided
Unassigned

Bug Description

I am using the below HEAT template for Project and Quota creation in 1 template.

And marking the Cinder quota resource dependent on Project resource it still fails with below message:-

"Property error: : resources.Dev_Test_1_Cinder_quota.properties.project: : Error validating value 'Dev_Test_1': The KeystoneProject (Dev_Test_1) could not be found."

Heat Template:-
heat_template_version: newton

description: HEAT template to create different roles in OpenStack

resources:
  Dev_Test_1_Cinder_quota:
    type: OS::Cinder::Quota
    depends_on: Dev
    properties:
      project: "Dev_Test_1"
      volumes: 20
      gigabytes: 200
      snapshots: 20

  Dev:
    type: OS::Keystone::Project
    properties:
      name: Dev_Test_1
      description: "Dev 1 tenancy"
      domain: default
      enabled: True

Revision history for this message
Sean McGinnis (sean-mcginnis) wrote :

This appears to be a heat template issue, not cinder.

Changed in cinder:
status: New → Invalid
Revision history for this message
Devendra (devendra.rawat) wrote :

i have changed this from cinder to heat can you please update the status

affects: cinder → heat
Revision history for this message
Manimala Tangudu (ztngman) wrote :

Template worked fine when {get_resource: } function is used to provide the project name, in Pike release.

Following is the template used:

heat_template_version: '2016-10-14'

description: HEAT template to create different roles in OpenStack

resources:

  Dev:
    type: OS::Keystone::Project
    properties:
      description: "Dev 1 tenancy"
      name: Dev_Test_1
      domain: default
      enabled: True

  Dev_Test_1_Cinder_quota:
    type: OS::Cinder::Quota
    properties:
      project: {get_resource: Dev}
      volumes: 20
      gigabytes: 200
      snapshots: 20

Revision history for this message
Manimala Tangudu (ztngman) wrote :

Could you please try with the above template and let us know if you still face the same issue.

Revision history for this message
Devendra (devendra-rawat) wrote :

Hi i tested this in Queens and it works good.
But the issue was noticed in newton earlier

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.