Ask Your Question
0

Heat Stack Creation Failed

asked 2017-08-02 01:23:57 -0500

Sudhin gravatar image

updated 2017-08-02 19:15:40 -0500

Bernd Bausch gravatar image

Hi i am trying to create a stack in openstack liberty heat version 5.0.3 but it's showing Authorization Failed when i am creating stack by uploading a valid template.

This is the template which i had used.

heat_template_version: 2015-10-15
parameters:
  key_name:
    type: string
    default: SAN-KEY
    description: oskeymitaka0420
  flavor:
    type: string
    description: Instance type for the instance to be created
    default: m1.small
    constraints:
      - allowed_values: [m1.nano, m1.tiny, m1.small, m1.large]
        description: Value must be one of 'm1.tiny', 'm1.small' or 'm1.large'
  image:
    type: string
    default: Cirros-0.3.4
    description: ID or name of the image to use for the instance
  private_net_id:
    type: string
    description: Private network id
  private_subnet_id:
    type: string
    description: Private subnet id
  public_net_id:
    type: string
    description: Public network id
resources:
  instance1:
    type: OS::Nova::Server
    properties:
      name: instance1
      image: { get_param: image }
      flavor: { get_param: flavor }
      key_name: { get_param: key_name }
      networks:
        - port: { get_resource: instance1_port0 }
  instance1_port0:
    type: OS::Neutron::Port
    properties:
      network_id: { get_param: private_net_id }
      security_groups:
        - default
      fixed_ips:
        - subnet_id: { get_param: private_subnet_id }
  instance1_public:
    type: OS::Neutron::FloatingIP
    properties:
      floating_network_id: { get_param: public_net_id }
      port_id: { get_resource: instance1_port0 }
outputs:
  instance1_private_ip:
    description: IP address of instance1 in private network
    value: { get_attr: [ instance1, first_address ] }
  instance1_public_ip:
    description: Floating IP address of instance1 in public network
    value: { get_attr: [ instance1_public, floating_ip_address ] }

While creating stack it's showing Create Failed Authorization Failed.

*This error is showing in heat-engine log file *

2017-08-01 11:34:29.089 2943 INFO heat.engine.service [req-284b3ab6-7c68-4c3f-888b-d11745a57a75 - - - - -] Service bffa284a-66c7-4495-adc2-cefdba4e6a7d is updated

2017-08-01 11:34:31.801 2945 INFO heat.engine.service [req-7fc1a24f-7d4a-4d4c-9e85-87c73e157ca2 - Anand-162-77498 - - -] validate_template

2017-08-01 11:34:44.396 2944 INFO heat.engine.service [req-ab97ff8c-c57e-48e9-a8b6-b156d13e840f 162_Anand Anand-162-77498 - - -] Creating stack ISL

2017-08-01 11:34:44.409 2944 INFO heat.engine.resource [req-ab97ff8c-c57e-48e9-a8b6-b156d13e840f 162_Anand Anand-162-77498 - - -] Validating Server "server_0"

2017-08-01 11:34:45.052 2944 ERROR heat.common.keystoneclient [req-ab97ff8c-c57e-48e9-a8b6-b156d13e840f 162_Anand Anand-162-77498 - - -] Domain admin client authentication failed

2017-08-01 11:34:45.060 2944 INFO heat.engine.service [-] Stack create failed, status FAILED

2017-08-01 11:34:45.091 2944 INFO heat.engine.stack [-] Stack CREATE FAILED (ISL): Authorization failed.

2017-08-01 11:35:26.326 2942 INFO heat.engine.service [req-c1e5f6e1-faa5-4fac-9c63-f34f1c637717 - - - - -] Service 483131ec-d7dd-44af-bf28-86966faa4ab7 is updated

2017-08-01 11:35:27.751 2944 INFO heat.engine.service [req-1b90ec20-a85d-4f60-81f8-9843e37ef6f9 - - - - -] Service b0e85ba7-727d-403f-beac-b36dabb6bf2b is updated

Please help me to solve this issue.

edit retag flag offensive close merge delete

Comments

As there isn't any question here, I believe this can be deleted.

HumongousRainDrop gravatar imageHumongousRainDrop ( 2017-08-02 02:42:15 -0500 )edit

To me, "Please help me to solve this issue" is a legitimate question.

Bernd Bausch gravatar imageBernd Bausch ( 2017-08-02 19:14:40 -0500 )edit

By default, Heat uses a Keystone domain named heat and a domain administrator named heat_admin. It seems that this is not set up correctly; for a setup example, see https://docs.openstack.org/liberty/in.... Might be different depending on your OpenStack distro.

Bernd Bausch gravatar imageBernd Bausch ( 2017-08-02 19:23:46 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-08-03 05:36:10 -0500

Shaik Saddam Hussain gravatar image

Make sure that your user is having heat_admin privileges

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-08-02 01:23:57 -0500

Seen: 51 times

Last updated: Aug 03