kairos icon indicating copy to clipboard operation
kairos copied to clipboard

Fix device json schema to allow other device paths

Open jimmykarily opened this issue 1 year ago • 10 comments

After this: https://github.com/kairos-io/kairos-agent/pull/552 we should now update the schema to allow these new paths: https://github.com/kairos-io/kairos-sdk/blob/156caa6f8c9066b99417912a572285c33ab44b3c/schema/install_schema.go#L14

Auroraboot fails with this if we don't:

Target OSs /etc/systemd/system/cloud_init.yaml does not pass validation. Quitting.
jsonschema: '/install/device' does not validate with file:///schema.json#/properties/install/$ref/properties/device/pattern: does not match pattern '^(auto|/|(/[a-zA-Z0-9_-]+)+)$'

jimmykarily avatar Oct 01 '24 06:10 jimmykarily

Hi, can I work on this bug?

HariniKrishnan avatar Oct 01 '24 07:10 HariniKrishnan

Hi, can I work on this bug?

By all means @HariniKrishnan! Give it a shot. If it takes too long we may have to pick it up within the core team to unblock people though.

jimmykarily avatar Oct 01 '24 08:10 jimmykarily

@jimmykarily When are we expecting the code, can I take a week's time?

HariniKrishnan avatar Oct 01 '24 09:10 HariniKrishnan

@jimmykarily When are we expecting the code, can I take a week's time?

Sure thing @HariniKrishnan ! Thank you :100:

mudler avatar Oct 01 '24 09:10 mudler

@HariniKrishnan I'll assign you to the ticket, it's not to put any pressure but just to also see it on the dashboard that someone is on it. If you need help or more time, just let us know. Thanks!

mauromorales avatar Oct 04 '24 08:10 mauromorales

@mauromorales thanks a lot!

HariniKrishnan avatar Oct 05 '24 15:10 HariniKrishnan

whom should I reach out to for doubts reg this issue?

HariniKrishnan avatar Oct 08 '24 18:10 HariniKrishnan

@HariniKrishnan I'd say the slack channel is probably the best place because then whoever in the team looks at it and knows, can start helping. Just keep in mind for the replies that we are mostly in EU timeline

mauromorales avatar Oct 08 '24 18:10 mauromorales

[email protected] is my email!!! can you please add me to you workspace!

HariniKrishnan avatar Oct 08 '24 18:10 HariniKrishnan

[email protected] is my email!!! can you please add me to you workspace!

You need to get a self-invitation here: https://slack.cncf.io/#kairos

jimmykarily avatar Oct 09 '24 05:10 jimmykarily

Hey @jimmykarily Any idea when this might get fixed? Thanks!

sarg3nt avatar Nov 06 '24 23:11 sarg3nt

Hey @jimmykarily Any idea when this might get fixed? Thanks!

We planned it for the last sprint but nobody got a chance to fix it. Let's hope we get this done this week.

jimmykarily avatar Nov 07 '24 06:11 jimmykarily

The fix got merged in the kairos-agent. We just need to cut a new release of kairos-agent and kairos to make it consumable.

jimmykarily avatar Nov 08 '24 09:11 jimmykarily

@jimmykarily, did this get released in 3.2.2? I don't see a mention of it so I'm assuming not.

sarg3nt avatar Nov 12 '24 23:11 sarg3nt

@jimmykarily, did this get released in 3.2.2? I don't see a mention of it so I'm assuming not.

Yes the fix is in 3.2.2, I updated the release notes to say so (the first item in the list).

jimmykarily avatar Nov 13 '24 06:11 jimmykarily

@jimmykarily, did this get released in 3.2.2? I don't see a mention of it so I'm assuming not.

Yes the fix is in 3.2.2, I updated the release notes to say so (the first item in the list).

sorry, we did a mistake and we didn't bump the kairos-agent in the latest framework image :facepalm: . Please wait for 3.2.3 (coming soon)

jimmykarily avatar Nov 13 '24 12:11 jimmykarily

There: https://github.com/kairos-io/kairos/releases/tag/v3.2.3

jimmykarily avatar Nov 15 '24 13:11 jimmykarily

This should be fixed. I'll close but feel free to re-open if you face any issues.

jimmykarily avatar Nov 15 '24 13:11 jimmykarily

@jimmykarily This isn't working for us quite yet.

Our config has this in it

install:
  device: "/dev/disk/by-path/pci-0000:03:00.0-scsi-0:0:0:0"

Error at the console: image

Looks like it is adding a p1 at the end of the device path.
Is this intentional or a bug?

Edit: This is Kairos v3.2.4 built by and booting from AuroraBoot v0.4.3

sarg3nt avatar Dec 17 '24 22:12 sarg3nt

The WARNING report a pattern that is not matching the fixed one: https://github.com/kairos-io/kairos-sdk/blob/d334d86d4369929e47d569d9d8a6eeb4698e55ca/schema/install_schema.go#L14

It should use the new "^(auto|/dev/.+)$" but it's reporting the old one.

You need kairos-agent >= v2.15.4 to get this fix. The logs report kairos-agent v2.13.9.

This can't be kairos v3.2.4.

jimmykarily avatar Dec 18 '24 08:12 jimmykarily

Wellllll . . . That's because someone . . and I'm not gong to name names here . . forgot to actually build the new image and, you know, use it. It was me, I did it. Sorry.
I9B24UPROhlvwFNsGexi5kMRV0L8YHZH2WFc0x9JzWA-2648090589

sarg3nt avatar Dec 18 '24 17:12 sarg3nt