OpenStack
Create an external network
The play network-external is available and usable as of OSISM 7.0.6.
osism apply network-external
Available parameters for the OpenStack Environment (environments/openstack/configuration.yml).
| Parameter | Default | 
|---|---|
| network_external_allocation_pool_end | "192.168.112.200" | 
| network_external_allocation_pool_start | "192.168.112.100" | 
| network_external_cidr | "192.168.112.0/20" | 
| network_external_cloud | admin | 
| network_external_gateway_ip | "192.168.112.5" | 
| network_external_name | public | 
| network_external_provider_network_type | flat | 
| network_external_provider_physical_network | physnet1 | 
| network_external_state | present | 
Reboot a compute node
- 
Live migrate all instances running on the compute node with the help of the OpenStack Resource Manager
 - 
Ensure that no more instances are running on the compute node
ps ax | grep qemu - 
Reboot the compute node
osism apply reboot -l NODE -e ireallymeanit=yes - 
Wait for the compute node to reboot
 - 
Re-enable the compute service
openstack --os-cloud admin compute service set --enable --disable-reason "" NODE nova-compute - 
Check compute service
openstack --os-cloud admin compute service list --host NODE --service nova-compute 
Add a new compute node
- 
Add the operater user
osism apply operator -u osism -l NODE - 
Run the bootstrap
osism apply bootstrap -l NODE - 
When a routed network fabric is used deploy the FRR service (optional)
osism apply frr -l NODE - 
Deploy logging service and Prometheus exporters
osism apply common -l NODE
osism apply prometheus -l NODE
osism apply scaphandre -l NODE - 
Deploy network services
osism apply openvswitch -l NODE
osism apply ovn -l NODE
osism apply neutron -l NODEIf you do not use the OVN SDN skip
osism apply ovn -l NODE. - 
Deploy compute services
osism apply nova -l NODE - 
Deploy telemetry services (optional)
osism apply ceilometer -l NODE - 
Deploy Netdata service (optional)
osism apply netdata -l NODE - 
Add compute node to Prometheus monitoring
osism apply prometheus -l monitoring - 
Refresh the
/etc/hostsfileosism apply hosts - 
Refresh the SSH client configuration file
osism apply sshconfig - 
Add compute node to the known hosts file
osism apply known-hosts 
Containers that run on a compute node. Versions may differ. There is no ceilometer_compute container
if you have not deployed the optional OpenStack telemetry service.
$ docker ps
CONTAINER ID   IMAGE                                                      COMMAND                  CREATED         STATUS                   PORTS                         NAMES
559e5176695c   quay.io/osism/nova-compute:27.1.1.20230919                 "dumb-init --single-…"   5 minutes ago   Up 5 minutes (healthy)                                 nova_compute
31248d71ab7d   quay.io/osism/nova-libvirt:8.0.0.20230919                  "dumb-init --single-…"   6 minutes ago   Up 6 minutes (healthy)                                 nova_libvirt
9292030d706c   quay.io/osism/nova-ssh:27.1.1.20230919                     "dumb-init --single-…"   6 minutes ago   Up 6 minutes (healthy)                                 nova_ssh
fda4b6fb30c8   quay.io/osism/neutron-metadata-agent:22.0.3.20230919       "dumb-init --single-…"   2 hours ago     Up 2 hours (healthy)                                   neutron_ovn_metadata_agent
0e3ec450b668   quay.io/osism/ceilometer-compute:20.0.1.20230919           "dumb-init --single-…"   6 hours ago     Up 6 hours (healthy)                                   ceilometer_compute
25ff9702e0e5   quay.io/osism/prometheus-libvirt-exporter:6.0.0.20230919   "dumb-init --single-…"   6 hours ago     Up 6 hours                                             prometheus_libvirt_exporter
1bff2e29923b   quay.io/osism/prometheus-cadvisor:0.45.0.20230919          "dumb-init --single-…"   6 hours ago     Up 6 hours                                             prometheus_cadvisor
602832daf237   quay.io/osism/prometheus-node-exporter:1.4.0.20230919      "dumb-init --single-…"   6 hours ago     Up 6 hours                                             prometheus_node_exporter
d4de2f32cdf8   quay.io/osism/ovn-controller:23.6.1.20230919               "dumb-init --single-…"   6 hours ago     Up 6 hours                                             ovn_controller
3bf43ae5a94f   quay.io/osism/openvswitch-vswitchd:3.1.2.20230919          "dumb-init --single-…"   7 hours ago     Up 7 hours (healthy)                                   openvswitch_vswitchd
ebc048b02ab2   quay.io/osism/openvswitch-db-server:3.1.2.20230919         "dumb-init --single-…"   7 hours ago     Up 7 hours (healthy)                                   openvswitch_db
4f33dfa66c14   hubblo/scaphandre:0.5.0                                    "scaphandre promethe…"   7 hours ago     Up 7 hours               10.10.129.64:9155->8080/tcp   scaphandre
9b1f6342dc60   quay.io/osism/cron:3.0.20230919                            "dumb-init --single-…"   7 hours ago     Up 7 hours                                             cron
718aecaddde1   quay.io/osism/kolla-toolbox:16.1.1.20230919                "dumb-init --single-…"   7 hours ago     Up 7 hours                                             kolla_toolbox
f6f9422c1853   quay.io/osism/fluentd:4.5.1.20230919                       "dumb-init --single-…"   7 hours ago     Up 7 hours                                             fluentd
Remove a compute node
- 
In the configuration repository remove the compute node everywhere. Then update the configuration repository on the manager with
osism apply configuration - 
Live migrate all instances running on the compute node with the help of the OpenStack Resource Manager
 - 
