Notes OpenStack Nova

Install

Voir https://docs.openstack.org/nova/latest/install/

Sur le controller

CREATE ROLE novauser WITH LOGIN PASSWORD 'toor'; CREATE DATABASE nova OWNER novauser ; CREATE DATABASE nova_api OWNER novauser ; CREATE DATABASE nova_cell0 OWNER novauser ;
openstack user create --domain default --password-prompt nova openstack role add --project service --user nova admin openstack service create --name nova --description "OpenStack Compute" compute openstack endpoint create --region RegionOne compute public http://controller:8774/v2.1

Sur les noeuds

yum install epel-release yum install centos-release-openstack-rocky yum install openstack-nova-api openstack-nova-conductor openstack-nova-novncproxy openstack-nova-scheduler openstack-nova-cert openstack-nova-console

Autres

Status

source openrc nova service-list
openstack server list --name vm1 openstack server show vm1 nova reboot --hard vm1 openstack server list --status SHUTOFF -f value -c ID journalctl -u "devstack@c-*" -f
USE nova_cell1; SELECT * FROM instances WHERE hostname='vm1' \G ;