Ask Your Question
2

how to update config with OS::Heat::SoftwareComponent?

asked 2015-06-26 00:18:53 -0500

august gravatar image

updated 2015-06-26 00:19:06 -0500

Hello Experts!

I'm using the template at heat-templates/hot/software-config/example-templates/example-sw-component-template.yaml to try and test this theory:

  1. server is launched with config applied as the CREATE action
  2. stack is modified to add another server resource (server1)
  3. UPDATE action is modified with (anything)
  4. server gets config updated (script runs which edits files with values from the stack and restarts a service)
  5. server1 doesn't need ay config

my goal: haproxy on server. add 10 new servers to stack. haproxy's config updated on server with ips of 10 new servers.

can this be done with the the template I've referenced?

i'm testing but wanted to get the question our there in case i've missed something. thanks! -- august

edit retag flag offensive close merge delete

Comments

1

So in testing I launch the stack and it got stuck in CREATE_IN_PROGRESS. If i change the signal_transport from HEAT_SIGNAL to NO_SIGNAL it finishes.

august gravatar imageaugust ( 2015-06-26 00:39:47 -0500 )edit

i also added a new server resource and changed the UPDATE action of OS::Heat::SoftwareComponent (just a minor change to echo contents). stack-update runs but the config change in the UPDATE section doesn't show up on the original server.

august gravatar imageaugust ( 2015-06-26 00:41:41 -0500 )edit

resources: | sw_component | 2cae6bd8-7516-4020-800d-5c908b1e12c8 | OS::Heat::SoftwareComponent | CREATE_COMPLETE | 2015-06-26T05:36:38Z | | sw_deployment | b00b570f-6bae-4da3-9277-8b30c50efba2 | OS::Heat::SoftwareDeployment | UPDATE_COMPLETE | 2015-06-26T05:36:40Z | i think i misuderstand this?

august gravatar imageaugust ( 2015-06-26 00:42:20 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-07-05 17:50:04 -0500

Steve Baker gravatar image

You're probably better off just using OS::Heat::SoftwareConfig instead of OS::Heat::SoftwareComponent. Also make sure you read all of Heat's software configuration documentation.

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: 2015-06-26 00:18:53 -0500

Seen: 851 times

Last updated: Jul 05 '15