*** rm_work has joined #senlin | 02:51 | |
rm_work | hey ya'll :P | 02:51 |
---|---|---|
rm_work | I'm getting this error when trying to attach a policy to a cluster: | 02:52 |
rm_work | RESP BODY: {"code": 409, "error": {"code": 409, "message": "CLUSTER_ATTACH_POLICY for cluster '22752854-e600-4688-a5e4-e1f176a7b12b' cannot be completed because it is already locked.", "type": "ResourceIsLocked"}, "explanation": "There was a conflict when trying to complete your request.", "title": "Conflict"} | 02:52 |
rm_work | The cluster is ACTIVE... And I've waited a minute+ since the last action... what's going on? | 02:52 |
rm_work | How can I debug this? | 02:52 |
rm_work | the command was: openstack cluster policy attach --debug --enabled true --policy loadbalance-policy-v6-1512550 hello_world_cluster-1512550 | 02:53 |
rm_work | (I had just successfully run another policy attach a minute before: openstack cluster policy attach --enabled true --policy loadbalance-policy-v4-1512550 hello_world_cluster-1512550 ) | 02:53 |
rm_work | can they only have one policy? | 02:53 |
*** openstackgerrit has joined #senlin | 03:39 | |
*** ChanServ sets mode: +v openstackgerrit | 03:39 | |
openstackgerrit | Merged openstack/senlin master: Upgrade openstacksdk version to solve connections leak https://review.opendev.org/649222 | 03:39 |
sapd1 | rm_work, We can attach more than one policy to a cluster. | 04:39 |
sapd1 | Maybe your cluster is not completed a job before you restart senlin-engine, So senlin-engine does not release a lock for the cluster. | 04:42 |
rm_work | Hmm | 04:42 |
rm_work | This is a new cluster created during test | 04:43 |
rm_work | Literally add one policy, wait, add the second | 04:43 |
rm_work | Second fails like that | 04:43 |
sapd1 | I don't get this issue before, wait for other folks, | 04:44 |
rm_work | Good to know that it's possible to have multiple, at least | 04:58 |
dtruong | rm_work When you attach a policy, you get back an action ID. You have to check the action status for that action ID and make sure it’s succeeded. | 05:20 |
dtruong | If it’s still in ready or running state, you won’t be able to attach another policy | 05:20 |
rm_work | Ah hmm ok | 06:03 |
rm_work | I'll have to figure out how to do that | 06:03 |
sapd1 | dtruong, Have you tried to healing instances which are attached to a load balancer pool? | 06:29 |
sapd1 | in short I get the issue when recreate instance in cluster. | 06:30 |
sapd1 | step to reproduce 1. create a cluster size >= 1; 2. attach health policy - recreate instance; 3. attach a loadbalance policy; 4. delete an instance in cluster; | 06:30 |
sapd1 | So new instance will not be created in pool. because senlin cannot get profile of that instance. | 06:31 |
*** zigo has quit IRC | 08:27 | |
rm_work | ah, though apparently for THIS specific type, I can't do two: `Only one instance of policy type (senlin.policy.loadbalance-1.1) can be attached to a cluster, but another instance (b28fe955-c3de-4311-83c4-c6ef1063a1c7) is found attached to the cluster (1778e12c-7bda-4d59-8907-43d4f2b2761a) already. ` | 10:20 |
rm_work | but, waiting for "SUCCEEDED" status on the first action did make me get farther :D | 10:20 |
*** zigo has joined #senlin | 11:54 | |
*** altlogbot_1 has quit IRC | 12:32 | |
*** altlogbot_2 has joined #senlin | 12:40 | |
*** altlogbot_2 has quit IRC | 12:47 | |
*** altlogbot_3 has joined #senlin | 12:50 | |
*** altlogbot_3 has quit IRC | 13:24 | |
*** altlogbot_0 has joined #senlin | 13:34 | |
*** altlogbot_0 has quit IRC | 13:42 | |
*** altlogbot_2 has joined #senlin | 13:58 | |
*** hyang has joined #senlin | 18:37 | |
dtruong | sapd1 no, I have tried health policy with load balancing policy | 20:18 |
dtruong | What is the exact problem that you see? After the instance is recovered, it is not added back to the LB pool? | 20:18 |
dtruong | rm_work There is a blueprint for attaching multiple LB policies to the same cluster: https://blueprints.launchpad.net/senlin/+spec/senlin-cluster-multiple-lb-policies | 20:21 |
dtruong | This is the related patch set but it is still WIP: https://review.opendev.org/#/c/644474/ | 20:21 |
openstackgerrit | Merged openstack/python-senlinclient master: Dropping the py35 testing https://review.opendev.org/653054 | 21:22 |
rm_work | ok thanks dtruong | 23:04 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!