yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #72892
[Bug 1771137] [NEW] Xenapi disk resize broken by use of privsep code
Public bug reported:
Patch I6c695c04ae586fec6adc354257638116277dda88 (https://review.openstack.org/#/c/552242/) moved disk resizing into privsep. Unforutunately "None" was passed as the expected return code, which is not understood by processutils.
Further, Tempest flavor resizing moves from m1.nano to m1.micro, both of which have root_gb=0 thus skipping the resize code - so Tempest didn't spot this error.
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: Traceback (most recent call last):
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: File "/usr/local/lib/python2.7/dist-packages/oslo_privsep/daemon.py", line 445, in loop
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: reply = self._process_cmd(*msg)
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: File "/usr/local/lib/python2.7/dist-packages/oslo_privsep/daemon.py", line 428, in _process_cmd
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: ret = func(*f_args, **f_kwargs)
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: File "/usr/local/lib/python2.7/dist-packages/oslo_privsep/priv_context.py", line 209, in _wrap
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: return func(*args, **kwargs)
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: File "/opt/stack/nova/nova/privsep/fs.py", line 152, in resize2fs
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: unprivileged_resize2fs(image, check_exit_code=check_exit_code, size=size)
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: File "/opt/stack/nova/nova/privsep/fs.py", line 162, in unprivileged_resize2fs
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: processutils.execute(*cmd, check_exit_code=check_exit_code)
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/processutils.py", line 414, in execute
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: if not ignore_exit_code and _returncode not in check_exit_code:
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: TypeError: argument of type 'NoneType' is not iterable
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: DEBUG oslo.privsep.daemon [None req-aad511d7-9f4a-450c-bf86-c4e948d7409b service nova] privsep: reply[140577558810448]: (5, 'exceptions.TypeError', ("argum
ent of type 'NoneType' is not iterable",)) {{(pid=16155) loop /usr/local/lib/python2.7/dist-packages/oslo_privsep/daemon.py:456}}
** Affects: nova
Importance: Undecided
Assignee: Bob Ball (bob-ball)
Status: In Progress
** Tags: xenserver
--
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/1771137
Title:
Xenapi disk resize broken by use of privsep code
Status in OpenStack Compute (nova):
In Progress
Bug description:
Patch I6c695c04ae586fec6adc354257638116277dda88 (https://review.openstack.org/#/c/552242/) moved disk resizing into privsep. Unforutunately "None" was passed as the expected return code, which is not understood by processutils.
Further, Tempest flavor resizing moves from m1.nano to m1.micro, both of which have root_gb=0 thus skipping the resize code - so Tempest didn't spot this error.
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: Traceback (most recent call last):
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: File "/usr/local/lib/python2.7/dist-packages/oslo_privsep/daemon.py", line 445, in loop
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: reply = self._process_cmd(*msg)
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: File "/usr/local/lib/python2.7/dist-packages/oslo_privsep/daemon.py", line 428, in _process_cmd
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: ret = func(*f_args, **f_kwargs)
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: File "/usr/local/lib/python2.7/dist-packages/oslo_privsep/priv_context.py", line 209, in _wrap
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: return func(*args, **kwargs)
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: File "/opt/stack/nova/nova/privsep/fs.py", line 152, in resize2fs
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: unprivileged_resize2fs(image, check_exit_code=check_exit_code, size=size)
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: File "/opt/stack/nova/nova/privsep/fs.py", line 162, in unprivileged_resize2fs
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: processutils.execute(*cmd, check_exit_code=check_exit_code)
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/processutils.py", line 414, in execute
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: if not ignore_exit_code and _returncode not in check_exit_code:
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: TypeError: argument of type 'NoneType' is not iterable
May 14 11:26:45 DevStackOSDomU nova-compute[15359]: DEBUG oslo.privsep.daemon [None req-aad511d7-9f4a-450c-bf86-c4e948d7409b service nova] privsep: reply[140577558810448]: (5, 'exceptions.TypeError', ("argum
ent of type 'NoneType' is not iterable",)) {{(pid=16155) loop /usr/local/lib/python2.7/dist-packages/oslo_privsep/daemon.py:456}}
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1771137/+subscriptions
Follow ups