> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/o/openstack.md).

# Openstack

Openstack is an open source cloud platform. OctoXLabs uses it to add compute instances (servers) to the inventory.

## Use cases

* List Openstack instances that were updated recently.

```
Adapters = openstack AND LastSeen last now-7d/d
```

* Find instances that exist in Openstack but are missing from your endpoint security tool.

```
Adapters = openstack AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

| Source              | Destination                                                       | Port                   | Protocol      |
| ------------------- | ----------------------------------------------------------------- | ---------------------- | ------------- |
| OctoXLabs connector | Openstack Identity (Keystone) API                                 | 443 (configurable)     | HTTPS         |
| OctoXLabs connector | Openstack Compute (Nova) public endpoint from the service catalog | Depends on the catalog | HTTP or HTTPS |

### Required permissions

| Scope or role                    | Permission                                                     | Needed for                            |
| -------------------------------- | -------------------------------------------------------------- | ------------------------------------- |
| Member of the configured project | Authenticate and list projects of the user                     | Devices                               |
| Compute read access              | List servers (`/servers/detail`)                               | Devices                               |
| System admin role (optional)     | Authenticate with system scope and list servers of all tenants | Devices, when **Is Admin User** is on |

## Create credentials in Openstack

{% stepper %}
{% step %}

### Pick an account

Use an Openstack account that can read compute servers in the project you want to collect.
{% endstep %}

{% step %}

### Note the project and domain

Note the project name and the domain in which the project is defined. If the user belongs to other projects in the same domain, servers from all of them are collected.
{% endstep %}

{% step %}

### Optional: use an admin account

For a system admin account, turn on **Is Admin User**. OctoXLabs then lists servers across all tenants.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type    | Default | Description                                                                |
| ------------- | -------- | ------- | ------- | -------------------------------------------------------------------------- |
| IP            | Yes      | String  |         | IP address of the Openstack instance.                                      |
| Port          | No       | Integer | 443     | Port number.                                                               |
| Username      | Yes      | String  |         | Account used to connect.                                                   |
| Password      | Yes      | String  |         | Password of the account.                                                   |
| Project Name  | Yes      | String  |         | Project to access.                                                         |
| Domain Name   | Yes      | String  |         | Domain under which the project is defined.                                 |
| Proxy         | No       | String  |         | Proxy address. The connector sends traffic through it as `http://<proxy>`. |
| Is Admin User | No       | Boolean | False   | Turn on if the account has the System Admin role.                          |
| Is Secure     | No       | Boolean | True    | Use HTTPS.                                                                 |
| Timeout       | No       | Integer | 30      | Seconds to wait for API responses.                                         |

## Troubleshooting

| Error message                                                             | Cause                                                               | Fix                                                                        |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| Failed to fetch token:                                                    | Keystone rejected the credentials or the project scope.             | Check username, password, project name and domain name.                    |
| Project name and domain ID are required for token refresh on 401 response | A request returned 401 or 403 and the token could not be refreshed. | Check that the account still has access to the project.                    |
| Failed to fetch devices:                                                  | The server list call failed.                                        | Check compute permissions and the compute endpoint in the service catalog. |
| Failed to fetch user projects:                                            | The project list call failed.                                       | Check that the user can list its own projects.                             |

## Change history

{% hint style="info" %}
Available starting from version 5.5.2.
{% endhint %}
