Personal tools
Namespaces

Variants
Actions

OpenStack VPS And Cloud For WHMCS

From ModulesGarden Wiki
(Difference between revisions)
Jump to: navigation, search
(About OpenStack VPS For WHMCS)
(Common Problems)
Line 444: Line 444:
 
=Common Problems=
 
=Common Problems=
 
{|
 
{|
|style="padding: 10px 0px 30px 15px;"|1. When you have problems with connection, check whether your SELinux or firewall is not blocking ports.
+
|style="padding: 10px 0px 10px 15px;"|1. When you have problems with connection, check whether your SELinux or firewall is not blocking ports.
 +
|}
 +
{|
 +
|style="padding: 0px 0px 5px 15px;"|2. '' 'Connection Error:No route to host' '' error.<br />
 +
'''Reason:''' WHMCS server cannot resolve OpenStack endpoint hostnames.<br />
 +
'''Solution:''' Log in to your OpenStack via SSH and use '' 'keystone endpoint-list' '' command to obtain list of needed endpoints.
 +
|}
 +
{|
 +
|style="padding: 0px 0px 10px 25px;"|[[File:OSV_41.png]]
 +
|}
 +
{|
 +
|style="padding: 0px 0px 30px 15px;"|Afterwards, check each URL from '' 'adminurl' '' column using '' 'ping' '' command at your WHMCS server.<br />
 +
All not reachable URLs have to be added to '' 'hosts' '' file on a server with your WHMCS.
 
|}
 
|}

Revision as of 14:06, 31 March 2014

Contents

About OpenStack VPS For WHMCS

OpenStack VPS For WHMCS is a powerful module which allows you to automatically provision virtual servers to your customers.

The great advantage of this module is the fact that customers can manage virtual servers, backups and much more in your own WHMCS client area!
Additionally it allows you to conveniently overview and manage all the customers' servers.

  • Admin Area Features:
✔ Create Server
✔ Suspend/Unsuspend Server
✔ Terminate Server
✔ Change Package (Supports Configurable Options)
✔ Change Password For Xen (Support For Other Virtualizations - Coming Soon)
✔ View Server Status And Details
✔ View Interface Details
✔ View List Of Scheduled Tasks
  • Client Area Features:
✔ View Server Status And Details
✔ Start/Stop Server
✔ Pause/Unpause Server
✔ Resume Server
✔ Soft Reboot Server
✔ Hard Reboot Server
✔ Reset Network
✔ Rebuild
✔ Change Password For Xen (Support For Other Virtualizations - Coming Soon)
✔ noVNC Console
✔ Backups
✔ View List Of Scheduled Tasks
  • Module Features:
✔ Configuration Of Backups Quantity Limit
✔ Triggerable Routing Backups (Newest Backup Overwrites The Oldest One If Backup Limit Is Reached)
✔ Configuration Of Client Area Features
✔ Configurable Options (Flavor, VM Image, IP Addresses, Backups Files Limit, Disk, RAM and VCPUs)
  • Additionally:
✔ Integration With Advanced Billing For WHMCS - Server Resource Usage Billing (coming soon)
✔ Multi-Language Support
✔ Supports WHMCS V5 and Later
  • Required Components:
✔ Keystone
✔ Glance
✔ Nova
✔ Neutron
✔ Ceilometer (Required For Billing)

Installation and Configuration

This tutorial will show you how to successfully install and configure OpenStack VPS For WHMCS.

We will guide you step by step through the whole installation and configuration process.

Installation

1. Log in to your client area and download OpenStack VPS For WHMCS.
OSV1.png
2. Upload and extract the module into the main WHMCS directory.
OSV2.png
3. When you install OpenStack VPS for the first time you have to rename 'license_RENAME.php' file.

File is located at 'modules/servers/OpenStackVPS/license_RENAME.php' . Rename it from 'license_RENAME.php' to 'license.php' .

OSV3.png
4. In order to configure your license key, you have to edit a previously renamed 'license.php' file.

Enter your license key between quotation marks as presented on the following screen.
You can find your license key at your client area → 'My Products' .

OSV4.png

Configuration of Server

5. Now, we will show you how to configure a new product.

Go to the 'Setup' 'Products/Services' 'Servers' and press 'Add New Server' .

