[orchestration]Use openstackclient instead of heat-keystone-setup-domain tool

Bug #1441949 reported by Ethan Lynn
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack + Chef
Fix Released
Medium
Unassigned

Bug Description

Now we using heat-keystone-setup-domain script to create a heat domain and related admin user.

https://github.com/stackforge/cookbook-openstack-orchestration/blob/master/recipes/identity_registration.rb#L159-L169
  execute 'heat-keystone-setup-domain' do
    environment 'OS_USERNAME' => admin_user,
                'OS_PASSWORD' => admin_pass,
                'OS_AUTH_URL' => auth_url,
                'OS_CACERT' => ca_cert,
                'OS_CERT' => cert_file,
                'OS_KEY' => key_file,
                'HEAT_DOMAIN' => stack_user_domain_name,
                'HEAT_DOMAIN_ADMIN' => stack_domain_admin,
                'HEAT_DOMAIN_PASSWORD' => stack_domain_admin_password
    command "heat-keystone-setup-domain #{insecure}"
  end

But it's not recommended, and this tool may removed in the future.
It's better using openstackclient to create HEAT_DOMAIN and HEAT_DOMAIN_ADMIN for heat.

tags: added: client heat
tags: added: orchestration
removed: heat
Revision history for this message
Mark Vanderwiel (vanderwl) wrote :
Changed in openstack-chef:
status: New → Triaged
importance: Undecided → Medium
Changed in openstack-chef:
milestone: none → liberity-rc1
Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

This is fixed in master, as https://review.openstack.org/288387 removed that execute resource. If someone wants to deploy this feature, they should write a wrapper and use the client cookbook to create the proper resources.

Changed in openstack-chef:
status: Triaged → Fix Committed
Changed in openstack-chef:
status: Fix Committed → Fix Released
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.