API description hash is not stable

Bug #1949963 reported by Alberto Donato
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Alberto Donato

Bug Description

The hash for the API description isn't stable and can change even without server restart.

This causes the CLI to report that there was an API change.

Example:

$ for _ in $(seq 1 20); do curl -s http://localhost:5240/MAAS/api/2.0/describe/ | jq .hash; done
"a85381a216cb15b3a9d6d27a18d0c3aaa00b3cb7"
"a85381a216cb15b3a9d6d27a18d0c3aaa00b3cb7"
"f699b709aa80b54b8e6a281b8ac7ca4f5ec4f334"
"a85381a216cb15b3a9d6d27a18d0c3aaa00b3cb7"
"5596c41b09f394fe9b84894320fc75063e1764b2"
"5596c41b09f394fe9b84894320fc75063e1764b2"
"5596c41b09f394fe9b84894320fc75063e1764b2"
"5596c41b09f394fe9b84894320fc75063e1764b2"
"5596c41b09f394fe9b84894320fc75063e1764b2"
"3c817ddf8cc4a27982b63470d67836d83efc7c53"
"f699b709aa80b54b8e6a281b8ac7ca4f5ec4f334"
"a85381a216cb15b3a9d6d27a18d0c3aaa00b3cb7"
"f699b709aa80b54b8e6a281b8ac7ca4f5ec4f334"
"5596c41b09f394fe9b84894320fc75063e1764b2"
"f699b709aa80b54b8e6a281b8ac7ca4f5ec4f334"
"3c817ddf8cc4a27982b63470d67836d83efc7c53"
"a85381a216cb15b3a9d6d27a18d0c3aaa00b3cb7"
"a85381a216cb15b3a9d6d27a18d0c3aaa00b3cb7"
"5596c41b09f394fe9b84894320fc75063e1764b2"
"a85381a216cb15b3a9d6d27a18d0c3aaa00b3cb7"

Related branches

Changed in maas:
status: In Progress → Fix Committed
Alberto Donato (ack)
Changed in maas:
milestone: 3.1.0 → 3.1.0-rc1
Alberto Donato (ack)
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.