OSV5.png
6. Next, enter your server name, IP address/hostname, username, password and admin tenant ID.

Choose 'OpenStackVPS' from a dropdown menu and press 'Save Changes' .

OSV6.png
7. After you configure your server correctly, you can check connection with OpenStack server.

Simply edit previously created server and press 'Test Connection' as shown on the screen below.

OSV7.png
8. It is time to create a server group. To do so, click on 'Create Server Group' .
OSV8.png
9. Enter name, click on your previously created server, press 'Add' and afterwards 'Save Changes' .
OSV9.png

Configuration of Product

10. In order to create and configure a product, go to the 'Setup' 'Products/Services' 'Products/Services' .

Click on 'Create a New Group' .

OSV10.png
11. Enter product group name and press 'Save Changes' .
OSV11.png
12. When you have a product group, you can create your product.

To create a product click on 'Create a New Product' .

OSV12.png
13. Afterwards, choose your product group and type from dropdown menus, enter your product name and press 'Continue' .

'Product Type' should be set to 'Dedicated/VPS Server' .

OSV13.png
14. Now, go to the 'Module Settings' section, choose both 'OpenStackVPS' and your previously created server group from dropdown menus.

Next, click on 'Save Changes' .

OSV14.png

VPS With Predefined Resources

Our module allows you to offer OpenStack VPS to your clients in two ways, with predefined resources and configurable resources.

In this section we will show you configuration of VPS with predefined resources.
Configuration of VPS with resources chosen by client can be found here.

15. Start from selecting 'Default Tenant' , 'Default Flavor' and 'Default VM Image' .
OSV15.png
16. Afterwards, set up a network. Choose 'Fixed Network' , 'Floating Network' and 'Default Number Of IP Addresses' .

You can set up network in two ways. You can find more information about the configuration here.
We will set up a network without floating IP address as presented on the following screen.
Additionally, choose quantity of IP addresses assigned to product by typing it into 'Default Number Of IP Addresses' .

OSV16.png
17. At this step you can set up backups.

Mark 'Backups Routing' checkbox if you want to replace oldest backup with newest one when backups file limit is reached.
Afterwards, enter limit of backup files into 'Default Backups Files Limit' .

OSV17.png
18. Finish through selecting features available at the client area.

Mark checkbox next to a feature to enable it. Press 'Save Changes' when you are done.

OSV18.png
19. Last step is setting up a cron job (each 5 minutes suggested).

Use cron job below but switch 'your_whmcs' with your root WHMCS path.

php -q /your_whmcs/modules/servers/OpenStackVPS/cron/cron.php
Congratulations! You have just finished the installation and configuration of the module with predefined resources.

VPS With Configurable Resources

15. Preparing VPS with configurable options starts from pressing 'Generate default' as shown on the following screen.

It will prepare default configurable options which can be afterwards easily edited by as described in this article.

OSV19.png
16. Now choose a tenant using 'Default Tenant' checkbox.
OSV20.png
17. It is time to set up a network.

Choose 'Fixed Network' , 'Floating Network' and 'Default Number Of IP Addresses' .
You can set up a network in two ways. For additional information visit this page.
As you can see on the following screen, we will set up a network without floating IP address.

File:OSV21.png
18. Next, you can define whether you want to enable backups routing.

Backups routing is useful when your client orders product with limited backup files quantity.
It will replace oldest backup with backup just created, but only when backup limit is reached.
Backups routing can be enabled through marking 'Backups Routing' checkbox.

File:OSV22.png
19. Finish through selecting features available at the client area.

Mark checkbox next to the feature to enable it. Press 'Save Changes' when you are done.

File:OSV23.png
20. Last step is setting up a cron job (each 5 minutes suggested).

Use cron job below, but switch 'your_whmcs' with your root WHMCS path.

php -q /your_whmcs/modules/servers/OpenStackVPS/cron/cron.php
Congratulations! You have just finished the installation and configuration of the module with configurable resources.

Management

OpenStack VPS For WHMCS allows your customers to manage their OpenStack VPS via client area in your WHMCS system.

