Here are logs when adding a compute node with RDO packstack.
There are three nodes running, one controller, one neutron and one compute.
[root@controller ~]# source keystonerc_admin
[root@controller ~(keystone_admin)]# nova service-list
+----+------------------+------------------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+----+------------------+------------------------+----------+---------+-------+----------------------------+-----------------+
| 3 | nova-cert | controller.localdomain | internal | enabled | up | 2016-09-23T06:39:18.000000 | - |
| 4 | nova-consoleauth | controller.localdomain | internal | enabled | up | 2016-09-23T06:39:21.000000 | - |
| 5 | nova-scheduler | controller.localdomain | internal | enabled | up | 2016-09-23T06:39:23.000000 | - |
| 6 | nova-conductor | controller.localdomain | internal | enabled | up | 2016-09-23T06:39:23.000000 | - |
| 7 | nova-compute | compute.localdomain | nova | enabled | up | 2016-09-23T06:39:19.000000 | - |
+----+------------------+------------------------+----------+---------+-------+----------------------------+-----------------+
|
After adding a compute node, my environment will be:
from
node
|
eth0 ( private )
|
eth1 ( public )
|
controller
|
192.168.130.101/24
|
192.168.131.101/24
|
network
|
192.168.130.102/24
|
192.168.131.102/24
|
compute
|
192.168.130.103/24
|
192.168.131.103/24
|
to
node
|
eth0 ( private )
|
eth1 ( public )
|
controller
|
192.168.130.101/24
|
192.168.131.101/24
|
network
|
192.168.130.102/24
|
192.168.131.102/24
|
compute
|
192.168.130.103/24
|
192.168.131.103/24
|
compute02
|
192.168.130.104/24
|
192.168.131.104/24
|
on the controller node, copy ssh key to the compute02 so that the controller node can access to the compute02 over SSH without entering password.
[root@controller ~]# ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.130.104
|
on the controller node, edit answer file.
[root@controller ~]# diff myanswers.txt.bak.2016092301 myanswers.txt
98c98
< CONFIG_COMPUTE_HOSTS=192.168.131.103
---
> CONFIG_COMPUTE_HOSTS=192.168.131.103,192.168.131.104
|
run packstack
[root@controller ~]# packstack --answer-file myanswers.txt
Welcome to the Packstack setup utility
The installation log file is available at: /var/tmp/packstack/20160923-215901-PM7PBt/openstack-setup.log
Installing:
Clean Up [ DONE ]
Discovering ip protocol version [ DON
<snip>
Applying 192.168.131.103_nagios_nrpe.pp
Applying 192.168.131.101_nagios_nrpe.pp
192.168.131.103_nagios_nrpe.pp: [ DONE ]
192.168.131.104_nagios_nrpe.pp: [ DONE ]
192.168.131.102_nagios_nrpe.pp: [ DONE ]
192.168.131.101_nagios.pp: [ DONE ]
192.168.131.101_nagios_nrpe.pp: [ DONE ]
Applying Puppet manifests [ DONE ]
Finalizing [ DONE ]
**** Installation completed successfully ******
Additional information:
|
done!
[root@controller ~(keystone_admin)]# openstack
(openstack) service list
+----------------------------------+---------------+--------------+
| ID | Name | Type |
+----------------------------------+---------------+--------------+
| 3f2f3d18ce2e431b91a667e33fa2002e | swift | object-store |
| 50967f8ea81046e8b438e0f2570e5bbf | cinderv2 | volumev2 |
| 58a7a09957914c7f84f7c85a3f80ab2c | cinder | volume |
| 61ef124166814a41bbbc7e1286190947 | cinderv3 | volumev3 |
| 719b358b3b0d43ffa3f582cdec9bab7b | ceilometer | metering |
| 7bc6c3d3a01149d9986b126e58f4d717 | aodh | alarming |
| 9119bde3f3d04643b59d285bf7bcbf13 | keystone | identity |
| a81ea8ce814e4cb8a874b5cf24e43371 | Image Service | image |
| ad9ea388dc4240ab8a49290eda87671d | novav3 | computev3 |
| beb598fbf2994bde959684c40a1633cd | gnocchi | metric |
| c689a94666d1441bbcb3c5491d29a17d | nova | compute |
| d41b62cd891d4cb68f067b7089a23eb4 | neutron | network |
+----------------------------------+---------------+--------------+
(openstack)
|
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.