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

IBM Cloud node stop and start added #10707

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gayathrimenath-ibm
Copy link
Contributor

No description provided.

@gayathrimenath-ibm gayathrimenath-ibm requested a review from a team as a code owner October 21, 2024 10:36
@pull-request-size pull-request-size bot added the size/M PR that changes 30-99 lines label Oct 21, 2024
Copy link

openshift-ci bot commented Oct 21, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: gayathrimenath-ibm

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

wait (bool): True for waiting the instances to stop, False otherwise

"""
self.ibmcloud.start_nodes(nodes, wait=True)
Copy link
Member

Choose a reason for hiding this comment

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

Should this be stop_nodes ?

Suggested change
self.ibmcloud.start_nodes(nodes, wait=True)
self.ibmcloud.stop_nodes(nodes, wait=True)


Args:
nodes (list): The OCS objects of the nodes
wait (bool): True for waiting the instances to start, False otherwise
Copy link
Member

Choose a reason for hiding this comment

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

Add Raises section mention: ValueError there as this is one you raises in some cases ;)

raise ValueError("No nodes found to start")

node_names = [n.name for n in nodes]
self.ibmcloud.restart_nodes(nodes)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
self.ibmcloud.restart_nodes(nodes)
self.restart_nodes(nodes)

Did you forgot to remove ibmcloud here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M PR that changes 30-99 lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants