<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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><span style="font-size: 10pt;">> Can you give some more details? How does this actually "merge" or </span><br>
</p>
<div style="color: rgb(0, 0, 0);"><font size="2"><span style="font-size:10pt;">
<div class="PlainText"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13.3333px;">> </span>replace BDMs defined in the image metadata? Is this because we use
<br>
<span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13.3333px;">> </span>device name as part of a hack for a primary key in the database [1]? I
<br>
<span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13.3333px;">> </span>assume it is. The lack of unique constraint in the BDM data model has
<br>
<span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13.3333px;">> </span>also always been a source of bugs, especially with cells v1 and why we
<br>
<span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 13.3333px;">> </span>talk about adding a uuid column to that table every few months.<br>
<br>
Right. This is not pure merging, but replacing, based on device names as a primary key. Important point is that it is a user defined, human readable key.<br>
<br>
> I've never actually heard of this use case but it looks like it's been <br>
> baked in since the legacy BDM behavior in the code, which is itself a <br>
> bunch of technical debt that I'd love to remove at some point.<br>
<br>
A couple of years ago when Dipanov accidentally broke the merging, we asked him to fix it here in ML, and he did it. If it's important, i'll find these reviews and ML thread.<br>
<br>
> I guess what I'm trying to get at is, is this just important for EC2 <br>
> compatibility? Or do non-AWS OpenStack users care about this use case, <br>
> because we definitely don't advertise this anywhere in our <br>
> documentation, or test it in any of our integrated testing (Tempest). So <br>
> just because it happens to work by chance of a poor data model doesn't <br>
> make me want to bend over backward to keep this working.<br>
<br>
Well, i cannot estimate the importance in absolute measurement, but in comparison with OpenStack this use case is more important in AWS. Volume backed images (EBS images) are used in AWS much more widely than in OpenStack. There are some difficulties in Nova
and Cinder because that users try to avoid using volume backed images in favor of disk based (instance-store) ones. This explain why this use case is less important for pure OpenStack users.<br>
<br>
> If we wanted to support updating/overriding a specific image BDM during <br>
> server create, I'd think we could do something more straight-forward in <br>
> the compute API, like add an "image_bdm_override=True" field to <br>
> block_device_mapping_v2, something like that. What do you think about <br>
> that alternative?<br>
<br>
</div>
<div class="PlainText">Since you want to delete the only natural key from bdm, how to refer on a certain bdm in parameters? Honestly, without real merging implemented in Nova, such workarounds fused into bdm structure do not look good for me. It looks like
a crutch for something unfinished. Another disadvantages is that this new field may be added into DB, etc., because all other bdm fields are. Perhaps more appropriate way is to add a new 'ignore_image_bdms' parameter to run instance method. This brings another
questions, but does not directly affect bdms at least.</div>
<div class="PlainText"><br>
</div>
<div class="PlainText">Thanks,</div>
<div class="PlainText">Feodor Tersin.</div>
</span></font></div>
</div>
</body>
</html>