Coder Social home page Coder Social logo

fabric-skeleton's People

Contributors

devaleksei avatar jeremiah avatar osesov avatar smontsaroff-luxoft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

devaleksei fedyiv

fabric-skeleton's Issues

Cluster Start Failing

Currently, for multiple different cluster configuration, ops_cli fails when performing the 'Run Fabric configurator' operation.. Partial output below.

To reproduce
Once fabric-skeleton is install on a block chain ec2 instance steps to reproduce are

  1. cd ~/fabric-skeleton/ops
  2. export FABRIC_CFG_PATH=fabric-skeleton/ops/network_dist
  3. export AWS_DEFAULT_REGION=us-west-1
  4. export AWS_REGION=us-west-1
  5. ./ops-cli -i ~/.ssh/Blockchain-controller.pem -c cluster-config
    or
    ./ops-cli -i ~/.ssh/Blockchain-controller.pem -c single_sample

software configuration
A list of the software environment is found here SWlist.txt (it was generated by the showSWConfig.sh command currently in the Bootstrap branch)

Attached are the logs and configuration files for two test runs which presented essentially the same problem
cluster_config.log
single_sample.log

cluster-config.yaml
single_sample.yaml

PLAY [Run Fabric configurator] *********************************************************************

TASK [Gathering Facts] *****************************************************************************
ok: [localhost]

TASK [command] *************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "gradle networkConfigure", "delta": "0:00:14.839140", "end": "2018-04-02 20:24:03.369610", "msg": "non-zero return code", "rc": 1, "start": "2018-04-02 20:23:48.530470", "stderr": "\nFAILURE: Build failed with an exception.\n\n* Where:\nBuild file '/home/ubuntu/fabric-skeleton/build.gradle' line: 8\n\n* What went wrong:\nA problem occurred evaluating root project 'fabric-skeleton'.\n> Failed to apply plugin [id 'com.google.protobuf']\n > Could not create an instance of type com.google.protobuf.gradle.ProtobufSourceDirectorySet_Decorated.\n\n* Try:\nRun with --stacktrace option
Currently, for multiple different cluster configuration, ops-cli fails when performing the 'Run Fabric configurator' operation.. Partial output below.

Killing cluster behaves unexpectedly

Steps to reproduce:

  1. Start cluster
    ./ops-cli -i ~/.ssh/Blockchain-controller.pem -c single_sample
  2. Kill cluster
    ./ops-cli -i ~/.ssh/Blockchain-controller.pem -c single_sample -k
  3. Start cluster again
    ./ops-cli -i ~/.ssh/Blockchain-controller.pem -c single_sample

Expected result:
Cluster starts normally
Actual result:
Cluster fails to start
Root cause
When cluster is starting it checks whether it was already started or not by checking availablility of AWS hosts. When we execute kill and hosts are in progress of termination, it thinks that cluster is alive and this leads to errors.
Workaround
After killing cluster, open AWS EC2 website and manually check that everything is down.
Proposed solution:
Enhance killing script so that it waits until actual cluster stop synchronously

Add proper error handling inbootStrap.sh

Currently, if bootStrap.sh script fail at some point while executing commands on remote controller - it does not catch this fact, and tells that everything was okay.

Need to add error-codes checks after each ssh invokation

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.