kraken-hpc / krakenctl Goto Github PK
View Code? Open in Web Editor NEWkrakenctl is a command-line tool for viewing and manipulating running kraken instances.
License: BSD 3-Clause "New" or "Revised" License
krakenctl is a command-line tool for viewing and manipulating running kraken instances.
License: BSD 3-Clause "New" or "Revised" License
When you run krakenctl node info
on an ID that does not exist, the tool crashes instead of cleanly telling me that ID is invalid.
Example:
krakenctl node info fake-id123
Traceback (most recent call last):
File "/krakenctl/krakenctl.py", line 335, in <module>
main()
File "/krakenctl/krakenctl.py", line 32, in main
argument_manager.parse_args()
File "/krakenctl/argument_manager.py", line 342, in parse_args
args.func(non_defaults)
File "/krakenctl/krakenctl.py", line 104, in node_list
dsc_json = get_url(dsc_url, debug, verbose)
File "/krakenctl/krakenctl.py", line 169, in get_url
json = r.json()
File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
This would allow us to deploy on, e.g. RHEL7 systems without worrying about python dependencies.
A multi-file script is hard to install...
It would be nice if I could query a node's info by its nodename
as well as the id
.
Currently only id
works.
For example krakenctl node info compute01
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.