Comment 0 for bug 1634981

Revision history for this message
Tushar Karkera (tusharkarkera) wrote :

Hi, I have a newton environment with a kubernetes cluster deployed on coreos. On running "cluster-config" to setup the environment and artifacts for TLS it returns an error with below traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/magnumclient/shell.py", line 691, in main
    OpenStackMagnumShell().main(map(encodeutils.safe_decode, sys.argv[1:]))
  File "/usr/lib/python2.7/site-packages/magnumclient/shell.py", line 633, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/site-packages/magnumclient/v1/clusters_shell.py", line 227, in do_cluster_config
    cfg_dir=args.dir, force=args.force))
  File "/usr/lib/python2.7/site-packages/magnumclient/v1/clusters_shell.py", line 234, in _config_cluster
    cfg_dir, force)
  File "/usr/lib/python2.7/site-packages/magnumclient/v1/clusters_shell.py", line 288, in _config_cluster_kubernetes
    if 'csh' in os.environ['SHELL']:
  File "/usr/lib64/python2.7/UserDict.py", line 23, in __getitem__
    raise KeyError(key)
KeyError: 'SHELL'
ERROR: 'SHELL'

Although the command returns an error, the cert files are generated under the specified folder.