lost and found ( for me ? )

deploy OpenStack with Ubuntu Autopilot

Here are logs when I set up OpenStack with Ubuntu Autopilot.

Reference
https://www.ubuntu.com/download/cloud/autopilot

MAAS Server : Trusty ( not Xenial ) which is running as an LXD container.
MAAS Version 1.9.4+bzr4592-0ubuntu1 (14.04.1)

All nodes managed by MAAS have two NICs and two HDDs.

Network setting of MAAS nodes.
eth0 : PXE network ( auto assign )
eth1 : public network ( unconfigured )

Assume you already finished step 5. ( Register your hardware with MAAS)


root@maas-trusty:~# juju genrate-config

eidt environments.yaml
root@maas-trusty:~/.juju# pwd
/root/.juju

root@maas-trusty:~/.juju# ls
environments  environments.yaml  ssh

   maas:
       type: maas
       maas-server: 'http://192.168.100.10/MAAS/'
       maas-oauth: 'credentials'
       bootstrap-timeout: 1800

# export JUJU_ENV=maas
#JUJU_BOOTSTRAP_TO=m-bootstrap01.maas openstack-install

Bootstrap autopilot.


login into Autopilot

Go to Openstack tab and click “Configure”

Select components you want to install

Open vSwitch configuration.


At least, select three nodes.
I selected four nodes. click “Autopilot placement”

Click “install”



Installing..

MAAS GUI

Complete





Resource usage of each node.

Manage processes on each node.


Juju
Reference
http://askubuntu.com/questions/597979/landscape-openstack-juju-management
root@maas-trusty:~# export JUJU_HOME=~/.cloud-install/juju

root@maas-trusty:~# juju status --format short

- haproxy/0: 192.168.100.33 (started) 80/tcp, 443/tcp, 10000/tcp
- landscape-server/0: 192.168.100.35 (started)
- postgresql/0: 192.168.100.36 (started) 5432/tcp
- rabbitmq-server/0: 192.168.100.34 (started) 5672/tcp

root@maas-trusty:~# juju ssh landscape-server/0 sudo 'JUJU_HOME=/var/lib/landscape/juju-homes/`sudo ls -rt /var/lib/landscape/juju-homes/ | tail -1` sudo -u landscape -E bash'

landscape@juju-machine-0-lxc-1:~$ juju status --format short

- base-machine/0: m-node01.maas (started)
 - landscape-client/1: m-node01.maas (started)
 - ntp/0: m-node01.maas (started)
- base-machine/1: m-node04.maas (started)
 - landscape-client/10: m-node04.maas (started)
 - ntp/1: m-node04.maas (started)
- base-machine/2: m-node02.maas (started)
 - landscape-client/12: m-node02.maas (started)
 - ntp/3: m-node02.maas (started)
- base-machine/3: m-node03.maas (started)
 - landscape-client/11: m-node03.maas (started)
 - ntp/2: m-node03.maas (started)
- ceilometer/0: 192.168.100.42 (started) 8777/tcp
 - landscape-client/7: 192.168.100.42 (started)
- ceph-mon/0: 192.168.100.50 (started)
 - landscape-client/21: 192.168.100.50 (started)
- ceph-mon/1: 192.168.100.48 (started)
 - landscape-client/18: 192.168.100.48 (started)
- ceph-mon/2: 192.168.100.57 (started)
 - landscape-client/17: 192.168.100.57 (started)
- ceph-osd/0: m-node01.maas (started)
 - landscape-client/0: m-node01.maas (started)
- ceph-osd/1: m-node02.maas (started)
 - landscape-client/2: m-node02.maas (started)
- ceph-osd/2: m-node04.maas (started)
 - landscape-client/3: m-node04.maas (started)
- ceph-osd/3: m-node03.maas (started)
 - landscape-client/4: m-node03.maas (started)
- ceph-radosgw/0: 192.168.100.41 (started) 80/tcp
 - landscape-client/5: 192.168.100.41 (started)
- cinder/0: 192.168.100.51 (started) 8776/tcp
 - landscape-client/23: 192.168.100.51 (started)
- glance/0: 192.168.100.54 (started) 9292/tcp
 - landscape-client/24: 192.168.100.54 (started)
- glance-simplestreams-sync/0: 192.168.100.53 (started)
 - landscape-client/20: 192.168.100.53 (started)
- keystone/0: 192.168.100.40 (started) 5000/tcp
 - landscape-client/8: 192.168.100.40 (started)
- mongodb/0: 192.168.100.46 (started) 27017/tcp, 27019/tcp, 27021/tcp, 28017/tcp
 - landscape-client/19: 192.168.100.46 (started)
- mysql/0: 192.168.100.52 (started)
 - landscape-client/27: 192.168.100.52 (started)
- neutron-api/0: 192.168.100.49 (started) 9696/tcp
 - landscape-client/22: 192.168.100.49 (started)
- neutron-gateway/0: m-node01.maas (started)
 - landscape-client/6: m-node01.maas (started)
- nova-cloud-controller/0: 192.168.100.39 (started) 8774/tcp
 - landscape-client/9: 192.168.100.39 (started)
- nova-compute-kvm/0: m-node02.maas (started)
 - ceilometer-agent/2: m-node02.maas (started)
 - landscape-client/15: m-node02.maas (started)
 - neutron-openvswitch/2: m-node02.maas (started)
- nova-compute-kvm/1: m-node03.maas (started)
 - ceilometer-agent/1: m-node03.maas (started)
 - landscape-client/14: m-node03.maas (started)
 - neutron-openvswitch/1: m-node03.maas (started)
- nova-compute-kvm/2: m-node04.maas (started)
 - ceilometer-agent/0: m-node04.maas (started)
 - landscape-client/13: m-node04.maas (started)
 - neutron-openvswitch/0: m-node04.maas (started)
