Jump to: navigation, search

Difference between revisions of "StarlingX/Installation Guide Virtual Environment/Simplex"

(Configuring Controller-0)
Line 66: Line 66:
 
</nowiki></pre>
 
</nowiki></pre>
  
Accept default [UTC] for System timezone:
+
Accept all the default values immediately after ‘system date and time’.
  
 
<pre><nowiki>
 
<pre><nowiki>
System timezone:
+
...
------------------------
 
 
 
Please input the timezone[UTC]:
 
</nowiki></pre>
 
 
 
Select [3] Simplex for System mode:
 
 
 
<pre><nowiki>
 
System mode. Available options are:
 
 
 
1) duplex-direct: two node-redundant configuration. Management and
 
infrastructure networks are directly connected to peer ports
 
2) duplex - two node redundant configuration
 
 
3) simplex - single node non-redundant configuration
 
3) simplex - single node non-redundant configuration
 
System mode [duplex-direct]: 3
 
System mode [duplex-direct]: 3
</nowiki></pre>
 
 
For the rest of the options, accept all the default values, the output when config_controller script is run interactively continues as follows:
 
 
<pre><nowiki>
 
PXEBoot Network
 
Management Network
 
Infrastructure Network
 
External OAM Network
 
Cloud Authentication
 
 
...
 
...
WARNING: Command should only be run from the console. Continuing with this
 
terminal may cause loss of connectivity and configuration failure
 
...
 
Apply the above configuration? [y/n]: y
 
 
 
Applying configuration (this will take several minutes):
 
Applying configuration (this will take several minutes):
  

Revision as of 20:07, 21 August 2018

Configure Virtual Servers

Run the libvirt qemu setup script:

$ bash setup_all_in_one.sh

Simplex Virtual Environment

Controller-0 Host Installation

Installing controller-0 involves initializing a host with software and then applying a configuration from the command line. The configured host becomes Controller-0.
Procedure:

  1. Using an ISO image of StarlingX, initialize the controller host via Libvirt/QEMU.
  2. Configure the controller using the config_controller script.

Initializing Controller-0

This section describes how to initialize StarlingX in host Controller-0. Except where noted, all the commands must be executed from a console of the Workstation. Make sure Virtual Machine Manager is open.

From the KVM/VirtManager window, power on the host to be configured as Controller-0 and show the virtual machine console and details:

  • When the installer is loaded and the installer welcome screen appears in the Controller-0 host, select the type of installation "All-in-one Controller Configuration".
  • Select the "Graphical Console" as the console to use during installation.
  • Select "Standard Security Boot Profile" as the Security Profile.
  • Monitor the initialization until it is complete. When initialization is complete, a reboot is initiated on the Controller-0 host, briefly displays a GNU GRUB screen, and then boots automatically into the StarlingX image.

Log into Controller-0 as user wrsroot, with password wrsroot. The first time you log in as wrsroot, you are required to change your password. Enter the current password (wrsroot):

Changing password for wrsroot.
(current) UNIX Password:

Enter a new password for the wrsroot account:

New password:

Enter the new password again to confirm it:

Retype new password:

Controller-0 is initialized with StarlingX, and is ready for configuration.

Configuring Controller-0

This section describes how to perform the Controller-0 configuration interactively. Except where noted, all the commands must be executed from the console of the active controller (here assumed to be controller-0.

When run interactively, the config_controller script presents a series of prompts for initial configuration of StarlingX. The script is used to configure the first controller in the StarlingX cluster as controller-0. The prompts are grouped by configuration area. To start the script interactively, use the following command with no parameters:

controller-0:~$ sudo config_controller
System Configuration
================
Enter ! at any prompt to abort...
...

Select [y] for System Date and Time:

System date and time:
-----------------------------

Is the current date and time correct?  [y/N]: y

Accept all the default values immediately after ‘system date and time’.

...
3) simplex - single node non-redundant configuration
System mode [duplex-direct]: 3
...
Applying configuration (this will take several minutes):

01/08: Creating bootstrap configuration ... DONE
02/08: Applying bootstrap manifest ... DONE
03/08: Persisting local configuration ... DONE
04/08: Populating initial system inventory ... DONE
05:08: Creating system configuration ... DONE
06:08: Applying controller manifest ... DONE
07:08: Finalize controller configuration ... DONE
08:08: Waiting for service activation ... DONE

Configuration was applied

Please complete any out of service commissioning steps with system commands and unlock controller to proceed.

Controller-0 Host Provision

On Controller-0, acquire Keystone administrative privileges:

controller-0:~$ source /etc/nova/openrc

On Controller-0, create a newshell script file, copy and paste the content below and run:

The host is rebooted. During the reboot, the command line is unavailable, and any ssh connections are dropped. To monitor the progress of the reboot, use the controller-0 console.

Verifying the Controller-0 Configuration

On Controller-0, acquire Keystone administrative privileges:

controller-0:~$ source /etc/nova/openrc

Verify that the Titanium Cloud controller services are running:

[wrsroot@controller-0 ~(keystone_admin)]$ nova service-list
+--------------------------------------+------------------+--------------+----------+---------+-------+ ...
| Id                                   | Binary           | Host         | Zone     | Status  | State | ...
+--------------------------------------+------------------+--------------+----------+---------+-------+ ...
| d7cdfaf0-9394-4053-b752-d609c837b729 | nova-conductor   | controller-0 | internal | enabled | up    | ...
| 692c2659-7188-42ec-9ad1-c88ac3020dc6 | nova-scheduler   | controller-0 | internal | enabled | up    | ...
| 5c7c9aad-696f-4dd1-a497-464bdd525e0c | nova-consoleauth | controller-0 | internal | enabled | up    | ...
+--------------------------------------+------------------+--------------+----------+---------+-------+ ...

If one of the listed services is down please reenable

#!/usr/bin/env bash

source /etc/nova/openrc

ALL_DISABLED_SERVICES=`nova service-list | grep disabled | awk -F "|" '{print $2}'`
for service in $ALL_DISABLED_SERVICES; do
    nova service-force-down --unset ${service} 
    nova service-enable ${service}
done

Verify that controller-0 is unlocked, enabled, and available:

[wrsroot@controller-0 ~(keystone_admin)]$ system host-list
+----+--------------+-------------+----------------+-------------+--------------+
| id | hostname     | personality | administrative | operational | availability |
+----+--------------+-------------+----------------+-------------+--------------+
| 1  | controller-0 | controller  | unlocked       | enabled     | available    |
+----+--------------+-------------+----------------+-------------+--------------+