Ask Your Question
0

TripleO Rebuild Controller

asked 2017-01-10 03:06:21 -0500

nuriel77 gravatar image

Hi,

Having a 3-controllers HA setup, say one of the controller's harddrive gets wiped, I understand I can use ironic to rebuild the node? Is that the right procedure?

Although, when I do that (rebuild node with Ironic) I get a non-valid /etc/hosts file created on the recovered node: (Note the \n characters)

# HEAT_HOSTS_START - Do not edit manually within this section!
172.16.2.7      overcloud-controller-0.localdomain      overcloud-controller-0
10.0.0.4        overcloud-controller-0.external.localdomain     overcloud-controller-0.external
172.16.2.7      overcloud-controller-0.internalapi.localdomain  overcloud-controller-0.internalapi
172.16.1.7      overcloud-controller-0.storage.localdomain      overcloud-controller-0.storage
172.16.3.4      overcloud-controller-0.storagemgmt.localdomain  overcloud-controller-0.storagemgmt
172.16.0.7      overcloud-controller-0.tenant.localdomain       overcloud-controller-0.tenant
192.0.2.10      overcloud-controller-0.management.localdomain   overcloud-controller-0.management
192.0.2.10      overcloud-controller-0.ctlplane.localdomain     overcloud-controller-0.ctlplane
\n172.16.2.5    overcloud-controller-1.localdomain      overcloud-controller-1
10.0.0.6        overcloud-controller-1.external.localdomain     overcloud-controller-1.external
172.16.2.5      overcloud-controller-1.internalapi.localdomain  overcloud-controller-1.internalapi
172.16.1.13     overcloud-controller-1.storage.localdomain      overcloud-controller-1.storage
172.16.3.9      overcloud-controller-1.storagemgmt.localdomain  overcloud-controller-1.storagemgmt
172.16.0.14     overcloud-controller-1.tenant.localdomain       overcloud-controller-1.tenant
192.0.2.6       overcloud-controller-1.management.localdomain   overcloud-controller-1.management
192.0.2.6       overcloud-controller-1.ctlplane.localdomain     overcloud-controller-1.ctlplane
\n172.16.2.12   overcloud-controller-2.localdomain      overcloud-controller-2
10.0.0.14       overcloud-controller-2.external.localdomain     overcloud-controller-2.external
172.16.2.12     overcloud-controller-2.internalapi.localdomain  overcloud-controller-2.internalapi
172.16.1.20     overcloud-controller-2.storage.localdomain      overcloud-controller-2.storage
172.16.3.12     overcloud-controller-2.storagemgmt.localdomain  overcloud-controller-2.storagemgmt
172.16.0.19     overcloud-controller-2.tenant.localdomain       overcloud-controller-2.tenant
192.0.2.8       overcloud-controller-2.management.localdomain   overcloud-controller-2.management
192.0.2.8       overcloud-controller-2.ctlplane.localdomain     overcloud-controller-2.ctlplane

In addition, after fixing this I notice I do not have a /root/.my.cnf and that causes problems with galera. I copy it manually from one of the other controllers, but pcs status reports:

* galera_promote_0 on overcloud-controller-0 'unknown error' (1): call=57, status=complete, exitreason='Failed initial monitor action',

Any help on this is most welcome.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-03-23 12:00:25 -0500

nuriel77 gravatar image

I traced the extra \n character to be coming from the TripleO template:

https://github.com/openstack/tripleo-heat-templates/blob/stable/newton/overcloud.j2.yaml#L333 (https://github.com/openstack/tripleo-...)

When I replace '\n' with "\n" there are no extra unwanted \n characters appearing in /etc/hosts. Anyway, this is no longer an issue in Ocata.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-01-10 03:06:21 -0500

Seen: 217 times

Last updated: Mar 23 '17