[Build 3059] K8S Provisioning failure with Ansible
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
High
|
Nitish Krishna Kaveri |
Bug Description
Hitting bellow error while provisioning K8S setup with 3059. I am using the contrail-ansible package available with the build. It is expecting 'keystone_config' which is not applicable for K8S cluster.
Logs
------
TASK [node : Register analytics node with controller] *******
fatal: [10.87.121.34]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: {{ keystone_opts if cloud_orchestrator == 'openstack' else '' }}: --admin_user {{ keystone_admin_user }} --admin_password {{ keystone_
to retry, use: --limit @/root/
PLAY RECAP *******
10.87.121.34 : ok=64 changed=19 unreachable=0 failed=1
10.87.121.35 : ok=55 changed=11 unreachable=0 failed=0
10.87.121.36 : ok=55 changed=11 unreachable=0 failed=0
Host File
-----------
root@5b6s33:
# Enable contrail-repo when required - this will start a contrail apt or yum repo container on specified node
# This repo will be used by other nodes on installing any packages in the node
# setting up contrail-cni need this repo enabled
# NOTE: Repo is required only for mesos and nested mode kubernetes
[contrail-repo]
10.87.121.34
[contrail-
10.87.121.34
[contrail-
10.87.121.34
[contrail-
10.87.121.34
[contrail-
10.87.121.34
[contrail-compute]
10.87.121.35
10.87.121.36
##
# Only enable if you setup with openstack (when cloud_orchestrator is openstack)
##
;[openstack-
;192.168.0.23
root@5b6s33:
root@5b6s33:
root@5b6s33:
#######
# Docker configurations
##
# docker registry
docker_registry: 10.84.34.155:5000
docker_
# install docker from package rather than installer from get.docker.com which is default method
docker_
#######
# Ansible specific vars
##
# ansible connection details
ansible_user: root
ansible_become: true
# ansible_
#######
# Common settings for contrail
##
# contrail_
# default is bare_metal
contrail_
# os_release - operating system release - ubuntu 14.04 - ubuntu14.04, ubuntu 16.04 - ubuntu16.04, centos 7.1 - centos7.1, centos 7.2 - centos7.2
os_release: ubuntu14.04
# contrail version
contrail_version: 4.0.0.0-3059
# cloud_orchestrator - cloud orchestrators to be setup
# Valid cloud orchestrators:
# kubernetes, mesos, openstack, openshift
cloud_orchestrator: kubernetes
# vrouter physical interface
vrouter_
# custom image for kube-manager - image with ubuntu 16.04 and systemd
# contrail_
# custom image for mesos-manager - image with ubuntu 16.04 and systemd
# contrail_
# controller_ip can be load ballanced IP, or one of the controller_list
# if not configured, ansible use first ip address from [contrail-
# controller_ip: 192.168.0.22
##################
# Below config params (i.e the variables named .*_config) are used to configure contrailctl
# All of below variables are a dict which form individual section of contrailctl/*.conf (controller.conf, agent.conf, etc)
# they are just a dictionary form of config files found under contrailctl/*
# Please refer examples/
###################
# global_config: controller_list, analytics_list, analyticsdb_list etc would be automatically detected by ansible code based out of hosts file host group sections
# e.g controller_list is all ips added under [contrail-
# This vars will be configured in [GLOBAL] section of all contrailctl config files (contrailctl/
# global_config:
# To configure custom webui http port
webui_config: {http_listen_port: 8085}
docker_
#######
# Openshift specific configuration
##
# openshift_config: {token: <openshift token>}
#######
# Openstack specific configuration
##
# contrail_
# keystone_config: {ip: 192.168.0.23, admin_password: contrail123}
Changed in juniperopenstack: | |
importance: | Undecided → High |
assignee: | nobody → Abhay Joshi (abhayj) |
milestone: | none → r4.0 |
information type: | Proprietary → Public |
description: | updated |
tags: | added: blocker |
keystone_config is expected. Need to add default of {} in register role