Skip to main content
Da_01
Gold ⭐️
July 22, 2019
Solved

"A template must be specified"

Ran into an interesting scenario in Director that I have not solved yet but will (hopefully) today.

 

Created a cluster via the python sdk and when attempting to repair a node in any instance group I get "A template must be specified". There is nothing in the logs and this instance group only contains gateway roles for HDFS and YARN.

 

This is Director v6.1 and there are no "templates" in the templates tab since everything was programmatically generated.

 

Screenshot for reference:

Capture.JPG

Da_01
Da_01Answer
Gold ⭐️
July 22, 2019

Yep that works fine! So I am explicitly creating the templates first so Director can validate that it likes them before creating the DeploymentTemplate or the ClusterTemplates.

 

It was an issue related to the names of the InstanceTemplates were > 40 characters and Director accepted the ClusterTemplate with those InstanceTemplates.

 

Cheers!

7 replies

Mike Wilson
Gold ⭐️⭐️
Gold ⭐️⭐️
July 22, 2019
Oh, huh. This is unusual. Is there anything interesting in the Director logs relating to this?
Translate
Da_01
Da_01Author
Gold ⭐️
July 22, 2019

Nothing in the logs at all related to this and seems to flag the instance group that is solely comprised of gateways when trying to repair any group.

 

What's interesting is you can click view template and it shows all the expected information above the error. Is there a specific logging I can turn on for this in director that wouldn't flood the logs?

Translate
Da_01
Da_01AuthorAnswer
Gold ⭐️
July 22, 2019

Yep that works fine! So I am explicitly creating the templates first so Director can validate that it likes them before creating the DeploymentTemplate or the ClusterTemplates.

 

It was an issue related to the names of the InstanceTemplates were > 40 characters and Director accepted the ClusterTemplate with those InstanceTemplates.

 

Cheers!

Translate