incubator-vcl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xianqing Yu" <yu267155...@hotmail.com>
Subject Re: The CCMP module for IBM Cloud
Date Tue, 26 Apr 2011 23:07:24 GMT
Hi Aaron:

I updated the CCMP code today on JIRA.

Here is updated list:

Use database_* routines to check or update VCL database.
Use is_inblockrequest($computer_id) to check if computer belong to block 
allocation computer pool.
Use is_request_deleted($request_id) to check reservation status.
Create power_off function, and use it to power off computers.

Again, thank you for your recommendations,

Xianqing Yu

------
Graduate Research Assistant, Cyber Defense Lab
Department of Computer Science
North Carolina State University, Raleigh, NC
E-mail: xyu6@ncsu.edu
-----Original Message----- 
From: Aaron Peeler
Sent: Wednesday, April 20, 2011 04:29 PM
To: vcl-dev@incubator.apache.org
Subject: Re: The CCMP module for IBM Cloud

Hi Milen, Xianqing,

Thanks for the update.

Overall the code looks really good.

Some suggestions, which would help clean up the code a little bit.

I see your making sql calls directly in the ccmp module.
Something to help simplify is to use these routines.

database_select()
database_execute()

These database_* routines will check for and create a db handle if
needed. Also if we every need to move away from mysql to another

Some other ones related to sql statements:
for the blockComputers check you can use
is_inblockrequest($computer_id)
to see if a user deleted a request you can use this routine
is_request_deleted($request_id)

In your does_image_exist routine. You can do away with the Check in the
local database and only confirm the image is available in the IBM cloud.
If the image wasn't in the local VCL database, then the user request
would not be able to get that far anyway.


Also you might be able to make use of the variable table.
An example starts on line 250 in the xCAT2.pm provisioning module
if($self->data->is_variable_set($variable_name)){
   notify($ERRORS{'DEBUG'}, 0, "throttle is  set for $variable_name");
   #fetch variable
   $xcat_throttle = $self->data->get_variable($variable_name);
  }

The variable table can used to handle variables that do not have a home
or that need to be flexible.

I see your powering off the nodes in certain cases, after each reclaim
and at the end of block allocations. Can you explain more about that?

In the OS modules, what are main changes there? What version were you
working against? I see a lot of little changes, but many may be related
to the differences in the version your were working on. Ideally we would
want to extend the OS modules to handle what would be needed to work
with all the provisioning modules.

Thanks again for your work,
Aaron



