Git Product home page Git Product logo

sisyphus's People

Contributors

alesstimec avatar cmars avatar kngu9 avatar

Watchers

 avatar  avatar  avatar

Forkers

alesstimec kngu9

sisyphus's Issues

Start action succeeds when sisyphus actually fails to start

I deployed the sisyphus charm and tried running the start action. It said:

ubuntu@chthonic:~/mojo/ua-event-bus/cdo/ua-event-bus/devel/configs$ juju run-action sisyphus/0 start --wait
unit-sisyphus-0:
  id: f1cf54fb-b893-40a1-878d-860303e2f93b
  status: completed
  timing:
    completed: 2019-06-14 16:53:30 +0000 UTC    enqueued: 2019-06-14 16:53:26 +0000 UTC
    started: 2019-06-14 16:53:29 +0000 UTC
  unit: sisyphus/0

However, I ssh'd onto the unit and found it was not running. I added a log line to the start action script to try and find out why, and discovered that sisyphus actually couldn't connect to kafka:

root@juju-ae4f51-8:~# /snap/bin/sisyphus -kafka-brokers 10.231.57.245:9093 -kafka-client-id sisyphus2 -workers 1 -kafka-cert /var/snap/sisyphus/common/client.crt -kafka-key /var/snap/sisyphus/common/client.key -kafka-ca /var/snap/sisyphus/common/ca.crt -config /var/snap/sisyphus/common/config.yaml -log-level DEBUG
{"level":"error","ts":"2019-06-14T17:11:55.582Z","msg":"failed to create kafka client","error":{"msg":"kafka: client has run out of available brokers to talk to (Is your cluster reachable?)"}}

These kinds of errors need to be surfaced when invoking the action. nohup may or may not be sufficient for this purpose. We could use systemd; systemctl disable will prevent sisyphus from auto-starting, while still allowing it to be started and stopped from the action with systemctl start|stop. systemctl is-active and systemctl status could be used to feed back action status.

Fails to join two ids together in Kafka key

Example

{contract-id}-3dd24969-5c2b-49a7-8f99-fbe5d6706a35	{"contractID":"b0eeb577-0ae2-47f8-8e6a-1ce47e0e678f","machineID":"3dd24969-5c2b-49a7-8f99-fbe5d6706a35"}
{contract-id}-f384600b-4b2a-40b6-8c13-42021ff1fb90	{"contractID":"64ce77be-1855-4ccd-82bc-9cb59e1f9634","machineID":"f384600b-4b2a-40b6-8c13-42021ff1fb90"}
{contract-id}-52ea44f1-3835-4294-8e4e-34cb3a57d07c	{"contractID":"99cb14b3-e155-4f65-8ed0-67d4db22b9e1","machineID":"52ea44f1-3835-4294-8e4e-34cb3a57d07c"}
{contract-id}-971e2e05-70fc-4ef1-80da-8f470121025f	{"contractID":"f4cebc87-84cb-4dd7-8b2c-7e76bb10ba57","machineID":"971e2e05-70fc-4ef1-80da-8f470121025f"}

It seems that Sisyphus does not append contractID into the Kafka topic key.

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.