Access permision for repository manager upgrade action on fresh install

Description

The following error is observed when starting kylo for the first time on a fresh instance, after running setup wizard.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 2018-12-03 22:01:42 INFO kylo-startup pool-4:ReflectionPolicyAnnotationDiscoverer:49 - Found 11 classes annotated with interface com.thinkbiganalytics.policy.standardization.Standardizer 2018-12-03 22:01:42 ERROR pool-15-thread-1:TaskUtils$LoggingErrorHandler:95 - Unexpected error occurred in scheduled task. java.security.AccessControlException: Not authorized to perform the action: Access Templates at com.thinkbiganalytics.metadata.modeshape.security.action.JcrAllowedActions.checkPermission(JcrAllowedActions.java:226) at com.thinkbiganalytics.metadata.modeshape.security.DefaultAccessController.lambda$null$0(DefaultAccessController.java:75) at java.util.Optional.map(Optional.java:215) at com.thinkbiganalytics.metadata.modeshape.security.DefaultAccessController.lambda$checkPermission$2(DefaultAccessController.java:74) at com.thinkbiganalytics.metadata.modeshape.JcrMetadataAccess.read(JcrMetadataAccess.java:422) at com.thinkbiganalytics.metadata.modeshape.JcrMetadataAccess.read(JcrMetadataAccess.java:369) at com.thinkbiganalytics.metadata.persistence.AggregateMetadataAccess.read(AggregateMetadataAccess.java:86) at com.thinkbiganalytics.metadata.modeshape.security.DefaultAccessController.checkPermission(DefaultAccessController.java:72) at com.thinkbiganalytics.metadata.modeshape.security.DefaultAccessController.checkPermission(DefaultAccessController.java:62) at com.thinkbiganalytics.repository.filesystem.RepositoryMonitor.lambda$getAllRegisteredTemplatesAsMap$3(RepositoryMonitor.java:138) at com.thinkbiganalytics.metadata.persistence.AggregateMetadataAccess.lambda$null$3(AggregateMetadataAccess.java:124) at com.thinkbiganalytics.metadata.config.OperationalMetadataTransactionTemplateMetadataAccess$2.doInTransaction(OperationalMetadataTransactionTemplateMetadataAccess.java:187) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) at com.thinkbiganalytics.metadata.config.OperationalMetadataTransactionTemplateMetadataAccess.read(OperationalMetadataTransactionTemplateMetadataAccess.java:144) at com.thinkbiganalytics.metadata.config.OperationalMetadataTransactionTemplateMetadataAccess.read(OperationalMetadataTransactionTemplateMetadataAccess.java:118) at com.thinkbiganalytics.metadata.persistence.AggregateMetadataAccess.lambda$wrap$5(AggregateMetadataAccess.java:124) at com.thinkbiganalytics.metadata.modeshape.JcrMetadataAccess.execute(JcrMetadataAccess.java:444) at com.thinkbiganalytics.metadata.modeshape.JcrMetadataAccess.read(JcrMetadataAccess.java:401) at com.thinkbiganalytics.metadata.modeshape.JcrMetadataAccess.read(JcrMetadataAccess.java:369) at com.thinkbiganalytics.metadata.persistence.AggregateMetadataAccess.read(AggregateMetadataAccess.java:86) at com.thinkbiganalytics.repository.filesystem.RepositoryMonitor.getAllRegisteredTemplatesAsMap(RepositoryMonitor.java:137) at com.thinkbiganalytics.repository.filesystem.RepositoryMonitor.watchRepositories(RepositoryMonitor.java:99) at com.thinkbiganalytics.repository.filesystem.FilesystemRepositoryService.monitorRepositories(FilesystemRepositoryService.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

Repro:
1) Create new instance in AWS "CentOS7 with Updates"
2) Log in to instance
3) download 10.0.0 RPM and install it
4) run Setup Wizard
5) start Kylo and tail the logs

Environment

None

Status

Assignee

Riaz Uddin

Reporter

Tim Harsch

Labels

None

Reviewer

None

Story point estimate

None

Affects versions

0.10.0

Priority

Medium
Configure