No validation on mongo roles if ceilometer enabled in nailgun API

Bug #1403576 reported by Vadim Rovachev
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Fuel Python (Deprecated)
6.0.x
Won't Fix
Medium
Fuel Python (Deprecated)
6.1.x
Fix Released
Medium
Fuel Python (Deprecated)

Bug Description

{"build_id": "2014-12-03_11-32-25", "ostf_sha": "7e79964ddb5092fc4568c6fb08a348bb326df2a8", "build_number": "36", "auth_required": true, "api": "1.0", "nailgun_sha": "d2e732c5f54e35d0ed19f9a17489608dc1d11be8", "production": "docker", "fuelmain_sha": "7ab330b4958ab20955372e85de05e8732e8f6df2", "astute_sha": "16b252d93be6aaa73030b8100cf8c5ca6a970a91", "feature_groups": ["mirantis"], "release": "6.0", "release_versions": {"2014.2-6.0": {"VERSION": {"build_id": "2014-12-03_11-32-25", "ostf_sha": "7e79964ddb5092fc4568c6fb08a348bb326df2a8", "build_number": "36", "api": "1.0", "nailgun_sha": "d2e732c5f54e35d0ed19f9a17489608dc1d11be8", "production": "docker", "fuelmain_sha": "7ab330b4958ab20955372e85de05e8732e8f6df2", "astute_sha": "16b252d93be6aaa73030b8100cf8c5ca6a970a91", "feature_groups": ["mirantis"], "release": "6.0", "fuellib_sha": "1eb704034c31a7679c6cfbf13579219c7da75e4b"}}}, "fuellib_sha": "1eb704034c31a7679c6cfbf13579219c7da75e4b"}

Create env with ceilo and add 2 nodes:
  controller,
  compute
and deploy env using nailgun API.

Expected result: Validation error (mongo roles not found).
Actual result: env deployed.

Revision history for this message
Vadim Rovachev (vrovachev) wrote :
Changed in fuel:
milestone: none → 6.0
assignee: nobody → Fuel Python Team (fuel-python)
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

Is not critical for release

Changed in fuel:
milestone: 6.0 → 6.1
Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

UI shows warning message in this case: "When Ceilometer is enabled, the environment should have Telemetry - MongoDB node" but allows deployment. It seems that this behaviour is expected then.

Do we really need to prohibit deployment in this case? Or mongo can be added later?

tags: added: ceilometer
tags: added: mongo
tags: added: nailgun
Revision history for this message
Vadim Rovachev (vrovachev) wrote :

I use nailgun API, it's not UI. Yes, we really need to prohibit deployment in this case. If mongo roles is not added to some nodes, then deploy will fail with broken ceilometer.

Revision history for this message
Vadim Rovachev (vrovachev) wrote :

Confirmed on:
{"build_id": "2015-01-31_22-55-01", "ostf_sha": "c9100263140008abfcc2704732e98fbdfd644068", "build_number": "90", "release_versions": {"2014.2-6.1": {"VERSION": {"build_id": "2015-01-31_22-55-01", "ostf_sha": "c9100263140008abfcc2704732e98fbdfd644068", "build_number": "90", "api": "1.0", "nailgun_sha": "c0932eb5c2aa7fd1e13a999cb1b4bf5aff101c3b", "production": "docker", "python-fuelclient_sha": "2ea7b3e91c1d2ff85110bf5abb161a6f4e537358", "astute_sha": "ed5270bf9c6c1234797e00bd7d4dd3213253a413", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "", "fuellib_sha": "c5e4a0410ba66f9e9911f62b3b71c0b9c29aed6e"}}}, "auth_required": true, "api": "1.0", "nailgun_sha": "c0932eb5c2aa7fd1e13a999cb1b4bf5aff101c3b", "production": "docker", "python-fuelclient_sha": "2ea7b3e91c1d2ff85110bf5abb161a6f4e537358", "astute_sha": "ed5270bf9c6c1234797e00bd7d4dd3213253a413", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "", "fuellib_sha": "c5e4a0410ba66f9e9911f62b3b71c0b9c29aed6e"}

Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Ivan Berezovskiy (iberezovskiy)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/141341
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=eafee974901b28926b369ff2ba20fb738904df16
Submitter: Jenkins
Branch: master

commit eafee974901b28926b369ff2ba20fb738904df16
Author: iberezovskiy <email address hidden>
Date: Fri Dec 12 14:58:16 2014 +0300

    Add API checks for environment with external mongo

    Partial implements blueprint external-mongodb-support

    Partial-bug: #1403576

    Change-Id: Ia164a45ef8f0efc071b2f3b8826c979c9a381393

Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

https://review.openstack.org/141341 It was quick fix to add validation for mongo. Right way is validation of restrictions defined in fixture. We can remove this temporary fix when we have universal validation implemented.

Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

Won't fix in 6.0.x as priority is medium (this check is implemented in UI already).

Revision history for this message
Vadim Rovachev (vrovachev) wrote :

verified on:
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "6.1"
  openstack_version: "2014.2-6.1"
  api: "1.0"
  build_number: "301"
  build_id: "2015-04-10_04-14-22"
  nailgun_sha: "d6e351189666e8afa01003e643e63216ef7abd26"
  python-fuelclient_sha: "9208ff4a08dcb674ce2df132399a5aa3ddfac21c"
  astute_sha: "5041b2fb508e6860c3cb96474ca31ec97e549e8b"
  fuellib_sha: "e9c3ba332b05120c967b20260c7b223afc1b4f1a"
  ostf_sha: "4bda5bbf9ea033189f16518032c063d43e4d0e5c"
  fuelmain_sha: "2ca546b86e651d5638dbb1be9bae44b86c84a893"

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.