Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: How to Deploy an Instance via the OpenStack CLI
description: Find out how to deploy an OPCP instance via the OpenStack command-line interface by configuring networks, subnets, instances, and SSH keys
lastUpdated: 2026-06-16
lastUpdated: 2026-07-15
---

## Objective
Expand Down Expand Up @@ -343,6 +343,28 @@ You must ensure that the node is `Available` and has the required **traits** to

To check the current state of a node and retrieve its ID, you can consult our documentation: [OPCP Node Lifecycle](/guides/hosted-private-cloud/opcp/node-lifecycle).

#### Rebooting or Stopping an Instance

You can manage your instance's power state directly through the OpenStack API:

```bash
# Soft reboot
openstack server reboot $INSTANCE_ID

# Hard reboot
openstack server reboot --hard $INSTANCE_ID

# Stop the instance
openstack server stop $INSTANCE_ID

# Start the instance
openstack server start $INSTANCE_ID
```

:::warning
Rebooting or stopping an instance must always be done through the OpenStack API (or the Horizon interface), not from within the operating system using commands such as `systemctl reboot` or `systemctl poweroff`. An action performed directly from the OS is not propagated to OpenStack, which would continue to consider the instance as active, leaving it in an inconsistent state between its actual status and the one known by the platform.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest workaround would be to poweroff the node with ironic and poweron again so Ironic push the node into unlock_wait state

:::

#### Deleting an Instance

You can delete an instance with the following command:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Comment installer une instance depuis la CLI OpenStack
description: Découvrez comment déployer une instance OPCP via l'outil en ligne de commande OpenStack en configurant les réseaux, sous-réseaux, instances et clés SSH
lastUpdated: 2026-06-16
lastUpdated: 2026-07-15
---

## Objectif
Expand Down Expand Up @@ -345,6 +345,28 @@ Il faudra cependant vous assurer que le nœud a le statut `Available` et possèd

Pour vérifier l'état actuel du nœud et récupérer son identifiant, vous pouvez consultez notre documentation : [Cycle de vie d'un nœud OPCP](/guides/hosted-private-cloud/opcp/node-lifecycle).

#### Redémarrer ou arrêter une instance

Vous pouvez gérer l'alimentation de votre instance directement depuis les API OpenStack :

```bash
# Redémarrage logiciel (soft reboot)
openstack server reboot $INSTANCE_ID

# Redémarrage matériel (hard reboot)
openstack server reboot --hard $INSTANCE_ID

# Arrêter l'instance
openstack server stop $INSTANCE_ID

# Démarrer l'instance
openstack server start $INSTANCE_ID
```

:::warning
Le redémarrage ou l'arrêt d'une instance doit toujours être effectué depuis l'API OpenStack (ou l'interface Horizon), et non depuis le système d'exploitation via des commandes telles que `systemctl reboot` ou `systemctl poweroff`. Une action réalisée directement depuis l'OS n'est pas propagée à OpenStack, qui continuerait de considérer l'instance comme active : elle se retrouverait dans un état incohérent entre son statut réel et celui connu par la plateforme.
:::

#### Suppression d'une instance

Vous pouvez supprimer une instance grâce à la commande suivante :
Expand Down