[Rdo-list] TripleO quickstart problem by deploying the overcloud

John Trowbridge trown at redhat.com
Wed Mar 30 12:28:51 UTC 2016


I opened an issue for this[1], and will put up a patch later today.

Thanks for trying out tripleo-quickstart!

[1] https://github.com/redhat-openstack/tripleo-quickstart/issues/65

On 03/28/2016 04:12 PM, Arash Kaffamanesh wrote:
> Finally I got the TripleO installation running.
> After the virtual environment setup via:
> bash quickstart.sh $virthost
> 
> If I run "*openstack undercloud install" *directly, the undercloud
> installation completes, but the following steps leads to an incomplete
> setup (I could reproduce this several times on our own hardware and on
> Rackspace Ironic powered :-) OnMetal servers):
> 
> [stack at undercloud ~]$ . stackrc
> 
> [stack at undercloud ~]$ openstack overcloud image upload
> 
> [stack at undercloud ~]$ openstack baremetal import --json instackenv.json
> 
> [stack at undercloud ~]$ ironic node-list
> 
> +--------------------------------------+-----------+---------------+-------------+--------------------+-------------+
> 
> | UUID                                 | Name      | Instance UUID | Power
> State | Provisioning State | Maintenance |
> 
> +--------------------------------------+-----------+---------------+-------------+--------------------+-------------+
> 
> | 57db4c06-7bb9-40c8-8530-6e9d5efb83c5 | control-0 | None          | *None*
>       | available          | False       |
> 
> | 21af64b4-d3c3-4b63-ba97-aa14173a21be | compute-0 | None          | *None*
>       | available          | False       |
> 
> +--------------------------------------+-----------+---------------+-------------+--------------------+-------------+
> and as I mentioned earlier the "openstack baremetal configure boot" times
> out:
> 
> [stack at undercloud ~]$ openstack baremetal configure boot
> 
> Node 57db4c06-7bb9-40c8-8530-6e9d5efb83c5 power state is in transition.
> Waiting up to 120 seconds for it to complete.
> 
> *Timed out* waiting for node 57db4c06-7bb9-40c8-8530-6e9d5efb83c5 power
> state.
> 
> And I guess because the Power State is set to None!
> 
> But if I run the following scripts by hand the installation completes
> successfully (in most cases):
> 
> undercloud-install.sh
> 
> undercloud-post-install.sh
> 
> overcloud-deploy.sh
> 
> overcloud-deploy-post.sh
> 
> overcloud-validate.sh
> 
> Only once by my last tests it failed after running:
> 
> [stack at undercloud ~]$ bash overcloud-deploy.sh
> 
> 
> 2016-03-28 15:21:56 [Compute]: CREATE_COMPLETE state changed
> 
> Stack overcloud *CREATE_FAILED*
> 
> *Deployment failed:  Heat Stack create failed.*
> 
> And I had to delete the stack and re-deploy it again, which worked :-)
> 
> [stack at undercloud ~]$ heat stack-delete overcloud
> 
> [stack at undercloud ~]$ bash overcloud-deploy.sh
> 
> [stack at undercloud ~]$ heat stack-list
> 
> +--------------------------------------+------------+-----------------+---------------------+--------------+
> 
> | id                                   | stack_name | stack_status    |
> creation_time       | updated_time |
> 
> +--------------------------------------+------------+-----------------+---------------------+--------------+
> 
> | 8e588312-d839-4089-b123-3fa9b5e76c82 | overcloud  | *CREATE_COMPLETE* |
> 2016-03-28T16:44:59 | None         |
> 
> +--------------------------------------+------------+-----------------+---------------------+--------------+
> 
> Here are the steps which might lead to a successful TripleO quickstart
> setup with a seed and baremetal host (virthost-01).
> 
> (the seed / ansible host is a CentOS 7 machine (could be a VM running in
> VirtualBox on localhost on Mac or Windows for instance), the baremetal host
> needs 32 GB RAM, 2 nics and 150 GB Disk).
> 
> On the seed / ansible host run:
> 
> [root at seed ~]# yum -y update
> 
> [root at seed ~]# yum install git -y
> 
> [root at seed ~]# vim /etc/hosts
> 
> <ip-virthost-01> virthost-01
> 
> [root at seed ~] git clone
> https://github.com/redhat-openstack/tripleo-quickstart/
> 
> [root at seed ~] cd tripleo-quickstart/
> 
> [root at seed ~] sudo bash quickstart.sh --install-deps
> 
> [root at seed ~] reboot (not needed, but doesn't hurt :-))
> 
> [root at seed ~] ssh-keygen -t rsa
> 
> [root at seed ~] ssh-copy-id -i ~/.ssh/id_rsa.pub virthost-01
> 
> [root at seed ~] ssh <ip-virthost-01>
> 
> exit
> 
> Deploy your virtual environment by running:
> 
> [root at seed ~] *bash quickstart.sh virthost-01 *
> 
> ##################################
> 
> Virtual Environment Setup Complete
> 
> ##################################
> 
> Access the undercloud by:
> 
>     *ssh -F /root/.quickstart/ssh.config.ansible undercloud*
> 
> 
> *USE THIS: There are scripts in the home directory to continue the deploy:*
> 
>     undercloud-install.sh will run the undercloud install
> 
>     undercloud-post-install.sh will perform all pre-deploy steps
> 
>     overcloud-deploy.sh will deploy the overcloud
> 
>     overcloud-deploy-post.sh will do any post-deploy configuration
> 
>     overcloud-validate.sh will run post-deploy validation
> 
> Alternatively, you can ignore these scripts and follow the upstream docs:
> 
> First: *(DON’t use this!!!!!!!!!!!!!!!!!!!!!!!!!!!!!)*
> 
>     *openstack undercloud install*
> 
>     source stackrc
> 
> Verify your Stack:
> 
> [stack at undercloud ~]$ heat stack-list
> 
> +--------------------------------------+------------+-----------------+---------------------+--------------+
> 
> | id                                   | stack_name | stack_status    |
> creation_time       | updated_time |
> 
> +--------------------------------------+------------+-----------------+---------------------+--------------+
> 
> | 8e588312-d839-4089-b123-3fa9b5e76c82 | overcloud  | *CREATE_COMPLETE* |
> 2016-03-28T16:44:59 | None         |
> 
> +--------------------------------------+------------+-----------------+---------------------+--------------+
> 
> 
> By the way, I'd love to see and help to have an complete installation guide
> for TripleO powered by RDO on the RDO site (the instack virt setup without
> quickstart on http://docs.openstack.org/ doesn't work and this might be
> changed through the RDO community power :-)).
> 
> Thx,
> -Arash
> 
> 
> On Sat, Mar 26, 2016 at 3:52 AM, Adam Young <ayoung at redhat.com> wrote:
> 
>> On 03/25/2016 02:52 PM, Arash Kaffamanesh wrote:
>>
>> Hi,
>>
>> I'm trying to deploy OpenStack via TripleO quickstart in AIO / virt mode
>> and I'm getting by the last step deploying the overcloud the following
>> "Heat Stack create failed" message (There are not enough hosts available,
>> due to Configuration has 4 errors, fix them before proceeding ????).
>>
>> After running openstack overcloud deploy I'm getting *Configuration has 4
>> errors, fix them before proceeding*: (and I guess the problem lies
>> somehow here with the "incorrectly configured driver_info"):
>>
>> [stack at undercloud ~]$ openstack overcloud deploy --templates
>>
>> Node uuid=a62116c4-1daf-45e9-aa2d-ef8a4effdc20 has an incorrectly
>> configured driver_info/deploy_ramdisk. Expected
>> "482254d3-4b0c-4c3f-b2ba-bdf34badbbd3" but got "None".
>>
>> Node uuid=a62116c4-1daf-45e9-aa2d-ef8a4effdc20 has an incorrectly
>> configured driver_info/deploy_kernel. Expected
>> "482254d3-4b0c-4c3f-b2ba-bdf34badbbd3" but got "None".
>>
>> Node uuid=cfc60017-36e8-4808-842d-8c65ffb5e4b1 has an incorrectly
>> configured driver_info/deploy_ramdisk. Expected
>> "482254d3-4b0c-4c3f-b2ba-bdf34badbbd3" but got "None".
>>
>> Node uuid=cfc60017-36e8-4808-842d-8c65ffb5e4b1 has an incorrectly
>> configured driver_info/deploy_kernel. Expected
>> "482254d3-4b0c-4c3f-b2ba-bdf34badbbd3" but got "None".
>>
>> *Configuration has 4 errors, fix them before proceeding.* Ignoring these
>> errors is likely to lead to a failed deploy.
>>
>> Deploying templates in the directory
>> /usr/share/openstack-tripleo-heat-templates
>>
>> 2016-03-25 17:45:13 [overcloud]: CREATE_IN_PROGRESS  Stack CREATE started
>>
>> 2016-03-25 17:45:13 [MysqlRootPassword]: CREATE_IN_PROGRESS  state changed
>>
>> 2016-03-25 17:45:14 [Networks]: CREATE_IN_PROGRESS  state changed
>> .......
>>
>> 2016-03-25 17:47:15 [overcloud]: CREATE_FAILED  Resource CREATE failed:
>> resources.Compute: ResourceInError: resources[0].resources.NovaCompute:
>> Went to status ERROR due to "Message: No valid host was found. *There are
>> not enough hosts available*., Code: 500"
>>
>> *Stack overcloud CREATE_FAILED*
>>
>> *Heat Stack create failed.*
>>
>> [stack at undercloud ~]$ heat stack-list
>>
>>
>> +--------------------------------------+------------+---------------+---------------------+--------------+
>>
>> | id                                   | stack_name | stack_status  |
>> creation_time       | updated_time |
>>
>>
>> +--------------------------------------+------------+---------------+---------------------+--------------+
>>
>> | 27fd6b76-7413-4e9b-9b5e-c7afb941ee0e | overcloud  | *CREATE_FAILED* |
>> 2016-03-25T17:45:12 | None         |
>>
>>
>> +--------------------------------------+------------+---------------+---------------------+--------------+
>>
>>
>> By the way I tried to get the stable liberty and the latest mitaka working
>> with TripleO, no either worked.
>> And tried also Lars's tutorial here:
>>
>> http://blog.oddbit.com/2016/02/19/deploy-an-ha-openstack-development-envir/
>>
>> had not so much luck, but could learn a lot and would prefer to learn more
>> by running the ansible playbooks by hand as described by Lars.
>>
>> Any help / advice is much appreciated.
>>
>> Thx,
>> -Arash
>>
>>
>> Super valuable guide.
>>
>>
>> http://hardysteven.blogspot.com/2015/04/debugging-tripleo-heat-templates.html
>>
>> I had similar problems.  I had to increase the size of the controller
>> nodes.
>>
>> Since running tripleo Quickstart, I've not had any problems, but that is
>> not true baremetal.
>>
>>
>>
>>
>>
>> _______________________________________________
>> Rdo-list mailing listRdo-list at redhat.comhttps://www.redhat.com/mailman/listinfo/rdo-list
>>
>> To unsubscribe: rdo-list-unsubscribe at redhat.com
>>
>>
>>
> 
> 
> 
> _______________________________________________
> Rdo-list mailing list
> Rdo-list at redhat.com
> https://www.redhat.com/mailman/listinfo/rdo-list
> 
> To unsubscribe: rdo-list-unsubscribe at redhat.com
> 




More information about the dev mailing list