Git Product home page Git Product logo

volttron-utils's Introduction

volttron-utils's People

Contributors

bonicim avatar craig8 avatar pleepleus avatar schandrika avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

bonicim pleepleus

volttron-utils's Issues

Have standard keystore file name convention

Currently server's keystore is in a file named keystore
Core services such as config.store have keys defined in vhome/keystores/<vip_identity>/keystore.json
Installed agents keys get saved in vhome/agents/keystore.json

Add DEV dependencies

There are currently no DEV dependencies, so far I recommend:

-pytest
-mock

I am sure more to come as I work my way through getting the tests to run.

syslog imported in wrong place

It looks like the code is designed to run on Windows (which won't have syslog), but the reliable import attempt does not work because there is another syslog import statement above it.

image

Cleanup ClientContext object

ClientContext should be the go to class for agents to get information related to environment - server, vhome, keystore etc. AIP should not call clientcontext. AIP should set env variables and ClientContext should read it from the environment

Error when file not found in persistance.py

For some reason this is only printed out when you don't redirect to a log file.

2021-12-11 16:40:00,923 () volttron.client.vip.agent.core DEBUG: server key from env None
2021-12-11 16:40:00,924 () volttron.client.vip.agent.core DEBUG:  after setting agent provate and public key None None
    shutil.move(tempname, filename)  # atomic commit
  File "/usr/lib/python3.8/shutil.py", line 811, in move
2021-12-11 16:40:00,925 () volttron.client.vip.agent.core DEBUG: AGENT RUNNING on ZMQ Core keydiscovery
2021-12-11 16:40:00,926 () volttron.client.vip.agent.core DEBUG: keys: server: None public: HUDjKHg_iEvsnE9tc--Szwx4wB8u84XymYK0fd9T-nI, secret: txbkI9grbJEtSb8_1Ges8yXnz5XYcmdKdDz2z7vMIw4
2021-12-11 16:40:00,927 () volttron.services.auth.auth_service DEBUG: Returning field _build_capabilities {'edit_config_store': {'identity': '/.*/'}, 'allow_auth_modifications': None}
    copy_function(src, real_dst)
  File "/usr/lib/python3.8/shutil.py", line 435, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.8/shutil.py", line 264, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/home/gridappsd/.volttron_instances.tmp'

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.