-
Notifications
You must be signed in to change notification settings - Fork 168
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
Deploy an external mode cluster and create resources with the rbd rados namespace #11019
base: master
Are you sure you want to change the base?
Deploy an external mode cluster and create resources with the rbd rados namespace #11019
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: yitzhak12 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 |
ocs_ci/helpers/helpers.py
Outdated
from ocs_ci.ocs.resources.storage_cluster import ( | ||
get_storageclass_names_from_storagecluster_spec, | ||
get_storageclass_with_rbd_namespace, | ||
) |
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.
could you move to import section. incase if there is circular dependancy, please make comment for the same
return sc | ||
|
||
log.warning(f"Didn't find the storageclass with the rbd namespace {rbd_namespace}") | ||
return None |
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.
by default function returns None implicitly. so we can remove this
rbd_namespace (str): The rbd namespace to search in the storage classes | ||
|
||
Returns: | ||
dict: The storage class with the specified rbd namespace. If not found, it returns None. |
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.
dict: The storage class with the specified rbd namespace. If not found, it returns None. | |
str: The storage class with the specified rbd namespace. If not found, it returns None. |
fbb27c8
to
bc6df44
Compare
…ace external mode param Signed-off-by: Itzhak Kave <[email protected]>
bc6df44
to
e4e5341
Compare
See issue https://issues.redhat.com/browse/RHSTOR-5519