Skip to content

Instantly share code, notes, and snippets.

@hash-d
Last active May 6, 2026 18:20
Show Gist options
  • Select an option

  • Save hash-d/3dd66e5d10dd262ad91336df97575445 to your computer and use it in GitHub Desktop.

Select an option

Save hash-d/3dd66e5d10dd262ad91336df97575445 to your computer and use it in GitHub Desktop.
- name: Reproducer for https://github.com/skupperproject/skupper-ansible/issues/95
hosts: all
gather_facts: no
tasks:
- name: Create site
skupper.v2.resource:
namespace: issue-95
platform: "{{ sk_platform | default ('linux') }}"
def: |
apiVersion: skupper.io/v2alpha1
kind: Site
metadata:
name: issue-95
namespace: issue-95
spec:
linkAccess: default
- name: Start it
skupper.v2.system:
action: start
namespace: issue-95
platform: "{{ sk_platform | default ('linux') }}"
- name: Run ps before reload
ansible.builtin.command: ps -fC skrouterd
register: before
- ansible.builtin.debug:
var: before
- name: Pause to make sure ps output differs
ansible.builtin.pause:
minutes: 1
- name: Create some bogus resource, just to justify the reload
skupper.v2.resource:
platform: "{{ sk_platform | default ('linux') }}"
namespace: issue-95
def: |
apiVersion: skupper.io/v2alpha1
kind: Listener
metadata:
name: backend
namespace: issue-95
spec:
routingKey: backend
host: localhost
port: 8080
- name: Reload
skupper.v2.system:
action: reload
namespace: issue-95
platform: "{{ sk_platform | default ('linux') }}"
- name: Run ps after reload
ansible.builtin.command: ps -fC skrouterd
register: final
- ansible.builtin.debug:
var: final

Reproducer for skupper-ansible #95

First, check how it looks with platform=podman:

ansible-playbook -i /tmp/inv.yaml 95.yaml -e sk_platform=podman

Then, compare when running with platform=linux:

ansible-playbook -i /tmp/inv.yaml 95.yaml

Notice that the container is restarted for podman, whereas the system process is not restarted for platform=linux (PID and start time remain the same)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment