Ask Your Question
0

Unable to deploy kubernetes using heat. Exits without output.

asked 2017-03-27 14:45:48 -0600

BenvanDamme gravatar image

updated 2017-03-28 09:49:49 -0600

Hello,

recently i am trying to deploy kubernetes to my newly created openstack-setup using this guide (https://kubernetes.io/docs/getting-started-guides/openstack-heat/ (https://kubernetes.io/docs/getting-st...)). But right at the point

[INFO] Create stack KubernetesStack

it quits without errors. I managed to get some output adding the "--debug"-option in the script but do not know what to do with it. Any ideas?

Here is my openrc.sh

#!/usr/bin/env bash
export OS_AUTH_URL=http://controller:5000/v3/
export OS_PROJECT_ID=9ba29bf50cd64b1f824c1c89d9a35ff2
export OS_PROJECT_NAME="admin"
export OS_USER_DOMAIN_NAME="Default"
if [ -z "$OS_USER_DOMAIN_NAME" ]; then unset OS_USER_DOMAIN_NAME; fi
unset OS_TENANT_ID
unset OS_TENANT_NAME
export OS_USERNAME="admin"
echo "Please enter your OpenStack Password for project $OS_PROJECT_NAME as user $OS_USERNAME: "
read -sr OS_PASSWORD_INPUT
export OS_PASSWORD=$OS_PASSWORD_INPUT
export OS_REGION_NAME="RegionOne"
if [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi
export OS_INTERFACE=public
export OS_IDENTITY_API_VERSION=3

My other settings

export STACK_NAME=KubernetesStack
export NUMBER_OF_MINIONS=3
export MAX_NUMBER_OF_MINIONS=3
export MASTER_FLAVOR=m1.small
export MINION_FLAVOR=m1.small
export EXTERNAL_NETWORK=public
export DNS_SERVER=8.8.8.8
export IMAGE_URL_PATH=http://cloud.centos.org/centos/7/images
export IMAGE_FILE=CentOS-7-x86_64-GenericCloud-1510.qcow2
export SWIFT_SERVER_URL=http://10.14.1.1:8080
export ENABLE_PROXY=false

The Error:

Instantiating orchestration client: <class 'heatclient.v1.client.Client'>
'ClientManager' object has no attribute '_auth_url'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 112, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/heatclient/osc/v1/stack.py", line 135, in take_action
    client = self.app.client_manager.orchestration
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/clientmanager.py", line 52, in __get__
    six.reraise(new_err.__class__, new_err, sys.exc_info()[2])
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/clientmanager.py", line 47, in __get__
    self._handle = self.factory(instance)
  File "/usr/local/lib/python2.7/dist-packages/heatclient/osc/plugin.py", line 39, in make_client
    auth_url=instance._auth_url,
PluginAttributeError: 'ClientManager' object has no attribute '_auth_url'
clean_up CreateStack: 'ClientManager' object has no attribute '_auth_url'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/shell.py", line 135, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 279, in run
    result = self.run_subcommand(remainder)
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/shell.py", line 180, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 112, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/heatclient/osc/v1/stack.py", line 135, in take_action
    client = self.app.client_manager.orchestration
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/clientmanager.py", line 52, in __get__
    six.reraise(new_err.__class__, new_err, sys.exc_info()[2])
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/clientmanager.py", line 47, in __get__
    self ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-03-28 09:49:32 -0600

BenvanDamme gravatar image

Updating all python-libs did the trick XD .

Sorry

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-03-27 10:53:24 -0600

Seen: 57 times

Last updated: Mar 28 '17