Users context requires networking service

Bug #1455474 reported by Alexander Maretskiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
Fix Released
Medium
Alexander Maretskiy

Bug Description

While `users' context runs cleanup, it tries to remove default security group - this works for full openstack, but is some cases with limited components set this will cause en error.
For example, while benchmarking Fuel node, we have only keystone component available, and service catalog is even empty - so this causes the following error:

--------------------------------------------------------------------------------
Task 792e8ffc-f0d1-4058-bf20-ff8af02195ab: failed
--------------------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/amaretskiy/devel/rally/rally/benchmark/engine.py", line 198, in validate
    self._validate_config_semantic(self.config)
  File "/home/amaretskiy/devel/rally/rally/common/utils.py", line 206, in wrapper
    result = f(self, *args, **kwargs)
  File "/home/amaretskiy/devel/rally/rally/benchmark/engine.py", line 188, in _validate_config_semantic
    admin, user, name, pos, deployment, kwargs)
  File "/home/amaretskiy/devel/rally/rally/benchmark/context/base.py", line 120, in __exit__
    self.cleanup()
  File "/home/amaretskiy/devel/rally/rally/common/utils.py", line 206, in wrapper
    result = f(self, *args, **kwargs)
  File "/home/amaretskiy/devel/rally/rally/benchmark/context/users.py", line 283, in cleanup
    self._remove_default_security_group()
  File "/home/amaretskiy/devel/rally/rally/benchmark/context/users.py", line 111, in _remove_default_security_group
    net_wrapper = network.wrap(clients)
  File "/home/amaretskiy/devel/rally/rally/benchmark/wrappers/network.py", line 407, in wrap
    return NovaNetworkWrapper(clients, config)
  File "/home/amaretskiy/devel/rally/rally/benchmark/wrappers/network.py", line 106, in __init__
    super(NovaNetworkWrapper, self).__init__(*args)
  File "/home/amaretskiy/devel/rally/rally/benchmark/wrappers/network.py", line 71, in __init__
    self.client = getattr(clients, self.SERVICE_IMPL)()
  File "/home/amaretskiy/devel/rally/rally/osclients.py", line 52, in wrapper
    self.cache[key] = func(self, *args, **kwargs)
  File "/home/amaretskiy/devel/rally/rally/osclients.py", line 157, in nova
    region_name=self.endpoint.region_name)
  File "/home/amaretskiy/devel/rally_env/local/lib/python2.7/site-packages/keystoneclient/utils.py", line 318, in inner
    return func(*args, **kwargs)
  File "/home/amaretskiy/devel/rally_env/local/lib/python2.7/site-packages/keystoneclient/service_catalog.py", line 212, in url_for
    raise exceptions.EmptyCatalog(_('The service catalog is empty.'))
EmptyCatalog: The service catalog is empty.

Changed in rally:
assignee: nobody → Alexander Maretskiy (maretskiy)
Changed in rally:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to rally (master)

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

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

Reviewed: https://review.openstack.org/183510
Committed: https://git.openstack.org/cgit/openstack/rally/commit/?id=1be6e57d325f2a60a439d31e4a899434c0d6d716
Submitter: Jenkins
Branch: master

commit 1be6e57d325f2a60a439d31e4a899434c0d6d716
Author: Alexander Maretskiy <email address hidden>
Date: Fri May 15 18:46:07 2015 +0300

    [Context] Users cleanup should not fail without networking

    Users context cleanup tries to remove default secgroup,
    even if there is networking component not available.
    This causes error on clouds with reduced components set (for example,
    Fuel master node).

    This patch disables default security group removal for these
    specific cases.

    Change-Id: I92987c11f2c7b0cb7bab0d0d9e052b30ffa95366
    Closes-Bug: 1455474

Changed in rally:
status: In Progress → Fix Committed
Changed in rally:
milestone: none → 0.0.5
Changed in rally:
status: Fix Committed → Fix Released
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.