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

Add log to inform skipped(non-empty) hypervisors #351

Merged
merged 21 commits into from
Apr 11, 2024

Conversation

zxhdaze
Copy link
Contributor

@zxhdaze zxhdaze commented Apr 2, 2024

This PR depends on #334. Please consider only the latest commit for review until the dependent PR is merged.

Add log to inform user about skipped hypervisors(those having VMs running) at plan stage.

fixes: #326

@zxhdaze zxhdaze closed this Apr 2, 2024
@zxhdaze zxhdaze deleted the BSENG-2235/add-nonempty-hypervisor-log branch April 2, 2024 21:10
@zxhdaze zxhdaze restored the BSENG-2235/add-nonempty-hypervisor-log branch April 2, 2024 21:15
@zxhdaze zxhdaze reopened this Apr 2, 2024
Copy link
Contributor

@agileshaw agileshaw left a comment

Choose a reason for hiding this comment

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

Just a reminder to link this PR to the issue it is addressing (ref)

@zxhdaze zxhdaze force-pushed the BSENG-2235/add-nonempty-hypervisor-log branch 2 times, most recently from e368b61 to ce8ba5a Compare April 3, 2024 20:32
@rgildein
Copy link
Contributor

rgildein commented Apr 4, 2024

@zxhdaze Can you rebase this on current main, I merged #334. Thanks

@zxhdaze zxhdaze marked this pull request as ready for review April 4, 2024 14:46
@zxhdaze zxhdaze requested a review from a team as a code owner April 4, 2024 14:46
@zxhdaze zxhdaze force-pushed the BSENG-2235/add-nonempty-hypervisor-log branch from ce8ba5a to a9db93f Compare April 4, 2024 19:06
rgildein and others added 2 commits April 4, 2024 15:19
# This is the 1st commit message:

Add log for non-empty hypervisor

# This is the commit message canonical#2:

Add log for non-empty hypervisor

# This is the commit message canonical#3:

Add log for non-empty hypervisor
Rebase onto main

Rebase onto main

move to separate directory

Add log for skipped(non-empty) hypervisors with unit test

BSENG-2235 Refactor code formatting for lint check

BSENG-2235 Refactor code formatting for lint check

BSENG-2235 Refactor log to use lazy % formatting

BSENG-2235 Refactor string format

BSENG-2235 Reformat import

BSENG-2235 change logs to display unit names instead of machine names

BSENG-2235 reformat code
@zxhdaze zxhdaze force-pushed the BSENG-2235/add-nonempty-hypervisor-log branch from a9db93f to 87b03b6 Compare April 4, 2024 19:24
tests/mocked_plans/test_base_plan.py Outdated Show resolved Hide resolved
cou/steps/plan.py Outdated Show resolved Hide resolved
cou/steps/plan.py Outdated Show resolved Hide resolved
cou/steps/plan.py Show resolved Hide resolved
cou/steps/plan.py Outdated Show resolved Hide resolved
cou/steps/plan.py Outdated Show resolved Hide resolved
tests/mocked_plans/test_base_plan.py Outdated Show resolved Hide resolved
cou/steps/plan.py Outdated Show resolved Hide resolved
cou/steps/plan.py Outdated Show resolved Hide resolved
zxhdaze added 2 commits April 8, 2024 14:39
reformat code

Support OVN apps that don't have "enable-versiong-pinning" config (canonical#359)

- Not all ovn apps has this configuration and the current implementation
it's not permesive on this.

Closes: canonical#348

reformat code

reformat code

reformat code

reformat code

reformat code

reformat code

reformat code

reformat code
@zxhdaze zxhdaze force-pushed the BSENG-2235/add-nonempty-hypervisor-log branch from a1d7fba to 3a726c5 Compare April 9, 2024 00:53
tests/unit/steps/test_plan.py Outdated Show resolved Hide resolved
cou/steps/plan.py Outdated Show resolved Hide resolved
cou/utils/nova_compute.py Outdated Show resolved Hide resolved
cou/utils/nova_compute.py Outdated Show resolved Hide resolved
cou/utils/nova_compute.py Outdated Show resolved Hide resolved
cou/utils/nova_compute.py Outdated Show resolved Hide resolved
tests/unit/utils/test_nova_compute.py Outdated Show resolved Hide resolved
rgildein
rgildein previously approved these changes Apr 10, 2024
Copy link
Contributor

@rgildein rgildein left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

cou/utils/nova_compute.py Outdated Show resolved Hide resolved
cou/utils/nova_compute.py Outdated Show resolved Hide resolved
cou/utils/nova_compute.py Outdated Show resolved Hide resolved
gabrielcocenza
gabrielcocenza previously approved these changes Apr 10, 2024
Copy link
Member

@gabrielcocenza gabrielcocenza left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks

agileshaw
agileshaw previously approved these changes Apr 10, 2024
Copy link
Contributor

@agileshaw agileshaw left a comment

Choose a reason for hiding this comment

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

LGTM, with one non-blocking suggestion

tests/unit/utils/test_nova_compute.py Outdated Show resolved Hide resolved
@zxhdaze zxhdaze dismissed stale reviews from agileshaw and gabrielcocenza via 8f4e3f1 April 10, 2024 20:37
Copy link
Contributor

@agileshaw agileshaw left a comment

Choose a reason for hiding this comment

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

+1 from me. Thanks :)

@zxhdaze zxhdaze merged commit fe2d671 into canonical:main Apr 11, 2024
5 checks passed
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.

COU is not logging to the user hypervisors that have VMs running
5 participants