<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">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hello Michael,</p>
<p><br>
</p>
<p>I did a quick grep over archive with mails from openstack-dev list. It seems that topic about rescue mode was raised in August last year. I did not find anything directly<span style="font-size: 12pt;"> related to </span><span style="font-size: 12pt;">metadata.</span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;">Understand that </span><span style="font-size: 12pt;"></span><span style="font-size: 12pt;">changing user </span><span style="font-size: 12pt;">metadata (with command `nova meta {uuid} set key=value`) when VM is in rescue mode,
 could cause some issues.</span></p>
</div>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<br>
</div>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
Cheers,</div>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
Pawel</div>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div>
<div style="">
<blockquote type="cite" class="">
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px">
<span class="" style=""><b class="">Od: </b></span><span class="" style="">Michael Still <<a href="mailto:mikal@stillhq.com" class="">mikal@stillhq.com</a>><br class="">
</span></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px">
<span class="" style=""><b class="">Temat: </b></span><span class="" style=""><b class="">Odp: [openstack-dev] [nova] Would be possible to modify metadata when instance is in rescued state?</b><br class="">
</span></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px">
<span class="" style=""><b class="">Data: </b></span><span class="" style="">9 maja 2017 09:09:31 CEST<br class="">
</span></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px">
<span class="" style=""><b class="">Do: </b></span><span class="" style="">"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org" class="">openstack-dev@lists.openstack.org</a>><br class="">
</span></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px">
<span class="" style=""><b class="">Odpowied¼-do: </b></span><span class="" style="">"OpenStack Development Mailing List \(not for usage questions\)" <<a href="mailto:openstack-dev@lists.openstack.org" class="">openstack-dev@lists.openstack.org</a>><br class="">
</span></div>
<br class="">
<div class="">
<div dir="ltr" class="">This sort of question comes up every six months or so it seems.
<div class=""><br class="">
The issue is that for config drive users we don't have a way of rebuilding all of the config drive (for example, the root password is gone). That's probably an issue for rescue because its presumably one of the things you might reset.</div>
<div class=""><br class="">
</div>
<div class="">I'm not opposed to exploring options, but I think we need someone to come up with a proposal which addresses previous concerns. I'd recommend a quick search of the mailing list archives for previous discussions.</div>
<div class=""><br class="">
</div>
<div class="">Hope this helps,</div>
<div class="">Michael</div>
<div class=""><br class="">
</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Tue, May 9, 2017 at 5:04 PM, Pawel Suder <span dir="ltr" class="">
<<a href="mailto:pawel.suder@corp.ovh.com" target="_blank" class="">pawel.suder@corp.ovh.com</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr" class="">
<div id="m_-2042253721236968244divtagdefaultwrapper" dir="ltr" class="" style="font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif">
<p class="">Hello,</p>
<p class=""><br class="">
</p>
<p class="">I would like to raise a topic regarding possibilities when metadata could be modified on instance.</p>
<p class=""><br class="">
</p>
<p class="">We noticed that instance metadata could be modified only when vm_state is set to following values:</p>
<div class=""><br class="webkit-block-placeholder">
</div>
<ul class="">
<li class="">active</li><li class="">paused</li><li class="">suspended</li><li class="">stopped</li></ul>
<div class="">Found:</div>
<div class=""><br class="">
</div>
<div class=""><a href="https://github.com/openstack/nova/blob/master/nova/compute/api.py#L3916-L3920" class="m_-2042253721236968244OWAAutoLink" id="m_-2042253721236968244LPlnk308390" target="_blank">https://github.com/openstack/<wbr class="">nova/blob/master/nova/compute/<wbr class="">api.py#L3916-L3920</a><br class="">
</div>
<div class=""><a href="https://github.com/openstack/nova/blob/master/nova/compute/api.py#L3905-L3908" class="m_-2042253721236968244OWAAutoLink" id="m_-2042253721236968244LPlnk875011" target="_blank">https://github.com/openstack/<wbr class="">nova/blob/master/nova/compute/<wbr class="">api.py#L3905-L3908</a><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">From time to time it is needed to have instance in rescued state.</div>
<div class=""><br class="">
</div>
<div class="">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 class=""><br class="">
</div>
<div class="">Question: what kind of impact could be observed when checks for instance state will be modified for methods:</div>
<div class=""><br class="">
</div>
<div class="">update_instance_metadata</div>
<div class="">delete_instance_metadata</div>
<div class=""><br class="">
</div>
<div class="">Thank you,</div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class="">Pawel</div>
<div class=""><br class="webkit-block-placeholder">
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</body>
</html>