You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Anirban Chakraborty <ab...@juniper.net> on 2014/01/29 20:24:14 UTC
cloudstack-agent on ubuntu
Hi All,
I am trying to install cloudstack-agent on ubuntu 12.04 and it is failing with openjdk-6-jre dependency. Following is the error message:
----
The following packages have unmet dependencies:
cloudstack-agent : Depends: openjdk-6-jre but it is not installable or
openjdk-7-jre but it is not going to be installed
Depends: cloudstack-common (= 4.2.1) but it is not going to be installed
Depends: ethtool but it is not installable
E: Unable to correct problems, you have held broken packages.
——
Has any one seen this, and if so, how do I get around it? Thanks much.
Anirban Chakraborty
Re: cloudstack-agent on ubuntu
Posted by Gaurav Aradhye <ga...@clogeny.com>.
welcome :)
Regards,
Gaurav
On Tue, Feb 4, 2014 at 12:53 AM, Anirban Chakraborty <ab...@juniper.net>wrote:
> Hi Gaurav,
>
> Thanks for the pointer. It was indeed cloud-agent, instead of
> cloudstack-agent.
>
> Anirban
>
> On Feb 2, 2014, at 10:39 PM, Gaurav Aradhye <ga...@clogeny.com>
> wrote:
>
> > Hi Anirban,
> >
> > Are you sure you have used "apt-get install cloudstack-agent" and not
> > "apt-get install cloud-agent". I had encountered the same issue and then
> > realized I had installed an outdated version of the agent. The link
> > displayed in google search results takes you to installation guide of
> > 4.0.2. If you are installing 4.2.1 then you need to change the command to
> > "cloudstack-agent".
> >
> > I hope that helps.
> >
> > Regards,
> > Gaurav
> >
> >
> > On Fri, Jan 31, 2014 at 11:39 PM, Anirban Chakraborty <
> abchak@juniper.net>wrote:
> >
> >> I have got past the install issue. However, when I am trying to add a
> KVM
> >> host to the management server, I see following message in the
> >> management-server.log:
> >>
> >> ----
> >> 2014-01-31 01:15:42,895 DEBUG [c.c.u.s.SSHCmdHelper]
> >> (catalina-exec-5:ctx-1569065b ctx-65347efa) cloudstack-setup-agent -m
> >> 10.84.13.16 -z 2 -p 2 -c 2 -g 08fae0c3-30f0-321c-ba06-6960f216e08d -a
> >> --pubNic=cloudbr0 --prvNic=cloudbr0 --guestNic=cloudbr0 output:bash:
> >> cloudstack-setup-agent: command not found
> >> ----
> >>
> >> As I look at the KVM host, I can't find any cloudstack-setup-agent,
> >> instead there is /usr/bin/cloud-setup-agent (as mentioned in
> >>
> http://mail-archives.apache.org/mod_mbox/cloudstack-issues/201303.mbox/%3CJIRA.12637884.1363749652274.49725.1364232315544@arcas%3E
> >> )
> >>
> >> Should I rename cloud-setup-agent to cloudstack-setup-agent? Is it a bug
> >> on ubuntu ? I see
> >> com.cloud.hypervisor.kvm.discoverer.LibVirtServerDiscoverer.java has a
> hard
> >> coded name for the script:
> >> ---
> >> SSHCmdHelper.sshExecuteCmd(sshConnection, "cloudstack-setup-agent " +
> >> parameters, 3);
> >> --
> >>
> >> thanks,
> >> Anirban
> >>
> >>
> >> On Jan 30, 2014, at 12:51 AM, Wei ZHOU <us...@gmail.com> wrote:
> >>
> >>> ethtool is used
> >>> in
> >>
> plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
> >>> so this package is required in cloudstack-agent installation.
> >>> If you use "dpkg -i" to install the deb packages and meet error
> >>> about dependencies, you can use "apt-get install" or "apt-get install
> >>> ethtool" to fix it.
> >>>
> >>>
> >>> 2014-01-29 Anirban Chakraborty <ab...@juniper.net>
> >>>
> >>>> Hi All,
> >>>>
> >>>> I am trying to install cloudstack-agent on ubuntu 12.04 and it is
> >> failing
> >>>> with openjdk-6-jre dependency. Following is the error message:
> >>>> ----
> >>>> The following packages have unmet dependencies:
> >>>> cloudstack-agent : Depends: openjdk-6-jre but it is not installable or
> >>>> openjdk-7-jre but it is not going to be
> >>>> installed
> >>>> Depends: cloudstack-common (= 4.2.1) but it is not
> >>>> going to be installed
> >>>> Depends: ethtool but it is not installable
> >>>> E: Unable to correct problems, you have held broken packages.
> >>>> ----
> >>>> Has any one seen this, and if so, how do I get around it? Thanks much.
> >>>>
> >>>> Anirban Chakraborty
> >>>>
> >>
> >>
> >>
>
>
>
Re: cloudstack-agent on ubuntu
Posted by Anirban Chakraborty <ab...@juniper.net>.
Hi Gaurav,
Thanks for the pointer. It was indeed cloud-agent, instead of cloudstack-agent.
Anirban
On Feb 2, 2014, at 10:39 PM, Gaurav Aradhye <ga...@clogeny.com> wrote:
> Hi Anirban,
>
> Are you sure you have used "apt-get install cloudstack-agent" and not
> "apt-get install cloud-agent". I had encountered the same issue and then
> realized I had installed an outdated version of the agent. The link
> displayed in google search results takes you to installation guide of
> 4.0.2. If you are installing 4.2.1 then you need to change the command to
> "cloudstack-agent".
>
> I hope that helps.
>
> Regards,
> Gaurav
>
>
> On Fri, Jan 31, 2014 at 11:39 PM, Anirban Chakraborty <ab...@juniper.net>wrote:
>
>> I have got past the install issue. However, when I am trying to add a KVM
>> host to the management server, I see following message in the
>> management-server.log:
>>
>> ----
>> 2014-01-31 01:15:42,895 DEBUG [c.c.u.s.SSHCmdHelper]
>> (catalina-exec-5:ctx-1569065b ctx-65347efa) cloudstack-setup-agent -m
>> 10.84.13.16 -z 2 -p 2 -c 2 -g 08fae0c3-30f0-321c-ba06-6960f216e08d -a
>> --pubNic=cloudbr0 --prvNic=cloudbr0 --guestNic=cloudbr0 output:bash:
>> cloudstack-setup-agent: command not found
>> ----
>>
>> As I look at the KVM host, I can't find any cloudstack-setup-agent,
>> instead there is /usr/bin/cloud-setup-agent (as mentioned in
>> http://mail-archives.apache.org/mod_mbox/cloudstack-issues/201303.mbox/%3CJIRA.12637884.1363749652274.49725.1364232315544@arcas%3E
>> )
>>
>> Should I rename cloud-setup-agent to cloudstack-setup-agent? Is it a bug
>> on ubuntu ? I see
>> com.cloud.hypervisor.kvm.discoverer.LibVirtServerDiscoverer.java has a hard
>> coded name for the script:
>> ---
>> SSHCmdHelper.sshExecuteCmd(sshConnection, "cloudstack-setup-agent " +
>> parameters, 3);
>> --
>>
>> thanks,
>> Anirban
>>
>>
>> On Jan 30, 2014, at 12:51 AM, Wei ZHOU <us...@gmail.com> wrote:
>>
>>> ethtool is used
>>> in
>> plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
>>> so this package is required in cloudstack-agent installation.
>>> If you use "dpkg -i" to install the deb packages and meet error
>>> about dependencies, you can use "apt-get install" or "apt-get install
>>> ethtool" to fix it.
>>>
>>>
>>> 2014-01-29 Anirban Chakraborty <ab...@juniper.net>
>>>
>>>> Hi All,
>>>>
>>>> I am trying to install cloudstack-agent on ubuntu 12.04 and it is
>> failing
>>>> with openjdk-6-jre dependency. Following is the error message:
>>>> ----
>>>> The following packages have unmet dependencies:
>>>> cloudstack-agent : Depends: openjdk-6-jre but it is not installable or
>>>> openjdk-7-jre but it is not going to be
>>>> installed
>>>> Depends: cloudstack-common (= 4.2.1) but it is not
>>>> going to be installed
>>>> Depends: ethtool but it is not installable
>>>> E: Unable to correct problems, you have held broken packages.
>>>> ----
>>>> Has any one seen this, and if so, how do I get around it? Thanks much.
>>>>
>>>> Anirban Chakraborty
>>>>
>>
>>
>>
Re: cloudstack-agent on ubuntu
Posted by Gaurav Aradhye <ga...@clogeny.com>.
Hi Anirban,
Are you sure you have used "apt-get install cloudstack-agent" and not
"apt-get install cloud-agent". I had encountered the same issue and then
realized I had installed an outdated version of the agent. The link
displayed in google search results takes you to installation guide of
4.0.2. If you are installing 4.2.1 then you need to change the command to
"cloudstack-agent".
I hope that helps.
Regards,
Gaurav
On Fri, Jan 31, 2014 at 11:39 PM, Anirban Chakraborty <ab...@juniper.net>wrote:
> I have got past the install issue. However, when I am trying to add a KVM
> host to the management server, I see following message in the
> management-server.log:
>
> ----
> 2014-01-31 01:15:42,895 DEBUG [c.c.u.s.SSHCmdHelper]
> (catalina-exec-5:ctx-1569065b ctx-65347efa) cloudstack-setup-agent -m
> 10.84.13.16 -z 2 -p 2 -c 2 -g 08fae0c3-30f0-321c-ba06-6960f216e08d -a
> --pubNic=cloudbr0 --prvNic=cloudbr0 --guestNic=cloudbr0 output:bash:
> cloudstack-setup-agent: command not found
> ----
>
> As I look at the KVM host, I can't find any cloudstack-setup-agent,
> instead there is /usr/bin/cloud-setup-agent (as mentioned in
> http://mail-archives.apache.org/mod_mbox/cloudstack-issues/201303.mbox/%3CJIRA.12637884.1363749652274.49725.1364232315544@arcas%3E
> )
>
> Should I rename cloud-setup-agent to cloudstack-setup-agent? Is it a bug
> on ubuntu ? I see
> com.cloud.hypervisor.kvm.discoverer.LibVirtServerDiscoverer.java has a hard
> coded name for the script:
> ---
> SSHCmdHelper.sshExecuteCmd(sshConnection, "cloudstack-setup-agent " +
> parameters, 3);
> --
>
> thanks,
> Anirban
>
>
> On Jan 30, 2014, at 12:51 AM, Wei ZHOU <us...@gmail.com> wrote:
>
> > ethtool is used
> > in
> plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
> > so this package is required in cloudstack-agent installation.
> > If you use "dpkg -i" to install the deb packages and meet error
> > about dependencies, you can use "apt-get install" or "apt-get install
> > ethtool" to fix it.
> >
> >
> > 2014-01-29 Anirban Chakraborty <ab...@juniper.net>
> >
> >> Hi All,
> >>
> >> I am trying to install cloudstack-agent on ubuntu 12.04 and it is
> failing
> >> with openjdk-6-jre dependency. Following is the error message:
> >> ----
> >> The following packages have unmet dependencies:
> >> cloudstack-agent : Depends: openjdk-6-jre but it is not installable or
> >> openjdk-7-jre but it is not going to be
> >> installed
> >> Depends: cloudstack-common (= 4.2.1) but it is not
> >> going to be installed
> >> Depends: ethtool but it is not installable
> >> E: Unable to correct problems, you have held broken packages.
> >> ----
> >> Has any one seen this, and if so, how do I get around it? Thanks much.
> >>
> >> Anirban Chakraborty
> >>
>
>
>
Re: cloudstack-agent on ubuntu
Posted by Anirban Chakraborty <ab...@juniper.net>.
I have got past the install issue. However, when I am trying to add a KVM host to the management server, I see following message in the management-server.log:
——
2014-01-31 01:15:42,895 DEBUG [c.c.u.s.SSHCmdHelper] (catalina-exec-5:ctx-1569065b ctx-65347efa) cloudstack-setup-agent -m 10.84.13.16 -z 2 -p 2 -c 2 -g 08fae0c3-30f0-321c-ba06-6960f216e08d -a --pubNic=cloudbr0 --prvNic=cloudbr0 --guestNic=cloudbr0 output:bash: cloudstack-setup-agent: command not found
——
As I look at the KVM host, I can’t find any cloudstack-setup-agent, instead there is /usr/bin/cloud-setup-agent (as mentioned in http://mail-archives.apache.org/mod_mbox/cloudstack-issues/201303.mbox/%3CJIRA.12637884.1363749652274.49725.1364232315544@arcas%3E)
Should I rename cloud-setup-agent to cloudstack-setup-agent? Is it a bug on ubuntu ? I see com.cloud.hypervisor.kvm.discoverer.LibVirtServerDiscoverer.java has a hard coded name for the script:
---
SSHCmdHelper.sshExecuteCmd(sshConnection, "cloudstack-setup-agent " + parameters, 3);
—
thanks,
Anirban
On Jan 30, 2014, at 12:51 AM, Wei ZHOU <us...@gmail.com> wrote:
> ethtool is used
> in plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
> so this package is required in cloudstack-agent installation.
> If you use "dpkg -i" to install the deb packages and meet error
> about dependencies, you can use "apt-get install" or "apt-get install
> ethtool" to fix it.
>
>
> 2014-01-29 Anirban Chakraborty <ab...@juniper.net>
>
>> Hi All,
>>
>> I am trying to install cloudstack-agent on ubuntu 12.04 and it is failing
>> with openjdk-6-jre dependency. Following is the error message:
>> ----
>> The following packages have unmet dependencies:
>> cloudstack-agent : Depends: openjdk-6-jre but it is not installable or
>> openjdk-7-jre but it is not going to be
>> installed
>> Depends: cloudstack-common (= 4.2.1) but it is not
>> going to be installed
>> Depends: ethtool but it is not installable
>> E: Unable to correct problems, you have held broken packages.
>> ----
>> Has any one seen this, and if so, how do I get around it? Thanks much.
>>
>> Anirban Chakraborty
>>
Re: cloudstack-agent on ubuntu
Posted by Wei ZHOU <us...@gmail.com>.
ethtool is used
in plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
so this package is required in cloudstack-agent installation.
If you use "dpkg -i" to install the deb packages and meet error
about dependencies, you can use "apt-get install" or "apt-get install
ethtool" to fix it.
2014-01-29 Anirban Chakraborty <ab...@juniper.net>
> Hi All,
>
> I am trying to install cloudstack-agent on ubuntu 12.04 and it is failing
> with openjdk-6-jre dependency. Following is the error message:
> ----
> The following packages have unmet dependencies:
> cloudstack-agent : Depends: openjdk-6-jre but it is not installable or
> openjdk-7-jre but it is not going to be
> installed
> Depends: cloudstack-common (= 4.2.1) but it is not
> going to be installed
> Depends: ethtool but it is not installable
> E: Unable to correct problems, you have held broken packages.
> ----
> Has any one seen this, and if so, how do I get around it? Thanks much.
>
> Anirban Chakraborty
>
Re: cloudstack-agent on ubuntu
Posted by Wido den Hollander <wi...@widodh.nl>.
On 01/29/2014 08:24 PM, Anirban Chakraborty wrote:
> Hi All,
>
> I am trying to install cloudstack-agent on ubuntu 12.04 and it is failing with openjdk-6-jre dependency. Following is the error message:
> ----
> The following packages have unmet dependencies:
> cloudstack-agent : Depends: openjdk-6-jre but it is not installable or
> openjdk-7-jre but it is not going to be installed
> Depends: cloudstack-common (= 4.2.1) but it is not going to be installed
> Depends: ethtool but it is not installable
> E: Unable to correct problems, you have held broken packages.
> ——
> Has any one seen this, and if so, how do I get around it? Thanks much.
>
Can you verify if you can install "ethtool" manually on your machine?
Would be weird if you couldn't, but still worth checking out.
Wido
> Anirban Chakraborty
>