In nova,
if the record of the marker VM instance exists in the cell
but the 'cell_mapping' in the InstanceMapping of the marker VM instance is null (None),
the issue occurs.
elevated = ctx.elevated(read_deleted='yes')
with context.target_cell(elevated, im.cell_mapping) as cctx:
try:
# NOTE(danms): We query this with no columns_to_join()
# as we're just getting values for the sort keys from
# it and none of the valid sort keys are on joined
# columns. db_inst = db.instance_get_by_uuid(cctx, marker, columns_to_join=[])
except exception.InstanceNotFound: raise exception.MarkerNotFound(marker=marker) <------ Here
return db_inst
--------------------------------------------------------------------------
In nova-conductor, the record of the VM instance exists in the cell
but the 'cell_mapping' in the InstanceMapping of the VM instance is null (None)
between *1 and *2.
My guess is as follows:
In nova,
if the record of the marker VM instance exists in the cell
but the 'cell_mapping' in the InstanceMapping of the marker VM instance is null (None),
the issue occurs.
https:/ /github. com/openstack/ nova/blob/ f902e0d5d87fb05 207e4a7aca73d18 5775d43df2/ nova/compute/ instance_ list.py# L56-L73
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---- record( self, ctx, marker): InstanceMapping .get_by_ instance_ uuid(ctx, marker) InstanceMapping NotFound: MarkerNotFound( marker= marker)
def get_marker_
try:
im = objects.
except exception.
raise exception.
elevated = ctx.elevated( read_deleted= 'yes') target_ cell(elevated, im.cell_mapping) as cctx:
db_inst = db.instance_ get_by_ uuid(cctx, marker,
columns_ to_join= []) InstanceNotFoun d:
raise exception. MarkerNotFound( marker= marker) <------ Here ------- ------- ------- ------- ------- ------- ------- ------- ------- ----
with context.
try:
# NOTE(danms): We query this with no columns_to_join()
# as we're just getting values for the sort keys from
# it and none of the valid sort keys are on joined
# columns.
except exception.
return db_inst
-------
In nova-conductor, the record of the VM instance exists in the cell
but the 'cell_mapping' in the InstanceMapping of the VM instance is null (None)
between *1 and *2.
*1: https:/ /github. com/openstack/ nova/blob/ f902e0d5d87fb05 207e4a7aca73d18 5775d43df2/ nova/conductor/ manager. py#L1172- L1175 /github. com/openstack/ nova/blob/ f902e0d5d87fb05 207e4a7aca73d18 5775d43df2/ nova/conductor/ manager. py#L1236- L1239
*2: https:/