← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1588305] Re: config reserved_huge_pages, nova-compute start failed

 

Reviewed:  https://review.openstack.org/324379
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=8093b764a9430a4e1c8cf2d73068f08117fec90e
Submitter: Jenkins
Branch:    master

commit 8093b764a9430a4e1c8cf2d73068f08117fec90e
Author: zte-hanrong <han.rong3@xxxxxxxxxx>
Date:   Thu Jun 2 19:23:46 2016 +0800

    Fix nova-compute start failed when reserved_huge_pages has value.
    
    The problem is due to this change:
    https://review.openstack.org/#/c/292499/20/nova/conf/virt.py
    
    The code of item_type=types.Dict is not correct, modfiy by
    item_type=types.Dict().
    
    Modify the usage discription of config of reserved_huge_pages.
    Usage of oslo_config.types.Dict is key:value pairs separated by
    commas.
    
    Add unit test because this is a complicated option that might not work
    like people expect.
    
    Closes-Bug:#1588305
    Change-Id: I06490866f24617cf99764ede73a1938c2d7b7b5c


** Changed in: nova
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1588305

Title:
  config reserved_huge_pages, nova-compute start failed

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  I set this value in nova.conf
  reserved_huge_pages = node=0,size=2048,count=4

  
  nova-compute restart failed.

  Log is as follow:

  2016-06-02 18:56:04.521 CRITICAL nova [req-
  e9dd76d9-4a4b-4571-bb88-78d751f74274 None None] TypeError: value_type
  must be callable

  2016-06-02 18:56:04.521 TRACE nova Traceback (most recent call last):
  2016-06-02 18:56:04.521 TRACE nova File "/usr/bin/nova-compute", line 10, in <module>
  2016-06-02 18:56:04.521 TRACE nova sys.exit(main())
  2016-06-02 18:56:04.521 TRACE nova File "/opt/stack/nova/nova/cmd/compute.py", line 76, in main
  2016-06-02 18:56:04.521 TRACE nova service.wait()
  2016-06-02 18:56:04.521 TRACE nova File "/opt/stack/nova/nova/service.py", line 491, in wait
  2016-06-02 18:56:04.521 TRACE nova _launcher.wait()
  2016-06-02 18:56:04.521 TRACE nova File "/usr/lib/python2.7/site-packages/oslo_service/service.py", line 309, in wait
  2016-06-02 18:56:04.521 TRACE nova status, signo = self._wait_for_exit_or_signal()
  2016-06-02 18:56:04.521 TRACE nova File "/usr/lib/python2.7/site-packages/oslo_service/service.py", line 284, in _wait_for_exit_or_signal
  2016-06-02 18:56:04.521 TRACE nova self.conf.log_opt_values(LOG, logging.DEBUG)
  2016-06-02 18:56:04.521 TRACE nova File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2525, in log_opt_values
  2016-06-02 18:56:04.521 TRACE nova _sanitize(opt, getattr(group_attr, opt_name)))
  2016-06-02 18:56:04.521 TRACE nova File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2946, in __getattr__
  2016-06-02 18:56:04.521 TRACE nova return self._conf._get(name, self._group)
  2016-06-02 18:56:04.521 TRACE nova File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2567, in _get
  2016-06-02 18:56:04.521 TRACE nova value = self._do_get(name, group, namespace)
  2016-06-02 18:56:04.521 TRACE nova File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2604, in _do_get
  2016-06-02 18:56:04.521 TRACE nova return convert(opt._get_from_namespace(namespace, group_name))
  2016-06-02 18:56:04.521 TRACE nova File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2595, in convert
  2016-06-02 18:56:04.521 TRACE nova self._substitute(value, group, namespace), opt)
  2016-06-02 18:56:04.521 TRACE nova File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2671, in _convert_value
  2016-06-02 18:56:04.521 TRACE nova return [opt.type(v) for v in value]
  2016-06-02 18:56:04.521 TRACE nova File "/usr/lib/python2.7/site-packages/oslo_config/types.py", line 478, in __init__
  2016-06-02 18:56:04.521 TRACE nova raise TypeError('value_type must be callable')
  2016-06-02 18:56:04.521 TRACE nova TypeError: value_type must be callable
  2016-06-02 18:56:04.521 TRACE nova

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1588305/+subscriptions


References