Ask Your Question

Revision history [back]

Magnum on Ubuntu 16.04 Newton is missing Kubernetes templates

Ubuntu 16.04 using Newton repository, installed using the official openstack instructions.

When creating a cluster using a command like:

magnum cluster-create --name k8s-cluster --cluster-template k8s-cluster-template-coreos --node-count 2

An error message is logged in magnum-conductor.log:

2017-01-04 08:15:41.545 18095 ERROR oslo_messaging.rpc.server URLError: <urlopen error [Errno 2] No such file or directory: '/usr/lib/python2.7/dist-packages/magnum/drivers/k8s_coreos_v1/templates/kubecluster.yaml'>

Apparently on Ubuntu 16.04 magnum ships without any of the magnum/drivers/*/templates/ directories. Only the template_def.py and version.py are present in magnum/drivers/*. Are these .../templates/ supposed to be generated manually, or should they be have been shipped as part of the python-magnum package? Some pointers would be welcome.