Ask Your Question
0

Magnum on Ubuntu 16.04 Newton is missing Kubernetes templates

asked 2017-01-04 02:17:28 -0600

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.

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
0

answered 2017-02-16 03:20:19 -0600

FernaG gravatar image

Do not copy the files from the master branch, that's not the newton release and it's not compatible.

First clone the repo and then checkout to stable/newton branch. I had to fully replace the /usr/lib/python2.7/dist-packages/magnum/ folder to solve this problem (and some others)

Make sure you're copying the ./magnum/magnum folder from the repo.

edit flag offensive delete link more
0

answered 2017-01-27 14:45:56 -0600

Hi, I had this issue and solved by adding manually the templates missing. You can download in: https://github.com/openstack/magnum/tree/master/magnum/drivers/swarm_fedora_atomic_v1 (Magnum Repo)

edit flag offensive delete link more
0

answered 2017-01-15 01:51:57 -0600

niv gravatar image

updated 2017-01-15 10:51:44 -0600

did u solve the issue? the same issue occurs to me

if you install from source code this issue not occurs, or you can manually copy the missing files.

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-01-04 01:59:58 -0600

Seen: 380 times

Last updated: Jan 15 '17