Skip to content

Commit aaea1ba

Browse files
committed
DLPX-74859 Stack fails to come up for GCP engines because delphix-platform service failed
1 parent c299666 commit aaea1ba

File tree

2 files changed

+14
-15
lines changed
  • files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform

2 files changed

+14
-15
lines changed

files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/handlers/main.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717

1818
---
1919
#
20-
# Apply any changes made to the override instance config file. This
20+
# Apply any changes made to the instance config file. This
2121
# can only be done when we're on a running gcp instance.
2222
#
23-
- command: /usr/bin/google_instance_setup
23+
- systemd:
24+
name: google-guest-agent
25+
state: restarted
2426
listen: "gcp config changed"
2527
when: ansible_virtualization_type != "systemd-nspawn" and not ansible_is_chroot

files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks/main.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,18 @@
301301
when: platform == "azure"
302302

303303
#
304-
# Customize the GCP linux environment.
305-
#
306-
# Update the override file for the GCP instance. This file gets
307-
# applied dynamically by running google_instance_setup script.
304+
# Customize the GCP linux environment. We remove any old template
305+
# and configuration files if they exist.
308306
#
307+
- file:
308+
path: "{{ item }}"
309+
state: absent
310+
with_items:
311+
- /etc/default/instance_configs.cfg.template
312+
- /etc/default/instance_configs.cfg
313+
309314
- blockinfile:
310-
path: /etc/default/instance_configs.cfg.template
315+
path: /etc/default/instance_configs.cfg
311316
create: yes
312317
block: |
313318
#
@@ -328,14 +333,6 @@
328333
- platform == "gcp"
329334
notify: "gcp config changed"
330335

331-
#
332-
# Make sure that the account daemon is always disabled. The override file
333-
# above should prevent this and this is designed to catch any corner cases.
334-
#
335-
- command: systemctl disable google-accounts-daemon.service
336-
when:
337-
- platform == "gcp"
338-
339336
#
340337
# We want the ssh service to start as early as possible during boot up,
341338
# so we explicitly remove all dependencies of the service here. We've

0 commit comments

Comments
 (0)