You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Supun Muthutantrige <su...@wso2.com> on 2015/01/06 05:28:38 UTC

Cloud-Stack Configuration

Hi,

Currently I am working on configuring Cloud-Stack in my local machine. I am
using a VM VirtualBox hypervisor. Cloud-stack management server and the KVM
hosts are configured in separate (Centos 6.6) virtual machines. Since
manual configuration takes significant amount of time, currently i am
following the steps provided in [1], to get the system up and running.

Most of the configuration parts are completed except one issue that has
taken place in setting up a mount point to the NFS server. In order to
complete the installation, there should be an NFS server already up and
running with the mount points created upfront.

Currently in the process of configuring NFS server with cloud-stack
management server.

[1]. https://github.com/thehyperadvisor/cldstk-deploy


Thank you,
Regards.

*Supun Rasitha Muthutantrige*
Software Engineer | Intern
WSO2 Inc: http://wso2.com
lean.enterprise.middleware
Mobile: 0758374608

Re: Cloud-Stack Configuration

Posted by Supun Muthutantrige <su...@wso2.com>.
I took it from the above mentioned repository [1]. I tried with the latest
one as well [2]. Got the same error on both occasions. I am currently in
the cloudstack dev list and the original author is providing the support.
Still didn't get a proper answer from him as well.

[1]. https://github.com/imesh/devcloud4
[2]. https://github.com/imduffy15/devcloud4

Thank you,
Regards


*Supun Rasitha Muthutantrige*
Software Engineer | Intern
WSO2 Inc: http://wso2.com
lean.enterprise.middleware
Mobile: 0758374608

Re: Cloud-Stack Configuration

Posted by Imesh Gunaratne <im...@apache.org>.
Hi Supun,

This could be an issue in devcloud4 latest codebase.

IMO the best option would be to check this with CloudStack Dev list, or you
could try to use a stable devcloud4 release. I have a stable fork I used
sometime back here [1].

[1] https://github.com/imesh/devcloud4

On Sun, Jan 11, 2015 at 11:08 AM, Supun Muthutantrige <su...@wso2.com>
wrote:

> Hi,
>
> Getting the following error which running vagrant up command, terminal
> output as follows
>
>
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
> ==> management: #
>
> ==> management: Thank you for installing Chef!
> ==> management: Running provisioner: chef_solo...
> Generating chef JSON and uploading...
> ==> management: Running chef-solo...
> ==> management: [2015-01-11T05:05:20+00:00] INFO: Forking chef instance to
> converge...
> ==> management: [2015-01-11T05:05:20+00:00] WARN:
> ==> management: * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * * * * * * * * * * *
> ==> management: SSL validation of HTTPS requests is disabled. HTTPS
> connections are still
> ==> management: encrypted, but chef is not able to detect forged replies
> or man in the middle
> ==> management: attacks.
> ==> management:
> ==> management: To fix this issue add an entry like this to your
> configuration file:
> ==> management:
> ==> management: ```
> ==> management:   # Verify all HTTPS connections (recommended)
> ==> management:   ssl_verify_mode :verify_peer
> ==> management:
> ==> management:   # OR, Verify only connections to chef-server
> ==> management:   verify_api_cert true
> ==> management: ```
> ==> management:
> ==> management: To check your SSL configuration, or troubleshoot errors,
> you can use the
> ==> management: `knife ssl check` command like so:
> ==> management:
> ==> management: ```
> ==> management:   knife ssl check -c /tmp/vagrant-chef-2/solo.rb
> ==> management: ```
> ==> management:
> ==> management: * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * * * * * * * * * * *
> ==> management: [2015-01-11T05:05:20+00:00] INFO: *** Chef 11.16.0 ***
> ==> management: [2015-01-11T05:05:20+00:00] INFO: Chef-client pid: 2950
> ==> management: [2015-01-11T05:05:25+00:00] INFO: Setting the run_list to
> ["recipe[nat-router]", "recipe[cloudstack::management-server]"] from CLI
> options
> ==> management: [2015-01-11T05:05:25+00:00] INFO: Run List is
> [recipe[nat-router], recipe[cloudstack::management-server]]
> ==> management: [2015-01-11T05:05:25+00:00] INFO: Run List expands to
> [nat-router, cloudstack::management-server]
> ==> management: [2015-01-11T05:05:25+00:00] INFO: Starting Chef Run for
> localhost
> ==> management: [2015-01-11T05:05:25+00:00] INFO: Running start handlers
> ==> management: [2015-01-11T05:05:25+00:00] INFO: Start handlers complete.
> ==> management:
> ==> management:
> ================================================================================
> ==> management: Recipe Compile Error
> ==> management:
> ================================================================================
> ==> management:
> ==> management:
> ==> management: Chef::Exceptions::RecipeNotFound
> ==> management: --------------------------------
> ==> management: could not find recipe client for cookbook mysql
> ==> management:
> ==> management:
> ==> management: [2015-01-11T05:05:26+00:00] ERROR: Running exception
> handlers
> ==> management: [2015-01-11T05:05:26+00:00] ERROR: Exception handlers
> complete
> ==> management: [2015-01-11T05:05:26+00:00] FATAL: Stacktrace dumped to
> /var/chef/cache/chef-stacktrace.out
> ==> management: [2015-01-11T05:05:26+00:00] ERROR: could not find recipe
> client for cookbook mysql
> ==> management: [2015-01-11T05:05:26+00:00] FATAL:
> Chef::Exceptions::ChildConvergeError: Chef run process exited
> unsuccessfully (exit code 1)
> Chef never successfully completed! Any errors should be visible in the
> output above. Please fix your recipes so that they properly complete.
>
>
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
> Thank you,
> Regards
>
>
> *Supun Rasitha Muthutantrige*
> Software Engineer | Intern
> WSO2 Inc: http://wso2.com
> lean.enterprise.middleware
> Mobile: 0758374608
>



