run packstack multiple time.

asked 2014-01-07 18:56:57 -0500

switch9i gravatar image

updated 2014-01-08 18:34:50 -0500


This may be a basic thing, But May I ask a question in this forum?

I have installed all component of grizzly except swift by following packstack command.

"packstack --gen-answer-file=ANSWER_FILE"
"packstack --answer-file=ANSWER_FILE"

Additionally I would like to add swift to modify the answer file. because the parametor of swift is NO in default.

# diff packstack-answer-OLD.txt packstack-answer-NEW.txt 

In case of this, if run packstack again,

"packstack --gen-answer-file=packstack-answer-NEW.txt"

Does it change something of existing environment (Keystone,Nova,Quantum...etc)? Is it just only additional installation of swift without affecting other existing components?

Basically if run packstack multiple time, Does the only modified portion of answer file apply at every time?

thank you.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2014-01-09 10:55:15 -0500

radez gravatar image

Under the covers packstack is running puppet. So if you're familiar with puppet and when you chance something in puppet it works like that.

If you're not familiar I'll try to explain. Every time packstack runs it will try to apply each of the values for the configurations that you give it. So packstack will cycle through each host and check each configuration. If it's all ready there it will just verify it's correct. If it's not correct or missing it will be updated to match what configuration is expected.

So in the case of the one update you have changed (install swift to y) Packstack has run and not installed swift when you run it again with the updated value packstack will run again and go through and check that keystone, horizon, glance, cinder, etc, etc all have the values that it's already set for their configuration files. It will then come to swift, see that it's not installed or configured. Install and configure it, then continue to validate that anything it hasn't checked yet is correct.

In short packstack using the --answer-file option is an idempotent operation. running it over and over with the same values in the answer file will net result no change.

Hope this helps

edit flag offensive delete link more


Thank you for the reply. I could install swift additionally.I understood the packstack specs.

switch9i gravatar imageswitch9i ( 2014-01-14 07:47:32 -0500 )edit

answered 2014-01-08 01:59:30 -0500

T u l gravatar image

(the message is too long to put it in comments)

With my small experience on Havana, I did run packstack multiple times with slightly modified answer file. Normally it will try to install the openstack components specified in the answer file, but the database stays untouched, virtual machines are still there and main credentials are the same as before (because they are the same in the answer file), It might also update some software which would require restarting some of the openstack services.

I assume you meant

packstack --answer-file=packstack-answer-NEW.txt

but not --gen-answer-file

Disclaimer: I may be wrong and it is better to wait for some professional to answer.

edit flag offensive delete link more


Thank you.

switch9i gravatar imageswitch9i ( 2014-01-14 07:37:39 -0500 )edit

answered 2014-01-08 03:25:36 -0500

paramite gravatar image

Since Packstack is using Puppet manifests to modify your hosts' configuration it will change it every time you run packstack. So in case you ran packstack and then modified something manually afterwards, then those manual changes will be lost unfortunately. In case you are going to install Swift on separate host, you can use EXCLUDE_SERVERS variable, so packstack will skip all hosts stated in it. Hope this help you.

edit flag offensive delete link more


Thank you.

switch9i gravatar imageswitch9i ( 2014-01-14 07:37:33 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2014-01-07 18:56:57 -0500

Seen: 2,202 times

Last updated: Jan 09 '14