You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Paul Angus <pa...@shapeblue.com> on 2013/02/03 16:50:18 UTC

CloudStack on Ubuntu - adding host fails

Hi,

I'm doing some work on using Ubuntu with CloudStack as a management host, XCP host and KVM host.

Adding a Ubuntu host to a Ubuntu CloudStack management server environment fails, apparently due to a load of missing scripts...

Any Ideas??

http://pastebin.com/gE3nnPGK

2013-02-03 15:27:53,693 DEBUG [utils.script.Script] (DirectAgent-1:null) Looking for scripts/vm/hypervisor/xenserver/xcposs/patch in /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/patch
2013-02-03 15:27:53,693 WARN  [xen.resource.CitrixResourceBase] (DirectAgent-1:null) We cannot locate /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../ovsgre
2013-02-03 15:27:53,694 WARN  [xen.resource.CitrixResourceBase] (DirectAgent-1:null) We cannot locate /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../network/domr//ipassoc.sh
2013-02-03 15:27:53,694 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/./vmopsSnapshot to /usr/lib/xcp/plugins on 10.0.2.99 with permission 0755
2013-02-03 15:27:54,153 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../cloud-setup-bonding.sh to /usr/lib/xcp/bin on 10.0.2.99 with permission 0755
2013-02-03 15:27:54,212 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../network/domr//call_firewall.sh to /usr/lib/xcp/bin on 10.0.2.99 with permission 0755
2013-02-03 15:27:54,228 WARN  [xen.resource.CitrixResourceBase] (DirectAgent-1:null) We cannot locate /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../network/domr//getDomRVersion.sh
2013-02-03 15:27:54,228 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../cloud-clean-vlan.sh to /usr/lib/xcp/bin on 10.0.2.99 with permission 0755
2013-02-03 15:27:54,238 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../pingtest.sh to /usr/lib/xcp/bin on 10.0.2.99 with permission 0755
2013-02-03 15:27:54,247 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../network_info.sh to /usr/lib/xcp/bin on 10.0.2.99 with permission 0755
2013-02-03 15:27:54,256 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../setup_iscsi.sh to /usr/lib/xcp/bin on 10.0.2.99 with permission 0755
2013-02-03 15:27:54,278 WARN  [xen.resource.CitrixResourceBase] (DirectAgent-1:null) We cannot locate /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../network/domr//getRouterStatus.sh
2013-02-03 15:27:54,279 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../../vms/systemvm.iso to /usr/share/xcp/packages/iso/ on 10.0.2.99 with permission 0644
2013-02-03 15:27:54,654 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../setupxenserver.sh to /usr/lib/xcp/bin on 10.0.2.99 with permission 0755
2013-02-03 15:27:54,664 WARN  [xen.resource.CitrixResourceBase] (DirectAgent-1:null) We cannot locate /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../network/domr//networkUsage.sh
2013-02-03 15:27:54,665 WARN  [xen.resource.CitrixResourceBase] (DirectAgent-1:null) We cannot locate /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../network/domr//l2tp_vpn.sh
2013-02-03 15:27:54,665 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../network/domr//bumpUpPriority.sh to /usr/lib/xcp/bin on 10.0.2.99 with permission 0755
2013-02-03 15:27:54,716 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/./create_privatetemplate_from_snapshot.sh to /usr/lib/xcp/bin on 10.0.2.99 with permission 0755
2013-02-03 15:27:54,726 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../launch_hb.sh to /usr/lib/xcp/bin on 10.0.2.99 with permission 0755
2013-02-03 15:27:54,734 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/./copy_vhd_to_secondarystorage.sh to /usr/lib/xcp/bin on 10.0.2.99 with permission 0755
2013-02-03 15:27:54,744 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../xenheartbeat.sh to /usr/lib/xcp/bin on 10.0.2.99 with permission 0755
2013-02-03 15:27:54,762 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../setup_heartbeat_file.sh to /usr/lib/xcp/bin on 10.0.2.99 with permission 0755
2013-02-03 15:27:54,779 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../network/domr//dhcp_entry.sh to /usr/lib/xcp/bin on 10.0.2.99 with permission 0755
2013-02-03 15:27:54,788 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../network/domr//router_proxy.sh to /usr/lib/xcp/bin on 10.0.2.99 with permission 0755
2013-02-03 15:27:54,796 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/./vmopspremium to /usr/lib/xcp/plugins on 10.0.2.99 with permission 0755
2013-02-03 15:27:54,805 DEBUG [xen.resource.CitrixResourceBase] (DirectAgent-1:null) Copying /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../systemvm/id_rsa.cloud to /root/.ssh on 10.0.2.99 with permission 0600
2013-02-03 15:27:54,816 WARN  [agent.manager.DirectAgentAttache] (DirectAgent-1:null) Seq 2-648478721: Exception Caught while executing command
Regards,

Paul Angus
S: +44 20 3603 0540 | M: +447711418784
paul.angus@shapeblue.com

