Support Questions
Find answers, ask questions, and share your expertise

Recipes does not work cbd 1.6.1, HDP 2.5.3

Hello,

Executing recipes (pre- and post- install scripts) does not finished and have no timeout.

recipe_post.sh:

#!/bin/bash date > /tmp/recipe_post

recipe_pre.sh

#!/bin/bash date > /tmp/recipe_pre

Centos7 # cbd doctor
===> Deployer doctor: Checks your environment, and reports a diagnose.
uname: Linux 3.10.0-327.36.3.el7.x86_64 #1 SMP Mon Oct 24 16:09:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
local version:1.6.1
latest release:1.6.1
docker images:
 hortonworks/haveged:1.1.0
 hortonworks/socat:1.0.0
 hortonworks/cloudbreak-uaa-db:v3.6.0
 hortonworks/cloudbreak-uaa:3.6.0
 hortonworks/cloudbreak-server-db:1.2.0
 hortonworks/cloudbreak:1.6.1
 hortonworks/cloudbreak-auth:1.6.1
 hortonworks/cloudbreak-web:1.6.1
 hortonworks/cloudbreak-autoscale-db:1.2.0
 hortonworks/cloudbreak-autoscale:1.6.1
docker command exists: OK
docker client version: 1.12.3

Ambari (Amazon Linux) # yum repolist
Loaded plugins: priorities, update-motd, upgrade-helper
1008 packages excluded due to repository priority protections
repo id                                                                     repo name                                                                                               status
AMBARI.2.4.0.1-1                                                            Ambari 2.4.0.1-1                                                                                                12
HDP-UTILS-1.1.0.21                                                          HDP-UTILS-1.1.0.21                                                                                           19+32
amzn-main/latest                                                            amzn-main-Base                                                                                               5,612
amzn-updates/latest                                                         amzn-updates-Base                                                                                              619
Ambari (Amazon Linux) # tail /var/log/saltboot.log
2016/12/22 09:29:47 [SaltPillarRequestHandler] save salt pillar request executed: Response: {"status":"Salt pillar successfully written to /srv/pillar/ambari/repo.sls","statusCode":200}
2016/12/22 09:32:19 [SaltPillarRequestHandler] execute salt pillar save request
2016/12/22 09:32:19 [SaltPillarRequestHandler] Recieved arbitrary json: {"recipes":{"ambari_server":{"post":["simple-recipe2"],"pre":["simple-recipe2"]},"client":{"post":["simple-recipe2"],"pre":["simple-recipe2"]},"hdfs_namenode_and_history":{"post":["simple-recipe2","hdfs-home"],"pre":["simple-recipe2"]},"lma":{"post":["simple-recipe2"],"pre":["simple-recipe2"]},"nm_kafka_group":{"post":["simple-recipe2"],"pre":["simple-recipe2"]},"nm_with_data_group":{"post":["simple-recipe2"],"pre":["simple-recipe2"]},"nm_without_data_group":{"post":["simple-recipe2"],"pre":["simple-recipe2"]},"solr":{"post":["simple-recipe2"],"pre":["simple-recipe2"]},"yarn_rm_hive_oozie":{"post":["simple-recipe2"],"pre":["simple-recipe2"]},"zookeeper":{"post":["simple-recipe2"],"pre":["simple-recipe2"]}}}
2016/12/22 09:32:19 [SaltPillar.WritePillar] mkdir /srv/pillar/recipes
2016/12/22 09:32:19 [SaltPillarRequestHandler] generated yaml from json recipes:
  ambari_server:
    post:
    - simple-recipe2
    pre:
    - simple-recipe2
  client:
    post:
...

2016/12/22 09:32:19 [SaltPillarRequestHandler] save salt pillar request executed: Response: {"status":"Salt pillar successfully written to /srv/pillar/recipes/init.sls","statusCode":200}
2016/12/22 09:32:19 [fileUploadHandler] execute file upload
2016/12/22 09:32:19 [fileUploadHandler] path: /srv/salt/pre-recipes/scripts
2016/12/22 09:32:19 [fileUploadHandler] FileName: simple-recipe2
2016/12/22 09:32:19 [fileUploadHandler] execute file upload
2016/12/22 09:32:19 [fileUploadHandler] path: /srv/salt/post-recipes/scripts
2016/12/22 09:32:19 [fileUploadHandler] FileName: simple-recipe2
2016/12/22 09:32:19 [fileUploadHandler] execute file upload
2016/12/22 09:32:19 [fileUploadHandler] path: /srv/salt/pre-recipes/scripts
2016/12/22 09:32:19 [fileUploadHandler] FileName: simple-recipe2
2016/12/22 09:32:19 [fileUploadHandler] execute file upload
2016/12/22 09:32:19 [fileUploadHandler] path: /srv/salt/post-recipes/scripts
2016/12/22 09:32:19 [fileUploadHandler] FileName: simple-recipe2
2016/12/22 09:32:19 [fileUploadHandler] execute file upload
2016/12/22 09:32:19 [fileUploadHandler] path: /srv/salt/pre-recipes/scripts
2016/12/22 09:32:19 [fileUploadHandler] FileName: simple-recipe2
2016/12/22 09:32:19 [fileUploadHandler] execute file upload
...




Do you have any idea why this happens?

Thank you

7 REPLIES 7

Re: Recipes does not work cbd 1.6.1, HDP 2.5.3

