Comment 2 for bug 1948824

Revision history for this message
Heather Lanigan (hmlanigan) wrote :

DB data from a model reproducing, the machine is in a dying state per juju. It exists in openstack but is shutdown right now.

juju:PRIMARY> db.txns.find({'s':5, "o.c":{$eq:"linklayerdevices"}}).sort({'_id': -1}).limit(1).pretty()
{
 "_id" : ObjectId("62c5d42eea195321ac2233d2"),
 "s" : 5,
 "o" : [
  {
   "c" : "machines",
   "d" : "d2bf2df5-7c81-4508-89c2-bf33ac89df16:16",
   "a" : {
    "life" : 0 <-- ERROR
   }
  },
  {
   "c" : "providerIDs",
   "d" : "d2bf2df5-7c81-4508-89c2-bf33ac89df16:linklayerdevice:9ca7bc2f-6379-43fd-a42c-5baae8f4f654",
   "a" : "d-",
   "i" : {
    "_id" : "d2bf2df5-7c81-4508-89c2-bf33ac89df16:linklayerdevice:9ca7bc2f-6379-43fd-a42c-5baae8f4f654",
    "model-uuid" : "d2bf2df5-7c81-4508-89c2-bf33ac89df16"
   }
  },
  {
   "c" : "linklayerdevices",
   "d" : "d2bf2df5-7c81-4508-89c2-bf33ac89df16:m#16#d#enp1s0",
   "a" : "d+",
   "u" : {
    "$set" : {
     "providerid" : "9ca7bc2f-6379-43fd-a42c-5baae8f4f654"
    }
   }
  },
  {
   "c" : "ip.addresses",
   "d" : "d2bf2df5-7c81-4508-89c2-bf33ac89df16:m#16#d#enp1s0#ip#10.48.132.243",
   "a" : "d+",
   "u" : {
    "$set" : {
     "provider-network-id" : "d75416f2-093a-4ffb-aaf6-d22f350d01ea",
     "provider-subnet-id" : "0915bb73-94b6-493d-af18-2aa9a21fc415"
    }
   }
  }
 ],
 "n" : "d61deb9e"
}

juju:PRIMARY> db.machines.find({"_id": "d2bf2df5-7c81-4508-89c2-bf33ac89df16:16"}).pretty();
{
 "_id" : "d2bf2df5-7c81-4508-89c2-bf33ac89df16:16",
 "machineid" : "16",
 "model-uuid" : "d2bf2df5-7c81-4508-89c2-bf33ac89df16",
 "nonce" : "machine-0:e8396142-140d-45b8-8072-5cc9305121fe",
 "series" : "focal",
 "containertype" : "",
 "principals" : [
  "ubuntu-arm64/0"
 ],
 "life" : 1, <-- doesn't match txn
 "jobs" : [
  1
 ],
...

db.linklayerdevices.find({"_id": "d2bf2df5-7c81-4508-89c2-bf33ac89df16:m#16#d#enp1s0"}) does exist
db.ip.addresses.find({ "_id": "d2bf2df5-7c81-4508-89c2-bf33ac89df16:m#16#d#enp1s0#ip#10.48.132.243" }) does exist
db.providerIDs.find({"_id": "d2bf2df5-7c81-4508-89c2-bf33ac89df16:linklayerdevice:9ca7bc2f-6379-43fd-a42c-5baae8f4f654" }) does not exist.