Bug 1237044 - Overcloud deployment configured with CLI and deployed via undercloud GUI failed
Summary: Overcloud deployment configured with CLI and deployed via undercloud GUI failed
Keywords:
Status: CLOSED DUPLICATE of bug 1234745
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tuskar-ui
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: z1
: Director
Assignee: Ana Krivokapic
QA Contact: yeylon@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1234875
TreeView+ depends on / blocked
 
Reported: 2015-06-30 09:19 UTC by Eran Kuris
Modified: 2019-10-10 09:54 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-10 12:57:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Error: Unable to deploy overcloud. (148.95 KB, image/jpeg)
2015-07-01 09:22 UTC, Eran Kuris
no flags Details

Description Eran Kuris 2015-06-30 09:19:12 UTC
Description of problem:
Tried to deploy overcloud via undercloud GUI and it failed and I got this errors in log : 


2015-06-30T08:56:43Z	overcloud	CREATE_FAILED	Resource CREATE failed: ResourceUnknownStatus: Resource failed - Unknown status FAILED due to "Resource CREATE failed: ResourceUnknownStatus: Resource failed - Unknown status FAILED due to "Resource CREATE failed: Error: Server overcloud-controller-0 dele
2015-06-30T08:56:41Z	Compute	CREATE_FAILED	ResourceUnknownStatus: Resource failed - Unknown status FAILED due to "Resource CREATE failed: ResourceUnknownStatus: Resource failed - Unknown status FAILED due to "Resource CREATE failed: ResourceInError: Went to status ERROR due to "Message: No valid h
2015-06-30T08:52:53Z	Controller	CREATE_FAILED	ResourceUnknownStatus: Resource failed - Unknown status FAILED due to "Resource CREATE failed: ResourceUnknownStatus: Resource failed - Unknown status FAILED due to "Resource CREATE failed: Error: Server overcloud-controller-0 delete failed: (500) No vali


Version-Release number of selected component (if applicable):
RHEL-OSP director puddle 7.0 RC puddle 2015-06-26-3
[stack@instack images]$ rpm -qa |grep tuskar
python-tuskarclient-0.1.18-3.el7ost.noarch
openstack-tuskar-0.4.18-3.el7ost.noarch
openstack-tuskar-ui-extras-0.0.4-1.el7ost.noarch
openstack-tuskar-ui-0.3.0-6.el7ost.noarch
How reproducible:
100%

Steps to Reproduce:
1. Deploy undercloud 
2. Log in to the undercloud UI dashboard
3. Deploy overcloud
Actual results:
error message  deploy failed 

Expected results:
deploy success 

Additional info:

Comment 3 Eran Kuris 2015-06-30 12:49:42 UTC
reproduce also in puddle 7.0 RC puddle 2015-06-29

Comment 4 chris alfonso 2015-06-30 17:18:00 UTC
Can you please paste all the steps you took to reproduce this as you followed the documentation. This could be a blocker for GA, but we need to make sure you were following the documented steps.

Comment 5 Ana Krivokapic 2015-06-30 20:14:32 UTC
I just successfully deployed using GUI on the 2015-06-29.1 puddle, following the (still unmerged) GUI docs here:

https://repos.fedorapeople.org/repos/openstack-m/jenkins/instack-undercloud-docs/237666-3/html/basic_deployment/basic_deployment_gui.html

Comment 6 Eran Kuris 2015-07-01 06:09:18 UTC
I used this guide : 
https://repos.fedorapeople.org/repos/openstack-m/docs/internal/master/environments/environments.html

After I install undercloud I connected to the undercloud GUI and according to the legand I started to config all mandatory parameters. and then ran overcloud deployment via gui.

all the step : 
Preparing the Virtual Environment (Automated)
___________________________________________________
Install RHEL 7.1 Server x86_64 or CentOS 7 x86_64 on your host machine.

Make sure sshd service is installed and running.

1. The user performing all of the installation steps on the virt host needs to have sudo enabled. You can use an existing user or use the following commands to create a new user called stack with password-less sudo enabled. Do not run the rest of the steps in this guide as root.

Example commands to create a user:

$ sudo useradd stack
$ sudo passwd stack  # specify a password
$ echo "stack ALL=(root) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/stack
$ sudo chmod 0440 /etc/sudoers.d/stack
Make sure you are logged in as the non-root user you intend to use.

Example commands to log in as the non-root user:

2. $su - stack
Enable needed repositories:

RHEL
Enable rhos-release:

3.$ sudo rpm -ivh http://rhos-release.virt.bos.redhat.com/repos/rhos-release/rhos-release-latest.noarch.rpm

4.
# To enable puddles:
$sudo rhos-release 7-director

5 # We need openwsman-python from the optional repo
	$sudo yum install -y yum-utils
	$sudo yum-config-manager --enable rhelosp-rhel-7-server-opt

Install instack-undercloud:

     	$sudo yum install -y instack-undercloud

