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

The DELETE method of LBaaSV2 Monitors in Docs is mistake! #1175

Open
MyDinnerIsReady opened this issue Apr 9, 2018 · 0 comments
Open

The DELETE method of LBaaSV2 Monitors in Docs is mistake! #1175

MyDinnerIsReady opened this issue Apr 9, 2018 · 0 comments

Comments

@MyDinnerIsReady
Copy link

i have bean developing load balance function for the past few days,and i referenced openstack4j docs and javaDoc.But a weird problem appeared a few days , the problem had bean bothering me.the problem is : when i delete a listener in load balancer,for logical,i should delete pool ,pool member ,health monitor together.but when i delete pool after deleted listener and pool member,something is wrong, openstack4j-core is a tip for 'health monitor is using this pool'.but its foreign key in database is such:if i would like to delete a listener,i should delete listener firstly , pool member secondly,and pool ,health monitor finally.
Anyhow,it give me such a tips , and i shouldnot doubt openstack-core easily.so i replaced pool and health monitor.But another error has emerged : ''404",and i really spend a lot of time to try to fixed it.but today ,i accidentally find what wrong , the Docs.

the delete method of health monitor should be this :
ActionResponse resp = os.networking(). lbaasV2().healthMonitor().delete(healthMonitorId);

Not so :
ActionResponse resp = os.networking().loadbalancers().healthMonitor().delete(healthMonitorId);

its a little mistake , and i hope no one will step into this pit again.

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

1 participant