-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: Cloud-Stack Configuration

Posted by Supun Muthutantrige <su...@wso2.com>.
Hi,

Getting the following error which running vagrant up command, terminal
output as follows

------------------------------------------------------------------------------------------------------------------------------------------------

==> management: #

==> management: Thank you for installing Chef!
==> management: Running provisioner: chef_solo...
Generating chef JSON and uploading...
==> management: Running chef-solo...
==> management: [2015-01-11T05:05:20+00:00] INFO: Forking chef instance to
converge...
==> management: [2015-01-11T05:05:20+00:00] WARN:
==> management: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * *
==> management: SSL validation of HTTPS requests is disabled. HTTPS
connections are still
==> management: encrypted, but chef is not able to detect forged replies or
man in the middle
==> management: attacks.
==> management:
==> management: To fix this issue add an entry like this to your
configuration file:
==> management:
==> management: ```
==> management:   # Verify all HTTPS connections (recommended)
==> management:   ssl_verify_mode :verify_peer
==> management:
==> management:   # OR, Verify only connections to chef-server
==> management:   verify_api_cert true
==> management: ```
==> management:
==> management: To check your SSL configuration, or troubleshoot errors,
you can use the
==> management: `knife ssl check` command like so:
==> management:
==> management: ```
==> management:   knife ssl check -c /tmp/vagrant-chef-2/solo.rb
==> management: ```
==> management:
==> management: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * *
==> management: [2015-01-11T05:05:20+00:00] INFO: *** Chef 11.16.0 ***
==> management: [2015-01-11T05:05:20+00:00] INFO: Chef-client pid: 2950
==> management: [2015-01-11T05:05:25+00:00] INFO: Setting the run_list to
["recipe[nat-router]", "recipe[cloudstack::management-server]"] from CLI
options
==> management: [2015-01-11T05:05:25+00:00] INFO: Run List is
[recipe[nat-router], recipe[cloudstack::management-server]]
==> management: [2015-01-11T05:05:25+00:00] INFO: Run List expands to
[nat-router, cloudstack::management-server]
==> management: [2015-01-11T05:05:25+00:00] INFO: Starting Chef Run for
localhost
==> management: [2015-01-11T05:05:25+00:00] INFO: Running start handlers
==> management: [2015-01-11T05:05:25+00:00] INFO: Start handlers complete.
==> management:
==> management:
================================================================================
==> management: Recipe Compile Error
==> management:
================================================================================
==> management:
==> management:
==> management: Chef::Exceptions::RecipeNotFound
==> management: --------------------------------
==> management: could not find recipe client for cookbook mysql
==> management:
==> management:
==> management: [2015-01-11T05:05:26+00:00] ERROR: Running exception
handlers
==> management: [2015-01-11T05:05:26+00:00] ERROR: Exception handlers
complete
==> management: [2015-01-11T05:05:26+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
==> management: [2015-01-11T05:05:26+00:00] ERROR: could not find recipe
client for cookbook mysql
==> management: [2015-01-11T05:05:26+00:00] FATAL:
Chef::Exceptions::ChildConvergeError: Chef run process exited
unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

------------------------------------------------------------------------------------------------------------------------------------------------

Thank you,
Regards


*Supun Rasitha Muthutantrige*
Software Engineer | Intern
WSO2 Inc: http://wso2.com
lean.enterprise.middleware
Mobile: 0758374608

Re: Cloud-Stack Configuration

Posted by Supun Muthutantrige <su...@wso2.com>.
Hi Asanka,

Sure I will go through your instructions :)


Thank you
Regards


*Supun Rasitha Muthutantrige*
Software Engineer | Intern
WSO2 Inc: http://wso2.com
lean.enterprise.middleware
Mobile: 0758374608