You can monitor and manage each product from your WHMCS admin area.
1. Configurable options which enables you to view current VPS resources and change VPS specifications through changing configurable options and pressing 'Change Package' .
2. Module commands enables you to manage VPS status.
3. Here you can find VPS details and refresh them through pressing 'Refresh Details' icon.
4. Scheduled tasks status can be found in this table.
5. In marked custom fields you can find IDs of VM and private flavor.

OSV24.png

Ordering

Owing to configurable options, you are able to offer product which your clients can tailor according to his needs.

Additionally, you are able to set up pricing for each configurable option, which make your offer even more competitive.
Important: VPS is not created immediately after ordering 'Create' . Therefore, it is wise to inform your clients about the delay.

OSV25.png

Client Area

Client area interface of OpenStack VPS should look like the one on the screen below. As you can see, control panel contains useful options needed for managing VPS.

Module allows your customers to easily start/stop, pause/unpause, resume, soft reboot, hard reboot and reset network of their servers through pressing specified button.
Clients can also rebuild the server, access noVNC console, create a backup and view scheduled tasks.
At 'Tasks' your customers can view all requested tasks that was not yet completed with information bounded to them, like type of task, attempts to perform tasks or last returned response.

OSV26.png

Rebuild

Rebuild feature allows your clients to change server image.

Press 'Rebuild' button as shown on the following screen in order to move to the rebuild page.

OSV27.png
To reinstall your server, choose an image and root password.

Afterwards, confirm through clicking on 'Rebuild' button.

OSV28.png

noVNC Console

One of the most interesting functionality is a noVNC console where your clients can remotely manage server.
To access it, simply press on the 'Console' button.
OSV29.png
noVNC is a browser based VNC client. It was implemented using HTML5 Canvas and WebSockets.
OSV30.png

Backups

Your customers can also create a backup of VPS. To do so, press 'Backups' button.
OSV31.png
Now, choose backup name and press 'Backup Now' button.
OSV32.png
To restore VPS from backup, simply press 'Restore' next to it.

As you may notice on the following screen, presented earlier 'OldBackup' backup was replaced with 'NewBackup' .
It was caused by backup routing feature which was triggered by reaching backups file limit.

OSV33.png

Network Configuration Cases

OpenStack VPS For WHMCS allows you to set up two types of network.

First one is a network without floating IP address.
To set up this type of a network, choose 'Public' as 'Fixed Network' and 'Disabled' as 'Floating Network' .
On the following screen you can view exemplary topology of such network.

OSV36.png
Second type of network is a network with floating IP address.

Select 'Shared Network' as 'Fixed Network' and 'Public' as 'Floating Network' .

OSV37.png

Configurable Options

In case that standard configuration is not fitting your needs, you can adjust it through configurable options.

To do so, go to 'Setup' 'Products/Services' 'Configurable Option' and press edit button next to configurable option used by your product.
Its name is 'Configurable options for your_product_name' .

OSV38.png
Here you can view the products that this configurable option group is assigned to.

Now we will show you how to edit options. Let's say that you want to add an option to order VPS with 8GB (8192 MB) RAM.
To do so, edit 'ram|RAM' by pressing edit button as shown on the screen below.

OSV39.png
You will see a popup window, so make sure that your browser will not block it.

To add new option, enter it in a textbox under all other options. If you want to replace it with option you currently have, simply edit its textbox.
Next, press 'Save Changes' .

OSV40.png

Tips

1. Due to some requests may take time to be completed, we implemented 'Scheduled Tasks' .

Tasks visible at 'Scheduled Tasks' are subsequently performed by cron job.
Full list of tasks supported by 'Scheduled Tasks' are: create, terminate, change package, remove IP address and remove backup.

Common Problems

1. When you have problems with connection, check whether your SELinux or firewall is not blocking ports.
2. 'Connection Error:No route to host' error.

Reason: WHMCS server cannot resolve OpenStack endpoint hostnames.
Solution: Log in to your OpenStack via SSH and use 'keystone endpoint-list' command to obtain list of needed endpoints.

OSV 41.png
Afterwards, check each URL from 'adminurl' column using 'ping' command at your WHMCS server.

All not reachable URLs have to be added to 'hosts' file on a server with your WHMCS.

Navigation
WHMCS Modules
WHMCS Widgets
Translations
cPanel Modules
General
FAQ
Community
OpenStack VPS And Cloud For WHMCS