Open bnaecker opened 1 year ago
I think it's arguable if this response code is correct, if unsatisfying.
Here's the contents of your oxide.json
, (I assume):
{"v":"1","t":"layer"}
In #2448 , we added the ability to "stamp" versions onto zone images.
This is necessary mechanism to label versions on zone image, and to have them self-report their versions.
If we stamp a zone image, it'll have the following format:
{"v":"1","t":"layer", "pkg":"crucible_pantry", "version":"0.0.0"}
This is the format that the /components
endpoint was added to parse -- it will let wicket query for existing versions of software on the sled.
However, there's an unfortunate reality: right now, I don't believe anything is stamping versions onto these tarballs. We've discussed doing this in permission-slip prior to constructing a TUF repo, but it hasn't happened yet.
TL;DR: The error message sucks, but this is not surprising to me. We want versions to be stamped on tarballs more regularly.
As a follow-up on the error specifically - I do kinda think that if the sled agent is operating on unversioned software, we should consider that an error. A reasonable follow-up may be to ensure that all zone images produced have at least a placeholder version, until they are passed through the release engineering process?
Alan and I are dogfooding on Rack 2. We were doing something else, but confused about the endpoints in the bootstrap agent. We tried to hit another endpoint that should exist to verify, and picked
/components
. We ran:And see this in the bootstrap agent logs:
I don't know what's supposed to be happening here, but the 500 and the error about a malformed artifact seem unexpected.