Re: Cloud-Stack Configuration

Posted by Asanka Sanjaya Herath <an...@gmail.com>.
Hello supun,

There are three options you can take. take the most suitable one. I
recommend 1st option. Because it will install cloudstak permanently on your
machine.
1. go to binary-installation-advanced folder and run vagrant-up
2.go to basic folder and run same command(this option for building from
source)
3. go to advanced folder and run same command(this option for building from
source)




On Thu, Jan 8, 2015 at 11:44 AM, Supun Muthutantrige <su...@wso2.com>
wrote:

> Hi,
>
> Similar to what I have been following, as Asanka and chip has mentioned I
> have started to go through the steps provided under [1] as well. I would
> like to know after completing the "Getting Started" and "Configure
> Virtualbox" steps, what steps needs to be taken next.
>
> Go to the advanced folder and run "vagrant up" or run the same command
> after navigating to binary-installation-advanced folder?
>
>
> [1]. https://github.com/imduffy15/devcloud4
>
>
>
> Thank you,
> Regards
>
>
> *Supun Rasitha Muthutantrige*
> Software Engineer | Intern
> WSO2 Inc: http://wso2.com
> lean.enterprise.middleware
> Mobile: 0758374608
>



-- 
Thanks,
Regards,
ASH

Re: Cloud-Stack Configuration

Posted by Supun Muthutantrige <su...@wso2.com>.
Hi,

Similar to what I have been following, as Asanka and chip has mentioned I
have started to go through the steps provided under [1] as well. I would
like to know after completing the "Getting Started" and "Configure
Virtualbox" steps, what steps needs to be taken next.

Go to the advanced folder and run "vagrant up" or run the same command
after navigating to binary-installation-advanced folder?


[1]. https://github.com/imduffy15/devcloud4



Thank you,
Regards


*Supun Rasitha Muthutantrige*
Software Engineer | Intern
WSO2 Inc: http://wso2.com
lean.enterprise.middleware
Mobile: 0758374608

Re: Cloud-Stack Configuration

Posted by Supun Muthutantrige <su...@wso2.com>.
@Imesh: Yes ayya I will look into that and try to figure out what could be
the reason.

@Asanka and chip: I will follow what you have mentioned and would highly
appreciate your support on this.


Thank you,
Regards


*Supun Rasitha Muthutantrige*
Software Engineer | Intern
WSO2 Inc: http://wso2.com
lean.enterprise.middleware
Mobile: 0758374608

Re: Cloud-Stack Configuration

Posted by Chip Childers <ch...@apache.org>.
On Wed, Jan 07, 2015 at 07:38:44PM +0530, Asanka Sanjaya Herath wrote:
> Hello supun,
> 
> If you are trying to deploy cloudstack in a single machine, the easiest way
> I found is this repository[1].
> [1]. https://github.com/imduffy15/devcloud4

That's a great tool that Ian built, indeed.

> 
> If you have time please follow that. That will take about two or three
> hours to get the devcloud up. If you follow this, I can help you to get
> cloudstack up.

You might want to be asking questions like this on either
dev@cloudstack.apache.org or users@cloudstack.apache.org, since those
are for the Apache CloudStack project... if you get stuck that is.

-chip

Re: Cloud-Stack Configuration

Posted by Asanka Sanjaya Herath <an...@gmail.com>.
Hello supun,

If you are trying to deploy cloudstack in a single machine, the easiest way
I found is this repository[1].
[1]. https://github.com/imduffy15/devcloud4

If you have time please follow that. That will take about two or three
hours to get the devcloud up. If you follow this, I can help you to get
cloudstack up.




On Wed, Jan 7, 2015 at 7:31 PM, Imesh Gunaratne <im...@apache.org> wrote:

> Hi Supun,
>
> I think it would be better to check the CloudStack log files located at
> /var/log/cloudstack folder and see whether there are any errors.
>
> Thanks
>
> On Wed, Jan 7, 2015 at 7:06 PM, Supun Muthutantrige <su...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I have been able to complete cloud-stack configuration part by following
>> the steps provided in [1]. But when i run the server and browse using the
>> provided link, the server seems unavailable.
>>
>> highly appreciate any suggestions
>>
>> [1].
>> http://thehyperadvisor.com/2014/08/05/quick-easy-apache-cloudstack-deployments-using-cldstk-deploy/#comment-3655
>>
>>
>> Thank you,
>> Regards
>>
>>
>> *Supun Rasitha Muthutantrige*
>> Software Engineer | Intern
>> WSO2 Inc: http://wso2.com
>> lean.enterprise.middleware
>> Mobile: 0758374608
>>
>
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>



-- 
Thanks,
Regards,
ASH

Re: Cloud-Stack Configuration

Posted by Imesh Gunaratne <im...@apache.org>.
Hi Supun,

I think it would be better to check the CloudStack log files located at
/var/log/cloudstack folder and see whether there are any errors.

Thanks

On Wed, Jan 7, 2015 at 7:06 PM, Supun Muthutantrige <su...@wso2.com> wrote:

> Hi,
>
> I have been able to complete cloud-stack configuration part by following
> the steps provided in [1]. But when i run the server and browse using the
> provided link, the server seems unavailable.
>
> highly appreciate any suggestions
>
> [1].
> http://thehyperadvisor.com/2014/08/05/quick-easy-apache-cloudstack-deployments-using-cldstk-deploy/#comment-3655
>
>
> Thank you,
> Regards
>
>
> *Supun Rasitha Muthutantrige*
> Software Engineer | Intern
> WSO2 Inc: http://wso2.com
> lean.enterprise.middleware
> Mobile: 0758374608
>



-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: Cloud-Stack Configuration

Posted by Supun Muthutantrige <su...@wso2.com>.
Hi,

I have been able to complete cloud-stack configuration part by following
the steps provided in [1]. But when i run the server and browse using the
provided link, the server seems unavailable.

highly appreciate any suggestions

[1].
http://thehyperadvisor.com/2014/08/05/quick-easy-apache-cloudstack-deployments-using-cldstk-deploy/#comment-3655


Thank you,
Regards


*Supun Rasitha Muthutantrige*
Software Engineer | Intern
WSO2 Inc: http://wso2.com
lean.enterprise.middleware
Mobile: 0758374608

Re: Cloud-Stack Configuration

Posted by Imesh Gunaratne <im...@apache.org>.
Great! Thanks for the update Supun!

On Wed, Jan 7, 2015 at 9:37 AM, Supun Muthutantrige <su...@wso2.com> wrote:

> Hi Imesh ayya,
>
> Yes I have been able to create a mount point from the cloud-stack server
> to the NFS server. Now it needs to be added to the overall configuration
> part. Hence I am running the steps required for this task.
>
>
> Thank you,
> Regards
>
>
> *Supun Rasitha Muthutantrige*
> Software Engineer | Intern
> WSO2 Inc: http://wso2.com
> lean.enterprise.middleware
> Mobile: 0758374608
>
>


-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: Cloud-Stack Configuration

Posted by Supun Muthutantrige <su...@wso2.com>.
Hi Imesh ayya,

Yes I have been able to create a mount point from the cloud-stack server to
the NFS server. Now it needs to be added to the overall configuration part.
Hence I am running the steps required for this task.


Thank you,
Regards


*Supun Rasitha Muthutantrige*
Software Engineer | Intern
WSO2 Inc: http://wso2.com
lean.enterprise.middleware
Mobile: 0758374608

Re: Cloud-Stack Configuration

Posted by Imesh Gunaratne <im...@apache.org>.
A great effort on setting up CloudStack and trying to verify CloudStack
integration!

Regarding the SSH issue, this happens if the IP address which was bind to
the hostname may have changed. Here SSH detects this as an intrusion and
blocks the operation.

Did you manage to solve the issue with mounting a NFS server?

Thanks

On Wed, Jan 7, 2015 at 12:50 AM, Supun Muthutantrige <su...@wso2.com>
wrote:

> Hi,
>
> Every time when I try to *ssh *a host virtual machine, I have to remove
> the particular host key from SSH's known_hosts file in order to perform the
> underlying task. Would like to know the reason and possibly a way to avoid
> repeating this step.
>
>
> Thank you,
> Regards
>
> *Supun Rasitha Muthutantrige*
> Software Engineer | Intern
> WSO2 Inc: http://wso2.com
> lean.enterprise.middleware
> Mobile: 0758374608
>
>


-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: Cloud-Stack Configuration

Posted by Supun Muthutantrige <su...@wso2.com>.
Hi,

Every time when I try to *ssh *a host virtual machine, I have to remove the
particular host key from SSH's known_hosts file in order to perform the
underlying task. Would like to know the reason and possibly a way to avoid
repeating this step.


Thank you,
Regards

*Supun Rasitha Muthutantrige*
Software Engineer | Intern
WSO2 Inc: http://wso2.com
lean.enterprise.middleware
Mobile: 0758374608

Re: Cloud-Stack Configuration

Posted by Supun Muthutantrige <su...@wso2.com>.
More detailed documentation about setting up Cloud-stack can be found under
[2].

[2].
http://thehyperadvisor.com/2014/08/05/quick-easy-apache-cloudstack-deployments-using-cldstk-deploy/#comment-3641


Thank you,
Regards


*Supun Rasitha Muthutantrige*
Software Engineer | Intern
WSO2 Inc: http://wso2.com
lean.enterprise.middleware
Mobile: 0758374608