"openstack overcloud deploy" fail with Error "The environment is not a valid YAML mapping data type." [closed]

asked 2017-06-09 01:11:21 -0500

Soichiro75 gravatar image

Hello,

I'm building Openstack Newton Environment by using TripleO on EXSi.

I successed Install-UnderCloud, Introspect-OverCloudNodes.

I created Heat-Templates, and deploying overcloud.

However "openstack overcloud deploy --templates -e (Omitted)" Command fail with Error "The environment is not a valid YAML mapping data type."

Please help me!

Thank you for your help.

Best regards,

Soichiro75

■ Version:

UnderCloudMachine OS: CentOS7.3

OpenStack Installer: TripleO(Director)

OpenStack Version: Newton

Environment: UnderCloud and OverCloud machines are VM on ESXi

■ Log:

(undercloud) [stack@director ~]$ ironic node-list
+--------------------------------------+--------------+---------------+-------------+--------------------+-------------+
| UUID                                 | Name         | Instance UUID | Power State | Provisioning State | Maintenance |
+--------------------------------------+--------------+---------------+-------------+--------------------+-------------+
| b200275a-891d-41f5-915d-19e1a9e91f0f | Controller00 | None          | power off   | available          | False       |
| f82fbe38-9492-4072-88e1-e7430a01d23f | Compute00    | None          | power off   | available          | False       |
| 4718100e-5007-4878-9384-813c31ac9259 | Compute01    | None          | power off   | available          | False       |
+--------------------------------------+--------------+---------------+-------------+--------------------+-------------+

(undercloud) [stack@director ~]$ openstack overcloud profiles list
+--------------------------------------+--------------+-----------------+-----------------+-------------------+
| Node UUID                            | Node Name    | Provision State | Current Profile | Possible Profiles |
+--------------------------------------+--------------+-----------------+-----------------+-------------------+
| b200275a-891d-41f5-915d-19e1a9e91f0f | Controller00 | available       | control         |                   |
| f82fbe38-9492-4072-88e1-e7430a01d23f | Compute00    | available       | compute         |                   |
| 4718100e-5007-4878-9384-813c31ac9259 | Compute01    | available       | compute         |                   |
+--------------------------------------+--------------+-----------------+-----------------+-------------------+

(undercloud) [stack@director ~]$ ironic node-show Controller00
+------------------------+--------------------------------------------------------------------------+
| Property               | Value                                                                    |
+------------------------+--------------------------------------------------------------------------+
| boot_interface         |                                                                          |
| chassis_uuid           | None                                                                     |
| clean_step             | {}                                                                       |
| console_enabled        | False                                                                    |
| console_interface      |                                                                          |
| created_at             | 2017-06-05T05:11:34+00:00                                                |
| deploy_interface       |                                                                          |
| driver                 | pxe_ssh                                                                  |
| driver_info            | {u'ssh_username': u'root', u'deploy_kernel': u'237ec566-9300-4e83-bbdd-  |
|                        | 27ebf55db0ad', u'libvirt_uri': u'esx://root@192.168.111.10/',            |
|                        | u'deploy_ramdisk': u'f99c42cc-2ee0-4891-8f5e-eba16395d423',              |
|                        | u'ssh_key_contents': u'******', u'ssh_virt_type': u'vmware',             |
|                        | u'ssh_address': u'192.168.111.10'}                                       |
| driver_internal_info   | {u'is_whole_disk_image': False}                                          |
| extra                  | {u'hardware_swift_object': u'extra_hardware-b200275a-891d-41f5-915d-     |
|                        | 19e1a9e91f0f'}                                                           |
| inspect_interface      |                                                                          |
| inspection_finished_at | None                                                                     |
| inspection_started_at  | None                                                                     |
| instance_info          | {}                                                                       |
| instance_uuid          | None                                                                     |
| last_error             | None                                                                     |
| maintenance            | False                                                                    |
| maintenance_reason     | None                                                                     |
| management_interface   |                                                                          |
| name                   | Controller00                                                             |
| network_interface      | flat                                                                     |
| power_interface        |                                                                          |
| power_state            | power off                                                                |
| properties             | {u'memory_mb': u'8192', u'cpu_arch': u'x86_64', u'local_gb': u'49',      |
|                        | u'cpus': u'4', u'capabilities': u'profile:control,cpu_aes:true,cpu_hugep |
|                        | ages:true,boot_option:local,cpu_vt:true,boot_mode:bios'}                 |
| provision_state        | available                                                                |
| provision_updated_at   | 2017-06-09T04:04:47+00:00                                                |
| raid_config            | {}                                                                       |
| raid_interface         |                                                                          |
| reservation            | None                                                                     |
| resource_class         | None                                                                     |
| target_power_state     | None                                                                     |
| target_provision_state | None                                                                     |
| target_raid_config     | {}                                                                       |
| updated_at             | 2017-06-09T04:04:48+00:00                                                |
| uuid                   | b200275a-891d-41f5-915d-19e1a9e91f0f                                     |
| vendor_interface       |                                                                          |
+------------------------+--------------------------------------------------------------------------+

(undercloud) [stack@director ~]$  ls -l ~/templates/
total 16
-rw-r--r--. 1 stack stack 3146 Jun  9 12:21 network-environment.yaml
drwxrwxr-x. 2 stack stack   77 Jun  9 14:17 nic-configs
-rw-r--r--. 1 stack stack 9952 Jun  9 11:29 roles_data.yaml

(undercloud) [stack@director ~]$ ls -l ~/templates/nic-configs/
total 24
-rw-r--r--. 1 stack stack 6079 Jun  9 12:11 compute.yaml
-rw-r--r--. 1 stack stack 6695 Jun  9 12:11 controller.yaml
-rwxr-xr-x. 1 stack stack 4601 Jun  8 18:03 run-os-net-config.sh

(undercloud) [stack@director ~]$ cat ~/templates/roles_data.yaml
# Specifies which roles (groups of nodes) will be deployed
# Note this is used as an input to the various *.j2.yaml
# jinja2 templates, so that they are converted into *.yaml
# during the plan creation (via a mistral action/workflow).
#
# The format is a list, with the following format:
#
# * name: (string) mandatory, name of the role, must be unique
#
# CountDefault: (number) optional, default number of nodes, defaults to 0
# sets the default for the {{role.name}}Count parameter in overcloud.yaml
#
# HostnameFormatDefault: (string) optional default format string for hostname
# defaults to '%stackname%-{{role.name.lower()}}-%index%'
# sets the default for {{role.name}}HostnameFormat parameter in overcloud.yaml
#
# disable_constraints: (boolean) optional, whether to disable Nova and Glance
# constraints ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Soichiro75
close date 2017-06-22 00:33:03.941823

Comments

2

According to https://docs.openstack.org/developer/..., roles_data.yaml is not an environment, and needs the -r option.

Bernd Bausch gravatar imageBernd Bausch ( 2017-06-09 07:37:40 -0500 )edit

That's right. I was stupid. Thank you Bernd!

Soichiro75 gravatar imageSoichiro75 ( 2017-06-22 00:32:29 -0500 )edit