Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch agent issue 174 #2017

Merged
merged 7 commits into from
Nov 23, 2023
Merged

Catch agent issue 174 #2017

merged 7 commits into from
Nov 23, 2023

Conversation

jimmykarily
Copy link
Contributor

@jimmykarily jimmykarily commented Nov 22, 2023

This PR is making sure this fix will be tested from now on:

kairos-io/kairos-agent#174

jimmykarily and others added 3 commits November 21, 2023 17:06
It should fail now because of this fix needed:

kairos-io/kairos-agent#174

After bumping to the fixed kairos-agent version, the test should be
green again.

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: GitHub <noreply@github.com>
Grub configuration for livecd (iso) is installed here:
https://github.com/kairos-io/osbuilder/blob/89b014b2b2a1f27bd0c0c5269cecec2a1b8f37bf/tools-image/Dockerfile#L25

and it repositories were bumped in osbuilder to use the latest and
updates grub configuration where `console=tty1` is set **after**
`console=ttyS0` thus making it the default console for systemd services.

Also:

- remove not used bootargs.cfg file (has been moved to the "packages"
  repo)
- Change to the DATASOURCE check which is what we need in reality (not
  CLOUD_INIT which was indirectly checking that DATASOURCE would be set
  by Earthly)

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
@jimmykarily jimmykarily marked this pull request as draft November 22, 2023 12:30
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
@jimmykarily
Copy link
Contributor Author

Nice, it now fails like it should:

+run-qemu-datasource-tests *failed* |   Nov 22 15:06:21 kairos-9k9w kairos-agent[1384]: fork/exec rsync -aqAX /var/lib/extensions /usr/local/.state/var-lib-extensions.bind: no such file or directory

https://github.com/kairos-io/kairos/actions/runs/6958662986/job/18934817729?pr=2017

I will now merge this: kairos-io/kairos-agent#174 and bump it here to see if that's fixed

which has this fix: kairos-io/kairos-agent#174

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
which, in case of errors, will fail with a timeout but kairos service
doesn't allow us to know when the installer is done. That's because
the service has `RemainAfterExit=yes` and even if that was removed, the
kairos process waits for user input to finish:

```
Installation completed, press enter to go back to the shell. [Yes/no/all/cancel]
```

so there is not sure way to tell whether the kairos installer failed
with or without errors.

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
@jimmykarily jimmykarily marked this pull request as ready for review November 23, 2023 11:40
@jimmykarily jimmykarily requested a review from a team November 23, 2023 11:40
Copy link
Member

@Itxaka Itxaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@jimmykarily jimmykarily merged commit c8abdb1 into master Nov 23, 2023
33 of 34 checks passed
@jimmykarily jimmykarily deleted the catch-agent-issue-174 branch November 23, 2023 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants