Skip to content

Commit 0a76809

Browse files
committed
debug vault daemon in CI
1 parent ba8a0dd commit 0a76809

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/build_and_test.yaml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,17 @@ jobs:
1919
include:
2020
- python-version-short: "3.9"
2121
python-version: 3.9.21
22+
consul-version: "1.22.7-1"
2223
vault-version: "2.0.0-1"
2324
hvac-gh-tag: "v2.4.0"
2425
- python-version-short: "3.10"
2526
python-version: 3.10.16
27+
consul-version: "1.22.7-1"
2628
vault-version: "2.0.0-1"
2729
hvac-gh-tag: "v2.4.0"
2830
- python-version-short: "3.11"
2931
python-version: 3.11.11
32+
consul-version: "1.22.7-1"
3033
vault-version: "2.0.0-1"
3134
hvac-gh-tag: "v2.4.0"
3235
steps:
@@ -68,13 +71,23 @@ jobs:
6871
-o APT::Get::List-Cleanup="0" \
6972
-o Dir::Etc::sourcelist="sources.list.d/hashicorp.list"
7073
71-
sudo apt install consul vault=${{ matrix.vault-version }}
74+
sudo apt install consul=${{ matrix.consul-version }} vault=${{ matrix.vault-version }}
7275
7376
# We disble cap_ipc_lock here as its generally incompatabile with GitHub
7477
# Actions' runtime environments.
7578
sudo setcap cap_ipc_lock= /usr/bin/vault
76-
sudo systemctl restart consul vault
77-
sudo systemctl status consul vault
79+
sudo tee /etc/consul.d/bind_addr.conf <<<'bind_addr = "127.0.0.1"'
80+
sudo systemctl cat consul.service
81+
echo CONSUL CONF
82+
sudo cat /etc/consul.conf || true
83+
sudo cat /etc/consul.env || true
84+
echo CONSUL CONF DIR
85+
sudo cat /etc/consul.conf.d/*
86+
sudo systemctl restart consul || true
87+
sudo journalctl -eu consul
88+
# force stop here for debug
89+
exit 1
90+
sudo systemctl restart vault
7891
7992
- name: Setup hvac symlinks
8093
shell: bash

0 commit comments

Comments
 (0)