Deven's profile - activity

2020-07-02 12:02:39 -0500 received badge  Famous Question (source)
2019-08-19 02:18:31 -0500 received badge  Notable Question (source)
2019-08-18 19:06:11 -0500 answered a question HEAT template with OS::Cinder::Quota failing

This seems to be fixed as part of the Pike release.

2019-08-01 09:35:12 -0500 received badge  Popular Question (source)
2019-07-30 22:21:07 -0500 commented answer HEAT template with OS::Cinder::Quota failing

I tried that unsuccessfully. The project property in Cinder quota resource is of type String. Exact error is:-

ERROR: Property error:: resources.Dev_Test_1_Cinder_quota.properties.project:: Value must be a String

2019-07-24 22:34:07 -0500 asked a question HEAT template with OS::Cinder::Quota failing

Hi,

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
2018-11-17 13:42:20 -0500 received badge  Famous Question (source)
2017-07-26 11:06:23 -0500 received badge  Popular Question (source)
2017-06-20 10:27:52 -0500 received badge  Notable Question (source)
2017-06-20 01:28:29 -0500 answered a question heat api- Access was denied to this resource

Found the issue. It is due to the missing tenant_name in authentication request

2017-06-19 09:15:28 -0500 received badge  Popular Question (source)
2017-06-15 23:02:14 -0500 commented question heat api- Access was denied to this resource

@zaneb it was a typo error. Corrected it

2017-06-15 05:01:01 -0500 asked a question Issue in Heat API usage

Hi, I have a packstack newton 1 node setup with heat enabled. I am using the admin user & project for stack creation & query.

I am able to create VM using 'openstack stack create' command though when trying to list the stack using heat API i am getting 403 error 'Access was denied to this resource' .

curl http://$openstackIP:8004

{
"versions": [
    {
        "status": "CURRENT",
        "id": "v1.0",
        "links": [
            {
                "href": "http://<openstackIP>:8004/v1/",
                "rel": "self"
            }
        ]
    }
]

}

curl -H "Content-Type: application/json" -H "X-Auth-Token: 39915fd331764a0694f9e0c46a8621ab" http://$openstackIP:8004/v1/caea6localhost:2e7dd5ddd1ddd94/build_info

{
"code": 403,
"error": {
    "message": "Access was denied to this resource.",
    "traceback": null,
    "type": "HTTPForbidden"
},
"explanation": "Access was denied to this resource.",
"title": "Forbidden"

}

openstack stack create -t cirros_updated.yaml -e env.yaml stack_dev

+---------------------+-----------------------------------------------------+

| Field | Value |

+---------------------+-----------------------------------------------------+

| id | d1dc541d-12e5-47cb-a865-3e0cc12e35b5 |

| stack_name | stack_dev |

| description | Simple template to deploy a single compute instance |

| creation_time | 2017-06-14T11:23:13Z |

| updated_time | None |

| stack_status | CREATE_IN_PROGRESS |

| stack_status_reason | Stack CREATE started |

+---------------------+-----------------------------------------------------+

Do i need to setup some user permissions for accessing HEAT API or make changes to any changes to policy.json

Please note the heat policy.json file i have updated as per below.

Initially

"events:show": "rule:deny_stack_user",

After update

"events:show": "rule:context_is_admin"

Regards, Dev

2017-06-15 05:01:01 -0500 asked a question heat api- Access was denied to this resource

Hi, I have a packstack newton 1 node setup with heat enabled. I am using the admin user & project for stack creation & query.

I am able to create VM using 'openstack stack create' command though when trying to list the stack using heat API i am getting 403 error 'Access was denied to this resource' .

curl http://$openstackIP:8004

{
"versions": [
    {
        "status": "CURRENT",
        "id": "v1.0",
        "links": [
            {
                "href": "http://<openstackIP>:8004/v1/",
                "rel": "self"
            }
        ]
    }
]

}

curl -H "Content-Type: application/json" -H "X-Auth-Token: 39915fd331764a0694f9e0c46a8621ab" http://$openstackIP:8004/v1/caea646b56d84f54b2e7dd5ddd1ddd94/build_info

{
"code": 403,
"error": {
    "message": "Access was denied to this resource.",
    "traceback": null,
    "type": "HTTPForbidden"
},
"explanation": "Access was denied to this resource.",
"title": "Forbidden"

}

openstack stack create -t cirros_updated.yaml -e env.yaml stack_dev

+---------------------+-----------------------------------------------------+

| Field | Value |

+---------------------+-----------------------------------------------------+

| id | d1dc541d-12e5-47cb-a865-3e0cc12e35b5 |

| stack_name | stack_dev |

| description | Simple template to deploy a single compute instance |

| creation_time | 2017-06-14T11:23:13Z |

| updated_time | None |

| stack_status | CREATE_IN_PROGRESS |

| stack_status_reason | Stack CREATE started |

+---------------------+-----------------------------------------------------+

Do i need to setup some user permissions for accessing HEAT API or make changes to any changes to policy.json

Regards, Dev