Ask Your Question
0

magnum cluster create k8s cluster Error: ResourceFailure

asked 2017-10-17 16:30:32 -0600

Planck-C gravatar image

updated 2017-10-17 18:53:36 -0600

env: Pike cmd:

magnum cluster-template-create k8s-cluster-template --image fedora-atomic-latest --keypair mypackstackkey --external-network public --dns-nameserver 8.8.8.8 --flavor m1.tiny --docker-volume-size 3 --network-driver flannel --coe kubernetes --volume-driver cinder magnum cluster-create k8s-cluster --cluster-template k8s-cluster-template --master-count 1 --node-count 2

symptom: CREATE_FAILED, heat-engine error:

    2017-10-17 20:52:12.288 16601 ERROR heat.engine.resource Traceback (most recent call last):
    2017-10-17 20:52:12.288 16601 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 831, in _action_recorder
    2017-10-17 20:52:12.288 16601 ERROR heat.engine.resource     yield
    2017-10-17 20:52:12.288 16601 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 939, in _do_action
    2017-10-17 20:52:12.288 16601 ERROR heat.engine.resource     yield self.action_handler_task(action, args=handler_args)
    2017-10-17 20:52:12.288 16601 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/scheduler.py", line 334, in wrapper
    2017-10-17 20:52:12.288 16601 ERROR heat.engine.resource     step = next(subtask)
    2017-10-17 20:52:12.288 16601 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 884, in action_handler_task
    2017-10-17 20:52:12.288 16601 ERROR heat.engine.resource     handler_data = handler(*args)
    2017-10-17 20:52:12.288 16601 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resources/template_resource.py", line 286, in handle_create
    2017-10-17 20:52:12.288 16601 ERROR heat.engine.resource     self.child_params())
    2017-10-17 20:52:12.288 16601 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resources/stack_resource.py", line 315, in create_with_template
    2017-10-17 20:52:12.288 16601 ERROR heat.engine.resource     kwargs['template_id'])
    2017-10-17 20:52:12.288 16601 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 329, in __exit__
2017-10-17 20:52:12.288 16601 ERROR heat.engine.resource     return self._should_ignore_ex(exc_val)
2017-10-17 20:52:12.288 16601 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resources/stack_resource.py", line 367, in translate_remote_exceptions
2017-10-17 20:52:12.288 16601 ERROR heat.engine.resource     raise exception.ResourceFailure(message, self, action=self.action)
2017-10-17 20:52:12.288 16601 ERROR heat.engine.resource ResourceFailure: resources[0]: Property error: resources.docker_volume.properties.volume_type: Error validating value '': The VolumeType () could not be found.

Attempted to add default (lvm) in " /usr/lib/python2.7/site-packages/magnum/drivers/k8s_fedora_atomic_v1/templates/kubemaster.yaml, does not seem to help.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2018-03-02 07:53:17 -0600

schuhm gravatar image

Check if you have any volume types defined.

openstack volume type list

If there are none, create one:

openstack volume type create volType1 --description "Fix for Magnum" --public

Then in /etc/magnum/magnum.conf add this line in the [cinder] section:

default_docker_volume_type = volType1

edit flag offensive delete link more
0

answered 2017-10-19 13:11:02 -0600

Planck-C gravatar image

Upon further investigating the heat stack, the problem stems from not instantiating a large enough fedora instance, volume-wise. It turns out the fedora-atomic-latest image requires at least 6G of disk space(?). After resizing the cinder volume in packstack, the creation progress passing this error.

edit flag offensive delete link more

Comments

Hi,

I am trying to create the kuberneets cluster but still getting the same error (VolumeType() could not be found .). As per your suggestion I have increased the space but still getting the same error.

Please advice.

sk_wh gravatar imagesk_wh ( 2018-02-22 23:55:37 -0600 )edit

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-10-17 16:30:32 -0600

Seen: 802 times

Last updated: Oct 19 '17