ShapeBlue provides a range of strategic and technical consulting and implementation services to help IT Service Providers and Enterprises to build a true IaaS compute cloud. ShapeBlue's expertise, combined with CloudStack technology, allows IT Service Providers and Enterprises to deliver true, utility based, IaaS to the customer or end-user.

________________________________

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

RE: CloudStack on Ubuntu - adding host fails

Posted by Paul Angus <pa...@shapeblue.com>.
Thanks Shanker, that allowed the host

Can someone confirm that the scripts missing on the management server (and therefore are not copied) aren't required - or will certain actions fail later?


WARN  [xen.resource.CitrixResourceBase] (DirectAgent-1:null) We cannot locate /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../ovsgre

WARN  [xen.resource.CitrixResourceBase] (DirectAgent-1:null) We cannot locate /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../network/domr//ipassoc.sh

WARN  [xen.resource.CitrixResourceBase] (DirectAgent-1:null) We cannot locate /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../network/domr//getDomRVersion.sh

WARN  [xen.resource.CitrixResourceBase] (DirectAgent-1:null) We cannot locate /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../network/domr//getRouterStatus.sh

WARN  [xen.resource.CitrixResourceBase] (DirectAgent-1:null) We cannot locate

WARN  [xen.resource.CitrixResourceBase] (DirectAgent-1:null) We cannot locate /usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../../network/domr//l2tp_vpn.sh

Regards,

Paul Angus
S: +44 20 3603 0540 | M: +447711418784
paul.angus@shapeblue.com

From: Shanker Balan [mailto:shanker.balan@shapeblue.com]
Sent: 04 February 2013 05:54
To: <cl...@incubator.apache.org>
Subject: Re: CloudStack on Ubuntu - adding host fails

Hi Paul,

Looking at the below exception, I am reminded of an open bug where /root/.ssh needs to be created before adding a host to the cluster.

"/usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../systemvm/id_rsa.cloud to /root/.ssh on 10.0.2.99 with permission 0600"

https://issues.apache.org/jira/browse/CLOUDSTACK-710


Regards.
Shanker Balan
Managing Consultant


[cid:E7CE8425-E245-4C99-B967-713DF2967392@local]

M: +91 98860 60539
shanker.balan@shapeblue.com<ma...@shapeblue.com> | www.shapeblue.com<http://www.shapeblue.com> | Twitter:@shapeblue

ShapeBlue India, 22nd floor, Unit No. N 2201, WTC Bangalore Brigade Gateway, Bangalore - 560 055
[cid:1E17796E-9887-4C30-B97B-A53B8C3F9B5F@local]

On 03-Feb-2013, at 9:20 PM, Paul Angus <pa...@shapeblue.com>> wrote:


/usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../systemvm/id_rsa.cloud to /root/.ssh on 10.0.2.99 with permission 0600

ShapeBlue provides a range of strategic and technical consulting and implementation services to help IT Service Providers and Enterprises to build a true IaaS compute cloud. ShapeBlue's expertise, combined with CloudStack technology, allows IT Service Providers and Enterprises to deliver true, utility based, IaaS to the customer or end-user.
________________________________

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. 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 provides a range of strategic and technical consulting and implementation services to help IT Service Providers and Enterprises to build a true IaaS compute cloud. ShapeBlue's expertise, combined with CloudStack technology, allows IT Service Providers and Enterprises to deliver true, utility based, IaaS to the customer or end-user.

________________________________

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

Re: CloudStack on Ubuntu - adding host fails

Posted by Shanker Balan <sh...@shapeblue.com>.
Hi Paul,

Looking at the below exception, I am reminded of an open bug where /root/.ssh needs to be created before adding a host to the cluster.

"/usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../systemvm/id_rsa.cloud to /root/.ssh on 10.0.2.99 with permission 0600"

https://issues.apache.org/jira/browse/CLOUDSTACK-710


Regards.
Shanker Balan
Managing Consultant


[cid:E7CE8425-E245-4C99-B967-713DF2967392@local]

M: +91 98860 60539

shanker.balan@shapeblue.com<ma...@shapeblue.com> | www.shapeblue.com<http://www.shapeblue.com> | Twitter:@shapeblue

ShapeBlue India, 22nd floor, Unit No. N 2201, WTC Bangalore Brigade Gateway, Bangalore - 560 055
[cid:1E17796E-9887-4C30-B97B-A53B8C3F9B5F@local]

On 03-Feb-2013, at 9:20 PM, Paul Angus <pa...@shapeblue.com>> wrote:

/usr/lib/cloud/common/scripts/vm/hypervisor/xenserver/xcposs/../../../systemvm/id_rsa.cloud to /root/.ssh on 10.0.2.99 with permission 0600

ShapeBlue provides a range of strategic and technical consulting and implementation services to help IT Service Providers and Enterprises to build a true IaaS compute cloud. ShapeBlue's expertise, combined with CloudStack technology, allows IT Service Providers and Enterprises to deliver true, utility based, IaaS to the customer or end-user.

________________________________

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