Skip to content

Instantly share code, notes, and snippets.

@hash-d
Last active September 30, 2025 21:51
Show Gist options
  • Save hash-d/33c1186c9f91cb3311718a9ecdceeedd to your computer and use it in GitHub Desktop.
Save hash-d/33c1186c9f91cb3311718a9ecdceeedd to your computer and use it in GitHub Desktop.
asdf

#82: Site with spec.linkAccess: default causes site to be stuck in Pending state for system sites

https://github.com/skupperproject/skupper-ansible/issues/82

To run the test:

ansible-playbook -i SOME_IP, ./main.yaml -e skupper_platform=linux -vv
ansible-playbook -i SOME_IP, ./main.yaml -e skupper_platform=podman -vv -e link_access=default

Notice you can select platform and value of spec.linkAccess. Not setting it omits it on the resource.

System sites where linkAccess is omitted go to the status Ready; whenever it is set to default, they get stuck in Pending.

[defaults]
stdout_callback = yaml
---
- name: Test
hosts: all
gather_facts: no
tasks:
- name: Add the controller
skupper.v2.controller:
action: install
- name: Create site
skupper.v2.resource:
platform: "{{ skupper_platform }}"
namespace: asdf
state: latest
def:
apiVersion: skupper.io/v2alpha1
kind: Site
metadata:
name: asdf
namespace: asdf
spec:
linkAccess: "{{ link_access | default (omit) }}"
# add routeraccess
- name: Start the site
skupper.v2.system:
action: reload
namespace: asdf
platform: "{{ skupper_platform }}"
- name: Check status
ansible.builtin.shell:
cmd: skupper -n asdf -p {{ skupper_platform }} site status -o yaml
register: status
retries: 10
delay: 6
until: (status.stdout | from_yaml).status.status == "Ready"
- name: Show results
debug:
var: status
- name: Pause
ansible.builtin.pause:
when: skupper_platform != "kubernetes"
- name: Teardown
skupper.v2.system:
namespace: asdf
platform: "{{ skupper_platform }}"
action: stop
- name: Add the controller
skupper.v2.controller:
action: uninstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment