You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Karl Harris <ka...@sungardas.com> on 2014/07/07 22:16:09 UTC

Testing a Cloudstack Virtual Router (SystemVM).

What is the current framework used to test a Cloudstack Virtual Router
(SystemVM) in isolation aka without Management Server if any?

I'd like to call a SystemVM script with a set of configuration parameters
(changes for VPCVrr, etc.) and observe the changes to the virtual routers
configuration.

Since I will eventually need the ethernet connections to be added and
deleted I would like to aviod using ethernet to make the connection to the
SystemVM image. Ideally I don't want to change the SystemVM image from what
is build by tools/appliance/build.sh.

How was this testing done in the past?

Thanks,

Karl

Re: Testing a Cloudstack Virtual Router (SystemVM).

Posted by Karl Harris <ka...@sungardas.com>.
Sorry for the duplicate questions!

Most were answered in you previous response!

Thanks Rohit!

On Tuesday, July 8, 2014, Karl Harris <ka...@sungardas.com> wrote:

> How is the unit testing accomplished for changes to the
> configuration/startup scripts? I can obviously run the scripts in a
> different Debian build!
> Im trying to build something that can be tested easily without many
> changes to the baseline System VM image.
>
> The current System VM build runs under vbox freestanding but has no net
> work unless parameter are passed to it via Grub/proc/cmdline which is used
> by cloud-early-config.sh to set up the network.
>
> How was the unit testing done in the past?
>
> Or was iit ntegration testing only?
>
>
> On Tuesday, July 8, 2014, Rohit Yadav <rohit.yadav@shapeblue.com
> <javascript:_e(%7B%7D,'cvml','rohit.yadav@shapeblue.com');>> wrote:
>
>> Hi Karl,
>>
>> Karl Harris wrote:
>>
>>> What is the current framework used to test a Cloudstack Virtual Router
>>> (SystemVM) in isolation aka without Management Server if any?
>>>
>>
>> AFAIK we don't have any such testing/automation framework within Apache
>> CloudStack.
>>
>>  I'd like to call a SystemVM script with a set of configuration parameters
>>> (changes for VPCVrr, etc.) and observe the changes to the virtual routers
>>> configuration.
>>>
>>> Since I will eventually need the ethernet connections to be added and
>>> deleted I would like to aviod using ethernet to make the connection to
>>> the
>>> SystemVM image. Ideally I don't want to change the SystemVM image from
>>> what
>>> is build by tools/appliance/build.sh.
>>>
>>>
>> The SystemVM image and the agent is tightly coupled with CloudStack, you
>> may have to change things in the build script (if you intend to
>> add/remove/modify packages, files and contents).
>>
>>  How was this testing done in the past?
>>>
>>
>> In the past, I would create a systemvm template, have CloudStack
>> management to use it to boot up SSVMs, VRs etc. and ssh into them from
>> their respective hosts on their link local IP. Then, I would change the
>> internal state of the VM and check with management server to test things
>> and see if it would fix the state itself, execute platform apis etc.
>>
>> There is/was no automation framework to do the testing so it was mostly
>> manually. Any work in this regard would be great.
>>
>> Regards.
>>
>>
>>> Thanks,
>>>
>>> Karl
>>>
>>>  Find out more about ShapeBlue and our range of CloudStack related
>> services
>>
>> IaaS Cloud Design & Build<http://shapeblue.com/
>> iaas-cloud-design-and-build//>
>> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
>> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
>> CloudStack Infrastructure Support<http://shapeblue.com/
>> cloudstack-infrastructure-support/>
>> CloudStack Bootcamp Training Courses<http://shapeblue.com/
>> cloudstack-training/>
>>
>> This email and any attachments to it may be confidential and are intended
>> solely for the use of the individual to whom it is addressed. Any views or
>> opinions expressed are solely those of the author and do not necessarily
>> represent those of Shape Blue Ltd or related companies. If you are not the
>> intended recipient of this email, you must neither take any action based
>> upon its contents, nor copy or show it to anyone. Please contact the sender
>> if you believe you have received this email in error. Shape Blue Ltd is a
>> company incorporated in England & Wales. ShapeBlue Services India LLP is a
>> company incorporated in India and is operated under license from Shape Blue
>> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
>> and is operated under license from Shape Blue Ltd. ShapeBlue is a
>> registered trademark.
>>
>>

Re: Testing a Cloudstack Virtual Router (SystemVM).

Posted by Karl Harris <ka...@sungardas.com>.
How is the unit testing accomplished for changes to the
configuration/startup scripts? I can obviously run the scripts in a
different Debian build!
Im trying to build something that can be tested easily without many changes
to the baseline System VM image.

The current System VM build runs under vbox freestanding but has no net
work unless parameter are passed to it via Grub/proc/cmdline which is used
by cloud-early-config.sh to set up the network.

How was the unit testing done in the past?

Or was iit ntegration testing only?


On Tuesday, July 8, 2014, Rohit Yadav <ro...@shapeblue.com> wrote:

> Hi Karl,
>
> Karl Harris wrote:
>
>> What is the current framework used to test a Cloudstack Virtual Router
>> (SystemVM) in isolation aka without Management Server if any?
>>
>
> AFAIK we don't have any such testing/automation framework within Apache
> CloudStack.
>
>  I'd like to call a SystemVM script with a set of configuration parameters
>> (changes for VPCVrr, etc.) and observe the changes to the virtual routers
>> configuration.
>>
>> Since I will eventually need the ethernet connections to be added and
>> deleted I would like to aviod using ethernet to make the connection to the
>> SystemVM image. Ideally I don't want to change the SystemVM image from
>> what
>> is build by tools/appliance/build.sh.
>>
>>
> The SystemVM image and the agent is tightly coupled with CloudStack, you
> may have to change things in the build script (if you intend to
> add/remove/modify packages, files and contents).
>
>  How was this testing done in the past?
>>
>
> In the past, I would create a systemvm template, have CloudStack
> management to use it to boot up SSVMs, VRs etc. and ssh into them from
> their respective hosts on their link local IP. Then, I would change the
> internal state of the VM and check with management server to test things
> and see if it would fix the state itself, execute platform apis etc.
>
> There is/was no automation framework to do the testing so it was mostly
> manually. Any work in this regard would be great.
>
> Regards.
>
>
>> Thanks,
>>
>> Karl
>>
>>  Find out more about ShapeBlue and our range of CloudStack related
> services
>
> IaaS Cloud Design & Build<http://shapeblue.com/
> iaas-cloud-design-and-build//>
> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
> CloudStack Infrastructure Support<http://shapeblue.com/
> cloudstack-infrastructure-support/>
> CloudStack Bootcamp Training Courses<http://shapeblue.com/
> cloudstack-training/>
>
> This email and any attachments to it may be confidential and are intended
> solely for the use of the individual to whom it is addressed. Any views or
> opinions expressed are solely those of the author and do not necessarily
> represent those of Shape Blue Ltd or related companies. If you are not the
> intended recipient of this email, you must neither take any action based
> upon its contents, nor copy or show it to anyone. Please contact the sender
> if you believe you have received this email in error. Shape Blue Ltd is a
> company incorporated in England & Wales. ShapeBlue Services India LLP is a
> company incorporated in India and is operated under license from Shape Blue
> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
> and is operated under license from Shape Blue Ltd. ShapeBlue is a
> registered trademark.
>
>

Re: Testing a Cloudstack Virtual Router (SystemVM).

Posted by Rohit Yadav <ro...@shapeblue.com>.
Hi,

Karl Harris wrote:
>>
>> Since cloud-early-config.sh is "hypervisor aware", at least for those that
> do not populate /proc/cmdline directly,  did you test each hypervisor
> manually?

Unfortunately yes, I used to do it only for Xen and KVM only.

Regards.

>
> Regards.
>>
>>> Thanks,
>>>
>>> Karl
>>>
>>>   Find out more about ShapeBlue and our range of CloudStack related
>> services
>>
>> IaaS Cloud Design&  Build<http://shapeblue.com/
>> iaas-cloud-design-and-build//>
>> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
>> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
>> CloudStack Infrastructure Support<http://shapeblue.com/
>> cloudstack-infrastructure-support/>
>> CloudStack Bootcamp Training Courses<http://shapeblue.com/
>> cloudstack-training/>
>>
>> This email and any attachments to it may be confidential and are intended
>> solely for the use of the individual to whom it is addressed. Any views or
>> opinions expressed are solely those of the author and do not necessarily
>> represent those of Shape Blue Ltd or related companies. If you are not the
>> intended recipient of this email, you must neither take any action based
>> upon its contents, nor copy or show it to anyone. Please contact the sender
>> if you believe you have received this email in error. Shape Blue Ltd is a
>> company incorporated in England&  Wales. ShapeBlue Services India LLP is a
>> company incorporated in India and is operated under license from Shape Blue
>> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
>> and is operated under license from Shape Blue Ltd. ShapeBlue is a
>> registered trademark.
>>
>>
>

--
Rohit Yadav
Software Architect, ShapeBlue
M. +91 88 262 30892 | rohit.yadav@shapeblue.com
Blog: bhaisaab.org | Twitter: @_bhaisaab
Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.

Re: Testing a Cloudstack Virtual Router (SystemVM).

Posted by Karl Harris <ka...@sungardas.com>.
On Tue, Jul 8, 2014 at 5:04 AM, Rohit Yadav <ro...@shapeblue.com>
wrote:

> Hi Karl,
>
>
> Karl Harris wrote:
>
>> What is the current framework used to test a Cloudstack Virtual Router
>> (SystemVM) in isolation aka without Management Server if any?
>>
>
> AFAIK we don't have any such testing/automation framework within Apache
> CloudStack.
>
>
>  I'd like to call a SystemVM script with a set of configuration parameters
>> (changes for VPCVrr, etc.) and observe the changes to the virtual routers
>> configuration.
>>
>> Since I will eventually need the ethernet connections to be added and
>> deleted I would like to aviod using ethernet to make the connection to the
>> SystemVM image. Ideally I don't want to change the SystemVM image from
>> what
>> is build by tools/appliance/build.sh.
>>
>>
> The SystemVM image and the agent is tightly coupled with CloudStack, you
> may have to change things in the build script (if you intend to
> add/remove/modify packages, files and contents).
>
>
>  How was this testing done in the past?
>>
>
> In the past, I would create a systemvm template, have CloudStack
> management to use it to boot up SSVMs, VRs etc. and ssh into them from
> their respective hosts on their link local IP. Then, I would change the
> internal state of the VM and check with management server to test things
> and see if it would fix the state itself, execute platform apis etc.
>
> There is/was no automation framework to do the testing so it was mostly
> manually. Any work in this regard would be great.
>
> Since cloud-early-config.sh is "hypervisor aware", at least for those that
do not populate /proc/cmdline directly,  did you test each hypervisor
manually?

Regards.
>
>
>> Thanks,
>>
>> Karl
>>
>>  Find out more about ShapeBlue and our range of CloudStack related
> services
>
> IaaS Cloud Design & Build<http://shapeblue.com/
> iaas-cloud-design-and-build//>
> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
> CloudStack Infrastructure Support<http://shapeblue.com/
> cloudstack-infrastructure-support/>
> CloudStack Bootcamp Training Courses<http://shapeblue.com/
> cloudstack-training/>
>
> This email and any attachments to it may be confidential and are intended
> solely for the use of the individual to whom it is addressed. Any views or
> opinions expressed are solely those of the author and do not necessarily
> represent those of Shape Blue Ltd or related companies. If you are not the
> intended recipient of this email, you must neither take any action based
> upon its contents, nor copy or show it to anyone. Please contact the sender
> if you believe you have received this email in error. Shape Blue Ltd is a
> company incorporated in England & Wales. ShapeBlue Services India LLP is a
> company incorporated in India and is operated under license from Shape Blue
> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
> and is operated under license from Shape Blue Ltd. ShapeBlue is a
> registered trademark.
>
>

Re: Testing a Cloudstack Virtual Router (SystemVM).

Posted by Rohit Yadav <ro...@shapeblue.com>.
Hi Karl,

Karl Harris wrote:
> What is the current framework used to test a Cloudstack Virtual Router
> (SystemVM) in isolation aka without Management Server if any?

AFAIK we don't have any such testing/automation framework within Apache CloudStack.

> I'd like to call a SystemVM script with a set of configuration parameters
> (changes for VPCVrr, etc.) and observe the changes to the virtual routers
> configuration.
>
> Since I will eventually need the ethernet connections to be added and
> deleted I would like to aviod using ethernet to make the connection to the
> SystemVM image. Ideally I don't want to change the SystemVM image from what
> is build by tools/appliance/build.sh.
>

The SystemVM image and the agent is tightly coupled with CloudStack, you may have to change things in the build script (if you intend to add/remove/modify packages, files and contents).

> How was this testing done in the past?

In the past, I would create a systemvm template, have CloudStack management to use it to boot up SSVMs, VRs etc. and ssh into them from their respective hosts on their link local IP. Then, I would change the internal state of the VM and check with management server to test things and see if it would fix the state itself, execute platform apis etc.

There is/was no automation framework to do the testing so it was mostly manually. Any work in this regard would be great.

Regards.

>
> Thanks,
>
> Karl
>
Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.