Sahara CDH (at least CDH) cluster validation fails in multi-region setup

Bug #1535094 reported by Andrew Poltavchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
High
Sergey Reshetnyak

Bug Description

In multi-region setup Sahara validation of Cinder limits fails since utils/openstack/cinder.py has missing configuration option os_region_name. Example: we have two regions RegionOne and RegionTwo and trying to deploy Hadoop cluster in RegionOne, but Cinder resources validation performs in RegionTwo. Such behaviour is wrong, but acceptable if both regions are acting normal and available. But, if RegionTwo is down, resources validation break along with Hadoop cluster creation.

This can be simple resolved by adding cfg.StrOpt os_region_name to utils/openstack/cinder.py (please see attached patch), but i'm not sure how this will work in single region environment.

Revision history for this message
Andrew Poltavchenko (andreipoltavchenko) wrote :
Revision history for this message
Sergey Reshetnyak (sreshetniak) wrote :

Andrew,
Thank you for bug reporting.
It affects other clients like neutron, swift and etc..

os_region_name option already exists but not used in some clients after refactoring.

Changed in sahara:
status: New → Triaged
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to sahara (master)

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

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

Reviewed: https://review.openstack.org/269024
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=9ccf935f1fb3e417d3bea8ed06f00bdc03e98115
Submitter: Jenkins
Branch: master

commit 9ccf935f1fb3e417d3bea8ed06f00bdc03e98115
Author: Sergey Reshetnyak <email address hidden>
Date: Mon Jan 18 15:34:19 2016 +0300

    Fix using regions in all OS clients

    This patch fixes problem with regions on multi region environments.

    Change-Id: I7d3f0e6fd045245de6b0bc16d04a5d7d5451aba6
    Closes-bug: #1535094

Changed in sahara:
status: In Progress → Fix Released
no longer affects: sahara/mitaka
no longer affects: sahara/liberty
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.