-
Notifications
You must be signed in to change notification settings - Fork 105
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
MGMT-9549:Trigger for remote deploy HW specs #1518
MGMT-9549:Trigger for remote deploy HW specs #1518
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great idea!
src/triggers/default_triggers.py
Outdated
@@ -8,6 +8,18 @@ | |||
|
|||
_default_triggers = frozendict( | |||
{ | |||
"production": Trigger( | |||
condition=("service_base_url", consts.RemoteEnvironment.PRODUCTION), | |||
worker_disk=128849018880 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
worker_disk=128849018880 | |
worker_disk=120 * 2 ** 30 # 120 GB |
or any other option that will make the size in use more clear
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And please keep that value as const
20c582a
to
a2cc416
Compare
src/triggers/default_triggers.py
Outdated
"production_service_url": Trigger( | ||
condition=("remote_service_url", consts.RemoteEnvironment.PRODUCTION), | ||
worker_disk = consts.DISK_SIZE_120GB | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for the nagging, but maybe same as the others:
"production_service_url": Trigger( | |
condition=("remote_service_url", consts.RemoteEnvironment.PRODUCTION), | |
worker_disk = consts.DISK_SIZE_120GB | |
), | |
"production": Trigger( | |
condition=("remote_service_url", consts.RemoteEnvironment.PRODUCTION), | |
worker_disk = consts.DISK_SIZE_120GB | |
), |
@@ -58,4 +60,4 @@ def get_api_client(self, offline_token=None, **kwargs) -> InventoryClient: | |||
if not url: | |||
url = utils.get_local_assisted_service_url(self.namespace, "assisted-service", self.deploy_target) | |||
|
|||
return ClientFactory.create_client(url, offline_token, **kwargs) | |||
return ClientFactory.create_client(url, offline_token, **kwargs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add blank lines at the end of files?
567adbd
to
ed2d6d9
Compare
/retest |
/retest |
@paul-maidment I guess it's no longer WIP, right? |
It has been observed that while testing against production, there is an issue with disk validation on workers. It has been found that setting the disk size of a worker to 128GB resolves the issue. This trigger has been added to ensure that this happens.
8fc67fe
to
00bcbb4
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: osherdp, paul-maidment The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
9 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/hold |
/retest |
/test e2e-metal-single-node-live-iso |
/unhold |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
@paul-maidment: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
It has been observed that while testing against production, there is an
issue with disk validation on workers. It has been found that setting
the disk size of a worker to 128GB resolves the issue. This trigger has
been added to ensure that this happens.