# Unable to Generate Support Bundle From Non-Primary Masters

## Problem

* Attempting to generate a support bundle from secondary/non-primary master/controller nodes in a Self-Hosted control plane fails.

{% tabs %}
{% tab title="airctl gen-support-bundle" %}

```bash
failed to create k8s context: failed to build config: stat /etc/nodelet/airctl-mgmt/certs/admin.kubeconfig: no such file or directory failed to Parse Cluster Config: error opening bootstrap config file
```

{% endtab %}
{% endtabs %}

* If the first master is down or unavailable, it is **not possible to generate support bundles** from secondary masters.

## Environment

* Self-Hosted Private Cloud Director Virtualization - v2025.4 and Higher
* airctl

## Cause

* `airctl` utility requires the bootstrap configuration file `/opt/pf9/airctl/conf/nodelet-bootstrap-config.yaml` to generate support bundles for controller/master nodes.
* This file exists **only on the primary/first master node**.
* Secondary masters do not have this file, making support bundle generation from them impossible.

## Diagnostics

1. Attempt to generate support bundle from a secondary master.

{% tabs %}
{% tab title="Secondary/Tertiary Master Node" %}

```bash
$ sudo airctl gen-support-bundle --host-ips <secondary_master_ip> --config <config_file> --verbose
```

{% endtab %}
{% endtabs %}

2. Verify bootstrap config presence:

{% tabs %}
{% tab title="Secondary/Tertiary Master Node" %}

```bash
$ ls -l /opt/pf9/airctl/conf/nodelet-bootstrap-config.yaml
```

{% endtab %}
{% endtabs %}

## Resolution

1. Identify the first/primary master node by reviewing the `airctl-config.yaml` file. It consists of hosts section and an ordered list of master IPs. The first entry in the list is considered as the primary master and vice-versa.
2. SSH into the **first/master node**.
3. Run support bundle generation using `airctl` from the first master:

{% tabs %}
{% tab title="Primary Master" %}

```bash
$ sudo airctl gen-support-bundle --host-ips <all_master_ips> --config <config_file> --verbose
```

{% endtab %}
{% endtabs %}

{% hint style="warning" %}
**Warning**

If the first master is unavailable, generating support bundles from other masters is not possible. Restoration of the first master or Platform9 Support assistance will be required.
{% endhint %}

## Additional Information

Platform9 has raised an internal JIRA to implement functionality allowing support bundle generation **from any master node**, regardless of whether it is the primary or secondary master. **PCD-4580** to track the filed bug.