Evacuate all instances on the compute node with the help of the OpenStack Resource Manager
 - 
Ensure that no more instances are running on the compute node
ps ax | grep qemu - 
Stop all OpenStack compute services on the compute node
systemctl stop kolla-nova_ssh-container.service
systemctl stop kolla-nova_libvirt-container.service
systemctl stop kolla-nova_compute-container.service - 
Delete the compute service
$ openstack --os-cloud admin compute service list --host NODE
+--------------------------------------+----------------+---------+----------+----------+-------+----------------------------+
| ID | Binary | Host | Zone | Status | State | Updated At |
+--------------------------------------+----------------+---------+----------+----------+-------+----------------------------+
| 90345eb5-cf2f-47ef-becc-758ee36fb132 | nova-compute | NODE | nova | enabled | down | 2023-12-21T11:53:00.000000 |
+--------------------------------------+----------------+---------+----------+----------+-------+----------------------------+$ openstack --os-cloud admin compute service delete 90345eb5-cf2f-47ef-becc-758ee36fb132 - 
Stop all OpenStack network services on the compute node
systemctl stop kolla-neutron_ovn_metadata_agent-container.service
systemctl stop kolla-ovn_controller-container.service - 
Delete the network services
$ openstack --os-cloud admin network agent list --host NODE
+--------------------------------------+----------------------+---------+-------------------+-------+-------+----------------------------+
| ID | Agent Type | Host | Availability Zone | Alive | State | Binary |
+--------------------------------------+----------------------+---------+-------------------+-------+-------+----------------------------+
| 0a5708ea-ba8b-5fde-8187-c6b24d3cf5ed | OVN Metadata agent | NODE | | :-) | UP | neutron-ovn-metadata-agent |
| NODE | OVN Controller agent | NODE | | :-) | UP | ovn-controller |
+--------------------------------------+----------------------+---------+-------------------+-------+-------+----------------------------+
$ openstack --os-cloud admin network agent delete 0a5708ea-ba8b-5fde-8187-c6b24d3cf5ed
$ openstack --os-cloud admin network agent delete NODE - 
Refresh the facts
osism apply facts - 
Refresh the
/etc/hostsfileosism apply hosts - 
Refresh the SSH client configuration file
osism apply sshconfig - 
Remove compute node from Prometheus monitoring
osism apply prometheus -l monitoring - 
Remove compute node from the known hosts file
osism apply known-hosts