OS_AUTH_TYPE needs to be set for gnocchi client

Bug #1896864 reported by Hua Zhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
stsstack-bundles
Fix Released
Medium
Hua Zhang

Bug Description

OS_AUTH_TYPE needs to be set for gnocchi client, otherwise, it will throw the following errors.

$ gnocchi metric list
Traceback (most recent call last):
  File "/usr/bin/gnocchi", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python3/dist-packages/gnocchiclient/shell.py", line 252, in main
    return GnocchiShell().run(args)
  File "/usr/lib/python3/dist-packages/gnocchiclient/shell.py", line 95, in __init__
    super(GnocchiShell, self).__init__(
  File "/usr/lib/python3/dist-packages/cliff/app.py", line 79, in __init__
    self.parser = self.build_option_parser(description, version)
  File "/usr/lib/python3/dist-packages/gnocchiclient/shell.py", line 130, in build_option_parser
    os.environ.set("OS_AUTH_TYPE", "password")
AttributeError: '_Environ' object has no attribute 'set'

Related branches

Changed in stsstack-bundles:
status: New → In Progress
assignee: nobody → Hua Zhang (zhhuabj)
importance: Undecided → Medium
Changed in stsstack-bundles:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.