Contributor

Could you please attach cloudbreak log with 'cbd logs cloudbreak'?

Re: Recipes does not work cbd 1.6.1, HDP 2.5.3

22.12.2016 09:29:47 hdpdevcluster2 - update in progress: Starting Ambari cluster services
22.12.2016 09:32:04 hdpdevcluster2 - update in progress: Building Ambari cluster; Ambari ip:xxx.xxx.xxx.xxx
22.12.2016 09:32:18 hdpdevcluster2 - update in progress: Execute recipes: ambari_server:[simple-recipe2];client:[simple-recipe2];hdfs_namenode_and_history:[simple-recipe2];lma:[simple-recipe2];nm_kafka_group:[simple-recipe2];nm_with_data_group:[simple-recipe2];nm_without_data_group:[simple-recipe2];solr:[simple-recipe2];yarn_rm_hive_oozie:[simple-recipe2];zookeeper:[simple-recipe2]

-----------------------------------------------------------------------------------------


# less -Rr cbreak-20161220-140219.log
....
/cbreak_cloudbreak_1 | 2016-12-20 16:31:57,245 [reactorDispatcher-55] checkStatus:24 INFO  c.s.c.s.c.f.AmbariHostsStatusCheckerTask - [owner:spring] [type:springLog] [id:] [name:] Ambari client found 10 hosts (10 needed). [Stack: '64']5 [reactorDispatcher-55] pollWithTimeout:44 INFO  c.s.c.s.PollingService - [owner:spring] [type:springLog] [id:] [name:] Ambari client found all 10 hosts for stack '64'2016-12-20 16:31:57,298 [reactorDispatcher-55] fireCloudbreakEvent:51 INFO  c.s.c.s.e.DefaultCloudbreakEventService - [owner:spring] [type:springLog] [id:] [name:] Firing Cloudbreak event: CloudbreakEventData{entityId=64, eventType='UPDATE_IN_PROGRESS', eventMessage='Execute recipes: ambari_server:[simple-recipe];client:[simple-recipe];hdfs_namenode_and_history:[simple-recipe];lma:[simple-recipe];nm_kafka_group:[simple-recipe];nm_with_data_group:[simple-recipe];nm_without_data_group:[simple-recipe];solr:[simple-recipe];yarn_rm_hive_oozie:[simple-recipe];zookeeper:[simple-recipe]'}
/cbreak_traefik_1 | time="2016-12-20T16:31:58Z" level=debug msg="Round trip: http://172.17.0.6:3000, code: 200, duration: 1.257584ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:" 
/cbreak_uluwatu_1 | POST /notifications 200 0.477 ms - -
/cbreak_cloudbreak_1 | 2016-12-20 16:31:58,266 [reactorDispatcher-55] checkHeaderChanges:281 WARN  o.g.j.m.i.HeaderUtils - [owner:spring] [type:springLog] [id:] [name:] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.
/cbreak_cloudbreak_1 | Unsent header changes: [MIME-Version]
/cbreak_cloudbreak_1 | 2016-12-20 16:31:58,266 [reactorDispatcher-55] uploadRecipe:376 INFO  c.s.c.o.s.SaltOrchestrator - [owner:spring] [type:springLog] [id:] [name:] Upload 'pre' recipe: simple-recipe
/cbreak_cloudbreak_1 | 2016-12-20 16:31:58,311 [reactorDispatcher-55] checkHeaderChanges:281 WARN  o.g.j.m.i.HeaderUtils - [owner:spring] [type:springLog] [id:] [name:] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.
/cbreak_cloudbreak_1 | Unsent header changes: [MIME-Version]
/cbreak_cloudbreak_1 | 2016-12-20 16:31:58,311 [reactorDispatcher-55] uploadRecipe:376 INFO  c.s.c.o.s.SaltOrchestrator - [owner:spring] [type:springLog] [id:] [name:] Upload 'post' recipe: simple-recipe
/cbreak_cloudbreak_1 | 2016-12-20 16:31:58,356 [reactorDispatcher-55] checkHeaderChanges:281 WARN  o.g.j.m.i.HeaderUtils - [owner:spring] [type:springLog] [id:] [name:] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.
/cbreak_cloudbreak_1 | Unsent header changes: [MIME-Version]
/cbreak_cloudbreak_1 | 2016-12-20 16:31:58,357 [reactorDispatcher-55] uploadRecipe:376 INFO  c.s.c.o.s.SaltOrchestrator - [owner:spring] [type:springLog] [id:] [name:] Upload 'pre' recipe: simple-recipe
/cbreak_cloudbreak_1 | 2016-12-20 16:31:58,396 [reactorDispatcher-55] checkHeaderChanges:281 WARN  o.g.j.m.i.HeaderUtils - [owner:spring] [type:springLog] [id:] [name:] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.
/cbreak_cloudbreak_1 | Unsent header changes: [MIME-Version]
/cbreak_cloudbreak_1 | 2016-12-20 16:31:58,397 [reactorDispatcher-55] uploadRecipe:376 INFO  c.s.c.o.s.SaltOrchestrator - [owner:spring] [type:springLog] [id:] [name:] Upload 'post' recipe: simple-recipe
/cbreak_cloudbreak_1 | 2016-12-20 16:31:58,444 [reactorDispatcher-55] checkHeaderChanges:281 WARN  o.g.j.m.i.HeaderUtils - [owner:spring] [type:springLog] [id:] [name:] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.
/cbreak_cloudbreak_1 | Unsent header changes: [MIME-Version]
/cbreak_cloudbreak_1 | 2016-12-20 16:31:58,445 [reactorDispatcher-55] uploadRecipe:376 INFO  c.s.c.o.s.SaltOrchestrator - [owner:spring] [type:springLog] [id:] [name:] Upload 'post' recipe: hdfs-home
/cbreak_cloudbreak_1 | 2016-12-20 16:31:58,489 [reactorDispatcher-55] checkHeaderChanges:281 WARN  o.g.j.m.i.HeaderUtils - [owner:spring] [type:springLog] [id:] [name:] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.
/cbreak_cloudbreak_1 | Unsent header changes: [MIME-Version]
/cbreak_cloudbreak_1 | 2016-12-20 16:31:58,489 [reactorDispatcher-55] uploadRecipe:376 INFO  c.s.c.o.s.SaltOrchestrator - [owner:spring] [type:springLog] [id:] [name:] Upload 'pre' recipe: simple-recipe
/cbreak_cloudbreak_1 | 2016-12-20 16:31:58,534 [reactorDispatcher-55] checkHeaderChanges:281 WARN  o.g.j.m.i.HeaderUtils - [owner:spring] [type:springLog] [id:] [name:] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.
/cbreak_cloudbreak_1 | Unsent header changes: [MIME-Version]
...
simple-recipebreak_1 | 2016-12-20 16:31:58,580 [reactorDispatcher-55] checkHeaderChanges:281 WARN  o.g.j.m.i.HeaderUtils - [owner:spring] [type:springLog] [id:] [name:] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.og] [id:] [name:] Upload 'pre' recipe: simple-recipe
/cbreak_cloudbreak_1 | 2016-12-20 16:31:58,987 [reactorDispatcher-55] checkHeaderChanges:281 WARN  o.g.j.m.i.HeaderUtils - [owner:spring] [type:springLog] [id:] [name:] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.
/cbreak_cloudbreak_1 | Unsent header changes: [MIME-Version]
/cbreak_cloudbreak_1 | 2016-12-20 16:31:58,987 [reactorDispatcher-55] uploadRecipe:376 INFO  c.s.c.o.s.SaltOrchestrator - [owner:spring] [type:springLog] [id:] [name:] Upload 'post' recipe: simple-recipe
/cbreak_identity_1 | [2016-12-20 16:32:05.678] cloudfoundry-identity-server - ???? [http-nio-8080-exec-10] .... DEBUG --- UaaRequestMatcher: [loginAuthenticateRequestMatcher] Checking match of request : '/check_token'; '/authenticate' with parameters={} and headers {Authorization=[bearer ], accept=[application/json]}