On 4/20/11 11:47 AM, Milen P Paskov wrote:
> Hello community,
>
> There is now a JIRA issue with the code attached to it
> (https://issues.apache.org/jira/browse/VCL-457). We are currently
> working on getting some more documentation and will upload once we have 
> it.
>
> Here is a link about IBM Cloud where you can find some more information
> about it:
> http://www-935.ibm.com/services/us/igs/cloud-development/#tab:overview/#leadspace:default
>
>
> Best Regards,
> Milen Paskov
> WSTI Intern
> mppaskov@us.ibm.com
>
> Inactive hide details for Aaron Peeler ---04/19/2011 09:37:57 AM---Hi
> Milen, Please discuss the module details on this list so Aaron Peeler
> ---04/19/2011 09:37:57 AM---Hi Milen, Please discuss the module details
> on this list so others are aware of
>
> From: Aaron Peeler <aaron_peeler@ncsu.edu>
> To: vcl-dev@incubator.apache.org
> Date: 04/19/2011 09:37 AM
> Subject: Re: The CCMP module for IBM Cloud
>
> ------------------------------------------------------------------------
>
>
>
> Hi Milen,
>
> Please discuss the module details on this list so others are aware of
> it. All development discussions should be done on this list for
> community public record.
>
> For instance, Talk about what the module is doing. What sort of changes
> need to take place on the management node? What changes in the db?
>
> Have you created a Jira issue for it yet?
>
> Thanks,
> Aaron
>
> On 4/18/11 5:39 PM, Milen P Paskov wrote:
>  > Hi Aaron,
>  >
>  > As we are very close to NCSU campus me and Xianqing will be able to 
> drop
>  > by on Wednesday, how does 9am sound. Then we can discuss the module in
>  > detail as well as what needs to be done to test it in a production VCL.
>  >
>  > Once again we would like to thank you and NCSU for the opportunity to
>  > test our module
>  >
>  > Best Regards,
>  > Milen Paskov
>  > WSTI Intern
>  > mppaskov@us.ibm.com
>  >
>  > Inactive hide details for Aaron Peeler ---04/15/2011 12:58:53 PM---Hi
>  > Milen, This is great. We'd like to test it here at NCSU.Aaron Peeler
>  > ---04/15/2011 12:58:53 PM---Hi Milen, This is great. We'd like to test
>  > it here at NCSU.
>  >
>  > From: Aaron Peeler <aaron_peeler@ncsu.edu>
>  > To: vcl-dev@incubator.apache.org
>  > Date: 04/15/2011 12:58 PM
>  > Subject: Re: The CCMP module for IBM Cloud
>  >
>  > ------------------------------------------------------------------------
>  >
>  >
>  >
>  > Hi Milen,
>  >
>  > This is great. We'd like to test it here at NCSU.
>  >
>  > If you haven't already do so, please create a JIRA issue for this and
>  > add any info you can to it. Normally you can attached the code for the
>  > module to the jira issue for review, but I can only assume you have to
>  > some kind of clearance from IBM legal.
>  >
>  > Just let us know the next steps to be able to review and test it out.
>  >
>  > Thanks,
>  > Aaron
>  >
>  > On 4/15/11 10:14 AM, Milen P Paskov wrote:
>  > > Hello community,
>  > >
>  > > I would like to bring some more attention to this topic as the module
>  > > has taken shape.
>  > >
>  > > The idea behind this module is that university as well as anyone else
>  > > interested in VCL will be able to have access to additional 
> resources.
>  > > Hardware can be expensive and not everyone can afford to buy some 
> just
>  > > to test VCL. Using this module one can set up VCL on a local machine 
> or
>  > > one on IBM Cloud and provision images on the IBM Cloud. Images on IBM
>  > > Cloud can be modified and saved just like a regular VCL. In
> addition the
>  > > module can be used to increase the capacity of of currently
>  > operational VCL.
>  > >
>  > > Currently the module is fully functional with Linux images and can
>  > > provision Windows images, but it can not save the Windows images. The
>  > > module has been tested within IBM, but we are looking for ways to try
>  > > and test on a production VCL.
>  > >
>  > > Best Regards,
>  > > Milen Paskov
>  > > WSTI Intern
>  > > mppaskov@us.ibm.com
>  > >
>  > > Inactive hide details for Aaron Peeler ---12/10/2010 02:54:51 PM---Hi
>  > > Xianqing, Sounds great, look forward to seeing it (hopefuAaron Peeler
>  > > ---12/10/2010 02:54:51 PM---Hi Xianqing, Sounds great, look forward 
> to
>  > > seeing it (hopefully it will get IBM
>  > >
>  > > From: Aaron Peeler <aaron_peeler@ncsu.edu>
>  > > To: vcl-dev@incubator.apache.org
>  > > Date: 12/10/2010 02:54 PM
>  > > Subject: Re: The CCMP module for IBM Cloud
>  > >
>  > >
> ------------------------------------------------------------------------
>  > >
>  > >
>  > >
>  > > Hi Xianqing,
>  > >
>  > > Sounds great, look forward to seeing it (hopefully it will get IBM
>  > > approval for donation).
>  > >
>  > > Aaron
>  > >
>  > > On 12/10/10 10:49 AM, Xianqing Yu wrote:
>  > > > Hello VCL community,
>  > > >
>  > > > I have been working on a new provisioning module (ccmp module) for
>  > > VCL. With this module the VCL will be able to provision instances
> on the
>  > > IBM Developer Could. Milen Paskov was working on the project, and now 
> I
>  > > take over it. I updated the module and now the module is under the
>  > > testing. I think we can contribute ccmp module and documentation
>  > > relative to the module to VCL community in January next year.
>  > > >
>  > > >
>  > > > Best Regards,
>  > > >
>  > > > Xianqing Yu
>  > > > WSTI Intern
>  > > > yux@us.ibm.com
>  > >
>  > >
>  > > --
>  > >
>  > > Aaron Peeler
>  > > Program Manager
>  > > Virtual Computing Lab
>  > > NC State University
>  > > aaron_peeler@ncsu.edu
>  > > 919-513-4571
>  > >
>  > >
>  >
>  > --
>  > Aaron Peeler
>  > Program Manager
>  > Virtual Computing Lab
>  > NC State University
>  >
>
> --
> Aaron Peeler
> Program Manager
> Virtual Computing Lab
> NC State University
>

-- 
Aaron Peeler
Program Manager
Virtual Computing Lab
NC State University 


Mime
View raw message