SpringContextLoaderService starts in disabled state

Description

1. Clear all controller services from NiFi
2. Import data_ingest.zip template

Observation: SpringContextLoaderService starts in disabled state. Exception below:

2017-09-18 19:02:35 ERROR http-nio-8420-exec-8:TemplateCreationHelper:575 - Failed to enable controller service [id:965ee41e-015e-1000-94cb-af59cd5bceca,name:Kylo Cleanup Service]: com.thinkbiganalytics.nifi.rest.client.NifiClientRuntimeException: Error updating controller service: 965ee41e-015e-1000-94cb-af59cd5bceca cannot be enabled because it is not valid: ['Spring Context Service' validated against 'SpringContextLoaderService' is invalid because Controller Service SpringContextLoaderService[id=965ee3de-015e-1000-67ff-b0cfec7d8159] is disabled]
com.thinkbiganalytics.nifi.rest.client.NifiClientRuntimeException: Error updating controller service: 965ee41e-015e-1000-94cb-af59cd5bceca cannot be enabled because it is not valid: ['Spring Context Service' validated against 'SpringContextLoaderService' is invalid because Controller Service SpringContextLoaderService[id=965ee3de-015e-1000-67ff-b0cfec7d8159] is disabled]
at com.thinkbiganalytics.nifi.v1.rest.client.NiFiControllerServicesRestClientV1.lambda$update$1(NiFiControllerServicesRestClientV1.java:160)
at java.util.Optional.flatMap(Optional.java:241)
at com.thinkbiganalytics.nifi.v1.rest.client.NiFiControllerServicesRestClientV1.update(NiFiControllerServicesRestClientV1.java:147)
at com.thinkbiganalytics.nifi.rest.client.LegacyNifiRestClient.enableControllerServiceAndSetProperties(LegacyNifiRestClient.java:953)
at com.thinkbiganalytics.nifi.feedmgr.TemplateCreationHelper.tryToEnableControllerService(TemplateCreationHelper.java:295)
at com.thinkbiganalytics.nifi.feedmgr.TemplateCreationHelper.lambda$findControllerServiceForProperty$26(TemplateCreationHelper.java:572)

===

One other result of this exception is the data_ingest feed template does not get imported.

Environment

None
Done

Assignee

Scott Reisdorf

Reporter

Jagrut Sharma

Labels

None

Reviewer

None

Story point estimate

None

Fix versions

Priority

Medium