hosts-config.sh reports Argument list too long
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Luke Short |
Bug Description
Description
===========
When deploying a large Overcloud (over 400 nodes in my case), the deployment fails during step0 due to this error: "OSError: [Errno 7] Argument list too long"
It happens during this task:
```
$ less deploy_
- name: HostsConfig
script: hosts-config.sh
environment:
```
Steps to reproduce
==================
1. Deploy a large Overcloud
Expected result
===============
The script should complete successfully.
Actual result
=============
The script fails causing the entire deployment to fail.
Environment
===========
Train release
Pre-deployed servers
Logs & Configs
==============
http://
Changed in tripleo: | |
importance: | Undecided → High |
The underlying problem is that the HOSTS_ENTRY environment variable is passed to the remote host and it is huge because it contains a list of every Overcloud host. It follows in the format of:
<IP> <FQDN> <ANSIBLE_ INVENTORY_ HOSTNAME>
Here is a truncated example, as reported by the debug output of Ansible: http:// paste.openstack .org/show/ 787479/