Skip to content

Latest commit

 

History

History
223 lines (178 loc) · 8.36 KB

Red Hat Cloud Suite Reporting Demo.adoc

File metadata and controls

223 lines (178 loc) · 8.36 KB

Red Hat Cloud Suite Reporting Demo

1. Overview

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.

2. Goal

Define chargeback rates Create reports for utilization and chargeback

2.1. Provision Your Demo Environment

Upload your public SSH key to https://www.opentlc.com/update, if you have not done so already.

+

Note
If you need help with SSH, go to https://www.opentlc.com/ssh.html.
  1. Log in to https://rhpds.redhat.com with your OPENTLC SSO credentials.

  2. Go to ServicesCatalogsService Catalogs.

  3. Under All ServicesCloud Infrastructure Demos, select Red Hat cloud Suite Deployment Demo.

  4. On the right, click Order.

  5. Read all of the information on the resulting page, check the necessary box, and 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 virtual machines. For information on how to extend runtime and lifetime, see https://www.opentlc.com/lifecycle.

2.2. Environment

The demo environment consists of the following systems:

Hostname

Internal IP

Description

demo.cloudlab.redhat.com

10.0.1.10

Jump host and iSCSI/NFS server

cloudforms.cloudlab.redhat.com

10.0.1.20

CloudForms Server

osptokyo.cloudlab.redhat.com

10.2.0.10

Tokyo OpenStack Environment

ospparis.cloudlab.redhat.com

10.3.0.10

Paris OpenStack Environment

ospny.cloudlab.redhat.com

10.1.0.10

New York OpenStack Environment

3. Getting Started

  1. 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.

  2. Login to the CloudForms appliance:

Username: admin
Password: r3dh4t1!
  1. Instance Tagging and Enabling Capacity and Utilization + 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.

    ==== TEST
  2. C&U is already enabled on the CloudForms appliance and no further configuration is needed.

  3. Chargeback Rates

  4. 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:

    1. Memory allocation per hour (in MB) * Hourly Allocation cost per megabyte * Number of Memory Allocation metrics available for the day

    2. Sum of Memory allocation for the day (in MB) * Hourly Allocation cost per megabyte

    3. Sum of Memory allocation for the day (in MB) * Daily Allocation cost per megabyte / 24

  5. 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
  1. For example:

Input Box
Field
Value
Per Time
Per Unit
Basic Info
Description
CloudForms
N/A
N/A
Rate Details
CPU – Allocated CPU Count
1
Hourly
CPU

CPU – Used CPU in MHz
.02
Hourly
MHz

Disk I/O – Used disk I/O in KBps
.005
Hourly

KBps


Fixed – Compute Cost 1
0
Daily
N/A

Fixed – Compute Cost 2
0
Monthly
N/A

Memory – Allocated Memory in MB
1

Hourly

GB


Memory – Used Memory in MB
.002
Hourly
MB

Network I/O – Used Network I/O in KBps
.005
Hourly
KBps
  1. Creating Custom Chargeback Rates

    1. Navigate to Cloud Intelligence → Chargeback.

    2. 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. (See Example)

    3. Click Configuration, Add a new Chargeback Rate to create a new chargeback rate.

    4. Enter a Description for the chargeback rate.

    5. Enter a rate and time option for each item.

    6. Click Add.

  2. Assigning Chargeback Rates

    1. Navigate to Cloud Intelligence → Chargeback.

    2. Click the Assignments accordion and click Compute. Use Compute to assign a compute chargeback rate.

    3. In the Basic Info area, set Assign To compute chargeback rates to Tagged VMs and Instances and Tag Category to Environment.

    4. Under Selections, select the newly created rate for each OpenStack environment (New York, Paris, and Tokyo)

    5. Click Save.

  3. Creating Chargeback Reports

    1. Navigate to Cloud Intelligence → Reports.

    2. Click the Reports accordion.

    3. Click Configuration, Add a new Report.

    4. 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.

    5. 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:

    6. CPU Total Cost

    7. CPU Total

    8. Disk I/O Used Cost

    9. Disk I/O Used

    10. Memory Total Cost

    11. Memory Total

    12. Total Cost

    13. 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.

    14. 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:

    15. Show Costs by: My Company Tag

    16. Tag Category: Environment

    17. Tag: <each OpenStack environment>

    18. Group by: VM/Instance From Chargeback Interval, select the time interval. Change Daily Ending With to 1 week.

    19. Click the Preview tab, then click Load to preview the report.

    20. Click Add to create the new report.

  4. Create Ad-hoc Report

    1. Navigate to Cloud Intelligence → Reports.

    2. Click a newly created report.

    3. Click Queue. After a few minutes the report creation will complete and result will appear under the chosen report.

    4. Click on the newly generated report, on the right pane click the download icon and choose Download as PDF. Save the file you your local machine for review.

  5. (Extra Credit) Report Scheduling (not working currently) https://bugzilla.redhat.com/show_bug.cgi?id=1300861

    1. Add Report to Report Menu

    2. Navigate to Cloud Intelligence → Reports.

    3. Click the Edit Report Menus accordion.

    4. Click the EvmGroup-administrator role.

    5. On the right window pane select Trending → Hosts.

    6. Add the newly created reports by selecting it from the Available Reports area on the right, and click Move selected reports left.

    7. Click Commit report management changes.

    8. Click Save.

  6. Schedule Report

    1. Navigate to Cloud Intelligence → Reports.

    2. Click the Schedule accordion.

    3. Click Configuration, Add a new Schedule.

    4. Under Basic Information provide a Name and Description. Leave the Active box checkmarked.

    5. Under Report Selection → Filter, choose Trending, Hosts, and the report name added to the report menu.

    6. Under Timer, set the report to run once every week at midnight.

    7. Click Add to complete.