NoSuchOptError: no such option in group k8s_heat: template_path

Bug #1442477 reported by Digambar
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Critical
Digambar

Bug Description

After restarting the magnum-conductor, it raises this error

2015-04-10 10:55:52.410 15476 CRITICAL magnum [-] NoSuchOptError: no such option in group k8s_heat: template_path
2015-04-10 10:55:52.410 15476 TRACE magnum Traceback (most recent call last):
2015-04-10 10:55:52.410 15476 TRACE magnum File "/usr/local/bin/magnum-conductor", line 10, in <module>
2015-04-10 10:55:52.410 15476 TRACE magnum sys.exit(main())
2015-04-10 10:55:52.410 15476 TRACE magnum File "/home/digambar/openstack_magnum/cluster_type/magnum/magnum/cmd/conductor.py", line 51, in main
2015-04-10 10:55:52.410 15476 TRACE magnum if not os.path.isfile(cfg.CONF.k8s_heat.template_path):
2015-04-10 10:55:52.410 15476 TRACE magnum File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2384, in __getattr__
2015-04-10 10:55:52.410 15476 TRACE magnum return self._conf._get(name, self._group)
2015-04-10 10:55:52.410 15476 TRACE magnum File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2116, in _get
2015-04-10 10:55:52.410 15476 TRACE magnum value = self._do_get(name, group, namespace)
2015-04-10 10:55:52.410 15476 TRACE magnum File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2134, in _do_get
2015-04-10 10:55:52.410 15476 TRACE magnum info = self._get_opt_info(name, group)
2015-04-10 10:55:52.410 15476 TRACE magnum File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2262, in _get_opt_info
2015-04-10 10:55:52.410 15476 TRACE magnum raise NoSuchOptError(opt_name, group)
2015-04-10 10:55:52.410 15476 TRACE magnum NoSuchOptError: no such option in group k8s_heat: template_path
2015-04-10 10:55:52.410 15476 TRACE magnum

Need to include below code in cmd/conductor.py to resolve the error.

k8s_heat_opts = [
    cfg.StrOpt('template_path',
               default=paths.basedir_def('templates/heat-kubernetes/'
                                         'kubecluster.yaml'),
               help=_(
                   'Location of template to build a k8s cluster. ')),
    ]

cfg.CONF.register_opts(k8s_heat_opts, group='k8s_heat')

Changed in magnum:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → Digambar (digambarpatil15)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/172306

Changed in magnum:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

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

commit 1df02fd9b1cf3c998dce314cc4e79d81fda1152f
Author: digambar <email address hidden>
Date: Mon Apr 13 12:20:12 2015 +0800

    Enabld conductor check new template path

    The conductor should check template in k8s_atomic_template_path
    or k8s_coreos_template_path

    Change-Id: I2a36ce96803f60b0159a153d5bc06ae29ec09862
    Closes-Bug: #1442477

Changed in magnum:
status: In Progress → Fix Committed
Adrian Otto (aotto)
Changed in magnum:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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