This demonstration uses CloudForms 4.0 to collect Capacity and Utilization data from three RHEL OSP instances, each running three instances (Windows, RHEL and Ubuntu). The C&U data is then used to generate utilization and chargeback reports in CloudForms.
-
Define chargeback rates
-
Create reports for utilization and chargeback
-
None
The demo environment consists of the following systems:
Hostname |
Internal IP |
Description |
|
|
Jump host and Cinder/NFS server |
|
|
CloudForms server managing RHEL OSP Environments |
|
|
Geographically simulated RHEL OSP environment |
|
|
Geographically simulated RHEL OSP environment |
|
|
Geographically simulated RHEL OSP environment |
-
Log in to https://rhpds.redhat.com with your OPENTLC SSO credentials.
-
Go to Services → Catalogs → Service Catalogs.
-
Under All Services → Cloud Infrastructure Demos, select Red Hat Cloud Suite Reporting Demo.
-
On the right, click Order.
-
Read all of the information on the resulting page, check the necessary box, and then click Submit.
Important
|
It takes about 20 minutes for your demo to load completely and become accessible, even if some of the systems are marked "Up." You will receive an email with information about how to access your demo environment. The email contains a list of hostnames, IP addresses, and your GUID; make note of them. Whenever you see GUID in the demo instructions, replace it with the GUID provided in the email. You can get real-time updates of your demo environment at: https://www.opentlc.com/rhpds-status |
Tip
|
Be very mindful of the runtime of your demo environment! It may take you several hours to complete the demo, so you may have to extend the runtime. This is especially important in later steps, when you are building the VMs. For information on how to extend runtime and lifetime, see: https://www.opentlc.com/lifecycle |
-
Open a web browser and navigate to the CloudForms appliance. The external hostname and IP address can be found in e-mail notification received when the environment was ordered.
-
CloudForms Appliance: https://cloudforms-GUID.rhpds.opentlc.com
-
-
Login to the CloudForms appliance:
-
Username: admin
-
Password: r3dh4t1!
-
-
This is already completed. Each instance running in each environment should already be tagged and utilization data collected. This can be verified by navigating to Clouds → Instances. Click on an instance and Under Smart Management, next to My Company Tags, an Environment tag will be assigned. I.E. OpenStack New York.
-
C&U is already enabled on the CloudForms appliance and no further configuration is needed.
CloudForms Management Engine provides a default set of rates for calculating chargeback costs using a set formula based on hourly cost per unit and hourly usage. For example, calculating the Memory Used Cost in dollars ($) for a day can be expressed in the following ways:
-
Memory allocation per hour (in MB) * Hourly Allocation cost per megabyte * Number of Memory Allocation metrics available for the day
-
Sum of Memory allocation for the day (in MB) * Hourly Allocation cost per megabyte
-
Sum of Memory allocation for the day (in MB) * Daily Allocation cost per megabyte / 24
In a scenario where 9.29 GB of memory is used in a day with the chargeback rate set at one dollar ($1) per megabyte per day, the Memory Used Cost would be $396.42.
-
9.29 GB = 9514.08 MB
-
9514.08 MB * $1 (per MB per day) = $9514.08
-
$9514.08 / 24 = $396.42 Memory Used Cost
Example:
Input Box |
Field |
Value |
Per Time |
Per Unit |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
Navigate to Cloud Intelligence → Chargeback.
-
Click the Rates accordion and select either Compute or Storage.
-
Use Compute to set chargeback rates for CPU, disk I/O, memory, and network I/O.
-
-
Click Configuration, Add a new Chargeback Rate to create a new chargeback rate.
-
Enter a Description for the chargeback rate.
-
Enter a rate and time option for each item.
-
Click Add.
-
Navigate to Cloud Intelligence → Chargeback.
-
Click the Assignments accordion and click Compute.
-
Use Compute to assign a compute chargeback rate.
-
-
In the Basic Info area, set Assign To compute chargeback rates to Tagged VMs and Instances and Tag Category to Environment.
-
Under Selections, select the newly created rate for each OpenStack environment (New York, Paris, and Tokyo)
-
Click Save.
-
Navigate to Cloud Intelligence → Reports.
-
Click the Reports accordion.
-
Click Configuration, Add a new Report.
-
On the Columns tab, complete the Basic Report Info area.
-
Enter a Menu Name for the report to appear in the menu list.
-
Enter a Title for the report.
-
-
Add fields in the Configure Report Columns area.
-
From the Base the report on table list, select Chargebacks.
-
Select the fields that you want in the report from Available Fields, then click Move selected fields down. In addition to the fields, you can also select tags that you have created and assigned.
-
Change the order of the fields in the report by clicking Move selected fields up or Move selected fields down.
-
Select the following items:
-
-
CPU Total Cost
-
CPU Total
-
Disk I/O Used Cost
-
Disk I/O Used
-
Memory Total Cost
-
Memory Total
-
Total Cost
-
Click the Formatting tab to set the size of paper for a PDF and column header format.
-
From the PDF Output area, select the page size from the drop-down list.
-
From Specify Column Headers and Formats, type the text you want displayed for each field. For each numeric field, you can also set the numeric format.
-
-
Click the Filter tab to set filters for the data displayed in the report.
-
From Chargeback Filters, select how you want the costs to show, the tag category, the tag, and how you want the items grouped. Use the following values:
-
-
Show Costs by: My Company Tag
-
Tag Category: Environment
-
Tag: <each OpenStack environment>
-
Group by: VM/Instance
-
From Chargeback Interval, select the time interval. Change to Daily ending with <today (partial)> going back <1 week>.
-
-
Click the Preview tab, then click Load to preview the report.
-
Click Add to create the new report.
-
Navigate to Cloud Intelligence → Reports.
-
Click a newly created report.
-
Click Queue. After a few minutes the report creation will complete and result will appear under the chosen report.
-
Click on the newly generated report, on the right pane click the download icon and choose Download as PDF. Save the file to your local machine for review.
-
Navigate to Cloud Intelligence → Reports.
-
Click the Edit Report Menus accordion.
-
Click the EvmGroup-administrator role.
-
On the right window pane select Trending → Hosts.
-
Add the newly created reports by selecting it from the Available Reports area on the right, and click Move selected reports left.
-
Click Commit report management changes.
-
Click Save.
-
Navigate to Cloud Intelligence → Reports.
-
Click the Schedule accordion.
-
Click Configuration → *Add a new Schedule.
-
Under Basic Information provide a Name and Description. Leave the Active box checkmarked.
-
Under Report Selection → Filter, choose Trending → Hosts, and the report name added to the report menu.
-
Under Timer, set the report to run once every week at midnight.
-
Click Add to complete.