Using Nova Grizzly:
I'm seeing the following stack trace in Nova's compute.log file when I try to resize an instance as a non-admin user:
ad174253 9fe672da65304d6e9012df57eff036e2 33f9f37945bc444389e8102a274a33cc] [instance: 09cfc1eb-34bc-43fd-a443-aada4193e858] Error: ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1815, in prep_resize\n reservations, request_spec, filter_properties, node)\n', ' File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1782, in _prep_resize\n with rt.resize_claim(context, instance, instance_type, limits=limits) \\\n', ' File "/usr/lib/python2.7/site-packages/nova/openstack/common/lockutils.py", line 228, in inner\n retval = f(*args, **kwargs)\n', ' File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 149, in resize_claim\n self._update(context, self.compute_node)\n', ' File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 349, in _update\n self.compute_node[\'id\'], values, prune_stats)\n', ' File "/usr/lib/python2.7/site-packages/nova/db/api.py", line 203, in compute_node_update\n return IMPL.compute_node_update(context, compute_id, values, prune_stats)\n', ' File "/usr/lib/python2.7/site-packages/nova/db/sqlalchemy/api.py", line 107, in wrapper\n raise exception.AdminRequired()\n', 'AdminRequired: User does not have admin privileges\n']
Fix proposed to branch: master /review. openstack. org/17204
Review: https:/