Problem while installing apigee-edge through chef cookbook...

Not applicable

I am facing problem while installing apigee-edge through chef cookbook.

The same apigee-setup.sh(v4.15.07) is working if not executed in recipe of cookbook for silent configuration.

while running through chef two keyspaces out of 14 i.e. 'analytics' and 'auth' might not be completed successfully.

Where is the issue...in any config, .sh or installation steps?

snippet of last few lines at console:

Datacenter: dc-1
================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address      Load       Owns   Host ID                               Token                                    Rack
UN  10.137.4.26  117.02 KB  100.0%  9bf3d64b-35cc-4bf4-9e87-c652766056aa  0                                        ra-1
Connected to: "Apigee" on 10.137.4.26/9160
feaef327-3b83-3580-b33f-fb133a1dcfc6
Authenticated to keyspace: user_settings
9a0d5591-dea9-37b2-b298-f524caf05fa2
130058fd-0c28-3e66-beb9-710e586b2cc1
Keyspace: user_settings
Note: Ownership information does not include topology; for complete information, specify a keyspace
Datacenter: dc-1
================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address      Load       Owns   Host ID                               Token                                    Rack
UN  10.137.4.26  98.44 KB   100.0%  9bf3d64b-35cc-4bf4-9e87-c652766056aa  0                                        ra-1
Connected to: "Apigee" on 10.137.4.26/9160
9ae74577-133a-3c76-8595-3754cbfd6b7f
Authenticated to keyspace: apimodel
86f8fcd7-bfac-303f-90f3-76ca1a66dea6
d884f5a7-3a7f-3442-94b9-a768df0778a4
becc1c8f-95f2-366f-991c-a38769eaf089
ae1a79ea-370a-3d6e-81b9-3b92b4e70e86
741e4674-347e-34f8-98ef-a3d0c158af9b
899f8065-6e85-3bf7-a937-2ddcc26cf919
92b8781b-fe8d-369d-8c1c-80b0e9c0b023
4ae11cac-4ee0-340d-bcb1-7ea1b59c2d7f
00984c11-e6a2-3e72-9af9-a73447f25e28
1bc931ec-80e6-3942-8afc-f4cf4a494907
cc8143ee-9746-347d-a947-9eee54f645aa
1be6e305-3c6a-30b0-aff1-251d86d77173
77c6c827-8180-3879-9cd4-cbca7215ef49
Keyspace: apimodel
Note: Ownership information does not include topology; for complete information, specify a keyspace
Datacenter: dc-1
================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address      Load       Owns   Host ID                               Token                                    Rack
UN  10.137.4.26  123.5 KB   100.0%  9bf3d64b-35cc-4bf4-9e87-c652766056aa  0                                        ra-1
Connected to: "Apigee" on 10.137.4.26/9160
234ed768-736e-3a80-8cfd-1847a399e2f5
Authenticated to keyspace: analytics
01caee35-cc33-31ce-860b-933567dd41fd
e5fdfa9d-975c-34f9-8add-4362bc5de350
3c87bb41-cfd2-32f4-9853-d88947b20d51
Keyspace: analytics
Note: Ownership information does not include topology; for complete information, specify a keyspace
Datacenter: dc-1
================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address      Load       Owns   Host ID                               Token                                    Rack
UN  10.137.4.26  135.1 KB   100.0%  9bf3d64b-35cc-4bf4-9e87-c652766056aa  0                                        ra-1
Connected to: "Apigee" on 10.137.4.26/9160
STDERR: 
---- End output of "bash"  "/tmp/chef-script20160408-5880-aitk0x" ----
Ran "bash"  "/tmp/chef-script20160408-5880-aitk0x" returned 
[2016-04-08T05:36:48+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 

Any help would be appriciable...

0 4 290
4 REPLIES 4

Not applicable

Pankaj,

There is no reason for Chef or any other automation to influence Edge installation. Assuming you have the correct values in the response file and are calling the scripts in the appropiate order, you should be able to install just fine.

Please share the following information for us to validate:

  • What is the syntax of the apigee-setup command Chef is executing, including the -p and -f values.
  • Also, share the value of CASS_HOSTS, USE_CASS_CLUSTER, REGION, ZK_HOSTS, and ZK_CLIENT_HOSTS in your response file.
  • What order are you following to install the components?
  • What is the available disk space in Cassandra nodes?

  • apigee-setup command: ./apigee-setup.sh -p aio -f /root/silent
  • Order of component are default one which is in aio.
  • ZK_HOSTS="$IP1" ZK_CLIENT_HOSTS="$IP1" USE_CASS_CLUSTER=y CASS_HOSTS="$IP1" where IP1=$(hostname -i)
  • My box is 50GB of space and not specified for cassandra node.

@pankaj singh patel I noticed you have USE_CASS_CLUSTER=Y. In an all in one install, USE_ZK_CLUSTER and USE_CASS_CLUSTER both should be n. All in one doesn't install Cassandra and Zookeeper as clusters but as single nodes.

USE_ZK_CLUSTER=n

USE_CASS_CLUSTER=n

Not applicable

Hi @pankaj singh patel,

This is not an issue with Apigee Installer . As far as Chef is concerned, you might want to check the ssh timeout for your chef-client, etc. It might be possible that your chef-client is closing the connection before finishing the full task.