delphix / appliance-build

This repository contains the code used to build the Ubuntu-based Delphix Appliance, leveraging open-source tools such as Debian's live-build, Docker, Ansible, OpenZFS, and others.
Apache License 2.0
19 stars 41 forks source link

DLPX-90090 Update Ansible config to override DLPX_DEBUG to true for delphix-osadmin service in development engines #755

Closed simonlin-delphix closed 8 months ago

simonlin-delphix commented 8 months ago

Problem

To enable remote-debug in delphix-osadmin, we will introduce an environment DLPX_DEBUG in https://delphix.atlassian.net/browse/DLPX-90086 but the default value is false. We want to set it to true for development engines, just like what we have done for delphix-mgmt service.

Solution

- Update Ansible config to override DLPX_DEBUG to true for delphix-osadmin service in development engines

Testing Done

I manually verified this worked. ``` delphix@ip-10-110-225-246:/etc/systemd/system/delphix-osadmin.service.d$ sudo vim override.conf delphix@ip-10-110-225-246:/etc/systemd/system/delphix-osadmin.service.d$ cat override.conf [Service] Environment=DLPX_DEBUG=true $ sudo systemctl daemon-reload $ sudo systemctl restart delphix-osadmin $ systemctl show delphix-osadmin --property=Environment Environment=DLPX_DEBUG=true ``` Further testing can be found under PR https://github.com/delphix/dlpx-app-gate/pull/1899 git ab-pre-push: http://selfservice.jenkins.delphix.com/job/appliance-build-orchestrator-pre-push/8023/