temporal keeps running after maas is uninstalled and collects GB of logs every day

Bug #2057917 reported by Jacopo Rota
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Committed
High
Anton Troyanov
3.5
Fix Committed
High
Anton Troyanov

Bug Description

In 3.5.0 when MAAS deb is uninstalled temporal keeps running and collects GB of error logs every day

Related branches

Revision history for this message
Jerzy Husakowski (jhusakowski) wrote :

MAAS should remove Temporal configuration and stop it when MAAS is uninstalled. The user documentation needs to contain instructions on how to remove Temporal as well. Temporal installed by MAAS needs to be auto-removable.

Changed in maas:
importance: Medium → High
Changed in maas:
milestone: 3.5.0 → 3.6.0
Revision history for this message
Anton Troyanov (troyanov) wrote :
Download full text (3.6 KiB)

When installing MAAS as a meta-package
> sudo add-apt-repository -y ppa:maas/3.5-next && sudo apt update -y && sudo apt install -y maas

And then removing the metapackage things are indeed are not removed and Temporal Server will continue working because systemd Unit was installed as a part of `maas-region-api` package (debian/maas-region-api.maas-temporal.service) which by the way is listed for autoremove.

> sudo apt remove -y maas
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'maas' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  avahi-daemon avahi-utils bind9 bind9-utils curtin-common dbconfig-common dbconfig-pgsql dns-root-data fontconfig-config fonts-dejavu-core freeipmi-common
  freeipmi-tools grub-common ieee-data isc-dhcp-server javascript-common libavahi-client3 libavahi-common-data libavahi-common3 libavahi-core7 libc-ares2 libdaemon0
  libdbi-perl libdeflate0 libecap3 libfontconfig1 libfreeipmi17 libfreetype6 libgd3 libipmiconsole2 libipmidetect0 libirs-export161 libisccfg-export163 libjbig0
  libjpeg-turbo8 libjpeg8 libjs-jquery libltdl7 libnginx-mod-http-geoip2 libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail
  libnginx-mod-stream libnginx-mod-stream-geoip2 libnss-mdns libprotobuf32 libtdb1 libtiff5 libvirt-clients libvirt0 libwebp7 libxpm4 libyajl2 maas-agent maas-cli
  maas-common maas-dhcp maas-netmon maas-proxy maas-rack-controller maas-region-api maas-region-controller nginx-common nginx-core os-prober postgresql postgresql-client
  pxelinux python3-aiodns python3-aiofiles python3-aiohttp python3-aiosignal python3-anyio python3-asgiref python3-async-timeout python3-asyncpg python3-boto python3-bs4
  python3-bson python3-bson-ext python3-charset-normalizer python3-crochet python3-curtin python3-dateutil python3-decorator python3-django python3-django-maas
  python3-django-piston3 python3-dnspython python3-fastapi python3-formencode python3-frozenlist python3-greenlet python3-h11 python3-html5lib python3-hvac
  python3-iso8601 python3-itsdangerous python3-lxml python3-maas-client python3-maas-provisioningserver python3-macaroonbakery python3-mimeparse python3-multidict
  python3-nacl python3-netaddr python3-paramiko python3-pbr python3-petname python3-prettytable python3-prometheus-client python3-protobuf python3-psycopg2
  python3-pycares python3-pydantic python3-pyhcl python3-pylxd python3-pymacaroons python3-pypureomapi python3-pyvmomi python3-requests-toolbelt
  python3-requests-unixsocket python3-rfc3339 python3-seamicroclient python3-simplejson python3-simplestreams python3-sniffio python3-soupsieve python3-sqlalchemy
  python3-sqlparse python3-starlette python3-tempita python3-temporalio python3-txtftp python3-typeshed python3-typing-extensions python3-uvicorn python3-uvloop
  python3-wcwidth python3-webencodings python3-wrapt python3-ws4py python3-wsproto python3-yarl squid squid-common squid-langpack syslinux-common temporal

If doing autoremove (or when removing maas-region-api) we can see that Temporal is stopped and removed:
> sudo apt autoremove -y maas

Rem...

Read more...

Changed in maas:
assignee: nobody → Anton Troyanov (troyanov)
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.