Newton AIO fails - pip can't find 'HOME'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I am building an AIO instance inside an OpenStack environment, following the instructions from here:
http://
I am using stable/newton branch and have tried master and the latest tag.
I can build a liberty and mitaka AIO without an issue, however newton fails always with the following:
--snip--
/opt/openstack-
+ '[' -z '' ']'
+ ansible-playbook bootstrap-aio.yml -i test-inventory.ini
PLAY [Bootstrap the All-In-One (AIO)] *******
TASK [setup] *******
ok: [localhost]
TASK [sshd : Set OS dependent variables] *******
ok: [localhost] => (item=/
TASK [sshd : OS is supported] *******
ok: [localhost]
TASK [sshd : Installed] *******
ok: [localhost] => (item=[
TASK [sshd : Run directory] *******
ok: [localhost]
TASK [sshd : Configuration] *******
changed: [localhost]
TASK [sshd : Service enabled and running] *******
ok: [localhost]
TASK [sshd : Register that this role has run] *******
ok: [localhost]
TASK [pip_install : Gather variables for each operating system] ****************
ok: [localhost] => (item=/
TASK [pip_install : Create pip config directory] *******
[DEPRECATION WARNING]: Skipping task due to undefined Error, in the future this
will be a fatal error.: 'dict object' has no attribute 'HOME'.
This feature
will be removed in a future release. Deprecation warnings can be disabled by
setting deprecation_
fatal: [localhost]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'item' is undefined\n\nThe error appears to have been in '/etc/ansible/
NO MORE HOSTS LEFT *******
RUNNING HANDLER [sshd : reload_sshd] *******
PLAY RECAP *******
localhost : ok=9 changed=1 unreachable=0 failed=1
--snip--
tags: | added: in-stable-newton |
Changed in openstack-ansible: | |
status: | New → Won't Fix |
Looked like this issue is related to that tasks from here: roles/pip_ install/ tasks/configure .yml
/etc/ansible/
The var {{ansible_ env.HOME} } appears to be missing.
I added the following to the top of configure.yml
debug:
msg: "{{ansible_env}}"
Here is the output: ******* ******* ******* ******* ******* ******* *** /git.int. pason.com/ scm/srt/ openstack_ aio_testing. git",
"ANSIBLE_ ACTION_ PLUGINS" : "/etc/ansible/ roles/plugins/ action" ,
"ANSIBLE_ CACHE_PLUGIN" : "jsonfile",
"ANSIBLE_ CACHE_PLUGIN_ CONNECTION" : "/etc/openstack _deploy/ ansible_ facts",
"ANSIBLE_ CACHE_PLUGIN_ TIMEOUT" : "86400",
"ANSIBLE_ CALLBACK_ PLUGINS" : "/etc/ansible/ roles/plugins/ callback" ,
"ANSIBLE_ CONNECTION_ PLUGINS" : "/etc/ansible/ roles/plugins/ connection" ,
"ANSIBLE_ FILTER_ PLUGINS" : "/etc/ansible/ roles/plugins/ filter" ,
"ANSIBLE_ FORCE_COLOR" : "true",
"ANSIBLE_ FORCE_HANDLERS" : "True",
"ANSIBLE_ GATHERING" : "smart",
"ANSIBLE_ GATHER_ SUBSET" : "network, hardware, virtual" ,
"ANSIBLE_ HOST_KEY_ CHECKING" : "False",
"ANSIBLE_ INVENTORY" : "/opt/openstack -ansible/ playbooks/ inventory" ,
"ANSIBLE_ LIBRARY" : "/etc/ansible/ roles/plugins/ library" ,
"ANSIBLE_ LOG_PATH" : "/openstack/ log/ansible- logging/ ansible. log",
"ANSIBLE_ LOOKUP_ PLUGINS" : "/etc/ansible/ roles/plugins/ lookup" ,
"ANSIBLE_ RETRY_FILES_ ENABLED" : "False",
"ANSIBLE_ ROLES_PATH" : "/etc/ansible/ roles:roles" ,
"ANSIBLE_ SSH_PIPELINING" : "True",
"ANSIBLE_ STRATEGY_ PLUGINS" : "/etc/ansible/ roles/plugins/ strategy" ,
"ANSIBLE_ TIMEOUT" : "5",
"ANSIBLE_ TRANSPORT" : "ssh",
"BOOTSTRAP_ OPTS": "",
"DEPLOY_ AIO": "true",
"LC_MESSAGES" : "en_US.UTF-8", sbin:/usr/ local/bin: /usr/sbin: /usr/bin: /sbin:/ bin:/usr/ local/sbin: /usr/local/ bin:/usr/ sbin:/usr/ bin:/sbin: /bin:/usr/ local/sbin: /usr/local/ bin:/usr/ bin:/usr/ sbin:/sbin: /bin",
"PREVLEVEL" : "N", -ansible/ tests",
"PYTHONUNBUFFE RED": "1", /github. com/openstack/ openstack- ansible",
"UPSTART_ EVENTS" : "stopped stopped",
"UPSTART_ INSTANCE" : "",
"UPSTART_ JOB": "cloud-final", runtime/ bin/ansible- playbook"
--snip--
TASK [pip_install : Debug1] *******
ok: [localhost] => {
"msg": {
"AIO_REPO": "https:/
"BRANCH": "stable/newton",
"INSTANCE": "",
"JOB": "cloud-config",
"LANG": "en_US.UTF-8",
"LC_ALL": "en_US.UTF-8",
"PATH": "/usr/local/
"PWD": "/opt/openstack
"REPO": "https:/
"RESULT": "ok",
"RUNLEVEL": "2",
"SHLVL": "2",
"TERM": "linux",
"_": "/opt/ansible-
}
}
--snip--