Bug 1320156 - Cluster creation task fails with error: "Failed. error: json: cannot unmarshal array into Go value of type models.AddClusterRequest"
Summary: Cluster creation task fails with error: "Failed. error: json: cannot unmarsha...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Storage Console
Classification: Red Hat
Component: core
Version: 2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 2
Assignee: Nishanth Thomas
QA Contact: Daniel Horák
URL:
Whiteboard:
: 1320157 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-22 12:42 UTC by Daniel Horák
Modified: 2018-11-19 05:32 UTC (History)
2 users (show)

Fixed In Version: rhscon-ceph-0.0.23-1.el7scon.x86_64, rhscon-core-0.0.24-1.el7scon.x86_64, rhscon-ui-0.0.39-1.el7scon.noarch
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-19 05:32:59 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Daniel Horák 2016-03-22 12:42:50 UTC
Description of problem:
  Creating cluster via USM API or web UI sometime fails with error:
    Failed. error: json: cannot unmarshal array into Go value of type models.AddClusterRequest


Version-Release number of selected component (if applicable):
USM server:
  ceph-0.94.5-9.el7cp.x86_64
  ceph-ansible-1.0.1-1.20160307gitb354445.el7.noarch
  ceph-common-0.94.5-9.el7cp.x86_64
  redhat-ceph-installer-0.2.3-1.20160304gitb3e3c68.el7.noarch
  rhscon-ceph-0.0.6-14.el7.x86_64
  rhscon-core-0.0.8-14.el7.x86_64
  rhscon-ui-0.0.23-1.el7.noarch
Ceph MON:
  ceph-0.94.5-9.el7cp.x86_64
  ceph-common-0.94.5-9.el7cp.x86_64
  ceph-mon-0.94.5-9.el7cp.x86_64
  rhscon-agent-0.0.3-3.el7.noarch
Ceph OSD:
  rhscon-agent-0.0.3-3.el7.noarch
  
How reproducible:
  often 70%

Steps to Reproduce:
1. Prepare bunch of hosts (1 USM server, 3 monitors and 4 osd in my case).
2. Install and preconfigure them accordingly to documentation.
3. Try to create cluster via REST API or web UI

Actual results:
  Sometimes the cluster creation task fails with error:
    Failed. error: json: cannot unmarshal array into Go value of type models.AddClusterRequest

Expected results:
  Cluster is properly created without any error.


Additional info:
  Failed task detail
  # 	Execution Steps 	Result
  1 	Started the task for cluster creation: 04ad6729-b424-4f25-9cf0-6e322cb15512 	Mar 22 2016, 01:10:32 PM
  2 	Installing packages 	Mar 22 2016, 01:10:32 PM
  3 	Installing packages done. Starting Cluster Creation. 	Mar 22 2016, 01:11:09 PM
  4 	Failed. error: json: cannot unmarshal array into Go value of type models.AddClusterRequest 	Mar 22 2016, 01:11:09 PM

Comment 2 Daniel Horák 2016-03-22 12:53:36 UTC
*** Bug 1320157 has been marked as a duplicate of this bug. ***

Comment 4 Daniel Horák 2016-07-22 08:47:50 UTC
We didn't noticed this issue for the last weeks neither during	manual or
automated testing, so closing this Bug as VERIFIED.

Last time tested on:
  USM Server (RHEL 7.2):
  ceph-ansible-1.0.5-31.el7scon.noarch
  ceph-installer-1.0.14-1.el7scon.noarch
  mongodb-2.6.5-4.1.el7.x86_64
  mongodb-server-2.6.5-4.1.el7.x86_64
  rhscon-ceph-0.0.33-1.el7scon.x86_64
  rhscon-core-0.0.34-1.el7scon.x86_64
  rhscon-core-selinux-0.0.34-1.el7scon.noarch
  rhscon-ui-0.0.48-1.el7scon.noarch

  Ceph MON (RHEL 7.2):
  calamari-server-1.4.7-1.el7cp.x86_64
  ceph-base-10.2.2-24.el7cp.x86_64
  ceph-common-10.2.2-24.el7cp.x86_64
  ceph-mon-10.2.2-24.el7cp.x86_64
  ceph-selinux-10.2.2-24.el7cp.x86_64
  libcephfs1-10.2.2-24.el7cp.x86_64
  python-cephfs-10.2.2-24.el7cp.x86_64
  rhscon-agent-0.0.15-1.el7scon.noarch
  rhscon-core-selinux-0.0.34-1.el7scon.noarch

  Ceph OSD (RHEL 7.2):
  ceph-base-10.2.2-24.el7cp.x86_64
  ceph-common-10.2.2-24.el7cp.x86_64
  ceph-osd-10.2.2-24.el7cp.x86_64
  ceph-selinux-10.2.2-24.el7cp.x86_64
  libcephfs1-10.2.2-24.el7cp.x86_64
  python-cephfs-10.2.2-24.el7cp.x86_64
  rhscon-agent-0.0.15-1.el7scon.noarch
  rhscon-core-selinux-0.0.34-1.el7scon.noarch

>> VERIFIED


Note You need to log in before you can comment on or make changes to this bug.