Difference between revisions of "Bright:Openstack-install"

From Define Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 66: Line 66:
 
From the command line you run the following command for an interactive installation (same steps as above):
 
From the command line you run the following command for an interactive installation (same steps as above):
 
<syntaxhighlight>
 
<syntaxhighlight>
[root@shadow-head ~]# cm-openstack-setup  
+
[root@shadow-head ~] cm-openstack-setup  
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
If you have an Openstack installation xml file you can use it directly from the cli:
 
If you have an Openstack installation xml file you can use it directly from the cli:
 
<syntaxhighlight>
 
<syntaxhighlight>
[root@shadow-head ~]# cm-openstack-setup -c <openstack.conf>
+
[root@shadow-head ~] cm-openstack-setup -c <openstack.conf>
 +
</syntaxhighlight>
 +
 
 +
== Openstack Removal ==
 +
 
 +
In order to remove an Openstack installation you first need to disable the "Prevent Removal" property:
 +
<syntaxhighlight>
 +
[root@shadow-head ~] cmsh
 +
[shadow-head]% openstack
 +
[shadow-head->openstack[default]]% set "Prevent Removal" no
 +
[shadow-head->openstack*[default*]]% commit
 +
</syntaxhighlight>
 +
 
 +
Then you can remove the openstack installation:
 +
<syntaxhighlight>
 +
[root@shadow-head ~] cm-openstack-remove
 +
</syntaxhighlight>
 +
 
 +
== Openstack User Creation ==
 +
 
 +
You need to create a new user or add an existing one in the "openstackusers" group. If the group does not exist, create it:
 +
<syntaxhighlight>
 +
[root@shadow-head ~] cmsh -c ‘user; add <username>; set password <password>; commit’
 +
[root@shadow-head ~] cmsh -c ‘group; add openstackusers; commit’
 +
[root@shadow-head ~] cmsh -c ‘group; append openstackusers groupmembers <username>; commit’
 +
</syntaxhighlight>
 +
 
 +
After a couple of minutes you will see an <tt>.openstackrc</tt> and an <tt>.openstackrc_password</tt>_file in the home directory of the user. You can use the password to login in the dashboard.
 +
 
 +
If you want to change the openstack password of that user:
 +
<syntaxhighlight>
 +
[root@shadow-head ~] cmsh
 +
[shadow-head]% openstack
 +
[shadow-head->openstack[default]]% users
 +
[shadow-head->openstack[default]->users]% use <username>
 +
[shadow-head->openstack[default]->users[<username>]]% set password <pass>
 +
[shadow-head->openstack[default]->users[<username>*]]% commit
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 16:02, 24 November 2015

There are 2 ways to install Openstack in Bright, the CMGUI way and the CLI way.

CMGUI Installation

The Openstack installation is pretty much straight forward and is described in the following steps.

  • Go to the Openstack tab on the bottom left of the CMGUI list and start the Setup Wizard.
Error creating thumbnail: File missing
  • In the first page the only change needed is to disable dry mode.
Error creating thumbnail: File missing
  • On the next page, provide the MySQL password, which is the root password of the node and create a new admin password
Error creating thumbnail: File missing
  • Next, select an existing category on which the newly created ones will be based on
Error creating thumbnail: File missing
  • Select a name for the new openstack-compute category (or provide an existing one) and the nodes to include in that category as well

Os-install-5.png

  • Next, create a new category for the nodes that will act as the Openstack network nodes. Select the network nodes as well.
Error creating thumbnail: File missing
  • If there is a Ceph installation on the cluster then you can use it for storage. If not then leave all options to "No"

Os-install-7.png

  • Leave the internal network to the default value
Error creating thumbnail: File missing
  • Create a new openstack-image, based on the default one
Error creating thumbnail: File missing
  • Leave this on "Yes", since we want the users to create their own instances (non-bright ones)
Error creating thumbnail: File missing
  • Usually leave this to yes, since there is no harm on attaching user instances on the internal network. But, again that is not a restriction/prerequisite
Error creating thumbnail: File missing
  • Choose "VXlan"
Error creating thumbnail: File missing
  • Leave the range to the default values and create a new vxlan network
Error creating thumbnail: File missing
  • Leave the options to share the existing interfaces
Error creating thumbnail: File missing
  • Disable Bright-managed instances. This is a current Bright bug, but will be fixed in future patches
Error creating thumbnail: File missing
  • Enable Floating IPs and set the range for them
Error creating thumbnail: File missing
  • If you have already set up the second interface on the network node, the wizard should pick it up automatically and use it to assign floating ips on the VMs. The interface should be connected on the external network BUT its ip should be cleared or else it will cause network issues.
Error creating thumbnail: File missing
  • Set the VNC proxy hostname to the external ip of the head node
Error creating thumbnail: File missing
  • Review and save the configuration file if needed.
Error creating thumbnail: File missing

CLI Installation

From the command line you run the following command for an interactive installation (same steps as above):

[root@shadow-head ~] cm-openstack-setup

If you have an Openstack installation xml file you can use it directly from the cli:

[root@shadow-head ~] cm-openstack-setup -c <openstack.conf>

Openstack Removal

In order to remove an Openstack installation you first need to disable the "Prevent Removal" property:

[root@shadow-head ~] cmsh
[shadow-head]% openstack 
[shadow-head->openstack[default]]% set "Prevent Removal" no
[shadow-head->openstack*[default*]]% commit

Then you can remove the openstack installation:

[root@shadow-head ~] cm-openstack-remove

Openstack User Creation

You need to create a new user or add an existing one in the "openstackusers" group. If the group does not exist, create it:

[root@shadow-head ~] cmsh -c ‘user; add <username>; set password <password>; commit’
[root@shadow-head ~] cmsh -c ‘group; add openstackusers; commit’
[root@shadow-head ~] cmsh -c ‘group; append openstackusers groupmembers <username>; commit’

After a couple of minutes you will see an .openstackrc and an .openstackrc_password_file in the home directory of the user. You can use the password to login in the dashboard.

If you want to change the openstack password of that user:

[root@shadow-head ~] cmsh 
[shadow-head]% openstack 
[shadow-head->openstack[default]]% users 
[shadow-head->openstack[default]->users]% use <username> 
[shadow-head->openstack[default]->users[<username>]]% set password <pass>
[shadow-head->openstack[default]->users[<username>*]]% commit