undefined analytics_ip_hostname_dict error during ansible provisioning
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R4.0 |
Invalid
|
High
|
Vedamurthy Joshi | |||
Trunk |
Invalid
|
High
|
Vedamurthy Joshi |
Bug Description
R4.0 Build 6 Ubuntu 16.04.2 Container setup
TASK [node : Register analytics node with controller] *******
task path: /home/root/
fatal: [10.204.216.58]: FAILED! => {
"failed": true,
"msg": "'analytics_
}
PLAY [Reboot compute nodes] *******
TASK [setup] *******
Using module file /usr/lib/
<10.204.216.223> ESTABLISH SSH CONNECTION FOR USER: root
<10.204.216.223> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveA
<10.204.216.223> PUT /tmp/tmp2TG3PM TO /root/.
<10.204.216.223> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveA
<10.204.216.223> ESTABLISH SSH CONNECTION FOR USER: root
<10.204.216.223> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveA
<10.204.216.223> ESTABLISH SSH CONNECTION FOR USER: root
<10.204.216.223> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveA
ok: [10.204.216.223]
TASK [Reboot node] *******
task path: /home/root/
skipping: [10.204.216.223] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [Waiting for server to come back] *******
task path: /home/root/
skipping: [10.204.216.223] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
to retry, use: --limit @/home/
PLAY RECAP *******
10.204.216.221 : ok=19 changed=1 unreachable=0 failed=1
10.204.216.222 : ok=19 changed=1 unreachable=0 failed=1
10.204.216.223 : ok=58 changed=1 unreachable=0 failed=0
10.204.216.58 : ok=57 changed=1 unreachable=0 failed=1
10.204.216.59 : ok=19 changed=1 unreachable=0 failed=1
10.204.216.60 : ok=19 changed=1 unreachable=0 failed=1
10.204.217.51 : ok=51 changed=1 unreachable=0 failed=0
Full log is attached
all.yml:
[root@ansible-
docker_registry: 10.204.217.152:5000
docker_
docker_
ansible_user: root
ansible_become: true
contrail_version: 4.0.0.0-3016
cloud_orchestrator: kubernetes
vrouter_
webui_config: {http_listen_port: 10000}
contrail_
docker_
controller_config: {bgp_asn: 64510}
-------
[root@ansible-
[contrail-repo]
10.204.216.58
[contrail-
10.204.216.58
10.204.216.59
10.204.216.60
[contrail-
10.204.216.58
10.204.216.59
10.204.216.60
[contrail-
10.204.216.58
[contrail-compute]
10.204.216.221
10.204.216.222
10.204.216.223
[contrail-lb]
10.204.217.51
[root@ansible-
Changed in juniperopenstack: | |
status: | New → Incomplete |
milestone: | r4.0.0.0-fcs → none |
After looking at logs, looks like error is because there is not "contrail- analytics" container roles defined, but analyticsdb is defined:
"ansible_ facts": {
"analytics_ hostname_ list": [],
"analytics_ list": []
},
"ansible_ facts": {
"analyticsdb_ hostname_ list_tmp" : [
"nodec1"
"analyticsdb_ list_tmp" : [
"10. 204.216. 58"
],
]
},
Also looking at roles list above, you can see analytics db nodes but NO analytics nodes:
[root@ansible- runner playbooks]# cat inventory/ my-inventory/ hosts
[contrail-repo]
10.204.216.58
[contrail- controllers]
10.204.216.58
10.204.216.59
10.204.216.60
[contrail- analyticsdb]
10.204.216.58
10.204.216.59
10.204.216.60
[contrail- kubernetes]
10.204.216.58
[contrail-compute]
10.204.216.221
10.204.216.222
10.204.216.223
[contrail-lb]
10.204.217.51