---
name: "ocf_heartbeat_openstack-info"
section: "7"
platform: "linux"
package: "resource-agents"
version: "1:4.16.0-3+deb13u2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ocf_heartbeat_openstack-info"
---

# ocf\_heartbeat\_openstack-info(7)

Records various node attributes in the CIB

## NAME

ocf\_heartbeat\_openstack-info - Records various node attributes in the CIB

## SYNOPSIS

**openstack-info** \[start \| stop \| monitor \| meta-data \| validate-all\]

## DESCRIPTION

OCF resource agent to set attributes from Openstack instance details. It records (in the CIB) various attributes of a node. Sample output: openstack\_az : nova openstack\_flavor : c1.small openstack\_id : 60ac4343-5828-49b1-8aac-7c69b1417f31 openstack\_ports : 7960d889-9750-4160-bf41-c69a41ad72d9:96530d18-57a3-4718-af32-30f2a74c22a2,b0e55a06-bd75-468d-8baa-22cfeb65799f:a55ae917-8016-4b1e-8ffa-04311b9dc7d6

The layout of openstack\_ports is a comma-separated list of tuples "subnet\_id:port\_id".

## SUPPORTED PARAMETERS

**cloud**

Openstack cloud (from ~/.config/openstack/clouds.yaml or /etc/openstack/clouds.yaml).

(optional, string, no default)

**openrc**

Openstack credentials as openrc file from api\_access/openrc.

(optional, string, no default)

**auth\_url**

Keystone Auth URL

(optional, string, no default)

**username**

Username.

(optional, string, no default)

**password**

Password.

(optional, string, no default)

**project\_name**

Keystone Project.

(optional, string, no default)

**user\_domain\_name**

Keystone User Domain Name.

(optional, string, default "Default")

**project\_domain\_name**

Keystone Project Domain Name.

(optional, string, default "Default")

**openstackcli**

Path to command line tools for openstack.

(optional, string, default "/usr/bin/openstack")

**insecure**

Allow insecure connections

(optional, boolean, default false)

**pidfile**

PID file

(optional, string, default "/run/resource-agents/OSInfo-")

**delay**

Interval to allow values to stabilize

(optional, string, default "0")

**curlcli**

Path to command line cURL binary.

(optional, string, default "/usr/bin/curl")

**pythoncli**

Path to command line Python interpreter.

(optional, string, default "/usr/bin/python3")

## SUPPORTED ACTIONS

This resource agent supports the following actions (operations):

**start**

Starts the resource. Suggested minimum timeout: 180s.

**stop**

Stops the resource. Suggested minimum timeout: 180s.

**monitor**

Performs a detailed status check. Suggested minimum timeout: 180s. Suggested interval: 60s.

**meta-data**

Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s.

**validate-all**

Performs a validation of the resource configuration. Suggested minimum timeout: 20s.

## EXAMPLE CRM SHELL

The following is an example configuration for a openstack-info resource using the [**crm**(8)](/crm/8.md) shell:

```
primitive p_openstack-info ocf:heartbeat:openstack-info \
  op monitor timeout="180s" interval="60s"
```

## EXAMPLE PCS

The following is an example configuration for a openstack-info resource using [**pcs**(8)](/pcs/8.md)

```
pcs resource create p_openstack-info ocf:heartbeat:openstack-info \
  op monitor timeout="180s" interval="60s"
```

## SEE ALSO

**http://clusterlabs.org/**

## AUTHOR

**ClusterLabs contributors (see the resource agent source for information about individual authors)**