I have logs from previous test.

Please have a look

Re: Recipes does not work cbd 1.6.1, HDP 2.5.3

and proper log

cloudbreak_1   | 2016-12-22 09:32:18,753 [reactorDispatcher-61] accept:38 INFO  c.s.c.s.e.CloudbreakEventHandler - [owner:undefined] [type:CLOUDBREAKEVENTDATA] [id:undefined] [name:undefined] Sending notification with data: CloudbreakEvent{id=1208, eventType='UPDATE_IN_PROGRESS', eventTimestamp=Thu Dec 22 09:32:18 UTC 2016, eventMessage='Execute recipes: ambari_server:[simple-recipe2];client:[simple-recipe2];hdfs_namenode_and_history:[simple-recipe2];lma:[simple-recipe2];nm_kafka_group:[simple-recipe2];nm_with_data_group:[simple-recipe2];nm_without_data_group:[simple-recipe2];solr:[simple-recipe2];yarn_rm_hive_oozie:[simple-recipe2];zookeeper:[simple-recipe2]', owner='d9f226df-cb7f-4a9e-950d-629f515f6bcd', account='seq1234567', cloud='AWS', region='eu-west-1', blueprintName='dev-stage', instanceGroup='null', blueprintId=21', stackId=67', clusterId=55', clusterName=hdpdevcluster2}ia: com.sequenceiq.cloudbreak.core.bootstrap.service.ClusterDeletionBasedExitCriteria@59509316 POST /check_tokentstrapBuilderExecutor-26] isExitNeeded:19 DEBUG c.s.c.c.b.s.ClusterDeletionBasedExitCriteria - [owner:d9f226df-cb7f-4a9e-950d-629f515f6bcd] [type:STACK] [id:66] [name:hdpdevcluster2] Check isExitNeeded for model: ClusterDeletionBasedExitCriteriaModel{stackId=67, clusterId=55}[owner:d9f226df-cb7f-4a9e-950d-629f515f6bcd] [type:STACK] [id:66] [name:hdpdevcluster2] isExitNeeded: falsedentity-server - ???? [http-nio-8080-exec-4] ....  INFO --- Audit: ClientAuthenticationSuccess ('Client authentication success'): principal=cloudbreak, origin=[remoteAddress=172.17.0.1, clientId=cloudbreak], identityZoneId=[uaa].s.c.o.OrchestratorBootstrapRunner - [owner:d9f226df-cb7f-4a9e-950d-629f515f6bcd] [type:STACK] [id:66] [name:hdpdevcluster2] Calling orchestrator bootstrap: PillarSave, additional info: com.sequenceiq.cloudbreak.orchestrator.salt.poller.PillarSave@78cfda6e5f6bcd] [type:STACK] [id:66] [name:hdpdevcluster2] Pillar response: SaltBootResponse{status='Salt pillar successfully written to /srv/pillar/recipes/init.sls', address='null', statusCode=200, version='null', errorText='null'}] [name:hdpdevcluster2] Orchestrator component PillarSave successfully started! Elapsed time: 36 ms, Total elapsed time: 36 ms, additional info: com.sequenceiq.cloudbreak.orchestrator.salt.poller.PillarSave@78cfda6epe: simple-recipe2Dispatcher-60] checkHeaderChanges:281 WARN  o.g.j.m.i.HeaderUtils - [owner:d9f226df-cb7f-4a9e-950d-629f515f6bcd] [type:STACK] [id:66] [name:hdpdevcluster2] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.e:hdpdevcluster2] Upload 'post' recipe: simple-recipe2ispatcher-60] checkHeaderChanges:281 WARN  o.g.j.m.i.HeaderUtils - [owner:d9f226df-cb7f-4a9e-950d-629f515f6bcd] [type:STACK] [id:66] [name:hdpdevcluster2] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.e:hdpdevcluster2] Upload 'pre' recipe: simple-recipe2Dispatcher-60] checkHeaderChanges:281 WARN  o.g.j.m.i.HeaderUtils - [owner:d9f226df-cb7f-4a9e-950d-629f515f6bcd] [type:STACK] [id:66] [name:hdpdevcluster2] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.e:hdpdevcluster2] Upload 'post' recipe: simple-recipe2undry-identity-server - ???? [http-nio-8080-exec-4] .... DEBUG --- JdbcApprovalStore: Filtering approvals with filter: [sql: (LOWER(user_id) = LOWER(:__jf88se_0) AND LOWER(client_id) = LOWER(:__jf88se_1)), params: {__jf88se_0=d9f226df-cb7f-4a9e-950d-629f515f6bcd, __jf88se_1=uluwatu}]50d-629f515f6bcd] [type:STACK] [id:66] [name:hdpdevcluster2] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.
cloudbreak_1   | 2016-12-22 09:32:19,351 [reactorDispatcher-60] uploadRecipe:376 INFO  c.s.c.o.s.SaltOrchestrator - [owner:d9f226df-cb7f-4a9e-950d-629f515f6bcd] [type:STACK] [id:66] [name:hdpdevcluster2] Upload 'pre' recipe: simple-recipe2Dispatcher-60] checkHeaderChanges:281 WARN  o.g.j.m.i.HeaderUtils - [owner:d9f226df-cb7f-4a9e-950d-629f515f6bcd] [type:STACK] [id:66] [name:hdpdevcluster2] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.e:hdpdevcluster2] Upload 'post' recipe: simple-recipe2ispatcher-60] checkHeaderChanges:281 WARN  o.g.j.m.i.HeaderUtils - [owner:d9f226df-cb7f-4a9e-950d-629f515f6bcd] [type:STACK] [id:66] [name:hdpdevcluster2] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.e:hdpdevcluster2] Upload 'post' recipe: hdfs-homectorDispatcher-60] checkHeaderChanges:281 WARN  o.g.j.m.i.HeaderUtils - [owner:d9f226df-cb7f-4a9e-950d-629f515f6bcd] [type:STACK] [id:66] [name:hdpdevcluster2] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.e:hdpdevcluster2] Upload 'pre' recipe: simple-recipe2oundry-identity-server - ???? [http-nio-8080-exec-1] .... DEBUG --- UaaRequestMatcher: [loginAuthorizeRequestMatcher] Checking match of request : '/oauth/token'; '/oauth/authorize' with parameters={source=login} and headers {accept=[application/json]}tils - [owner:d9f226df-cb7f-4a9e-950d-629f515f6bcd] [type:STACK] [id:66] [name:hdpdevcluster2] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.f request : '/oauth/token'; '/oauth/authorize' with parameters={login={} and headers {accept=[application/json]}EBUG --- UaaRequestMatcher: [passcodeTokenMatcher] Checking match of request : '/oauth/token'; '/oauth/token' with parameters={grant_type=password, passcode=} and headers {accept=[application/json, application/x-www-form-urlencoded]}Processing id_token disable filter
cloudbreak_1   | Unsent header changes: [MIME-Version]
cloudbreak_1   | 2016-12-22 09:32:19,446 [reactorDispatcher-60] uploadRecipe:376 INFO  c.s.c.o.s.SaltOrchestrator - [owner:d9f226df-cb7f-4a9e-950d-629f515f6bcd] [type:STACK] [id:66] [name:hdpdevcluster2] Upload 'post' recipe: simple-recipe2
identity_1     | [2016-12-22 09:04:12.825] cloudfoundry-identity-server - ???? [http-nio-8080-exec-5] .... DEBUG --- JdbcScimUserProvisioning: complete sql: select id,version,created,lastModified,username,email,givenName,familyName,active,phoneNumber,verified,origin,external_id,identity_zone_id,salt,passwd_lastmodified  from users where ((LOWER(userName) = LOWER(:__qiacrw_0) AND LOWER(identity_zone_id) = LOWER(:__qiacrw_1))) ORDER BY created ASC, params: {__qiacrw_0=admin@example.com, __qiacrw_1=uaa}
identity_1     | [2016-12-22 09:04:12.890] cloudfoundry-identity-server - ???? [http-nio-8080-exec-5] .... DEBUG --- JdbcApprovalStore: Filtering approvals with filter: [sql: LOWER(user_id) = LOWER(:__o53izy_0), params: {__o53izy_0=d9f226df-cb7f-4a9e-950d-629f515f6bcd}]
cloudbreak_1   | 2016-12-22 09:32:19,470 [reactorDispatcher-60] checkHeaderChanges:281 WARN  o.g.j.m.i.HeaderUtils - [owner:d9f226df-cb7f-4a9e-950d-629f515f6bcd] [type:STACK] [id:66] [name:hdpdevcluster2] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.
cloudbreak_1   | Unsent header changes: [MIME-Version]
cloudbreak_1   | 2016-12-22 09:32:19,470 [reactorDispatcher-60] uploadRecipe:376 INFO  c.s.c.o.s.SaltOrchestrator - [owner:d9f226df-cb7f-4a9e-950d-629f515f6bcd] [type:STACK] [id:66] [name:hdpdevcluster2] Upload 'pre' recipe: simple-recipe2
cloudbreak_1   | 2016-12-22 09:32:19,509 [reactorDispatcher-60] checkHeaderChanges:281 WARN  o.g.j.m.i.HeaderUtils - [owner:d9f226df-cb7f-4a9e-950d-629f515f6bcd] [type:STACK] [id:66] [name:hdpdevcluster2] There are some request headers that have not been sent by connector [org.glassfish.jersey.apache.connector.ApacheConnector]. Probably you added those headers in WriterInterceptor or MessageBodyWriter. That feature is not supported by the connector. Please, do not modify headers in WriterInterceptor or MessageBodyWriter or use default HttpUrlConnector instead.
identity_1     | [2016-12-22 09:04:12.895] cloudfoundry-identity-server - ???? [http-nio-8080-exec-10] .... DEBUG --- UaaRequestMatcher: [loginAuthenticateRequestMatcher] Checking match of request : '/oauth/token'; '/authenticate' with parameters={} and headers {Authorization=[bearer ], accept=[application/json]}
cloudbreak_1   | Unsent header changes: [MIME-Version]
identity_1     | [2016-12-22 09:04:12.895] cloudfoundry-identity-server - ???? [http-nio-8080-exec-10] .... DEBUG --- UaaRequestMatcher: [loginAuthorizeRequestMatcher] Checking match of request : '/oauth/token'; '/oauth/authorize' with parameters={source=login} and headers {accept=[application/json]}
cloudbreak_1   | 2016-12-22 09:32:19,509 [reactorDispatcher-60] uploadRecipe:376 INFO  c.s.c.o.s.SaltOrchestrator - [owner:d9f226df-cb7f-4a9e-950d-629f515f6bcd] [type:STACK] [id:66] [name:hdpdevcluster2] Upload 'post' recipe: simple-recipe2





Re: Recipes does not work cbd 1.6.1, HDP 2.5.3

Contributor

Could you please update your cloudbreak to 1.6.2-rc.20 with the following command and check if the issue is still exists?

curl –Ls https://2374-32450069-gh.circle-artifacts.com/0/tmp/circle-artifacts.SB6rMFp/cbd-linux.tgz | sudo tar -xz -C /bin cbd

Re: Recipes does not work cbd 1.6.1, HDP 2.5.3

# cbd pull
Pulling haveged (hortonworks/haveged:1.1.0)...
1.1.0: Pulling from hortonworks/haveged
Digest: sha256:09f8cf4f89b59fe2b391747181469965ad27cd751dad0efa0ad1c89450455626
Status: Image is up to date for hortonworks/haveged:1.1.0
Pulling uluwatu (hortonworks/cloudbreak-web:1.6.2-rc.20)...
Pulling repository docker.io/hortonworks/cloudbreak-web
ERROR: Tag 1.6.2-rc.20 not found in repository docker.io/hortonworks/cloudbreak-web


# cbd doctor
===> Deployer doctor: Checks your environment, and reports a diagnose.
uname: Linux  3.10.0-327.36.3.el7.x86_64 #1 SMP Mon Oct 24 16:09:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
local version:1.6.2-rc.20-df3d66f
latest release:1.6.1
docker images:
 hortonworks/haveged:1.1.0
 hortonworks/socat:1.0.0
 hortonworks/cloudbreak-uaa-db:v3.6.0
 hortonworks/cloudbreak-uaa:3.6.0
 hortonworks/cloudbreak-server-db:1.2.0
 hortonworks/cloudbreak:1.6.2-rc.20
 hortonworks/cloudbreak-auth:1.6.2-rc.20
 hortonworks/cloudbreak-web:1.6.2-rc.20
 hortonworks/cloudbreak-autoscale-db:1.2.0
 hortonworks/cloudbreak-autoscale:1.6.2-rc.20
docker command exists: OK
docker client version: 1.9.1
docker client version: 1.9.1
ping 8.8.8.8 on host: OK
ping github.com on host: OK
ping 8.8.8.8 in container: OK
ping github.com in container: OK

[root@ip cloudbreak-deployment]# cbd util cloudbreak-shell
Unable to find image 'hortonworks/cloudbreak-shell:1.6.2-rc.20' locally
1.6.2-rc.20: Pulling from hortonworks/cloudbreak-shell
bf028f50c346: Pull complete 
a99e621f3f37: Pull complete 
e14b5426e660: Pull complete 
e545dc972405: Pull complete 
97dfbc93b32c: Pull complete 
d0ae38a54c5d: Pull complete 
315caf97963d: Pull complete 
cd9e30a2fc55: Pull complete 
20c7dc71eec8: Pull complete 
8620fd62b47f: Pull complete 
f971b53ed78e: Pull complete 
880950c553d4: Pull complete 
db49d425d440: Pull complete 
bb9729098f7a: Pull complete 
089f0f9d0a9e: Pull complete 
145ea53b06a9: Pull complete 
f56da5d4e5e4: Pull complete 
8fec4aa8f577: Pull complete 
93996876eee9: Pull complete 
6fcf1e4dce5f: Pull complete 
df15ad6bdfaf: Pull complete 
ca5714a441a0: Pull complete 
Digest: sha256:82f3880c2cb8329c13be7089fd5c39e3dc9a4bd4e7b71fab28d82c957f45a47b
Status: Downloaded newer image for hortonworks/cloudbreak-shell:1.6.2-rc.20
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cloudbreakShell': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.shell.core.JLineShellComponent com.sequenceiq.cloudbreak.shell.CloudbreakShell.shell; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shell' defined in class path resource [com/sequenceiq/cloudbreak/shell/configuration/ShellConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'marathonCommands': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sequenceiq.cloudbreak.shell.model.ShellContext com.sequenceiq.cloudbreak.shell.commands.marathon.MarathonCommands.shellContext; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shellContext': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sequenceiq.cloudbreak.client.CloudbreakClient com.sequenceiq.cloudbreak.shell.model.ShellContext.cloudbreakClient; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cloudbreakClient' defined in class path resource [com/sequenceiq/cloudbreak/shell/configuration/ShellConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.sequenceiq.cloudbreak.client.CloudbreakClient]: Factory method 'cloudbreakClient' threw exception; nested exception is com.sequenceiq.cloudbreak.client.TokenUnavailableException: Error occurred while getting token from identity server
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)
	at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
	at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)
	at com.sequenceiq.cloudbreak.shell.CloudbreakShell.main(CloudbreakShell.java:153)
	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.boot.loader.MainMethodRunner.run(MainMethodRunner.java:54)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.shell.core.JLineShellComponent com.sequenceiq.cloudbreak.shell.CloudbreakShell.shell; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shell' defined in class path resource [com/sequenceiq/cloudbreak/shell/configuration/ShellConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'marathonCommands': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sequenceiq.cloudbreak.shell.model.ShellContext com.sequenceiq.cloudbreak.shell.commands.marathon.MarathonCommands.shellContext; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shellContext': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sequenceiq.cloudbreak.client.CloudbreakClient com.sequenceiq.cloudbreak.shell.model.ShellContext.cloudbreakClient; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cloudbreakClient' defined in class path resource [com/sequenceiq/cloudbreak/shell/configuration/ShellConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.sequenceiq.cloudbreak.client.CloudbreakClient]: Factory method 'cloudbreakClient' threw exception; nested exception is com.sequenceiq.cloudbreak.client.TokenUnavailableException: Error occurred while getting token from identity server
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:573)
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
	... 21 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shell' defined in class path resource [com/sequenceiq/cloudbreak/shell/configuration/ShellConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'marathonCommands': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sequenceiq.cloudbreak.shell.model.ShellContext com.sequenceiq.cloudbreak.shell.commands.marathon.MarathonCommands.shellContext; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shellContext': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sequenceiq.cloudbreak.client.CloudbreakClient com.sequenceiq.cloudbreak.shell.model.ShellContext.cloudbreakClient; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cloudbreakClient' defined in class path resource [com/sequenceiq/cloudbreak/shell/configuration/ShellConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.sequenceiq.cloudbreak.client.CloudbreakClient]: Factory method 'cloudbreakClient' threw exception; nested exception is com.sequenceiq.cloudbreak.client.TokenUnavailableException: Error occurred while getting token from identity server
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545)
	... 23 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'marathonCommands': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sequenceiq.cloudbreak.shell.model.ShellContext com.sequenceiq.cloudbreak.shell.commands.marathon.MarathonCommands.shellContext; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shellContext': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sequenceiq.cloudbreak.client.CloudbreakClient com.sequenceiq.cloudbreak.shell.model.ShellContext.cloudbreakClient; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cloudbreakClient' defined in class path resource [com/sequenceiq/cloudbreak/shell/configuration/ShellConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.sequenceiq.cloudbreak.client.CloudbreakClient]: Factory method 'cloudbreakClient' threw exception; nested exception is com.sequenceiq.cloudbreak.client.TokenUnavailableException: Error occurred while getting token from identity server
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:534)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:523)
	at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1162)
	at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:261)
	at org.springframework.shell.core.JLineShellComponent.afterPropertiesSet(JLineShellComponent.java:100)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)