- ntpmaster/0: 192.168.100.55 (started) 123/udp
 - landscape-client/16: 192.168.100.55 (started)
- openstack-dashboard/0: 192.168.100.56 (started) 80/tcp, 443/tcp
 - landscape-client/25: 192.168.100.56 (started)
- rabbitmq-server/0: 192.168.100.47 (started) 5672/tcp
 - landscape-client/26: 192.168.100.47 (started)

landscape@juju-machine-0-lxc-1:~$ juju ssh nova-compute-kvm/0 virsh list --all
Id    Name                           State
----------------------------------------------------

Connection to m-node02.maas closed.
landscape@juju-machine-0-lxc-1:~$

Access to the OpenStack dashboard.

Manage OpenStack via CLI.
Download novarc and source that.

root@maas-trusty:~# keystone catalog
Service: compute
+-------------+----------------------------------------------------------------+
|   Property  |                             Value                              |
+-------------+----------------------------------------------------------------+
|   adminURL  | http://192.168.100.39:8774/v2/9b156a924fa84f08bb10764d3afe84e7 |
|      id     |                2329924ec32a44469bbde17c19dc08b2                |
| internalURL | http://192.168.100.39:8774/v2/9b156a924fa84f08bb10764d3afe84e7 |
|  publicURL  | http://192.168.100.39:8774/v2/9b156a924fa84f08bb10764d3afe84e7 |
|    region   |                            region1                             |
+-------------+----------------------------------------------------------------+
Service: network
+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
|   adminURL  |    http://192.168.100.49:9696    |
|      id     | 460fa7233d484a85828dd3b527678326 |
| internalURL |    http://192.168.100.49:9696    |
|  publicURL  |    http://192.168.100.49:9696    |
|    region   |             region1              |
+-------------+----------------------------------+
Service: volumev2

Add one more nova-compute node.
Access to landscape server.
root@maas-trusty:~# export JUJU_HOME=~/.cloud-install/juju
root@maas-trusty:~# juju ssh landscape-server/0

ubuntu@juju-machine-0-lxc-1:~$
ubuntu@juju-machine-0-lxc-1:~$ sudo su -
root@juju-machine-0-lxc-1:~# export JUJU_HOME=/var/lib/landscape/juju-homes/1/
root@juju-machine-0-lxc-1:~# juju status --format short | grep compute
- nova-compute-kvm/0: m-node02.maas (started)
- nova-compute-kvm/1: m-node03.maas (started)
- nova-compute-kvm/2: m-node04.maas (started)

root@juju-machine-0-lxc-1:~# juju add-unit nova-compute-kvm
root@juju-machine-0-lxc-1:~#

root@juju-machine-0-lxc-1:~# juju status --format short | grep compute
- nova-compute-kvm/0: m-node02.maas (started)
- nova-compute-kvm/1: m-node03.maas (started)
- nova-compute-kvm/2: m-node04.maas (started)
- nova-compute-kvm/3:  (pending)

root@juju-machine-0-lxc-1:~# juju status --format short | grep compute
- nova-compute-kvm/0: m-node02.maas (started)
- nova-compute-kvm/1: m-node03.maas (started)
- nova-compute-kvm/2: m-node04.maas (started)

root@juju-machine-0-lxc-1:~# juju status --format short | grep compute
- nova-compute-kvm/0: m-node02.maas (started)
- nova-compute-kvm/1: m-node03.maas (started)
- nova-compute-kvm/2: m-node04.maas (started)
- nova-compute-kvm/3: m-node08.maas (started)

root@maas-trusty:~# source  novarc_admin
root@maas-trusty:~# openstack compute service list
+----------------+----------------------+----------+---------+-------+----------------------------+
| Binary         | Host                 | Zone     | Status  | State | Updated At                 |
+----------------+----------------------+----------+---------+-------+----------------------------+
| nova-scheduler | juju-machine-0-lxc-0 | internal | enabled | up    | 2017-02-16T08:30:52.000000 |
| nova-conductor | juju-machine-0-lxc-0 | internal | enabled | up    | 2017-02-16T08:30:53.000000 |
| nova-cert      | juju-machine-0-lxc-0 | internal | enabled | up    | 2017-02-16T08:30:54.000000 |
| nova-compute   | m-node03             | nova     | enabled | up    | 2017-02-16T08:30:50.000000 |
| nova-compute   | m-node02             | nova     | enabled | up    | 2017-02-16T08:30:50.000000 |
| nova-compute   | m-node04             | nova     | enabled | up    | 2017-02-16T08:30:53.000000 |
| nova-compute   | m-node08             | nova     | enabled | up    | 2017-02-16T08:30:56.000000 |
+----------------+----------------------+----------+---------+-------+----------------------------+

Remove a nova-compute-kvm
on the landscape server.
root@juju-machine-0-lxc-1:~# export JUJU_HOME=/var/lib/landscape/juju-homes/1

root@juju-machine-0-lxc-1:~# juju remove-unit nova-compute-kvm/3

root@juju-machine-0-lxc-1:~# juju status --format  short | grep kvm
- nova-compute-kvm/0: m-node02.maas (started)
- nova-compute-kvm/1: m-node03.maas (started)
- nova-compute-kvm/2: m-node04.maas (started)
- nova-compute-kvm/3: m-node08.maas (stopped)
root@juju-machine-0-lxc-1:~#

root@juju-machine-0-lxc-1:~# juju status --format  short | grep kvm
- nova-compute-kvm/0: m-node02.maas (started)
- nova-compute-kvm/1: m-node03.maas (started)
- nova-compute-kvm/2: m-node04.maas (started)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.