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

Feature request: cleanup on an imported (non-live) CIB #1148

Open
jirib opened this issue Mar 17, 2023 · 5 comments
Open

Feature request: cleanup on an imported (non-live) CIB #1148

jirib opened this issue Mar 17, 2023 · 5 comments

Comments

@jirib
Copy link

jirib commented Mar 17, 2023

# rpm -q crmsh
crmsh-4.4.0+20221209.64abfaca-150400.3.12.1.noarch

After importing a customer CIB for an analysis - crm> cib import <file> - I was thinking to remove past failures etc..., so verify does not show already "solved" (eg. via correcting cluster settings) errors.

But this is not possible - could this be considered?

crm(cib.xml/jb154sapqe01)# resource cleaup
INFO: "cleaup" is accepted as "cleanup"
crm_resource: Error connecting to the controller: Connection refused
Error performing operation: Not connected
@liangxin1300
Copy link
Collaborator

Hi @jirib ,
When you got:

crm_resource: Error connecting to the controller: Connection refused
Error performing operation: Not connected

Is your cluster running?

And, if your cluster is running, I think after import, you need to run crm cib commit,
Or the related resource couldn't be real running at the cluster nodes.
Then try to use crm resource cleanup

@jirib
Copy link
Author

jirib commented Mar 20, 2023

Hi @jirib , When you got:

crm_resource: Error connecting to the controller: Connection refused
Error performing operation: Not connected

Is your cluster running?

And, if your cluster is running, I think after import, you need to run crm cib commit, Or the related resource couldn't be real running at the cluster nodes. Then try to use crm resource cleanup

No, no cluster is running. I used crm in this context only for checking external CIBs, thus no commit is wanted.

@liangxin1300
Copy link
Collaborator

crm resource cleanup will call crm_resource command, which I think just works for the running cluster

@jirib
Copy link
Author

jirib commented Mar 20, 2023

That's why I used 'Feature request'; thus it would be nice to confider such functionality. As I said, I used crm for troubleshooting only (on this particular system).

@liangxin1300
Copy link
Collaborator

Thanks! We will evaluate this

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

No branches or pull requests

2 participants