riptano / ComboAMI

The AMI takes a set of input parameters via the EC2 user-data to install, RAID, ring, and launch a DataStax Enterprise/Community cluster.
69 stars 59 forks source link

Image failing to bootstrap #88

Closed arodrime closed 9 years ago

arodrime commented 9 years ago

Hi,

Using: http://thecloudmarket.com/image/ami-7f33cd08--datastax-auto-clustering-ami-2-5-1-hvm

With user-data: --clustername ExpandTeads --totalnodes 1 --version community --opscenter no --release 2.0.16 --rpcbinding

I am facing this:

[EXEC] 08/14/15-13:11:00 sudo apt-get install -y python-cql datastax-agent cassandra=2.0.16 dsc20=2.0.16-1:
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
  grub-pc-bin
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  python-thrift-basic
The following NEW packages will be installed:
  cassandra datastax-agent dsc20 python-cql python-thrift-basic
0 upgraded, 5 newly installed, 0 to remove and 142 not upgraded.
Need to get 37.5 MB of archives.
After this operation, 43.3 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  cassandra datastax-agent dsc20 python-thrift-basic python-cql

[ERROR] 08/14/15-13:11:00 sudo service cassandra stop:
cassandra: unrecognized service

[EXEC] 08/14/15-13:11:00 sudo rm -rf /var/lib/cassandra
[EXEC] 08/14/15-13:11:00 sudo rm -rf /var/log/cassandra
[EXEC] 08/14/15-13:11:00 sudo mkdir -p /var/lib/cassandra
[EXEC] 08/14/15-13:11:01 sudo mkdir -p /var/log/cassandra
[ERROR] 08/14/15-13:11:01 sudo chown -R cassandra:cassandra /var/lib/cassandra:
chown: invalid user: `cassandra:cassandra'

[ERROR] 08/14/15-13:11:00 sudo service cassandra stop:
cassandra: unrecognized service

[EXEC] 08/14/15-13:11:00 sudo rm -rf /var/lib/cassandra
[EXEC] 08/14/15-13:11:00 sudo rm -rf /var/log/cassandra
[EXEC] 08/14/15-13:11:00 sudo mkdir -p /var/lib/cassandra
[EXEC] 08/14/15-13:11:01 sudo mkdir -p /var/log/cassandra
[ERROR] 08/14/15-13:11:01 sudo chown -R cassandra:cassandra /var/lib/cassandra:
chown: invalid user: `cassandra:cassandra'

[ERROR] 08/14/15-13:11:01 sudo chown -R cassandra:cassandra /var/log/cassandra:
chown: invalid user: `cassandra:cassandra'

[EXEC] 08/14/15-13:11:01 sudo mv /etc/security/limits.d/cassandra.conf.bak /etc/security/limits.d/cassandra.conf
[INFO] Reflector loop...
[INFO] 08/14/15-13:11:01 Reflector: Received 0 of 1 responses from: []
[INFO] 08/14/15-13:11:03 Reflector: Received 0 of 1 responses from: []
[INFO] 08/14/15-13:11:06 Reflector: Received 0 of 1 responses from: []
[INFO] 08/14/15-13:11:08 Reflector: Received 0 of 1 responses from: []
[INFO] 08/14/15-13:11:10 Reflector: Received 0 of 1 responses from: []
[INFO] 08/14/15-13:11:13 Reflector: Received 0 of 1 responses from: []
[INFO] 08/14/15-13:11:15 Reflector: Received 0 of 1 responses from: []
[INFO] 08/14/15-13:11:18 Reflector: Received 0 of 1 responses from: []
[INFO] 08/14/15-13:11:21 Reflector: Received 1 of 1 responses from: [u'10.0.102.236']
[INFO] Seed list: set([u'10.0.102.236'])
[INFO] OpsCenter: 10.0.102.236
[INFO] Options: Namespace(analyticsnodes=0, base64postscript=None, bootstrap=False, cfsreplication=None, clustername='ExpandTeads', customreservation=None, email=None, hadoop=False, heapsize=None, multiregion=False, opscenter='no', opscenterinterface=None, opscenterip=None, opscenteronly=False, opscenterssl=False, password=None, raidonly=False, realtimenodes=2, reflector=None, release='2.0.16', rpcbinding=True, searchnodes=0, seed_indexes=[0, 2, 2], seeds=None, totalnodes=2, username=None, version='community', vnodes=False)
[ERROR] Exception seen in ds1_launcher.py:
Traceback (most recent call last):
  File "/home/ubuntu/datastax_ami/ds1_launcher.py", line 22, in initial_configurations
    ds2_configure.run()
  File "/home/ubuntu/datastax_ami/ds2_configure.py", line 1176, in run
  File "/home/ubuntu/datastax_ami/ds2_configure.py", line 577, in construct_yaml
IOError: [Errno 2] No such file or directory: '/etc/cassandra/cassandra.yaml'

This is quite annoying since I can't add capacity to my cluster :(.

C*heers,

Alain

arodrime commented 9 years ago

I just figure out that this was already described in 2 tickets at least #66 / #86, sorry

mlococo commented 9 years ago

Closing as a duplicate of #88.

arodrime commented 9 years ago

Actually, closing as a duplicate of #86, FTR.