Server metadata not updated in autoscalinggroup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Rakesh H S |
Bug Description
I created an OS::Heat:
I am assuming Heat templates are a declarative way to define the stack, so as per the definition, same metadata should be available to all the servers in an autoscaling group
Snip of the template which I'm using to update metadata:
my_asg:
type: OS::Heat:
properties:
resource:
type: OS::Nova::Server
properties:
image: { get_param: image }
flavor: { get_param: flavor }
key_name: { get_param: key_name }
metadata: {"key1": "value1"}
# Assumption is cassandra is already installed
rm -rf /var/lib/
sed -i s/127.0.
sed -i s/localhost/
networks: [{network: {get_param: net_name}}]
min_size: 1
desired_
max_size: 10
scale_up_policy:
type: OS::Heat:
properties:
adjustmen
auto_
cooldown: 60
scaling_
scale_
type: OS::Heat:
properties:
adjustmen
auto_
cooldown: 60
scaling_
Changed in heat: | |
status: | New → Triaged |
Changed in heat: | |
assignee: | nobody → Rakesh H S (rh-s) |
Changed in heat: | |
status: | Triaged → Fix Released |
I'm assuming you're talking about nova user_data: it's impossbie to update them. If it was, it's unclear what we should do. Do we run cloud init again? Are scripts supposed to be idempotent?
Please reopen if I'm missing something.