From Fedora Project Wiki

m (fix descriptions)
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 2: Line 2:
|description=Deliver an appliance to an ElasticHost API compatible cloud provider
|description=Deliver an appliance to an ElasticHost API compatible cloud provider
|setup=
|setup=
{{admon/note|You need an account with an ElasticHost API compliant cloud provider for these tests!}}
{{admon/note|Cloud account required|You need an ElasticHosts, Open Hosting, SKALI Cloud or Serverlove account to perform this Test Case}}
* Clone the BoxGrinder test appliances into a convenient location using command <code>git clone https://github.com/msavy/boxgrinder-appliances.git</code>
# Launch the JEOS AMI built in the AMI test case: [[QA:TestCase_boxgrinder_deliver_ami]], or any other Fedora 15 AMI.
* Put the following BoxGrinder config into a file named: <code>~/.boxgrinder/config</code>. Insert appropriate values, see: http://boxgrinder.org/tutorials/boxgrinder-build-plugins/#ElasticHosts_Delivery_Plugin, for more information.
# Put the following BoxGrinder config into a file named: <code>/root/.boxgrinder/config</code>. Insert appropriate values, see: http://boxgrinder.org/tutorials/boxgrinder-build-plugins/#ElasticHosts_Delivery_Plugin, for more information.
<pre>
<pre>
plugins:
plugins:
   elastichosts:
   elastichosts:
     endpoint: api.lon-p.elastichosts.com              # required
     endpoint: api.lon-p.elastichosts.com              # required
     user_uuid: your-user-id                           # required
     username: your-user-id                           # required
     secret_access_key: your-secret-access-key         # required
     password: your-secret-access-key                 # required
     chunk: 128                                        # default: 64 (in MB)
     chunk: 128                                        # default: 64 (in MB)
    start_part: 6                                    # default: 0
     wait: 30                                          # default: 5 (in s)
     wait: 30                                          # default: 5 (in s)
     retry: 2                                          # default: 3
     retry: 2                                          # default: 3
     ssl: true                                        # default: false
     ssl: true                                        # default: false
    drive_uuid: b161fd8b-d56s-4eea-9055-669daaec8aa4
    drive_name: my-bg-drive
</pre>
</pre>
{{admon/warning|BoxGrinder Build config file location|The default location for this file is <code>/root/.boxgrinder/config</code>. You can put this file in different location by specifying <code>BG_CONFIG_FILE</code> environment variable.}}


|actions=
|actions=
# Navigate to directory <code>boxgrinder-appliances/testing-appliances/jeos-appls/</code>
# Execute <pre>boxgrinder-build testing-appliances/jeos-appls/fedora-14-jeos.appl -d elastichosts --trace</pre>   
# Execute <pre>boxgrinder-build fedora-15-jeos.appl -d elastichosts</pre>   
# Run an instance of the VM through your cloud providers tools, log on via SSH
# Run an instance of the VM through your cloud providers tools, verify that you can log on
# Run the following Test Case in the VM: [[QA:Network_basic_test_case]]
# Run the following Test Case in the VM: [[QA:Network_basic_test_case]]
|results=
|results=
The following must be true to consider this a successful test run.
The following must be true to consider this a successful test run.
# Step #2 completes without error (indicated on console)
# Step #1 completes without error (indicated on console)
# Program completes with exit code 0
# Program completes with exit code 0
# The new image has appeared in your cloud provider's management system
# The new image has appeared in your cloud provider's management system
# Step #2 completes without error
# [[QA:Network_basic_test_case]] is performed successfully on the new appliance
# [[QA:Network_basic_test_case]] is performed successfully on the new appliance
}}
}}

Latest revision as of 07:40, 28 April 2011

Description

Deliver an appliance to an ElasticHost API compatible cloud provider

Setup

Note.png
Cloud account required
You need an ElasticHosts, Open Hosting, SKALI Cloud or Serverlove account to perform this Test Case
  1. Launch the JEOS AMI built in the AMI test case: QA:TestCase_boxgrinder_deliver_ami, or any other Fedora 15 AMI.
  2. Put the following BoxGrinder config into a file named: /root/.boxgrinder/config. Insert appropriate values, see: http://boxgrinder.org/tutorials/boxgrinder-build-plugins/#ElasticHosts_Delivery_Plugin, for more information.
plugins:
  elastichosts:
    endpoint: api.lon-p.elastichosts.com              # required
    username: your-user-id                            # required
    password: your-secret-access-key                  # required
    chunk: 128                                        # default: 64 (in MB)
    wait: 30                                          # default: 5 (in s)
    retry: 2                                          # default: 3
    ssl: true                                         # default: false
Warning.png
BoxGrinder Build config file location
The default location for this file is /root/.boxgrinder/config. You can put this file in different location by specifying BG_CONFIG_FILE environment variable.

How to test

  1. Execute
    boxgrinder-build testing-appliances/jeos-appls/fedora-14-jeos.appl -d elastichosts --trace
  2. Run an instance of the VM through your cloud providers tools, log on via SSH
  3. Run the following Test Case in the VM: QA:Network_basic_test_case

Expected Results

The following must be true to consider this a successful test run.

  1. Step #1 completes without error (indicated on console)
  2. Program completes with exit code 0
  3. The new image has appeared in your cloud provider's management system
  4. Step #2 completes without error
  5. QA:Network_basic_test_case is performed successfully on the new appliance