Welcome to the new Linux Foundation Forum!

Lab 3.2 Add second node update

Upon the ./stack.sh running on the compute-node there became necessary an extra step of running nova-manage cell_v2 discover_hosts to properly update the database on the cloud controller. The DevStack community have created a new process to add another node to the cluster, which will cause the nova-manage command to error out. 

The new five step process, which I am putting into the course book now, is as follows:


When the *compute-node* finishes the ./stack.sh then on the **devstack-cc** run this process: 1) Source the config file as admin [email protected]:~$ cd devstack/ [email protected]:~/devstack$ source openrc admin WARNING: setting legacy OS_TENANT_NAME to support cli tools. 2) Verify the compute-host was added and is up. [email protected]:~/devstack$ nova service-list --binary nova-compute +--------------------------------------+--------------+--------------+------+-------- -+-------+----------------------------+-----------------+-------------+ | Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down | +--------------------------------------+--------------+--------------+------+-------- -+-------+----------------------------+-----------------+-------------+ | 32fa0ccd-45a8-45f5-b2e7-2d84e7377eb3 | nova-compute | devstack-cc | nova | enabled | up | 2017-12-19T19:49:35.000000 | - | False | | 9fc15015-d150-478f-ba4f-764fe4ed03c9 | nova-compute | compute-node | nova | enabled | up | 2017-12-19T19:49:35.000000 | - | False | +--------------------------------------+--------------+--------------+------+-------- -+-------+----------------------------+-----------------+-------------+ 3) Verify the hypervisor has not yet been added. [email protected]:~/devstack$ openstack hypervisor list +----+---------------------+-----------------+--------------+-------+ | ID | Hypervisor Hostname | Hypervisor Type | Host IP | State | +----+---------------------+-----------------+--------------+-------+ | 1 | devstack-cc | QEMU | 192.168.97.1 | up | +----+---------------------+-----------------+--------------+-------+ 4) Use a script to join the hypervisor to the cloud. [email protected]:~/devstack$ ./tools/discover_hosts.sh /usr/local/lib/python2.7/dist-packages/pymysql/cursors.py:166: Warning: (1287, u"'@@t x_isolation' is deprecated and will be removed in a future release. Please use '@@tra nsaction_isolation' instead") result = self._query(query) Found 2 cell mappings. Skipping cell0 since it does not contain hosts. Getting compute nodes from cell 'cell1': 79bd3053-a007-469d-ba72-d7b106d08568 Found 1 unmapped computes in cell: 79bd3053-a007-469d-ba72-d7b106d08568 Checking host mapping for compute host 'compute-node': b3caa6f3-fe33-49af-839a-375813 8af2b1 Creating host mapping for compute host 'compute-node': b3caa6f3-fe33-49af-839a-375813 8af2b1 5) Verify the compute-host has been added. [email protected]:~/devstack$ openstack hypervisor list +----+---------------------+-----------------+--------------+-------+ | ID | Hypervisor Hostname | Hypervisor Type | Host IP | State | +----+---------------------+-----------------+--------------+-------+ | 1 | devstack-cc | QEMU | 192.168.97.1 | up | | 2 | compute-node | QEMU | 192.168.97.2 | up | +----+---------------------+-----------------+--------------+-------+ [email protected]:~/devstack$

 

Best regards,

 

Sign In or Register to comment.