Read only disks, no size limit on local disks#3021
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
app/components/StateBadge.tsx
Outdated
|
|
||
| export const ReadOnlyBadge = () => ( | ||
| <Badge color="neutral" className="relative"> | ||
| read only |
There was a problem hiding this comment.
Such a silly nit, but I feel like even if it's made uppercase its good practice to case them properly
| <SnapshotSelectField control={control} /> | ||
| <div className="mt-2"> | ||
| <CheckboxField name="diskBackend.diskSource.readOnly" control={control}> | ||
| Make disk read-only |
There was a problem hiding this comment.
"Make disk" is strange? Maybe just "Read-only"
There was a problem hiding this comment.
I put that in there tentatively because when it was just read-only, it wasn't clear enough that read-only refers to the resulting disk. So I think we need something more than read-only. Unless we just make the label "Read only" and we put help text in there that says "Instances won't be able to write to this disk" or something. I am also slightly torn about the hyphen. Generally I feel like hyphen is right for regular copy, but when it's just "Read-only" by itself it looks bad.
|
Are there consequences to this action we want to communicate after the user has checked the box? Do we need to clarify that it cannot edited later? |
|
Scattergun thoughts contd:
|
|
|
Further update on cloud-init: because cloud-init is fundamentally a program that runs in the guest OS and pulls data from the CIDATA volume, they just have to not do that (chat). |
I'd like to add some stuff to the docs about read-only disks, perhaps the checkbox should have a link to there?
As of oxidecomputer/omicron@4c3bd6b, it should also be an option for |
|
@david-crespo https://github.com/oxidecomputer/docs/pull/717 adds some documentation on read-only disks, if you want to link to that from the disk create modal? |
076ea6d to
132ec65
Compare
4b2594f to
0034210
Compare
|
Was able to repro the e2e flakes from 4b2594f locally with these commands and thereby confirm that the fixes in 0034210 work. |
|
The SSH key issue we can handle separately, will make an issue. Read only badge in the table seems like the best of the options available, prefer to polluting the table with another column. Read only: yes is weird. But not sure how to improve that whilst being honest about the API. If underneath we had "Read" and "Read and Write" as an access type that would feel more comfortable. Read only: True? "Read-only" on its own is confusing when next to the listbox and moving it out of that container would probably require its own title. Again if the API was different we could use radios with the default being "Read and Write". |
|
|
|
0034210 to
bac1aec
Compare
3814fc8 to
149943c
Compare
oxidecomputer/console@a5fc417...948c1d3 * [948c1d33](oxidecomputer/console@948c1d33) oxidecomputer/console#3021 * [cd0a0db6](oxidecomputer/console@cd0a0db6) oxidecomputer/console#3027 * [002af426](oxidecomputer/console@002af426) oxidecomputer/console#3005 * [61464d9f](oxidecomputer/console@61464d9f) oxidecomputer/console#3024 * [7ca66ea6](oxidecomputer/console@7ca66ea6) oxidecomputer/console#3018 * [53441694](oxidecomputer/console@53441694) oxidecomputer/console#3023 * [ed139b14](oxidecomputer/console@ed139b14) oxidecomputer/console#2974 * [62e0e4d6](oxidecomputer/console@62e0e4d6) oxidecomputer/console#3020 * [c916d668](oxidecomputer/console@c916d668) oxidecomputer/console#3002 * [b9344ef0](oxidecomputer/console@b9344ef0) oxidecomputer/console#3007 * [111646f4](oxidecomputer/console@111646f4) oxidecomputer/console#3003
oxidecomputer/console@a5fc417...948c1d3 * [948c1d33](oxidecomputer/console@948c1d33) oxidecomputer/console#3021 * [cd0a0db6](oxidecomputer/console@cd0a0db6) oxidecomputer/console#3027 * [002af426](oxidecomputer/console@002af426) oxidecomputer/console#3005 * [61464d9f](oxidecomputer/console@61464d9f) oxidecomputer/console#3024 * [7ca66ea6](oxidecomputer/console@7ca66ea6) oxidecomputer/console#3018 * [53441694](oxidecomputer/console@53441694) oxidecomputer/console#3023 * [ed139b14](oxidecomputer/console@ed139b14) oxidecomputer/console#2974 * [62e0e4d6](oxidecomputer/console@62e0e4d6) oxidecomputer/console#3020 * [c916d668](oxidecomputer/console@c916d668) oxidecomputer/console#3002 * [b9344ef0](oxidecomputer/console@b9344ef0) oxidecomputer/console#3007 * [111646f4](oxidecomputer/console@111646f4) oxidecomputer/console#3003





Closes #3009
Threw this together real quick to de-risk and get a sense of the vibes. API built from oxidecomputer/omicron#9731, which isn't merged yet and we're not sure if it will make it in for v18. This is built on top of #3005 because that has earlier API changes in it.
Fun questions
Read only: Yesin the side modal looks silly, also not as grouped together with snapshot ID as I would like.