deploying single-controller-ha doesn't generate primary-controller in hiera
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Triaged
|
Medium
|
Fuel Sustaining | ||
Mitaka |
Won't Fix
|
Medium
|
Fuel Python (Deprecated) | ||
Newton |
Triaged
|
Medium
|
Fuel Sustaining |
Bug Description
{"build_id": "2015-02-
when deploying with a single controller compute roles fail attempting to resolve the primary-controller
https:/
https:/
when diagnosing, the nodes filter is looking at the nodes hash
checking the output from hiera
root@node-2:~# hiera nodes
[{"swift_
"storage_
"internal_
"fqdn"
"name"=>"node-2",
"role"
"storage_
"uid"=>"2",
"internal_
"user_
{"swift_
"public_
"storage_
"public_
"internal_
"fqdn"
"name"=>"node-3",
"role"
"storage_
"uid"=>"3",
"internal_
"user_
there is only one controller, but no primary-controller, so filters to find primary-controller fails
adding another controller, and re-running hiera task shows there is now a controller, and primary controller
root@node-2:~# hiera nodes
[{"role"
"storage_
"user_
"public_
"uid"=>"1",
"internal_
"public_
"internal_
"name"=>"node-1",
"fqdn"
"storage_
"swift_
{"role"
"storage_
"user_
"uid"=>"2",
"internal_
"internal_
"name"=>"node-2",
"fqdn"
"storage_
"swift_
{"role"
"storage_
"user_
"public_
"uid"=>"3",
"internal_
"public_
"internal_
"name"=>"node-3",
"fqdn"
"storage_
"swift_
looking at /etc/astute.yaml we see the nodes array doesn't have any node set to primary controller as it did before. so some magic must be happening with hiera
steps to quickly reproduce
fuel env --create --name test --rel 2 --net neutron --nst vlan --mode ha
fuel --env 1 node set --node 1 --role controller
fuel --env 1 node set --node 2 --role compute
fuel --env 1 node --node 2 --provsion
fuel --env 1 node --node 2 --tasks hiera
ssh node-2 -C 'hiera nodes'
fuel --env 1 node --set --node 3 --role controller
fuel --env 1 node --node 2 --tasks hiera
ssh node-2 -C 'hiera nodes'
Changed in fuel: | |
assignee: | nobody → Aleksandr Didenko (adidenko) |
tags: | added: module-serializer |
tags: |
added: module-serialization removed: module-serializer |
Changed in fuel: | |
milestone: | 6.1 → 7.0 |
Changed in fuel: | |
milestone: | 7.0 → 6.1 |
Changed in fuel: | |
milestone: | 6.1 → 7.0 |
tags: | added: release-notes |
Changed in fuel: | |
milestone: | 7.0 → 8.0 |
status: | Won't Fix → Triaged |
no longer affects: | fuel/8.0.x |
tags: | added: area-python |
Changed in fuel: | |
milestone: | 8.0 → 9.0 |
tags: |
added: release-notes-done removed: release-notes |
> adding another controller, and re-running hiera task shows there is now a controller, and primary controller
Andrew, I don't see any 'primary- controller' role in the node list you provided. I see only 2 'controller' and 1 'compute' roles.
I've tried to reproduce this issue on the latest ISO #105
"api": "1.0", c603853b10d4a55 149363323cc" , required" : true, 07_22-55- 01", groups" : [ d15638ea2e6dffa a286bc06da1" , fb4195f1bd9c44c 038721ae3d4" , 524906109f18092 363505ee222" , fuelclient_ sha": "521c2491f7f04f 31d8c85db68499c d193d4904e3" ,
"astute_sha": "7e6e6f9188bd69
"auth_
"build_id": "2015-02-
"build_number": "105",
"feature_
"mirantis"
],
"fuellib_sha": "769af7fe30225c
"fuelmain_sha": "",
"nailgun_sha": "6d1769b21819f8
"ostf_sha": "6c046b69d29021
"production": "docker",
"python-
"release": "6.1",
Commands: 2/compute_ 3.yaml: role: compute 2/primary- controller_ 1.yaml: role: primary-controller
# fuel env --create --name test --rel 2 --net neutron --nst vlan --mode ha
# fuel --env 2 node set --node 1 --role controller
# fuel --env 2 node set --node 3 --role compute
# fuel deployment --default --env 2
# grep ^role deployment_2/*yaml
deployment_
deployment_
Roles look good. Let's check hiera.
# fuel node --provision --env 2 --node-id 3 node_name" =>"Untitled (73:94)", =>"node- 1.test. domain. local", zone"=> "1", netmask" =>"255. 255.255. 0", address" =>"192. 168.1.1" , address" =>"172. 16.0.3" , netmask" =>"255. 255.255. 0", netmask" =>"255. 255.255. 0", =>"primary- controller" , address" =>"192. 168.0.2" }, node_name" =>"Untitled (3a:81)", =>"node- 3.test. domain. local", zone"=> "3", netmask" =>"255. 255.255. 0", address" =>"192. 168.1.2" , netmask" =>"255. 255.255. 0", =>"compute" , address" =>"192. 168.0.3" }]
# fuel --env 2 node --node 3 --tasks hiera
# ssh node-3 -C 'hiera nodes'
Warning: Permanently added 'node-3' (RSA) to the list of known hosts.
[{"user_
"fqdn"
"swift_
"uid"=>"1",
"storage_
"name"=>"node-1",
"storage_
"public_
"internal_
"public_
"role"
"internal_
{"user_
"fqdn"
"swift_
"uid"=>"3",
"storage_
"name"=>"node-3",
"storage_
"internal_
"role"
"internal_
# ssh node-3 -C 'hiera nodes | grep role' =>"primary- controller" , =>"compute" ,
Warning: Permanently added 'node-3' (RSA) to the list of known hosts.
"role"
"role"
So everything looks good.