当前位置: 代码迷 >> 综合 >> Install OpenStack on MAAS Nodes (by quqi99)
  详细解决方案

Install OpenStack on MAAS Nodes (by quqi99)

热度:26   发布时间:2023-12-13 09:14:15.0

作者:张华 发表于:2016-11-09
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明
( http://blog.csdn.net/quqi99 )

1, Prepare MAAS Nodes

sudo apt-get install -y maas-cli
echo '<key-in-<MAASIP>/MAAS/r/account/prefs/api-keys>' > ~/maas-apikey
maas login admin http://10.230.56.2/MAAS `cat ~/maas-apikey`
maas admin tags read# https://juju.is/docs/maas-cloud
sudo bash -c 'cat > /tmp/mymmas.yaml' << EOF
clouds:mymmas:type: maasauth-types: [oauth1]endpoint: http://<MAASIP>/MAAS
EOF
juju remove-cloud --local mymmas
juju add-cloud --local mymmas /tmp/mymmas.yaml
juju list-clouds
juju show-cloud mymmas --local
sudo bash -c 'cat > /tmp/credential.yaml' << EOF
credentials:mymmas:zhhuabj:auth-type: oauth1maas-oauth: <key-in-<MAASIP>/MAAS/r/account/prefs/api-keys>
EOF
juju remove-credential --local mymmas zhhuabj
juju add-credential --local mymmas -f /tmp/credential.yaml
juju credentials --local
juju show-credential --local mymmas zhhuabj
cat ~/.local/share/juju/credentials.yamljuju bootstrap --debug segmaas --no-gui --config image-stream=daily --config default-series=focal --constraints="tags=virtual"
# hit this error https://discourse.maas.io/t/bootstrap-instance-started-but-did-not-change-to-deployed-state-instance-8epqeq-failed-to-deploy/2237/3
# workaround for above issue, 
# first change rootfs to use lvm for the virutal host z-rotomvm14, then add a tag 'z-rotomvm14' for it as well
# finnally use the following two tags to try this host again.
juju bootstrap --debug segmaas --no-gui --config image-stream=daily --config default-series=focal --constraints="tags=virtual,z-rotomvm14"
this is the bug - https://bugs.launchpad.net/curtin/+bug/1876258
series:                     &series                    bionic
debug:                      &debug                     True
verbose:                    &verbose                   True
openstack_origin:           &openstack_origin          cloud:bionic-ussuri          
source:                     &source                    cloud:bionic-ussuri                 machines:'0':constraints: "tags=shuckle"series: *series'1':constraints: "tags=virtual"series: *seriesseries: *series
applications:ntp:charm: cs:ntpnum_units: 0mysql:charm: cs:~openstack-char
  相关解决方案