10 Commits

Author SHA1 Message Date
Uggla
dae27b4a72 Fix missing home message 2016-04-06 18:32:22 +02:00
Uggla
2f40ce5d24 PEP8 fixes 2016-04-06 18:32:22 +02:00
Bruno Cornec
8aa83c50ee Improve #39
- manage variable expanion for logfiles
- improve inventory handling
- remove now useless checks for HOME
2016-04-04 21:24:06 +02:00
Bruno Cornec
65c8ac92e1 Fix #39 with new log files management
- Default location for log files is now under the HOME directory of the
  user instead of /var/log
- Create that default .redfish dir if not already existing
- Adapt error messages
2016-04-04 20:40:10 +02:00
Uggla
9094675555 Manage python3 compatibility
- Use future module to allow python2/3 compatibility.
- New dependencies added future and configparser.
2016-03-07 11:15:32 +01:00
Uggla
9a5e417980 Improve logging
- Check log directory existence and provide intruction to create it.
- Client log is in the log dir now.
- Improve error messages.
2016-03-05 15:39:03 +01:00
Uggla
c34d85fbc5 Documentation update
- Put in place sphinx mechanism to build documentation.
  Most of the documentation is generated from python docstrings.
- redfish-client.py usage is a bit modified to display a decent
  documentation.
- A link rfclient.py to redfish-client.py was created to allow sphinx
  parsing. The '-' char is not allowed for module and so sphinx autodoc
  module.
- Note : Copyright may need to be reviewed as well as main.py.
2016-02-11 16:20:00 +01:00
Uggla
3eed4813f0 Fix duplicate logs.
- Specify a name for the logger as recommended by the logging
  documentation. However for strange reason requests logs are
  not anymore capture in the log file. This needs to be reviewed.
2016-01-03 22:59:47 +01:00
Uggla
6b4db2baef Improve debug
- Try to factorise initialize_logger into redfish.config.
- Remove global logger declaration to avoid potential side effects.
- Add new logging.debug instead of print and try to cleanup.
- Allow logger.setlevel to be more flexible by configuring console and
  file level of log.
- Prepare client to allow optional debug parameter with loglevel
  selection.
2016-01-02 19:32:59 +01:00
Bruno Cornec
f844afc49b First working 0.1 version
- Uses tortilla lib to wrap the REST API (dep)
- Uses python requests to manage login/logout (dep)
- Provides 2 functional working examples with Redfish simulator and
  ProLiant server or Moonshot Server
- Remove OpenStack deps as this code has to be usable outside of
  OpenStack
- Provides a configuration file to handle credentials and connection
  URL
- Provides a mapping class to handle multiple versions of Redfish
  (in this version, 0.95.0 for ProLiant and 1.0.0 for mockup)
- Provides a first action reset_server to ... reset system
  The action is commented into simple-proliant.py to not do
  unexpected reset.
- Provides a first retrieving function get_bios_version to get the
  BIOS version of a system.
- Add basic logging capability
- Clean up to meet pep8 and doc strings (in progress).
2015-12-02 20:33:03 +01:00