OpenStack TrainをRDOのall in oneで構築してみた(詳細)

実際に構築した際の手順をメモ。

試行錯誤あったけどドキュメント通りやればできると思われる。

環境詳細

OS:Centos 8.2

OpenStack Train *1

OpenStack構成:1ノード構成(all in one)

ストレージ:LVM(つまりceph無し構成)

NIC:eth1

IP:192.168.24.2

手順抜粋
$sudo hostnamectl set-hostname standalone.localdomain
$sudo hostnamectl set-hostname standalone.localdomain --transient

#パッケージ取得
$sudo dnf install -y https://trunk.rdoproject.org/centos8/component/tripleo/current/python3-tripleo-repos-.el8.noarch.rpm
#versionはその時の最新版を指定

$
sudo yum install -y python3-tripleoclient
$openstack tripleo container image prepare default \
--output-env-file $HOME/containers-prepare-parameters.yaml

#IP指定
$export IP=192.168.24.2 $export NETMASK=24 $export INTERFACE=eth1

#config生成
$cat <<EOF > $HOME/standalone_parameters.yaml parameter_defaults: CloudName: $IP ControlPlaneStaticRoutes: [] Debug: true DeploymentUser: $USER DnsServers: - 1.1.1.1 - 8.8.8.8 DockerInsecureRegistryAddress: - $IP:8787 NeutronPublicInterface: $INTERFACE # domain name used by the host NeutronDnsDomain: localdomain # re-use ctlplane bridge for public net, defined in the standalone # net config (do not change unless you know what you're doing) NeutronBridgeMappings: datacentre:br-ctlplane NeutronPhysicalBridge: br-ctlplane # enable to force metadata for public net #NeutronEnableForceMetadata: true StandaloneEnableRoutedNetworks: false StandaloneHomeDir: $HOME InterfaceLocalMtu: 1500 # Needed if running in a VM, not needed if on baremetal NovaComputeLibvirtType: qemu EOF
#デプロイ
$
sudo openstack tripleo deploy \ --templates \ --local-ip=$IP/$NETMASK \ -e /usr/share/openstack-tripleo-heat-templates/environments/standalone/standalone-tripleo.yaml \ -r /usr/share/openstack-tripleo-heat-templates/roles/Standalone.yaml \ -e $HOME/containers-prepare-parameters.yaml \ -e $HOME/standalone_parameters.yaml \ --output-dir $HOME \ --standalone
これで、上手くいけば、一旦構築完了。

*1:OpenStack Train RHOSP16と考えて選定