# LB Agent running with no stack deployed

**URL:** <https://forums.suse.com/t/lb-agent-running-with-no-stack-deployed/636>\
**Category:** Rancher 1.x\
**Created:** [October 5, 2015, 5:34pm UTC](https://forums.suse.com/t/lb-agent-running-with-no-stack-deployed/636 "2015-10-05T17:34:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdlarsen](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@sdlarsen](https://forums.suse.com/u/sdlarsen)\
**Post date:** [October 5, 2015, 5:34pm UTC](https://forums.suse.com/t/lb-agent-running-with-no-stack-deployed/636/1 "2015-10-05T17:34:52Z")

</div>

Removing all stacks from the cluster leaves one LB Agent running. Can’t kill it - it will get re-spawned as if it’s a left-over from and older deployment. How do I get rid of it?

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [October 5, 2015, 7:43pm UTC](https://forums.suse.com/t/lb-agent-running-with-no-stack-deployed/636/2 "2015-10-05T19:43:20Z")

</div>

Use the API to view the container. From the container, look at the service it’s associated with and use the API to delete the service. This should stop the containers from respawning.

Before you delete the service, can you share the state of the service?

---

<div class="post-metadata">

**Author:** ![sdlarsen](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@sdlarsen](https://forums.suse.com/u/sdlarsen)\
**Post date:** [October 5, 2015, 7:47pm UTC](https://forums.suse.com/t/lb-agent-running-with-no-stack-deployed/636/3 "2015-10-05T19:47:42Z")

</div>

Hi. Thank you for answering.  
The service looks like this:

```
{"id": "1s39","type": "loadBalancerService","links": {"self": "…/v1/projects/1a5/loadbalancerservices/1s39","account": "…/v1/projects/1a5/loadbalancerservices/1s39/account","consumedbyservices": "…/v1/projects/1a5/loadbalancerservices/1s39/consumedbyservices","consumedservices": "…/v1/projects/1a5/loadbalancerservices/1s39/consumedservices","environment": "…/v1/projects/1a5/loadbalancerservices/1s39/environment","instances": "…/v1/projects/1a5/loadbalancerservices/1s39/instances","loadBalancerConfigs": "…/v1/projects/1a5/loadbalancerservices/1s39/loadbalancerconfigs","loadBalancerListeners": "…/v1/projects/1a5/loadbalancerservices/1s39/loadbalancerlisteners","loadBalancers": "…/v1/projects/1a5/loadbalancerservices/1s39/loadbalancers","serviceExposeMaps": "…/v1/projects/1a5/loadbalancerservices/1s39/serviceexposemaps",},"actions": {"upgrade": "…/v1/projects/1a5/loadbalancerservices/1s39/?action=upgrade","update": "…/v1/projects/1a5/loadbalancerservices/1s39/?action=update","remove": "…/v1/projects/1a5/loadbalancerservices/1s39/?action=remove","setservicelinks": "…/v1/projects/1a5/loadbalancerservices/1s39/?action=setservicelinks","removeservicelink": "…/v1/projects/1a5/loadbalancerservices/1s39/?action=removeservicelink","addservicelink": "…/v1/projects/1a5/loadbalancerservices/1s39/?action=addservicelink","deactivate": "…/v1/projects/1a5/loadbalancerservices/1s39/?action=deactivate",},"name": "webapp-lb","state": "active","accountId": "1a5","certificateIds": null,"created": "2015-10-05T14:16:24Z","createdTS": 1444054584000,"defaultCertificateId": null,"description": null,"environmentId": "1e15","kind": "loadBalancerService","launchConfig": {"logConfig": { },"networkMode": "managed","ports": ["80:6543",],"restartPolicy": {"name": "always",},"stdinOpen": true,"tty": true,"privileged": false,"publishAllPorts": false,"readOnly": false,"startOnCreate": true,},"loadBalancerConfig": {"name": "webapp-lb config",},"metadata": null,"removed": null,"scale": 1,"transitioning": "no","transitioningMessage": null,"transitioningProgress": null,"upgrade": null,"uuid": "91e6e4d4-0666-4141-aabb-b35a8d65c78a","vip": "169.254.76.44",}
```

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [October 5, 2015, 7:48pm UTC](https://forums.suse.com/t/lb-agent-running-with-no-stack-deployed/636/4 "2015-10-05T19:48:53Z")

</div>

The state of the service is `Active` which is why it keeps respawning.

Can you remove the service using the API?

---

<div class="post-metadata">

**Author:** ![sdlarsen](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@sdlarsen](https://forums.suse.com/u/sdlarsen)\
**Post date:** [October 5, 2015, 7:51pm UTC](https://forums.suse.com/t/lb-agent-running-with-no-stack-deployed/636/5 "2015-10-05T19:51:02Z")

</div>

Yes, removing the service using the API worked - thanks!

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [October 5, 2015, 7:52pm UTC](https://forums.suse.com/t/lb-agent-running-with-no-stack-deployed/636/6 "2015-10-05T19:52:06Z")

</div>

Closed on October 5, 2015, 7:52pm UTC


