Ask Your Question
0

Packstack: Does EXCLUDE_SERVERS realy work?

asked 2016-08-14 17:43:22 -0500

Kevin gravatar image

Hi!

I set EXCLUDE_SERVERS to servers I do not want to touch. I generated the puppet files (packstack --answer-file=packstack-answers.txt --dry-run -d) to check them before rollout (this cloud install is in production).

[root@ceph1833 manifests]# ls -l
total 260
-rw-------. 1 root root 6782 Aug 15 00:24 172.17.1.11_neutron.pp
-rw-------. 1 root root 6782 Aug 15 00:24 172.17.1.12_neutron.pp
-rw-------. 1 root root 3688 Aug 15 00:24 172.17.2.11_neutron.pp
-rw-------. 1 root root 9100 Aug 15 00:24 172.17.2.11_nova.pp
-rw-------. 1 root root 3688 Aug 15 00:24 172.17.2.12_neutron.pp
-rw-------. 1 root root 9100 Aug 15 00:24 172.17.2.12_nova.pp
-rw-------. 1 root root 3688 Aug 15 00:24 172.17.2.13_neutron.pp
-rw-------. 1 root root 9100 Aug 15 00:24 172.17.2.13_nova.pp
-rw-------. 1 root root 3688 Aug 15 00:24 172.17.2.14_neutron.pp
-rw-------. 1 root root 9100 Aug 15 00:24 172.17.2.14_nova.pp
-rw-------. 1 root root 2341 Aug 15 00:24 172.17.2.15_chrony.pp
-rw-------. 1 root root 1343 Aug 15 00:24 172.17.2.15_nagios_nrpe.pp
-rw-------. 1 root root 3688 Aug 15 00:24 172.17.2.15_neutron.pp
-rw-------. 1 root root 9100 Aug 15 00:24 172.17.2.15_nova.pp
-rw-------. 1 root root  836 Aug 15 00:24 172.17.2.15_prescript.pp
-rw-------. 1 root root 2341 Aug 15 00:24 172.17.2.16_chrony.pp
-rw-------. 1 root root 1343 Aug 15 00:24 172.17.2.16_nagios_nrpe.pp
-rw-------. 1 root root 3688 Aug 15 00:24 172.17.2.16_neutron.pp
-rw-------. 1 root root 9100 Aug 15 00:24 172.17.2.16_nova.pp
-rw-------. 1 root root  836 Aug 15 00:24 172.17.2.16_prescript.pp
-rw-------. 1 root root 2341 Aug 15 00:24 172.17.2.18_chrony.pp
-rw-------. 1 root root 1343 Aug 15 00:24 172.17.2.18_nagios_nrpe.pp
-rw-------. 1 root root 3688 Aug 15 00:24 172.17.2.18_neutron.pp
-rw-------. 1 root root 9100 Aug 15 00:24 172.17.2.18_nova.pp
-rw-------. 1 root root  836 Aug 15 00:24 172.17.2.18_prescript.pp

The directory contains files for _all_nodes, even if they are excluded.

172.17.2.11 -> excluded
172.17.2.15 -> to be installed

Will they be executed when I drop "--dry-run" or are they generated but skipped?

Can someone explain this behaviour and where to find the code, showing it is not going to be executed?

Thank you.

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
1

answered 2016-08-16 02:11:16 -0500

jpena-c gravatar image

Yes, this is the expected Packstack behaviour. Packstack generates the puppet manifests for all servers, then it only executes the ones required. If any server is excluded, its manifests will not be run.

edit flag offensive delete link more
0

answered 2016-08-15 00:06:39 -0500

dbaxps gravatar image
edit flag offensive delete link more
0

answered 2016-08-15 11:52:53 -0500

Kevin gravatar image

I justed rolled out the new members and it was working very well. EXCLUDE_SEVERS is reliable.

edit flag offensive delete link more
0

answered 2016-08-15 15:54:20 -0500

tictoc gravatar image

Yes .. works very well.

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

Stats

Asked: 2016-08-14 17:43:22 -0500

Seen: 151 times

Last updated: Aug 16 '16