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

Update agent charms #155

Merged
merged 4 commits into from
Nov 6, 2023
Merged

Update agent charms #155

merged 4 commits into from
Nov 6, 2023

Conversation

plars
Copy link
Collaborator

@plars plars commented Nov 2, 2023

Description

Update the testflinger-agent-charm to use the monorepo

Resolved issues

There are some minor layout changes necessitated by moving to the monorepo. It is still the case that each agent gets installed under /srv/testflinger-agent/<agent_name>.
Previously, there was a testflinger-agent and snappy-device-agents directory under there. Now that we have a monorepo, there will just be a testflinger directory there with a sparse/shallow checkout that only includes the agent and device-connectors directories.
Additionally, the config files have now moved to the root agent-dir, so that they are easier to find and manage.

Documentation

No real changes from a doc perspective. Installation and deployment are still the same.

Tests

To test this, I installed the old charm locally and pushed the new one to the edge channel, then refreshed the charm to use the edge one instead. The upgrades went perfectly and the new version of the agent was running after the upgrade.

@plars plars requested a review from a team November 2, 2023 20:05
omar-selo
omar-selo previously approved these changes Nov 3, 2023
Copy link

@omar-selo omar-selo left a comment

Choose a reason for hiding this comment

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

Looks good

@plars
Copy link
Collaborator Author

plars commented Nov 3, 2023

@omar-selo or others... one other small change I just added was to explicitly skip removing the old "testflinger-agent" and "snappy-device-agents" dirs for now. We will add those back after all agents have been deployed with this version. The reason we need to do it in two steps, is because of the possibility that a job could be running when we update the agent. We want to give it an opportunity to finish running before we remove the old device agents, and I think this would be a safer way to do that.

@plars plars requested a review from omar-selo November 3, 2023 16:17
Copy link

@omar-selo omar-selo left a comment

Choose a reason for hiding this comment

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

Looks good

@plars plars merged commit 44084dc into main Nov 6, 2023
2 checks passed
@plars plars deleted the update-agent-charms branch November 6, 2023 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants