<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hello,</p>
<p><br>
</p>
<p>I would like to raise a topic regarding possibilities when metadata could be modified on instance.</p>
<p><br>
</p>
<p>We noticed that instance metadata could be modified only when vm_state is set to following values:</p>
<p></p>
<ul>
<li>active</li><li>paused</li><li>suspended</li><li>stopped</li></ul>
<div>Found:</div>
<div><br>
</div>
<div><a href="https://github.com/openstack/nova/blob/master/nova/compute/api.py#L3916-L3920" class="OWAAutoLink" id="LPlnk308390" previewremoved="true">https://github.com/openstack/nova/blob/master/nova/compute/api.py#L3916-L3920</a><br>
</div>
<div><a href="https://github.com/openstack/nova/blob/master/nova/compute/api.py#L3905-L3908" class="OWAAutoLink" id="LPlnk875011" previewremoved="true">https://github.com/openstack/nova/blob/master/nova/compute/api.py#L3905-L3908</a><br>
</div>
<div><br>
</div>
<div>From time to time it is needed to have instance in rescued state.</div>
<div><br>
</div>
<div>Scenario: VM is rescued and special metadata attributes need to be set to allow cloud-init to act specifically for rescue mode. Metadata data should be available only during rescue mode.</div>
<div><br>
</div>
<div>Question: what kind of impact could be observed when checks for instance state will be modified for methods:</div>
<div><br>
</div>
<div>update_instance_metadata</div>
<div>delete_instance_metadata</div>
<div><br>
</div>
<div>Thank you,</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Pawel</div>
<p></p>
</div>
</body>
</html>