Error infomation when file api-paste.ini not exsit

Bug #1562725 reported by Aaron DH
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
Aaron DH

Bug Description

start magnum-api when api_paste.ini not exsit ,
can not catch ConfigFilesNotFoundError , and error occurs as follow:

2016-03-28 14:54:47.780 CRITICAL magnum [-] NoSuchOptError: no such option in group DEFAULT: api_paste_config

2016-03-28 14:54:47.780 TRACE magnum Traceback (most recent call last):
2016-03-28 14:54:47.780 TRACE magnum File "/usr/local/bin/magnum-api", line 10, in <module>
2016-03-28 14:54:47.780 TRACE magnum sys.exit(main())
2016-03-28 14:54:47.780 TRACE magnum File "/opt/stack/magnum/magnum/cmd/api.py", line 43, in main
2016-03-28 14:54:47.780 TRACE magnum app = api_app.load_app()
2016-03-28 14:54:47.780 TRACE magnum File "/opt/stack/magnum/magnum/api/app.py", line 83, in load_app
2016-03-28 14:54:47.780 TRACE magnum raise cfg.ConfigFilesNotFoundError([cfg.CONF.api_paste_config])
2016-03-28 14:54:47.780 TRACE magnum File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2183, in __getattr__
2016-03-28 14:54:47.780 TRACE magnum raise NoSuchOptError(name)
2016-03-28 14:54:47.780 TRACE magnum NoSuchOptError: no such option in group DEFAULT: api_paste_config

Aaron DH (aaron.d)
Changed in magnum:
assignee: nobody → Aaron DH (aaron.d)
Changed in magnum:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/298087
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=ce55b7619f683d308e414bb2cc8812f5b38e66ef
Submitter: Jenkins
Branch: master

commit ce55b7619f683d308e414bb2cc8812f5b38e66ef
Author: Aaron-DH <email address hidden>
Date: Fri Mar 25 20:15:22 2016 +0800

    Fix config error

    Replace cfg.CONF.api_paste_ini to cfg.CONF.api.api_paste_ini

    Change-Id: Ibf61fb37f1dae877bbeab3dfcb005be52187fe1a
    Closes-Bug: #1562725

Changed in magnum:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 3.0.0

This issue was fixed in the openstack/magnum 3.0.0 release.

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.