6. RHEL
Download the RHEL 7.1 cloud image or copy it over from a different location, and define the needed environment variables for RHEL 7.1 prior to running instack-virt-setup:

	$IMAGE=http://download.devel.redhat.com/brewroot/packages/rhel-guest-image/7.1/20150224.0/images/rhel-guest-image-7.1-20150224.0.x86_64.qcow2
	$curl -O $IMAGE
	$export DIB_LOCAL_IMAGE=`basename $IMAGE`
	$export DIB_YUM_REPO_CONF="/etc/yum.repos.d/rhos-release-7-director-rhel-7.1.repo /etc/yum.repos.d/rhos-release-7-rhel-7.1.repo"

7. $instack-virt-setup


8. Installing the Undercloud
_______________________________________
Log in to your machine (baremetal or VM) where you want to install the undercloud as a non-root user (such as the stack user):

$ ssh <non-root-user>@<rdo-manager-machine>
Note
If you don’t have a non-root user created yet, log in as root and create one with following commands:

$ sudo useradd stack
$sudo passwd stack  # specify a password

$ echo "stack ALL=(root) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/stack
$sudo chmod 0440 /etc/sudoers.d/stack

$su - stack



10. Enable needed repositories:

RHEL
Enable rhos-release:

$sudo rpm -ivh http://rhos-release.virt.bos.redhat.com/repos/rhos-release/rhos-release-latest.noarch.rpm


# To enable puddles:
$ sudo rhos-release 7-director


# We need openwsman-python from the optional repo
$sudo yum install -y yum-utils
$sudo yum-config-manager --enable rhelosp-rhel-7-server-opt



Install the RDO Manager CLI, which will pull in all other necessary packages as dependencies:

$sudo yum install -y python-rdomanager-oscplugin



$openstack undercloud install




11. Accessing the GUI
Part of the Undercloud installation is also Tuskar-UI which you can use to drive the deployment. It runs on the instack virtual machine on http://localhost/dashboard

Example of how to access Tuskar-UI:
Considering that Tuskar-UI runs in a instack VM and virt host is a remote host machine, to access the UI in the browser, follow these steps:

On host machine create ssh tunnel from instack vm to virt host:

$ ssh -g -N -L 8080:127.0.0.1:80 root@<undercloud_vm_ip>
On instack VM edit /etc/openstack-dashboard/local_settings and add virt host hostname to ALLOWED_HOSTS array

Restart Apache:

$systemctl restart httpd
Allow port 8080 on host machine:

$sudo iptables -A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT
Navigate to http://<virt_host_hostname>:8080/dashboard in the browser

Comment 7 Eran Kuris 2015-07-01 09:22:32 UTC
Created attachment 1044959 [details]
Error: Unable to deploy overcloud.

Comment 8 Eran Kuris 2015-07-01 09:24:00 UTC
After one more try to deploy overcloud via undercloud GUI I got new error : 
Error: Unable to deploy overcloud. Reason: Value must be valid JSON: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)

I tried it on puddle : RHEL-OSP director puddle 7.0 RC puddle 2015-06-29-1
attached screen shot

Comment 9 Eran Kuris 2015-07-01 12:00:03 UTC
I can share my screen with Dev to show my ENV . it  reproduce in my setup always .
Today  I success to reproduce it again

Comment 10 Ana Krivokapic 2015-07-01 12:50:16 UTC
I synced up with Eran and he was using a combination of CLI and GUI commands to do the deployment, which is something we don't support at the moment. He will retry a pure GUI deployment using the docs link I pasted in Comment#5 and report the result.

Comment 12 Eran Kuris 2015-07-05 13:18:19 UTC
Tried to deploy overcloud via GUI used the last puddle from 2-7-2015 
ran steps according to guide : https://repos.fedorapeople.org/repos/openstack-m/jenkins/instack-undercloud-docs/237666-3/html/basic_deployment/basic_deployment_gui.html

I didn't mix the deployment between CLI & GUI !!!
I got this error:
Error: Unable to deploy overcloud. Reason: Value must be valid JSON: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)



horizon.log : 
2015-07-05 13:09:24,632 32100 INFO openstack_auth.forms Login successful for user "admin".
2015-07-05 13:11:33,707 32100 INFO horizon.tables.actions Activated Node: "6735f44e-7306-4c53-8f67-28545c4b84fd"
2015-07-05 13:11:34,265 32100 INFO horizon.tables.actions Activated Node: "9b29f20a-9076-4b26-9418-ec0c3749403c"
2015-07-05 13:12:34,725 32101 WARNING horizon.exceptions Recoverable error: ERROR: Value must be valid JSON: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
2015-07-05 13:13:57,834 32100 WARNING horizon.exceptions Recoverable error: ERROR: Value must be valid JSON: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)

Comment 13 Ryan Brady 2015-07-10 12:57:36 UTC

*** This bug has been marked as a duplicate of bug 1234745 ***


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