Re: Recipes does not work cbd 1.6.1, HDP 2.5.3

Have run with newest cbd without restart.

Recipes have been executed and applied.

Thank you.

/cbreak_cloudbreak_1 | 2016-12-22 14:52:05,035 [containerBootstrapBuilderExecutor-14] collectMissingTargets:89 INFO  c.s.c.o.s.s.SaltStates - [owner:spring] [type:springLog] [id:] [name:] Directory /var/log/recipes updated finished in 0.8
49 ms.
/cbreak_cloudbreak_1 | 2016-12-22 14:52:05,035 [containerBootstrapBuilderExecutor-14] collectMissingTargets:85 INFO  c.s.c.o.s.s.SaltStates - [owner:spring] [type:springLog] [id:] [name:] Collect missing targets from host: 
/cbreak_cloudbreak_1 | 2016-12-22 14:52:05,035 [containerBootstrapBuilderExecutor-14] logRunnerInfos:104 INFO  c.s.c.o.s.s.SaltStates - [owner:spring] [type:springLog] [id:] [name:] Salt states executed on: 
ute.internal within: 3 sec, details [{"stateId":"cmd_|-run_pre_script_mc_|-sh -x /opt/scripts/pre/mc 2>&1 | tee -a /var/log/recipes/pre-mc.log && exit ${PIPESTATUS[0]}_|-run","comment":"Command \"sh -x /opt/scripts/pre/mc 2>&1 | tee -a /v
ar/log/recipes/pre-mc.log && exit ${PIPESTATUS[0]}\" run","name":"sh -x /opt/scripts/pre/mc 2>&1 | tee -a /var/log/recipes/pre-mc.log && exit ${PIPESTATUS[0]}","startTime":"14:51:54.600866","result":true,"duration":2939.94,"runNum":15,"ch
anges":{"pid":4234,"retcode":0,"stderr":"","stdout":"+ yum install -y mc\nLoaded plugins: priorities, update-motd, upgrade-helper\n1008 packages excluded due to repository priority protections\nResolving Dependencies\n--> Running transact
ion check\n---> Package mc.x86_64 1:4.7.0.2-3.7.amzn1 will be installed\n--> Processing Dependency: python27-pytz for package: 1:mc-4.7.0.2-3.7.amzn1.x86_64\n--> Running transaction check\n---> Package python27-pytz.noarch 0:2010h-2.6.amz
n1 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package            Arch        Version                    Repository  
    Size\n================================================================================\nInstalling:\n mc                 x86_64      1:4.7.0.2-3.7.amzn1        amzn-main      2.1 M\nInstalling for dependencies:\n python27-pytz      no
arch      2010h-2.6.amzn1            amzn-main       43 k\n\nTransaction Summary\n================================================================================\nInstall  1 Package (+1 Dependent package)\n\nTotal download size: 2.2 M\nI
nstalled size: 5.5 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal                                              7.4 MB/s | 2.2 MB  00:00     \nRunning transaction check\nRu
nning transaction test\nTransaction test succeeded\nRunning transaction\n  Installing : python27-pytz-2010h-2.6.amzn1.noarch                         1/2 \n  Installing : 1:mc-4.7.0.2-3.7.amzn1.x86_64                                2/2 \n 
 Verifying  : 1:mc-4.7.0.2-3.7.amzn1.x86_64                                1/2 \n  Verifying  : python27-pytz-2010h-2.6.amzn1.noarch                         2/2 \n\nInstalled:\n  mc.x86_64 1:4.7.0.2-3.7.amzn1                              
                   \n\nDependency Installed:\n  python27-pytz.noarch 0:2010h-2.6.amzn1                                        \n\nComplete!\n+ sudo yum install -y mc\nLoaded plugins: priorities, update-motd, upgrade-helper\n1008 packages 
excluded due to repository priority protections\nPackage 1:mc-4.7.0.2-3.7.amzn1.x86_64 already installed and latest version\nNothing to do"}},{"stateId":"pkg_|-ambari-agent_|-ambari-agent_|-installed","comment":"Version 2.4.0.1-1 of packa
ge 'ambari-agent' is already installed.","name":"ambari-agent","startTime":"14:51:54.141115","result":true,"duration":398.343,"runNum":3,"changes":{}},{"stateId":"file_|-set_dns_ttl_|-/usr/lib/jvm/java/jre/lib/security/java.security_|-rep
lace","comment":"unless execution succeeded","name":"/usr/lib/jvm/java/jre/lib/security/java.security","startTime":"14:51:53.887111","result":true,"duration":239.593,"runNum":0,"changes":{}},{"stateId":"file_|-/opt/scripts/pre/mc_|-/opt/s
cripts/pre/mc_|-managed","comment":"File /opt/scripts/pre/mc updated","name":"/opt/scripts/pre/mc","startTime":"14:51:54.588854","result":true,"duration":11.87,"runNum":14,"changes":{"diff":"New file","mode":"0755"}},{"stateId":"file_|-/e
tc/yum.repos.d/ambari.repo_|-/etc/yum.repos.d/ambari.repo_|-managed","comment":"File /etc/yum.repos.d/ambari.repo is in the correct state","name":"/etc/yum.repos.d/ambari.repo","startTime":"14:51:54.133256","result":true,"duration":7.581,
"runNum":2,"changes":{}},{"stateId":"file_|-/etc/environment_|-/etc/environment_|-append","comment":"unless execution succeeded","name":"/etc/environment","startTime":"14:51:54.539620","result":true,"duration":6.818,"runNum":4,"changes":{
}},{"stateId":"file_|-set_internal_hostname_script_|-/etc/ambari-agent/conf/ambari-agent.ini_|-replace","comment":"unless execution succeeded","name":"/etc/ambari-agent/conf/ambari-agent.ini","startTime":"14:51:54.568998","result":true,"d
uration":6.64,"runNum":9,"changes":{}},{"stateId":"file_|-/etc/ambari-agent/conf/public_hostname.sh_|-/etc/ambari-agent/conf/public_hostname.sh_|-managed","comment":"File /etc/ambari-agent/conf/public_hostname.sh is in the correct state",
"name":"/etc/ambari-agent/conf/public_hostname.sh","startTime":"14:51:54.549780","result":true,"duration":6.533,"runNum":6,"changes":{}},{"stateId":"file_|-set_public_hostname_script_|-/etc/ambari-agent/conf/ambari-agent.ini_|-replace","c
omment":"unless execution succeeded","name":"/etc/ambari-agent/conf/ambari-agent.ini","startTime":"14:51:54.560036","result":true,"duration":6.44,"runNum":8,"changes":{}},{"stateId":"file_|-set_dns_negativ_ttl_|-/usr/lib/jvm/java/jre/lib/
security/java.security_|-replace","comment":"unless execution succeeded","name":"/usr/lib/jvm/java/jre/lib/security/java.security","startTime":"14:51:54.126898","result":true,"duration":6.189,"runNum":1,"changes":{}},{"stateId":"cmd_|-dis
able-ambari-agent-sysv_|-chkconfig ambari-agent off_|-run","comment":"onlyif execution failed","name":"chkconfig ambari-agent off","startTime":"14:51:54.575822","result":true,"duration":4.93,"runNum":10,"changes":{}},{"stateId":"service_|
-start-ambari-agent_|-ambari-agent_|-running","comment":"Service ambari-agent is already enabled, and is in the desired state","name":"ambari-agent","startTime":"14:51:54.583229","result":true,"duration":4.518,"runNum":12,"changes":{}},{"
stateId":"file_|-/etc/ambari-agent/conf/internal_hostname.sh_|-/etc/ambari-agent/conf/internal_hostname.sh_|-managed","comment":"File /etc/ambari-agent/conf/internal_hostname.sh is in the correct state","name":"/etc/ambari-agent/conf/inte
rnal_hostname.sh","startTime":"14:51:54.546616","result":true,"duration":3.021,"runNum":5,"changes":{}},{"stateId":"file_|-/etc/init/ambari-agent.override_|-/etc/init/ambari-agent.override_|-managed","comment":"File /etc/init/ambari-agent
.override is in the correct state","name":"/etc/init/ambari-agent.override","startTime":"14:51:54.580929","result":true,"duration":2.158,"runNum":11,"changes":{}},{"stateId":"file_|-set_ambari_server_address_|-/etc/ambari-agent/conf/ambar
i-agent.ini_|-replace","comment":"No changes needed to be made","name":"/etc/ambari-agent/conf/ambari-agent.ini","startTime":"14:51:54.556454","result":true,"duration":1.347,"runNum":7,"changes":{}},{"stateId":"file_|-create_recipe_log_di
r_|-/var/log/recipes_|-directory","comment":"Directory /var/log/recipes updated","name":"/var/log/recipes","startTime":"14:51:54.587921","result":true,"duration":0.794,"runNum":13,"changes":{"/var/log/recipes":"New Dir"}}]
/cbreak_cloudbreak_1 | 2016-12-22 14:52:05,035 [containerBootstrapBuilderExecutor-14] collectMissingTargets:89 INFO  c.s.c.o.s.s.SaltStates - [owner:spring] [type:springLog] [id:] [name:] Command "sh -x /opt/scripts/pre/mc 2>&1 | tee -a /
var/log/recipes/pre-mc.log && exit ${PIPESTATUS[0]}" run finished in 2939.94 ms.
/cbreak_cloudbreak_1 | 2016-12-22 14:52:05,035 [containerBootstrapBuilderExecutor-14] collectMissingTargets:89 INFO  c.s.c.o.s.s.SaltStates - [owner:spring] [type:springLog] [id:] [name:] Version 2.4.0.1-1 of package 'ambari-agent' is alr
eady installed. finished in 398.343 ms.
/cbreak_cloudbreak_1 | 2016-12-22 14:52:05,035 [containerBootstrapBuilderExecutor-14] collectMissingTargets:89 INFO  c.s.c.o.s.s.SaltStates - [owner:spring] [type:springLog] [id:] [name:] unless execution succeeded finished in 239.593 ms.
/cbreak_cloudbreak_1 | 2016-12-22 14:52:05,036 [containerBootstrapBuilderExecutor-14] collectMissingTargets:89 INFO  c.s.c.o.s.s.SaltStates - [owner:spring] [type:springLog] [id:] [name:] File /opt/scripts/pre/mc updated finished in 11.87
 ms.
/cbreak_cloudbreak_1 | 2016-12-22 14:52:05,036 [containerBootstrapBuilderExecutor-14] collectMissingTargets:89 INFO  c.s.c.o.s.s.SaltStates - [owner:spring] [type:springLog] [id:] [name:] File /etc/yum.repos.d/ambari.repo is in the correc
t state finished in 7.581 ms.


Re: Recipes does not work cbd 1.6.1, HDP 2.5.3

Contributor

If cloudbreak 1.6.2 will be released, then you can just update your cloudbreak with "cbd update" to 1.6.2 final. (don't do it at the moment, because I think it would downgrade to 1.6.1)