upgrade 4.15 to 4.16 failed

2022-09-22 Thread Alessandro Caviglione
Hi,
we compiled ACS 4.16.2 with nonoss plugins and installed the
cloudstack-common, cloudstack-management, cloudsta-usage RPMs on a ACS4.15
server.
Upgrade finished without errors but after we start the
cloudstack-management service I saw this log in the management-server.log:

2022-09-22 13:47:42,067 INFO  [c.c.u.DatabaseUpgradeChecker] (main:null)
(logid:) DB version = 4.16.0.0 Code Version = 4.16.2.0
2022-09-22 13:47:42,068 INFO  [c.c.u.DatabaseUpgradeChecker] (main:null)
(logid:) Database upgrade must be performed from 4.16.0.0 to 4.16.2.0
2022-09-22 13:47:42,095 DEBUG [c.c.u.DatabaseUpgradeChecker] (main:null)
(logid:) Running upgrade Upgrade41600to41610 to upgrade from
4.16.0.0-4.16.1.0 to 4.16.1.0
...
...
2022-09-22 13:47:42,101 DEBUG [c.c.u.d.ScriptRunner] (main:null) (logid:)
ALTER TABLE `cloud`.`vm_work_job` ADD COLUMN `secondary_object` char(100)
COMMENT 'any additional item that must be checked during queueing' AFTER
`vm_instance_id`
2022-09-22 13:47:42,117 ERROR [c.c.u.d.ScriptRunner] (main:null) (logid:)
Error executing: ALTER TABLE `cloud`.`vm_work_job` ADD COLUMN
`secondary_object` char(100) COMMENT 'any additional item that must be
checked during queueing' AFTER `vm_instance_id`
2022-09-22 13:47:42,118 ERROR [c.c.u.d.ScriptRunner] (main:null) (logid:)
java.sql.SQLSyntaxErrorException: Duplicate column name 'secondary_object'
2022-09-22 13:47:42,119 ERROR [c.c.u.DatabaseUpgradeChecker] (main:null)
(logid:) Unable to execute upgrade script
java.sql.SQLSyntaxErrorException: Duplicate column name 'secondary_object'
at com.cloud.utils.db.ScriptRunner.runScript(ScriptRunner.java:185)
at com.cloud.utils.db.ScriptRunner.runScript(ScriptRunner.java:87)
at
com.cloud.upgrade.DatabaseUpgradeChecker.runScript(DatabaseUpgradeChecker.java:213)
at
com.cloud.upgrade.DatabaseUpgradeChecker.upgrade(DatabaseUpgradeChecker.java:297)
at
com.cloud.upgrade.DatabaseUpgradeChecker.check(DatabaseUpgradeChecker.java:387)

...
2022-09-22 13:47:42,123 ERROR [c.c.u.DatabaseUpgradeChecker] (main:null)
(logid:) Unable to upgrade the database
com.cloud.utils.exception.CloudRuntimeException: Unable to execute upgrade
script
at
com.cloud.upgrade.DatabaseUpgradeChecker.runScript(DatabaseUpgradeChecker.java:219)
at
com.cloud.upgrade.DatabaseUpgradeChecker.upgrade(DatabaseUpgradeChecker.java:297)
at
com.cloud.upgrade.DatabaseUpgradeChecker.check(DatabaseUpgradeChecker.java:387)
...
...
Caused by: java.sql.SQLSyntaxErrorException: Duplicate column name
'secondary_object'
at com.cloud.utils.db.ScriptRunner.runScript(ScriptRunner.java:185)
at com.cloud.utils.db.ScriptRunner.runScript(ScriptRunner.java:87)
at
com.cloud.upgrade.DatabaseUpgradeChecker.runScript(DatabaseUpgradeChecker.java:213)
... 52 more
2022-09-22 13:47:42,134 DEBUG [c.c.u.d.T.Transaction] (main:null) (logid:)
Rolling back the transaction: Time = 29 Name =  Upgrade; called by
-TransactionLegacy.rollback:888-TransactionLegacy.removeUpTo:831-TransactionLegacy.close:655-DatabaseUpgradeChecker.upgrade:312-DatabaseUpgradeChecker.check:387-CloudStackExtendedLifeCycle.checkIntegrity:64-CloudStackExtendedLifeCycle.start:54-DefaultLifecycleProcessor.doStart:178-DefaultLifecycleProcessor.access$200:54-DefaultLifecycleProcessor$LifecycleGroup.start:356-Iterable.forEach:75-DefaultLifecycleProcessor.startBeans:155

Trying to browse the webpage this is the error:

HTTP ERROR 503 Service Unavailable
URI: /client/
STATUS: 503
MESSAGE: Service Unavailable
SERVLET: -


VR network mismatch

2022-09-06 Thread Alessandro Caviglione
Hi guys,
we're experiencing a very strange issue and I need your help...
We created some VPC but in one of them (we already tried to recreate it...
) after some time ACS restart the VR.
After the restart the network mismatch the original configuration so the
instances connected to it are unable to do traffic.
The solution is to manually restart VR from ACS but after some hours it
reboots again and network mismatch again...
The strange behavior is that this issue happen only on one VPC but I don't
know where to start to investigate this problem.
Our ACS version is 4.15.1 over vSphere 6.7

thank you


Add vsphere host

2022-02-01 Thread Alessandro Caviglione
Hi,
in past we've had a XenServer cluster in Cloudstack and adding a node was
quite simple.
Now we're managing a 2 node vSphere cluster and we need to add an
additional host to this cluster.
In the documentation I see:

Adding a Host (vSphere)


For vSphere servers, we recommend creating the cluster of hosts in vCenter
and then adding the entire cluster to CloudStack. See Add Cluster: vSphere.


So what?

Someone can explain me how to add an host to vsphere/cloudstack cluster?


Thank you


Re: Issue with live migrations

2021-06-01 Thread Alessandro Caviglione
No, but if you're using Advanced Networking you've to manage the trunk
configuration on the switch ports.
Every Virtual Router has a public IP on a specific interface and a specific
VLAN and a private IP on another interface in another vlan that acts as a
gateway for the instance.
So, if VR and instance are in the same host, packets do not exit from host
and instance are reachable, but if they run on different hosts the packets
must go through a switch that should be configured to allow traffic on that
private VLAN.
So, in fact, you can allow a single switch port to forward traffic on
multiple VLAN, this is called Trunk.

On Tue, Jun 1, 2021 at 12:31 PM Jeremy Hansen  wrote:

> Ahh, so I just noticed that I could also migrate the router and when I do
> that, everything works as expected again.  So is this how migrates work?
> Do routers always have to move with the instance?
>
> -jeremy
>
>
> On Jun 1, 2021, at 3:26 AM, Jeremy Hansen  wrote:
>
> One thing I noticed, and I don’t know if this is expected, but the virtual
> router my instance is using remains on the original VM host.  If I log in
> to the guest instance while it’s on the second VM host, I can no longer
> ping the private net gateway:
>
> 
>
> and the virtual router can’t ping the private IP
>
> 
>
> If I migrate the instance back, it ping reachable again:
>
> 
>
>
> Thanks
> -jeremy
>
>
>
> On Jun 1, 2021, at 3:07 AM, Jeremy Hansen  wrote:
>
> Hmm. VM hosts are on the same vlan. Port configuration on both hosts is
> exactly the same. I’m not saying it isn’t vlan related but I would expect
> neither host to work if it was a vlan issue?
>
> Thanks
>
> On Jun 1, 2021, at 2:47 AM, Alessandro Caviglione 
> wrote:
>
> I think that your switch doesn't have ports tagged with all required
> VLANs...
>
> On Tue, Jun 1, 2021 at 11:20 AM Jeremy Hansen  wrote:
>
>
> I set up another VM host so now I have two VM hosts.  I’m experimenting
> with live migrations.  It looks like the VM migrates, but I can no longer
> SSH to the guest once it’s migrated.  I’m using an isolated network.  I
> setup firewall rules to allow all, along with port forwarding rules for
> ssh.  I’m using the CentOS 5.5 template.  When I migrate to the second VM
> host, ping/icmp still works, but I’m unable to ssh to the VM guest.  If I
> migrate back to the original VM host, everything is fine again.  Any clues
> what I’m doing wrong on the second VM host or why rules would change on the
> migration?
>
> Thanks
> -jeremy
>
>
>
>
>
>


Re: Issue with live migrations

2021-06-01 Thread Alessandro Caviglione
I think that your switch doesn't have ports tagged with all required
VLANs...

On Tue, Jun 1, 2021 at 11:20 AM Jeremy Hansen  wrote:

>
> I set up another VM host so now I have two VM hosts.  I’m experimenting
> with live migrations.  It looks like the VM migrates, but I can no longer
> SSH to the guest once it’s migrated.  I’m using an isolated network.  I
> setup firewall rules to allow all, along with port forwarding rules for
> ssh.  I’m using the CentOS 5.5 template.  When I migrate to the second VM
> host, ping/icmp still works, but I’m unable to ssh to the VM guest.  If I
> migrate back to the original VM host, everything is fine again.  Any clues
> what I’m doing wrong on the second VM host or why rules would change on the
> migration?
>
> Thanks
> -jeremy
>
>


Primate gui on other server

2021-05-20 Thread Alessandro Caviglione
Hi guys,
I tried Primate GUI since one of the firsts release and I remember that
I've installed it on another server made it point to my management server
by changing a config file.
Now I see that old github repo is bo more available and the new UI has been
integrated in new ACS release.
But my question is this: can I still install it separately and connect to
my ACS 4.13?
Where I can find the new repo?

Thank you


Re: Fail to add KVM Host

2021-05-14 Thread Alessandro Caviglione
Yep, all working fine!

Thank you!

On Fri, May 14, 2021 at 2:45 AM Nicolas Vazquez <
nicolas.vazq...@shapeblue.com> wrote:

> Good thing, confirmed all working good now?
>
> I have created a PR to include this as a note on the documentation:
> https://github.com/apache/cloudstack-documentation/pull/214. Should be
> included on the next releases documentation.
>
>
> Regards,
>
> Nicolas Vazquez
>
> ____
> From: Alessandro Caviglione 
> Sent: Thursday, May 13, 2021 4:36 PM
> To: users@cloudstack.apache.org 
> Subject: Re: Fail to add KVM Host
>
> OMG guys... I think you've to specify this requirement in documentation!!
> This row point me in the right direction:
>
> failing to get physical interface from bridge cloudbr1, did not find an
> eth*, bond*, team*, vlan*, em*, p*p*, ens*, eno*, enp*, or enx* in
> /sys/devices/virtual/net/cloudbr1/brif
>
> So the script looks for a bond that starts with:  eth*, bond*, team*,
> vlan*, em*, p*p*, ens*, eno*, enp*, or enx*
> I've created a bond named cbdr_bond1 so it was not reachable!!
>
> Thank you for your help and your suggestions!
>
> On Thu, May 13, 2021 at 7:12 PM Alessandro Caviglione <
> c.alessan...@gmail.com> wrote:
>
> > Hi Nicolas,
> > same link for the new logs in folder "LOG2":
> > https://box.beitsa.ch/index.php/s/ZmGMWbQgmMkbzoK
> >
> > Strange thing is that I see in agent.log these lines:
> >
> > 2021-05-13 18:53:08,587 DEBUG [kvm.resource.LibvirtComputingResource]
> > (agentRequest-Handler-5:null) (logid:4b3902b9) matchPifFileInDirectory:
> > file name 'cdbr_bond1'
> > 2021-05-13 18:53:08,587 DEBUG [kvm.resource.LibvirtComputingResource]
> > (agentRequest-Handler-5:null) (logid:4b3902b9) failing to get physical
> > interface from bridge cloudbr1, did not find an eth*, bond*, team*,
> vlan*,
> > em*, p*p*, ens*, eno*, enp*, or enx* in
> > /sys/devices/virtual/net/cloudbr1/brif
> >
> > But as you can see in interfaces.txt , cloudbr1/brif exists as the
> > cloudbr0/brif
> >
> > On Thu, May 13, 2021 at 6:32 PM Nicolas Vazquez <
> > nicolas.vazq...@shapeblue.com> wrote:
> >
> >> Still not clear on the issue yet. Could you please increase the log
> level
> >> on /etc/cloudstack/agent/log4j-cloud.xml from INFO to DEBUG and check
> for
> >> any exception trace?
> >>
> >>
> >> Regards,
> >>
> >> Nicolas Vazquez
> >>
> >> 
> >> From: Alessandro Caviglione 
> >> Sent: Thursday, May 13, 2021 1:05 PM
> >> To: users@cloudstack.apache.org 
> >> Subject: Re: Fail to add KVM Host
> >>
> >> Should I install older version of libvirt/qemu or there's another
> problem?
> >>
> >> Il gio 13 mag 2021, 16:05 Alessandro Caviglione  >
> >> ha
> >> scritto:
> >>
> >> > Hi,
> >> > yes I saw... but this is a centos 7.9 installed from scratch.
> >> > I've installed with: yum install qemu-kvm libvirt libvirt-python
> >> > libguestfs-tools virt-install
> >> >
> >> > libvirt is 4.5.0
> >> > qemu-kvm is 1.5.3
> >> > cloudstack-agent is 4.13
> >> >
> >> > I've also tried with qemu-kvm-ev 2.12 but nothing changes...
> >> >
> >> >
> >> > On Thu, May 13, 2021 at 3:48 PM Nicolas Vazquez <
> >> > nicolas.vazq...@shapeblue.com> wrote:
> >> >
> >> >> Hi Alessandro,
> >> >>
> >> >> From the agent logs the issue comes from this: Connection with
> libvirtd
> >> >> is broken: invalid connection pointer in virConnectGetVersion
> >> >>
> >> >> Which libvirt and qemu versions are you using?
> >> >>
> >> >>
> >> >> Regards,
> >> >>
> >> >> Nicolas Vazquez
> >> >>
> >> >> ____
> >> >> From: Alessandro Caviglione 
> >> >> Sent: Thursday, May 13, 2021 10:12 AM
> >> >> To: users@cloudstack.apache.org 
> >> >> Subject: Re: Fail to add KVM Host
> >> >>
> >> >> Hi Andrija,
> >> >> any idea?
> >> >>
> >> >> On Thu, May 13, 2021 at 11:34 AM Alessandro Caviglione <
> >> >> c.alessan...@gmail.com> wrote:
> >> >>
> >> >> > Thank you Andrija!!
> >> >> > https://box.beitsa.ch/index.php/s/ZmGM

Re: Fail to add KVM Host

2021-05-13 Thread Alessandro Caviglione
OMG guys... I think you've to specify this requirement in documentation!!
This row point me in the right direction:

failing to get physical interface from bridge cloudbr1, did not find an
eth*, bond*, team*, vlan*, em*, p*p*, ens*, eno*, enp*, or enx* in
/sys/devices/virtual/net/cloudbr1/brif

So the script looks for a bond that starts with:  eth*, bond*, team*,
vlan*, em*, p*p*, ens*, eno*, enp*, or enx*
I've created a bond named cbdr_bond1 so it was not reachable!!

Thank you for your help and your suggestions!

On Thu, May 13, 2021 at 7:12 PM Alessandro Caviglione <
c.alessan...@gmail.com> wrote:

> Hi Nicolas,
> same link for the new logs in folder "LOG2":
> https://box.beitsa.ch/index.php/s/ZmGMWbQgmMkbzoK
>
> Strange thing is that I see in agent.log these lines:
>
> 2021-05-13 18:53:08,587 DEBUG [kvm.resource.LibvirtComputingResource]
> (agentRequest-Handler-5:null) (logid:4b3902b9) matchPifFileInDirectory:
> file name 'cdbr_bond1'
> 2021-05-13 18:53:08,587 DEBUG [kvm.resource.LibvirtComputingResource]
> (agentRequest-Handler-5:null) (logid:4b3902b9) failing to get physical
> interface from bridge cloudbr1, did not find an eth*, bond*, team*, vlan*,
> em*, p*p*, ens*, eno*, enp*, or enx* in
> /sys/devices/virtual/net/cloudbr1/brif
>
> But as you can see in interfaces.txt , cloudbr1/brif exists as the
> cloudbr0/brif
>
> On Thu, May 13, 2021 at 6:32 PM Nicolas Vazquez <
> nicolas.vazq...@shapeblue.com> wrote:
>
>> Still not clear on the issue yet. Could you please increase the log level
>> on /etc/cloudstack/agent/log4j-cloud.xml from INFO to DEBUG and check for
>> any exception trace?
>>
>>
>> Regards,
>>
>> Nicolas Vazquez
>>
>> 
>> From: Alessandro Caviglione 
>> Sent: Thursday, May 13, 2021 1:05 PM
>> To: users@cloudstack.apache.org 
>> Subject: Re: Fail to add KVM Host
>>
>> Should I install older version of libvirt/qemu or there's another problem?
>>
>> Il gio 13 mag 2021, 16:05 Alessandro Caviglione 
>> ha
>> scritto:
>>
>> > Hi,
>> > yes I saw... but this is a centos 7.9 installed from scratch.
>> > I've installed with: yum install qemu-kvm libvirt libvirt-python
>> > libguestfs-tools virt-install
>> >
>> > libvirt is 4.5.0
>> > qemu-kvm is 1.5.3
>> > cloudstack-agent is 4.13
>> >
>> > I've also tried with qemu-kvm-ev 2.12 but nothing changes...
>> >
>> >
>> > On Thu, May 13, 2021 at 3:48 PM Nicolas Vazquez <
>> > nicolas.vazq...@shapeblue.com> wrote:
>> >
>> >> Hi Alessandro,
>> >>
>> >> From the agent logs the issue comes from this: Connection with libvirtd
>> >> is broken: invalid connection pointer in virConnectGetVersion
>> >>
>> >> Which libvirt and qemu versions are you using?
>> >>
>> >>
>> >> Regards,
>> >>
>> >> Nicolas Vazquez
>> >>
>> >> 
>> >> From: Alessandro Caviglione 
>> >> Sent: Thursday, May 13, 2021 10:12 AM
>> >> To: users@cloudstack.apache.org 
>> >> Subject: Re: Fail to add KVM Host
>> >>
>> >> Hi Andrija,
>> >> any idea?
>> >>
>> >> On Thu, May 13, 2021 at 11:34 AM Alessandro Caviglione <
>> >> c.alessan...@gmail.com> wrote:
>> >>
>> >> > Thank you Andrija!!
>> >> > https://box.beitsa.ch/index.php/s/ZmGMWbQgmMkbzoK
>> >> >
>> >> >
>> >> > On Thu, May 13, 2021 at 10:04 AM Andrija Panic <
>> andrija.pa...@gmail.com
>> >> >
>> >> > wrote:
>> >> >
>> >> >> Can you share (on b pastebin. org or somewhere) the content of the
>> >> >> agent.log and setup. log from the KVM host please?
>> >> >>
>> >> >>
>> >> >>
>> >> >> Best,
>> >> >>
>> >> >> On Wed, 12 May 2021, 22:45 Alessandro Caviglione, <
>> >> c.alessan...@gmail.com
>> >> >> >
>> >> >> wrote:
>> >> >>
>> >> >> > Just a quick news... Now I see the host in hosts list, but it's in
>> >> alert
>> >> >> > state.
>> >> >> > In log I see:
>> >> >> > 2021-05-12 22:40:54,061 DEBUG [c.c.a.m.ClusteredAgentManagerImpl]
>> >> >> > (AgentConnectTaskPool-417:ctx-36dd291a) (lo

Re: Fail to add KVM Host

2021-05-13 Thread Alessandro Caviglione
Hi Nicolas,
same link for the new logs in folder "LOG2":
https://box.beitsa.ch/index.php/s/ZmGMWbQgmMkbzoK

Strange thing is that I see in agent.log these lines:

2021-05-13 18:53:08,587 DEBUG [kvm.resource.LibvirtComputingResource]
(agentRequest-Handler-5:null) (logid:4b3902b9) matchPifFileInDirectory:
file name 'cdbr_bond1'
2021-05-13 18:53:08,587 DEBUG [kvm.resource.LibvirtComputingResource]
(agentRequest-Handler-5:null) (logid:4b3902b9) failing to get physical
interface from bridge cloudbr1, did not find an eth*, bond*, team*, vlan*,
em*, p*p*, ens*, eno*, enp*, or enx* in
/sys/devices/virtual/net/cloudbr1/brif

But as you can see in interfaces.txt , cloudbr1/brif exists as the
cloudbr0/brif

On Thu, May 13, 2021 at 6:32 PM Nicolas Vazquez <
nicolas.vazq...@shapeblue.com> wrote:

> Still not clear on the issue yet. Could you please increase the log level
> on /etc/cloudstack/agent/log4j-cloud.xml from INFO to DEBUG and check for
> any exception trace?
>
>
> Regards,
>
> Nicolas Vazquez
>
> ____
> From: Alessandro Caviglione 
> Sent: Thursday, May 13, 2021 1:05 PM
> To: users@cloudstack.apache.org 
> Subject: Re: Fail to add KVM Host
>
> Should I install older version of libvirt/qemu or there's another problem?
>
> Il gio 13 mag 2021, 16:05 Alessandro Caviglione 
> ha
> scritto:
>
> > Hi,
> > yes I saw... but this is a centos 7.9 installed from scratch.
> > I've installed with: yum install qemu-kvm libvirt libvirt-python
> > libguestfs-tools virt-install
> >
> > libvirt is 4.5.0
> > qemu-kvm is 1.5.3
> > cloudstack-agent is 4.13
> >
> > I've also tried with qemu-kvm-ev 2.12 but nothing changes...
> >
> >
> > On Thu, May 13, 2021 at 3:48 PM Nicolas Vazquez <
> > nicolas.vazq...@shapeblue.com> wrote:
> >
> >> Hi Alessandro,
> >>
> >> From the agent logs the issue comes from this: Connection with libvirtd
> >> is broken: invalid connection pointer in virConnectGetVersion
> >>
> >> Which libvirt and qemu versions are you using?
> >>
> >>
> >> Regards,
> >>
> >> Nicolas Vazquez
> >>
> >> 
> >> From: Alessandro Caviglione 
> >> Sent: Thursday, May 13, 2021 10:12 AM
> >> To: users@cloudstack.apache.org 
> >> Subject: Re: Fail to add KVM Host
> >>
> >> Hi Andrija,
> >> any idea?
> >>
> >> On Thu, May 13, 2021 at 11:34 AM Alessandro Caviglione <
> >> c.alessan...@gmail.com> wrote:
> >>
> >> > Thank you Andrija!!
> >> > https://box.beitsa.ch/index.php/s/ZmGMWbQgmMkbzoK
> >> >
> >> >
> >> > On Thu, May 13, 2021 at 10:04 AM Andrija Panic <
> andrija.pa...@gmail.com
> >> >
> >> > wrote:
> >> >
> >> >> Can you share (on b pastebin. org or somewhere) the content of the
> >> >> agent.log and setup. log from the KVM host please?
> >> >>
> >> >>
> >> >>
> >> >> Best,
> >> >>
> >> >> On Wed, 12 May 2021, 22:45 Alessandro Caviglione, <
> >> c.alessan...@gmail.com
> >> >> >
> >> >> wrote:
> >> >>
> >> >> > Just a quick news... Now I see the host in hosts list, but it's in
> >> alert
> >> >> > state.
> >> >> > In log I see:
> >> >> > 2021-05-12 22:40:54,061 DEBUG [c.c.a.m.ClusteredAgentManagerImpl]
> >> >> > (AgentConnectTaskPool-417:ctx-36dd291a) (logid:7320b6af) Notifying
> >> other
> >> >> > nodes of to disconnect
> >> >> > 2021-05-12 22:40:54,062 DEBUG [c.c.a.m.AgentManagerImpl]
> >> >> > (AgentConnectTaskPool-417:ctx-36dd291a) (logid:7320b6af) Failed to
> >> >> handle
> >> >> > host connection:
> >> >> > com.cloud.exception.ConnectionException: Incorrect Network setup on
> >> >> agent,
> >> >> > Reinitialize agent after network names are setup, details : Can not
> >> find
> >> >> > network: cloudbr1
> >> >> >
> >> >> > but I have cloudbr0 and cloudbr1 configured on host...
> >> >> > What can I do?
> >> >> >
> >> >> >
> >> >> > On Wed, May 12, 2021 at 10:34 PM Alessandro Caviglione <
> >> >> > c.alessan...@gmail.com> wrote:
> >> >> >
> >> >> > > Hi guys,
>

Re: Fail to add KVM Host

2021-05-13 Thread Alessandro Caviglione
Should I install older version of libvirt/qemu or there's another problem?

Il gio 13 mag 2021, 16:05 Alessandro Caviglione  ha
scritto:

> Hi,
> yes I saw... but this is a centos 7.9 installed from scratch.
> I've installed with: yum install qemu-kvm libvirt libvirt-python
> libguestfs-tools virt-install
>
> libvirt is 4.5.0
> qemu-kvm is 1.5.3
> cloudstack-agent is 4.13
>
> I've also tried with qemu-kvm-ev 2.12 but nothing changes...
>
>
> On Thu, May 13, 2021 at 3:48 PM Nicolas Vazquez <
> nicolas.vazq...@shapeblue.com> wrote:
>
>> Hi Alessandro,
>>
>> From the agent logs the issue comes from this: Connection with libvirtd
>> is broken: invalid connection pointer in virConnectGetVersion
>>
>> Which libvirt and qemu versions are you using?
>>
>>
>> Regards,
>>
>> Nicolas Vazquez
>>
>> 
>> From: Alessandro Caviglione 
>> Sent: Thursday, May 13, 2021 10:12 AM
>> To: users@cloudstack.apache.org 
>> Subject: Re: Fail to add KVM Host
>>
>> Hi Andrija,
>> any idea?
>>
>> On Thu, May 13, 2021 at 11:34 AM Alessandro Caviglione <
>> c.alessan...@gmail.com> wrote:
>>
>> > Thank you Andrija!!
>> > https://box.beitsa.ch/index.php/s/ZmGMWbQgmMkbzoK
>> >
>> >
>> > On Thu, May 13, 2021 at 10:04 AM Andrija Panic > >
>> > wrote:
>> >
>> >> Can you share (on b pastebin. org or somewhere) the content of the
>> >> agent.log and setup. log from the KVM host please?
>> >>
>> >>
>> >>
>> >> Best,
>> >>
>> >> On Wed, 12 May 2021, 22:45 Alessandro Caviglione, <
>> c.alessan...@gmail.com
>> >> >
>> >> wrote:
>> >>
>> >> > Just a quick news... Now I see the host in hosts list, but it's in
>> alert
>> >> > state.
>> >> > In log I see:
>> >> > 2021-05-12 22:40:54,061 DEBUG [c.c.a.m.ClusteredAgentManagerImpl]
>> >> > (AgentConnectTaskPool-417:ctx-36dd291a) (logid:7320b6af) Notifying
>> other
>> >> > nodes of to disconnect
>> >> > 2021-05-12 22:40:54,062 DEBUG [c.c.a.m.AgentManagerImpl]
>> >> > (AgentConnectTaskPool-417:ctx-36dd291a) (logid:7320b6af) Failed to
>> >> handle
>> >> > host connection:
>> >> > com.cloud.exception.ConnectionException: Incorrect Network setup on
>> >> agent,
>> >> > Reinitialize agent after network names are setup, details : Can not
>> find
>> >> > network: cloudbr1
>> >> >
>> >> > but I have cloudbr0 and cloudbr1 configured on host...
>> >> > What can I do?
>> >> >
>> >> >
>> >> > On Wed, May 12, 2021 at 10:34 PM Alessandro Caviglione <
>> >> > c.alessan...@gmail.com> wrote:
>> >> >
>> >> > > Hi guys,
>> >> > > a lot of troubles these days...
>> >> > > We've ACS 4.13 installed from source with one zone with a vcenter
>> >> server
>> >> > > and advanced networking.
>> >> > > Now we need to add another zone to manage some KVM hosts but with
>> >> basic
>> >> > > networking, we installed libvirt on a Centos7, configured cloudbr0
>> for
>> >> > > management and cloudbr1 for gest traffic, installed
>> cloudstack-agent,
>> >> > made
>> >> > > all the configuration for tcp and tls, started the services and all
>> >> it's
>> >> > ok.
>> >> > > So we created a new zone in ACS, with cluster and the above host,
>> all
>> >> > > works fine but the host has not been added.
>> >> > > So I've tried again to add but after some seconds, the blinking row
>> >> with
>> >> > > the new server disappear and in the log I can't see any error:
>> >> > >
>> >> > > 2021-05-12 22:18:35,457 DEBUG [o.a.c.s.SecondaryStorageManagerImpl]
>> >> > > (secstorage-1:ctx-0b1a9c73) (logid:39eed862) Zone 2 is not ready to
>> >> > launch
>> >> > > secondary storage VM yet
>> >> > > 2021-05-12 22:18:37,178 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
>> >> > > (AsyncJobMgr-Heartbeat-1:ctx-7e5591e8) (logid:442791ae) Begin
>> cleanup
>> >> > > expired async-jobs
>> >> > > 2021-05-12 22:18:37,181 INFO  

Re: Fail to add KVM Host

2021-05-13 Thread Alessandro Caviglione
Hi,
yes I saw... but this is a centos 7.9 installed from scratch.
I've installed with: yum install qemu-kvm libvirt libvirt-python
libguestfs-tools virt-install

libvirt is 4.5.0
qemu-kvm is 1.5.3
cloudstack-agent is 4.13

I've also tried with qemu-kvm-ev 2.12 but nothing changes...


On Thu, May 13, 2021 at 3:48 PM Nicolas Vazquez <
nicolas.vazq...@shapeblue.com> wrote:

> Hi Alessandro,
>
> From the agent logs the issue comes from this: Connection with libvirtd is
> broken: invalid connection pointer in virConnectGetVersion
>
> Which libvirt and qemu versions are you using?
>
>
> Regards,
>
> Nicolas Vazquez
>
> ________
> From: Alessandro Caviglione 
> Sent: Thursday, May 13, 2021 10:12 AM
> To: users@cloudstack.apache.org 
> Subject: Re: Fail to add KVM Host
>
> Hi Andrija,
> any idea?
>
> On Thu, May 13, 2021 at 11:34 AM Alessandro Caviglione <
> c.alessan...@gmail.com> wrote:
>
> > Thank you Andrija!!
> > https://box.beitsa.ch/index.php/s/ZmGMWbQgmMkbzoK
> >
> >
> > On Thu, May 13, 2021 at 10:04 AM Andrija Panic 
> > wrote:
> >
> >> Can you share (on b pastebin. org or somewhere) the content of the
> >> agent.log and setup. log from the KVM host please?
> >>
> >>
> >>
> >> Best,
> >>
> >> On Wed, 12 May 2021, 22:45 Alessandro Caviglione, <
> c.alessan...@gmail.com
> >> >
> >> wrote:
> >>
> >> > Just a quick news... Now I see the host in hosts list, but it's in
> alert
> >> > state.
> >> > In log I see:
> >> > 2021-05-12 22:40:54,061 DEBUG [c.c.a.m.ClusteredAgentManagerImpl]
> >> > (AgentConnectTaskPool-417:ctx-36dd291a) (logid:7320b6af) Notifying
> other
> >> > nodes of to disconnect
> >> > 2021-05-12 22:40:54,062 DEBUG [c.c.a.m.AgentManagerImpl]
> >> > (AgentConnectTaskPool-417:ctx-36dd291a) (logid:7320b6af) Failed to
> >> handle
> >> > host connection:
> >> > com.cloud.exception.ConnectionException: Incorrect Network setup on
> >> agent,
> >> > Reinitialize agent after network names are setup, details : Can not
> find
> >> > network: cloudbr1
> >> >
> >> > but I have cloudbr0 and cloudbr1 configured on host...
> >> > What can I do?
> >> >
> >> >
> >> > On Wed, May 12, 2021 at 10:34 PM Alessandro Caviglione <
> >> > c.alessan...@gmail.com> wrote:
> >> >
> >> > > Hi guys,
> >> > > a lot of troubles these days...
> >> > > We've ACS 4.13 installed from source with one zone with a vcenter
> >> server
> >> > > and advanced networking.
> >> > > Now we need to add another zone to manage some KVM hosts but with
> >> basic
> >> > > networking, we installed libvirt on a Centos7, configured cloudbr0
> for
> >> > > management and cloudbr1 for gest traffic, installed
> cloudstack-agent,
> >> > made
> >> > > all the configuration for tcp and tls, started the services and all
> >> it's
> >> > ok.
> >> > > So we created a new zone in ACS, with cluster and the above host,
> all
> >> > > works fine but the host has not been added.
> >> > > So I've tried again to add but after some seconds, the blinking row
> >> with
> >> > > the new server disappear and in the log I can't see any error:
> >> > >
> >> > > 2021-05-12 22:18:35,457 DEBUG [o.a.c.s.SecondaryStorageManagerImpl]
> >> > > (secstorage-1:ctx-0b1a9c73) (logid:39eed862) Zone 2 is not ready to
> >> > launch
> >> > > secondary storage VM yet
> >> > > 2021-05-12 22:18:37,178 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
> >> > > (AsyncJobMgr-Heartbeat-1:ctx-7e5591e8) (logid:442791ae) Begin
> cleanup
> >> > > expired async-jobs
> >> > > 2021-05-12 22:18:37,181 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
> >> > > (AsyncJobMgr-Heartbeat-1:ctx-7e5591e8) (logid:442791ae) End cleanup
> >> > expired
> >> > > async-jobs
> >> > > 2021-05-12 22:18:37,795 DEBUG [c.c.u.s.SSHCmdHelper]
> >> > > (qtp504527234-17:ctx-dc82de11 ctx-2eb654f7) (logid:201abc34) SSH
> >> command:
> >> > > cloudstack-setup-agent  -m 192.168.200.125 -z 2 -p 2 -c 2 -g
> >> > > 92f6da7e-d7f0-3b03-93e8-c588dbf9182a -a -s  --pubNic=cloudbr1
> >> > > --prvNic=cloudbr0 --guestNic=cloudbr

Re: Fail to add KVM Host

2021-05-13 Thread Alessandro Caviglione
Hi Andrija,
any idea?

On Thu, May 13, 2021 at 11:34 AM Alessandro Caviglione <
c.alessan...@gmail.com> wrote:

> Thank you Andrija!!
> https://box.beitsa.ch/index.php/s/ZmGMWbQgmMkbzoK
>
>
> On Thu, May 13, 2021 at 10:04 AM Andrija Panic 
> wrote:
>
>> Can you share (on b pastebin. org or somewhere) the content of the
>> agent.log and setup. log from the KVM host please?
>>
>>
>>
>> Best,
>>
>> On Wed, 12 May 2021, 22:45 Alessandro Caviglione, > >
>> wrote:
>>
>> > Just a quick news... Now I see the host in hosts list, but it's in alert
>> > state.
>> > In log I see:
>> > 2021-05-12 22:40:54,061 DEBUG [c.c.a.m.ClusteredAgentManagerImpl]
>> > (AgentConnectTaskPool-417:ctx-36dd291a) (logid:7320b6af) Notifying other
>> > nodes of to disconnect
>> > 2021-05-12 22:40:54,062 DEBUG [c.c.a.m.AgentManagerImpl]
>> > (AgentConnectTaskPool-417:ctx-36dd291a) (logid:7320b6af) Failed to
>> handle
>> > host connection:
>> > com.cloud.exception.ConnectionException: Incorrect Network setup on
>> agent,
>> > Reinitialize agent after network names are setup, details : Can not find
>> > network: cloudbr1
>> >
>> > but I have cloudbr0 and cloudbr1 configured on host...
>> > What can I do?
>> >
>> >
>> > On Wed, May 12, 2021 at 10:34 PM Alessandro Caviglione <
>> > c.alessan...@gmail.com> wrote:
>> >
>> > > Hi guys,
>> > > a lot of troubles these days...
>> > > We've ACS 4.13 installed from source with one zone with a vcenter
>> server
>> > > and advanced networking.
>> > > Now we need to add another zone to manage some KVM hosts but with
>> basic
>> > > networking, we installed libvirt on a Centos7, configured cloudbr0 for
>> > > management and cloudbr1 for gest traffic, installed cloudstack-agent,
>> > made
>> > > all the configuration for tcp and tls, started the services and all
>> it's
>> > ok.
>> > > So we created a new zone in ACS, with cluster and the above host, all
>> > > works fine but the host has not been added.
>> > > So I've tried again to add but after some seconds, the blinking row
>> with
>> > > the new server disappear and in the log I can't see any error:
>> > >
>> > > 2021-05-12 22:18:35,457 DEBUG [o.a.c.s.SecondaryStorageManagerImpl]
>> > > (secstorage-1:ctx-0b1a9c73) (logid:39eed862) Zone 2 is not ready to
>> > launch
>> > > secondary storage VM yet
>> > > 2021-05-12 22:18:37,178 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
>> > > (AsyncJobMgr-Heartbeat-1:ctx-7e5591e8) (logid:442791ae) Begin cleanup
>> > > expired async-jobs
>> > > 2021-05-12 22:18:37,181 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
>> > > (AsyncJobMgr-Heartbeat-1:ctx-7e5591e8) (logid:442791ae) End cleanup
>> > expired
>> > > async-jobs
>> > > 2021-05-12 22:18:37,795 DEBUG [c.c.u.s.SSHCmdHelper]
>> > > (qtp504527234-17:ctx-dc82de11 ctx-2eb654f7) (logid:201abc34) SSH
>> command:
>> > > cloudstack-setup-agent  -m 192.168.200.125 -z 2 -p 2 -c 2 -g
>> > > 92f6da7e-d7f0-3b03-93e8-c588dbf9182a -a -s  --pubNic=cloudbr1
>> > > --prvNic=cloudbr0 --guestNic=cloudbr1 --hypervisor=kvm
>> > > SSH command output:Starting to configure your system:
>> > > Configure SElinux ... [OK]
>> > > Configure Network ... [OK]
>> > > Configure Libvirt ... [OK]
>> > > Configure Firewall ...[OK]
>> > > Configure Nfs ... [OK]
>> > > Configure cloudAgent ...  [OK]
>> > > CloudStack Agent setup is done!
>> > >
>> > >
>> > > 2021-05-12 22:18:44,977 DEBUG [c.c.a.m.AgentManagerImpl]
>> > > (AgentManager-Handler-7:null) (logid:) SeqA 6-1063907: Processing Seq
>> > > 6-1063907:  { Cmd , MgmtId: -1, via: 6, Ver: v1, Flags: 11,
>> > >
>> >
>> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":7,"_loadInfo":"{\n
>> > >  \"connections\": []\n}","wait":0}}] }
>> > > 2021-05-12 22:18:44,979 DEBUG [c.c.a.m.AgentManagerImpl]
>> > > (AgentManager-Handler-7:null) (logid:) SeqA 6-1063907: Sending Seq
>> > > 6-1063907:  { Ans: , MgmtId: 213426611879184, via: 6, Ver: v1, Flags:
>> > > 100010,
>> > > [{"com.cloud.agent.api.AgentControlAnswer"

Re: Fail to add KVM Host

2021-05-13 Thread Alessandro Caviglione
Thank you Andrija!!
https://box.beitsa.ch/index.php/s/ZmGMWbQgmMkbzoK


On Thu, May 13, 2021 at 10:04 AM Andrija Panic 
wrote:

> Can you share (on b pastebin. org or somewhere) the content of the
> agent.log and setup. log from the KVM host please?
>
>
>
> Best,
>
> On Wed, 12 May 2021, 22:45 Alessandro Caviglione, 
> wrote:
>
> > Just a quick news... Now I see the host in hosts list, but it's in alert
> > state.
> > In log I see:
> > 2021-05-12 22:40:54,061 DEBUG [c.c.a.m.ClusteredAgentManagerImpl]
> > (AgentConnectTaskPool-417:ctx-36dd291a) (logid:7320b6af) Notifying other
> > nodes of to disconnect
> > 2021-05-12 22:40:54,062 DEBUG [c.c.a.m.AgentManagerImpl]
> > (AgentConnectTaskPool-417:ctx-36dd291a) (logid:7320b6af) Failed to handle
> > host connection:
> > com.cloud.exception.ConnectionException: Incorrect Network setup on
> agent,
> > Reinitialize agent after network names are setup, details : Can not find
> > network: cloudbr1
> >
> > but I have cloudbr0 and cloudbr1 configured on host...
> > What can I do?
> >
> >
> > On Wed, May 12, 2021 at 10:34 PM Alessandro Caviglione <
> > c.alessan...@gmail.com> wrote:
> >
> > > Hi guys,
> > > a lot of troubles these days...
> > > We've ACS 4.13 installed from source with one zone with a vcenter
> server
> > > and advanced networking.
> > > Now we need to add another zone to manage some KVM hosts but with basic
> > > networking, we installed libvirt on a Centos7, configured cloudbr0 for
> > > management and cloudbr1 for gest traffic, installed cloudstack-agent,
> > made
> > > all the configuration for tcp and tls, started the services and all
> it's
> > ok.
> > > So we created a new zone in ACS, with cluster and the above host, all
> > > works fine but the host has not been added.
> > > So I've tried again to add but after some seconds, the blinking row
> with
> > > the new server disappear and in the log I can't see any error:
> > >
> > > 2021-05-12 22:18:35,457 DEBUG [o.a.c.s.SecondaryStorageManagerImpl]
> > > (secstorage-1:ctx-0b1a9c73) (logid:39eed862) Zone 2 is not ready to
> > launch
> > > secondary storage VM yet
> > > 2021-05-12 22:18:37,178 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
> > > (AsyncJobMgr-Heartbeat-1:ctx-7e5591e8) (logid:442791ae) Begin cleanup
> > > expired async-jobs
> > > 2021-05-12 22:18:37,181 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
> > > (AsyncJobMgr-Heartbeat-1:ctx-7e5591e8) (logid:442791ae) End cleanup
> > expired
> > > async-jobs
> > > 2021-05-12 22:18:37,795 DEBUG [c.c.u.s.SSHCmdHelper]
> > > (qtp504527234-17:ctx-dc82de11 ctx-2eb654f7) (logid:201abc34) SSH
> command:
> > > cloudstack-setup-agent  -m 192.168.200.125 -z 2 -p 2 -c 2 -g
> > > 92f6da7e-d7f0-3b03-93e8-c588dbf9182a -a -s  --pubNic=cloudbr1
> > > --prvNic=cloudbr0 --guestNic=cloudbr1 --hypervisor=kvm
> > > SSH command output:Starting to configure your system:
> > > Configure SElinux ... [OK]
> > > Configure Network ... [OK]
> > > Configure Libvirt ... [OK]
> > > Configure Firewall ...[OK]
> > > Configure Nfs ... [OK]
> > > Configure cloudAgent ...  [OK]
> > > CloudStack Agent setup is done!
> > >
> > >
> > > 2021-05-12 22:18:44,977 DEBUG [c.c.a.m.AgentManagerImpl]
> > > (AgentManager-Handler-7:null) (logid:) SeqA 6-1063907: Processing Seq
> > > 6-1063907:  { Cmd , MgmtId: -1, via: 6, Ver: v1, Flags: 11,
> > >
> >
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":7,"_loadInfo":"{\n
> > >  \"connections\": []\n}","wait":0}}] }
> > > 2021-05-12 22:18:44,979 DEBUG [c.c.a.m.AgentManagerImpl]
> > > (AgentManager-Handler-7:null) (logid:) SeqA 6-1063907: Sending Seq
> > > 6-1063907:  { Ans: , MgmtId: 213426611879184, via: 6, Ver: v1, Flags:
> > > 100010,
> > > [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> > > 2021-05-12 22:18:47,178 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
> > > (AsyncJobMgr-Heartbeat-1:ctx-5b168792) (logid:b9c80c90) Begin cleanup
> > > expired async-jobs
> > > 2021-05-12 22:18:47,181 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
> > > (AsyncJobMgr-Heartbeat-1:ctx-5b168792) (logid:b9c80c90) End cleanup
> > expired
> > > async-jobs
> > > 2021-05-12 22:18:47,284 DEBUG
> > [c.c.n.r.VirtualNetwo

Re: Fail to add KVM Host

2021-05-12 Thread Alessandro Caviglione
Just a quick news... Now I see the host in hosts list, but it's in alert
state.
In log I see:
2021-05-12 22:40:54,061 DEBUG [c.c.a.m.ClusteredAgentManagerImpl]
(AgentConnectTaskPool-417:ctx-36dd291a) (logid:7320b6af) Notifying other
nodes of to disconnect
2021-05-12 22:40:54,062 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentConnectTaskPool-417:ctx-36dd291a) (logid:7320b6af) Failed to handle
host connection:
com.cloud.exception.ConnectionException: Incorrect Network setup on agent,
Reinitialize agent after network names are setup, details : Can not find
network: cloudbr1

but I have cloudbr0 and cloudbr1 configured on host...
What can I do?


On Wed, May 12, 2021 at 10:34 PM Alessandro Caviglione <
c.alessan...@gmail.com> wrote:

> Hi guys,
> a lot of troubles these days...
> We've ACS 4.13 installed from source with one zone with a vcenter server
> and advanced networking.
> Now we need to add another zone to manage some KVM hosts but with basic
> networking, we installed libvirt on a Centos7, configured cloudbr0 for
> management and cloudbr1 for gest traffic, installed cloudstack-agent, made
> all the configuration for tcp and tls, started the services and all it's ok.
> So we created a new zone in ACS, with cluster and the above host, all
> works fine but the host has not been added.
> So I've tried again to add but after some seconds, the blinking row with
> the new server disappear and in the log I can't see any error:
>
> 2021-05-12 22:18:35,457 DEBUG [o.a.c.s.SecondaryStorageManagerImpl]
> (secstorage-1:ctx-0b1a9c73) (logid:39eed862) Zone 2 is not ready to launch
> secondary storage VM yet
> 2021-05-12 22:18:37,178 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
> (AsyncJobMgr-Heartbeat-1:ctx-7e5591e8) (logid:442791ae) Begin cleanup
> expired async-jobs
> 2021-05-12 22:18:37,181 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
> (AsyncJobMgr-Heartbeat-1:ctx-7e5591e8) (logid:442791ae) End cleanup expired
> async-jobs
> 2021-05-12 22:18:37,795 DEBUG [c.c.u.s.SSHCmdHelper]
> (qtp504527234-17:ctx-dc82de11 ctx-2eb654f7) (logid:201abc34) SSH command:
> cloudstack-setup-agent  -m 192.168.200.125 -z 2 -p 2 -c 2 -g
> 92f6da7e-d7f0-3b03-93e8-c588dbf9182a -a -s  --pubNic=cloudbr1
> --prvNic=cloudbr0 --guestNic=cloudbr1 --hypervisor=kvm
> SSH command output:Starting to configure your system:
> Configure SElinux ... [OK]
> Configure Network ... [OK]
> Configure Libvirt ... [OK]
> Configure Firewall ...[OK]
> Configure Nfs ... [OK]
> Configure cloudAgent ...  [OK]
> CloudStack Agent setup is done!
>
>
> 2021-05-12 22:18:44,977 DEBUG [c.c.a.m.AgentManagerImpl]
> (AgentManager-Handler-7:null) (logid:) SeqA 6-1063907: Processing Seq
> 6-1063907:  { Cmd , MgmtId: -1, via: 6, Ver: v1, Flags: 11,
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":7,"_loadInfo":"{\n
>  \"connections\": []\n}","wait":0}}] }
> 2021-05-12 22:18:44,979 DEBUG [c.c.a.m.AgentManagerImpl]
> (AgentManager-Handler-7:null) (logid:) SeqA 6-1063907: Sending Seq
> 6-1063907:  { Ans: , MgmtId: 213426611879184, via: 6, Ver: v1, Flags:
> 100010,
> [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2021-05-12 22:18:47,178 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
> (AsyncJobMgr-Heartbeat-1:ctx-5b168792) (logid:b9c80c90) Begin cleanup
> expired async-jobs
> 2021-05-12 22:18:47,181 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
> (AsyncJobMgr-Heartbeat-1:ctx-5b168792) (logid:b9c80c90) End cleanup expired
> async-jobs
> 2021-05-12 22:18:47,284 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:ctx-0865edb1) (logid:c141e973) Found 14 routers to
> update status.
> 2021-05-12 22:18:47,291 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:ctx-0865edb1) (logid:c141e973) Found 10 VPC networks
> to update Redundant State.
> 2021-05-12 22:18:47,296 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:ctx-0865edb1) (logid:c141e973) Found 0 networks to
> update RvR status.
> 2021-05-12 22:18:49,977 DEBUG [c.c.a.m.AgentManagerImpl]
> (AgentManager-Handler-2:null) (logid:) SeqA 6-1063908: Processing Seq
> 6-1063908:  { Cmd , MgmtId: -1, via: 6, Ver: v1, Flags: 11,
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":7,"_loadInfo":"{\n
>  \"connections\": []\n}","wait":0}}] }
> 2021-05-12 22:18:49,979 DEBUG [c.c.a.m.AgentManagerImpl]
> (AgentManager-Handler-2:null) (logid:) SeqA 6-1063908: Sending Seq
> 6-1063908:  { Ans: , MgmtId: 213426611879184, via: 6, Ver: v1, Flags:
> 100010,
> [{"com.cloud.agent.api.AgentControlAnswer":{"result&quo

Fail to add KVM Host

2021-05-12 Thread Alessandro Caviglione
Hi guys,
a lot of troubles these days...
We've ACS 4.13 installed from source with one zone with a vcenter server
and advanced networking.
Now we need to add another zone to manage some KVM hosts but with basic
networking, we installed libvirt on a Centos7, configured cloudbr0 for
management and cloudbr1 for gest traffic, installed cloudstack-agent, made
all the configuration for tcp and tls, started the services and all it's ok.
So we created a new zone in ACS, with cluster and the above host, all works
fine but the host has not been added.
So I've tried again to add but after some seconds, the blinking row with
the new server disappear and in the log I can't see any error:

2021-05-12 22:18:35,457 DEBUG [o.a.c.s.SecondaryStorageManagerImpl]
(secstorage-1:ctx-0b1a9c73) (logid:39eed862) Zone 2 is not ready to launch
secondary storage VM yet
2021-05-12 22:18:37,178 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-7e5591e8) (logid:442791ae) Begin cleanup
expired async-jobs
2021-05-12 22:18:37,181 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-7e5591e8) (logid:442791ae) End cleanup expired
async-jobs
2021-05-12 22:18:37,795 DEBUG [c.c.u.s.SSHCmdHelper]
(qtp504527234-17:ctx-dc82de11 ctx-2eb654f7) (logid:201abc34) SSH command:
cloudstack-setup-agent  -m 192.168.200.125 -z 2 -p 2 -c 2 -g
92f6da7e-d7f0-3b03-93e8-c588dbf9182a -a -s  --pubNic=cloudbr1
--prvNic=cloudbr0 --guestNic=cloudbr1 --hypervisor=kvm
SSH command output:Starting to configure your system:
Configure SElinux ... [OK]
Configure Network ... [OK]
Configure Libvirt ... [OK]
Configure Firewall ...[OK]
Configure Nfs ... [OK]
Configure cloudAgent ...  [OK]
CloudStack Agent setup is done!


2021-05-12 22:18:44,977 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-7:null) (logid:) SeqA 6-1063907: Processing Seq
6-1063907:  { Cmd , MgmtId: -1, via: 6, Ver: v1, Flags: 11,
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":7,"_loadInfo":"{\n
 \"connections\": []\n}","wait":0}}] }
2021-05-12 22:18:44,979 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-7:null) (logid:) SeqA 6-1063907: Sending Seq
6-1063907:  { Ans: , MgmtId: 213426611879184, via: 6, Ver: v1, Flags:
100010,
[{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2021-05-12 22:18:47,178 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-5b168792) (logid:b9c80c90) Begin cleanup
expired async-jobs
2021-05-12 22:18:47,181 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-5b168792) (logid:b9c80c90) End cleanup expired
async-jobs
2021-05-12 22:18:47,284 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:ctx-0865edb1) (logid:c141e973) Found 14 routers to
update status.
2021-05-12 22:18:47,291 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:ctx-0865edb1) (logid:c141e973) Found 10 VPC networks
to update Redundant State.
2021-05-12 22:18:47,296 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl]
(RouterStatusMonitor-1:ctx-0865edb1) (logid:c141e973) Found 0 networks to
update RvR status.
2021-05-12 22:18:49,977 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-2:null) (logid:) SeqA 6-1063908: Processing Seq
6-1063908:  { Cmd , MgmtId: -1, via: 6, Ver: v1, Flags: 11,
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":7,"_loadInfo":"{\n
 \"connections\": []\n}","wait":0}}] }
2021-05-12 22:18:49,979 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-2:null) (logid:) SeqA 6-1063908: Sending Seq
6-1063908:  { Ans: , MgmtId: 213426611879184, via: 6, Ver: v1, Flags:
100010,
[{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2021-05-12 22:18:53,959 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-5:null) (logid:) Ping from 4(s-4-VM)
2021-05-12 22:18:53,997 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-12:null) (logid:) Ping from 6(v-7-VM)
2021-05-12 22:18:57,178 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-22922b92) (logid:88c162be) Begin cleanup
expired async-jobs
2021-05-12 22:18:57,181 INFO  [o.a.c.f.j.i.AsyncJobManagerImpl]
(AsyncJobMgr-Heartbeat-1:ctx-22922b92) (logid:88c162be) End cleanup expired
async-jobs
2021-05-12 22:18:59,978 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-13:null) (logid:) SeqA 6-1063910: Processing Seq
6-1063910:  { Cmd , MgmtId: -1, via: 6, Ver: v1, Flags: 11,
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":7,"_loadInfo":"{\n
 \"connections\": []\n}","wait":0}}] }
2021-05-12 22:18:59,980 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-13:null) (logid:) SeqA 6-1063910: Sending Seq
6-1063910:  { Ans: , MgmtId: 213426611879184, via: 6, Ver: v1, Flags:
100010,
[{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2021-05-12 22:19:02,644 DEBUG [c.c.s.StatsCollector]
(StatsCollector-2:ctx-1237412a) (logid:3c78cd8f) AutoScaling Monitor is

Basic and Advanced Networking

2021-05-10 Thread Alessandro Caviglione
Hi guys,
just a question... is there a way to use both Basic and Advanced networking
on some KVM hosts?


Re: Primary storage migration

2021-05-07 Thread Alessandro Caviglione
Yes, no problem to change the port from access to trunk, but I'm not sure
where I can create another interface with tagged VLAN on xenserver...

On Fri, May 7, 2021 at 11:15 AM Alex Mattioli 
wrote:

> Hi Alessandro,
>
> If the switchports for storage are in access mode then indeed you can't
> present another VLAN there.
> You might be able to create a new logical interface on Xen in the same
> VLAN with the new IP range, but that's not something I've tried before
> (works fine on ESX and KVM though).
>
> I'd always recommend to use Trunked ports everywhere, keeping your L2
> fabric as simple as possible and all the intelligence down in the
> hypervisor and not in the switch, this gives you much more flexibility. But
> of course, other ways of setting up are always valid, that's just my
> preferred one based on experience.
>
> Regards,
> Alex
>
>
>
>
> -Original Message-
> From: Alessandro Caviglione 
> Sent: 07 May 2021 10:50
> To: users@cloudstack.apache.org
> Subject: Re: Primary storage migration
>
> Thank you Alex,
> iscsi subnet is present on same switch fabric so we can add it, but since
> xenserver port are actually in ACCESS with specific VLAN, how can I add an
> IP with a tagged VLAN on xenserver?
>
> On Fri, May 7, 2021 at 10:29 AM Alex Mattioli  >
> wrote:
>
> > Hi Alessandro,
> >
> > Is the new iSCSI subnet present in the same L2 switching fabric? In
> > that case you just need  a VLAN interface on the 10.0.0.x network. If
> > it is in a separate switching fabric then you can add a couple extra
> > NICs to your host and connect to that network.
> >
> > Migration wise, as long as the XenServer host can mount SRs from both
> > storage servers then it should be able to migrate your VMs and volumes
> > across.
> >
> > Regards,
> > Alex
> >
> >
> >
> >
> > -Original Message-
> > From: Alessandro Caviglione 
> > Sent: 07 May 2021 10:22
> > To: users@cloudstack.apache.org
> > Subject: Primary storage migration
> >
> > Hi guys,
> > I've a big doubt for next few weeks.
> > Actually we're running CS 4.13 and one of the cluster we're managing
> > is based on xenserver 7.2.
> > Today, primary storage is provided through NFS share in 192.168.200.x
> > subnet but we've want to migrate to another storage that provide iSCSI
> > lun on 10.0.0.x subnet.
> > This iscsi subnet is an isolated subnet so no routing is possible.
> > What you suggests to do?
> > Is it possible to add a couple of nics to xenserver for iscsi and
> > manage it on CS?
> >
> > Thank you!
> >
>


Re: Primary storage migration

2021-05-07 Thread Alessandro Caviglione
Thank you Alex,
iscsi subnet is present on same switch fabric so we can add it, but since
xenserver port are actually in ACCESS with specific VLAN, how can I add an
IP with a tagged VLAN on xenserver?

On Fri, May 7, 2021 at 10:29 AM Alex Mattioli 
wrote:

> Hi Alessandro,
>
> Is the new iSCSI subnet present in the same L2 switching fabric? In that
> case you just need  a VLAN interface on the 10.0.0.x network. If it is in a
> separate switching fabric then you can add a couple extra NICs to your host
> and connect to that network.
>
> Migration wise, as long as the XenServer host can mount SRs from both
> storage servers then it should be able to migrate your VMs and volumes
> across.
>
> Regards,
> Alex
>
>
>
>
> -----Original Message-
> From: Alessandro Caviglione 
> Sent: 07 May 2021 10:22
> To: users@cloudstack.apache.org
> Subject: Primary storage migration
>
> Hi guys,
> I've a big doubt for next few weeks.
> Actually we're running CS 4.13 and one of the cluster we're managing is
> based on xenserver 7.2.
> Today, primary storage is provided through NFS share in 192.168.200.x
> subnet but we've want to migrate to another storage that provide iSCSI lun
> on 10.0.0.x subnet.
> This iscsi subnet is an isolated subnet so no routing is possible.
> What you suggests to do?
> Is it possible to add a couple of nics to xenserver for iscsi and manage
> it on CS?
>
> Thank you!
>


Primary storage migration

2021-05-07 Thread Alessandro Caviglione
Hi guys,
I've a big doubt for next few weeks.
Actually we're running CS 4.13 and one of the cluster we're managing is
based on xenserver 7.2.
Today, primary storage is provided through NFS share in 192.168.200.x
subnet but we've want to migrate to another storage that provide iSCSI lun
on 10.0.0.x subnet.
This iscsi subnet is an isolated subnet so no routing is possible.
What you suggests to do?
Is it possible to add a couple of nics to xenserver for iscsi and manage it
on CS?

Thank you!


Instance network type on vSphere

2020-05-14 Thread Alessandro Caviglione
Hi guys,
I'm using CS 4.13 on vSphere 6.5.
I see that there's a setting to change System VM Network type
(vmware.systemvm.nic.device.type) from E1000 to VMXNET3.
Is there a way to change Network Type to VMXNET3 also for VM instances that
is still deployed with E1000?

Thank you!


Re: Replace VR

2019-12-03 Thread Alessandro Caviglione
Yes, I thought about your idea, but I would not introduce too many hops...
in addition I cannot manage Public IPs directly from Barracuda VA.
Is there a kind of parameter I can configure to deploy all costumer's
instance on tha same VR's host?

On Tue, Dec 3, 2019 at 6:57 PM Andrija Panic 
wrote:

> Hi,
>
> it's not possible to completely replace (i.e. not without complete ACS code
> base change), but you might want to see if the following helps:
> - Assign one or more (as required, one at minimum) additional Public IPs on
> the VR, and then configure Static Nat from that Public IP to the internal
> IP of the Baracuda appliance (which you would deploy from template - ACS
> 4.13 supports appliances for VMware, so you should be able to answer all
> the questions that are input to the appliance, so to speak...)
> - Then attach this Baracuda to all the networks whose VMs you want to
> "protect"
>
> Effectively trafic goes as follows:  internet ---> VR (Public IP, Static
> NAt to...) ---> Baracuda/internal appliance - and the VMs would use
> Baracuda as the default gateway.
> This does imply not being able to manage IPs via DHCP, since for any
> DHCPDISCOVER, the dnsmasq inside VR will also offer an IP, beside Baracuda
> doing that...
> (configure ACLs to forbid ANY outgoing traffic from networks where you have
> your user VMs - Baracuda appliance is on the dedicated private network
> (which you can consider as "public" or "north-side" to the Baracuda
> appliance) so here you allow all outgoing traffic from this network to
> Internet)
>
> Then you would be able to use Baracuda as the endpoint for the VPN tunnels.
> Far from perfect, but might work for you, if you can live with the
> limitations.
>
> Best,
> Andrija
>
> On Tue, 3 Dec 2019 at 17:20, Alessandro Caviglione  >
> wrote:
>
> > Hi guys,
> > I'm trying to understand if it's possible to replace a VR for a single
> > customer.
> > I've ACS 4.13 with vSphere 6.7 and Advanced Networking, one of my client
> > wants to use Barracuda Virtual Firewall because he wants to connect Cloud
> > network to offices networks using TINA VPN (proprietary protocol) instead
> > IPSec.
> > So, is it possible to replace VR with the Barracuda Virtual Appliance?
> >
> > Thank you
> >
>
>
> --
>
> Andrija Panić
>


Replace VR

2019-12-03 Thread Alessandro Caviglione
Hi guys,
I'm trying to understand if it's possible to replace a VR for a single
customer.
I've ACS 4.13 with vSphere 6.7 and Advanced Networking, one of my client
wants to use Barracuda Virtual Firewall because he wants to connect Cloud
network to offices networks using TINA VPN (proprietary protocol) instead
IPSec.
So, is it possible to replace VR with the Barracuda Virtual Appliance?

Thank you


Re: Secondary storage issue on CS 4.13

2019-10-25 Thread Alessandro Caviglione
Hello Andija,
thank you very much for your effort and explanations :)
Actually we're in advanced zone but I saw in SSVM cloud.log that it's
trying to connect lo localhost:8250 so I understood that SSVM was trying to
connect to Management Server that, obviously, is not localhost.
It's still not clear for me how Management Server can push his hostname if
the SSVM is unable to connect to Management Server, but I changed some
settings in ACS (please, tell me which one is the right one), recreate SSVM
and CPVM and all works fine! :)

Thank you


On Sun, Oct 20, 2019 at 11:55 PM Andrija Panic 
wrote:

> HI Alessandro,
>
> in case of  VMware, link local network is not (possible to be) used - so
> the mgmt IP is actually used - i.e. mgmt server will talk mgmt IP inside
> the SSVM (over ssh), so that is clear I guess.
> Have you preseeded the systemVM template as the manual instructs? Once you
> have systemVM template in place and at least one alive hypervisor host, ACS
> will try to create a SSVM and CPVM from that template.
> You can check their state in INfrastructure --> System VMs, their state
> should be UP and Agent State should be Connected (both green) - if that is
> in place, you are good to go to download any template/ISO.
>
> Are you using Basic zone or Advanced? I remember a bug in Basic zones, that
> ssvm will try to mount Secondary NFS server by routing via it's Public
> (default) interface, so in this case, even if SS is in same subnet/network
> as the mgmt network, it's still advisable to explicitly define Storage
> network, using same subnet, and also reserve a small chunk of the network
> to be assinged to systemVMs etc. - so that another interface/NIC will be
> created inside SSVM in that storage network (so your mgmt network again)
> and then all will be OK.
>
> Let me know about systemVM template ^^^
>
> Andrija
>
> On Sat, 19 Oct 2019 at 21:50, Alessandro Caviglione <
> c.alessan...@gmail.com>
> wrote:
>
> > Hi,
> > I've just deployed a new CS 4.13 management server and I've configured
> the
> > zone for VMware in this way:
> >
> > Management network vSwitch0 VLAN200  (SystemVM IPs 192.168.200.170-200)
> > Public Network vSwitch1 VLAN201(Some Public IPs)
> > Guest Network vSwith1 VLAN 400-500
> >
> > I do not have configured Storage Network because I know that if it's not
> > configured, Management Network is used.
> > In fact, Secondary Storage is in the same network as Management Network
> and
> > it has IP: 192.168.200.20
> >
> > I've correctly configured Secondary Storage to use NFS share over
> > 192.168.200.20 storage.
> > Secondary Storage VM has been deployed and it's running, but I see that
> it
> > has 2 IPs, one on Management and one on Public Network.
> > As far as I know, it should have one additional IP for Link Local...
> > However, my issue is that when I try to add an ISO Template, nothing is
> > downloaded and in management-server log I see:
> > "There is no secondary storage VM for secondary storage host CS-SEC-VMW"
> >
> > what it means?
> >
> > Thank you!!
> >
>
>
> --
>
> Andrija Panić
>


Secondary storage issue on CS 4.13

2019-10-19 Thread Alessandro Caviglione
Hi,
I've just deployed a new CS 4.13 management server and I've configured the
zone for VMware in this way:

Management network vSwitch0 VLAN200  (SystemVM IPs 192.168.200.170-200)
Public Network vSwitch1 VLAN201(Some Public IPs)
Guest Network vSwith1 VLAN 400-500

I do not have configured Storage Network because I know that if it's not
configured, Management Network is used.
In fact, Secondary Storage is in the same network as Management Network and
it has IP: 192.168.200.20

I've correctly configured Secondary Storage to use NFS share over
192.168.200.20 storage.
Secondary Storage VM has been deployed and it's running, but I see that it
has 2 IPs, one on Management and one on Public Network.
As far as I know, it should have one additional IP for Link Local...
However, my issue is that when I try to add an ISO Template, nothing is
downloaded and in management-server log I see:
"There is no secondary storage VM for secondary storage host CS-SEC-VMW"

what it means?

Thank you!!


Re: [VOTE] Primate as modern UI for CloudStack

2019-10-08 Thread Alessandro Caviglione
+1

On Tue, Oct 8, 2019 at 3:35 PM Giles Sirett 
wrote:

> +1 (binding, although I don’t think that matters if we're not voting on a
> release)
>
>
> Kind regards
> Giles
>
> giles.sir...@shapeblue.com
> www.shapeblue.com
> Amadeus House, Floral Street, London  WC2E 9DPUK
> @shapeblue
>
>
>
>
> -Original Message-
> From: Alex Ball 
> Sent: 08 October 2019 13:28
> To: users@cloudstack.apache.org; d...@cloudstack.apache.org
> Subject: Re: [VOTE] Primate as modern UI for CloudStack
>
> +1 binding
>
> -Alex Ball
> CITO
> QX .net 
> 859.721.0128- Direct Line
> 859.255.1928 x230
> 859.255.1798 - Fax
> awb...@qx.net 
>
> On 10/8/2019 7:10 AM, Gabriel Beims Bräscher wrote:
> > +1 (binding)
> >
> > On Tue, Oct 8, 2019, 07:48 Syed Ahmed  wrote:
> >
> >> +1 binding
> >>
> >> On Tue., Oct. 8, 2019, 4:14 p.m. Will Stevens,
> >> 
> >> wrote:
> >>
> >>> +1 (binding)
> >>>
> >>> On Mon, Oct 7, 2019, 7:31 AM Rohit Yadav 
> >>> wrote:
> >>>
>  All,
> 
>  The feedback and response has been positive on the proposal to use
> >>> Primate
>  as the modern UI for CloudStack [1] [2]. Thank you all.
> 
>  I'm starting this vote (to):
> 
> *   Accept Primate codebase [3] as a project under Apache
> CloudStack
>  project
> *   Create and host a new repository (cloudstack-primate) and
> follow
>  Github based development workflow (issues, pull requests etc) as we
>  do
> >>> with
>  CloudStack
> *   Given this is a new project, to encourage cadence until its
> >> feature
>  completeness the merge criteria is proposed as:
>    *   Manual testing against each PR and/or with screenshots from
> >> the
>  author or testing contributor, integration with Travis is possible
>  once
> >>> we
>  get JS/UI tests
>    *   At least 1 LGTM from any of the active contributors, we'll
> >> move
>  this to 2 LGTMs when the codebase reaches feature parity wrt the
>  existing/old CloudStack UI
>    *   Squash and merge PRs
> *   Accept the proposed timeline [1][2] (subject to achievement of
> >>> goals
>  wrt Primate technical release and GA)
>    *   the first technical preview targetted with the winter 2019
> LTS
>  release (~Q1 2020) and release to serve a deprecation notice wrt
>  the
> >>> older
>  UI
>    *   define a release approach before winter LTS
>    *   stop taking feature FRs for old/existing UI after winter
> 2019
> >>> LTS
>  release, work on upgrade path/documentation from old UI to Primate
>    *   the first Primate GA targetted wrt summer LTS 2020 (~H2
> 2019),
>  but still ship old UI with a final deprecation notice
>    *   old UI codebase removed from codebase in winter 2020 LTS
> >> release
>  The vote will be up for the next two weeks to give enough time for
>  PMC
> >>> and
>  the community to gather consensus and still have room for
>  questions, feedback and discussions. The results to be shared
>  on/after 21th
> >> October
>  2019.
> 
>  For sanity in tallying the vote, can PMC members please be sure to
>  indicate "(binding)" with their vote?
> 
>  [ ] +1  approve
>  [ ] +0  no opinion
>  [ ] -1  disapprove (and reason why)
> 
>  [1] Primate Proposal:
> 
> 
> >> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Proposal%3A+Cl
> >> oudStack+Primate+UI
>  [2] Email thread reference:
>  https://markmail.org/message/z6fuvw4regig7aqb
> 
>  [3] Primate repo current location:
> >> https://github.com/shapeblue/primate
> 
>  Regards,
> 
>  Rohit Yadav
> 
>  Software Architect, ShapeBlue
> 
>  https://www.shapeblue.com
> 
>  rohit.ya...@shapeblue.com
>  www.shapeblue.com
>  Amadeus House, Floral Street, London  WC2E 9DPUK @shapeblue
> 
> 
> 
> 
>
>


Re: Very BIG mess with networking

2019-06-26 Thread Alessandro Caviglione
Hi Andrija,
I want to say a big THANK YOU for your suggestions, I changed bond mode and
Network name on XenSerevr Pool and updated network name on CS... and it
works now!!
Thank you again!!
A big hug! :)

On Tue, Jun 25, 2019 at 12:45 PM Andrija Panic 
wrote:

> I would say, to make sure you have identical network/bond setup as before
> (irrelevant of which chils pifs are in the bond/network) - so from
> CloudStack point of view, you did zero changes (same networks/bind).
>
> Limited reading capabilities from myside on mobile...but I would say that
> pluging in the vif for a guest Network is the problem - in XenServer logs,
> you can clearly see error while joining slave interface (vif) to the
> network - but again, not sure which network is it (public or guest Network)
>
> On Tue, Jun 25, 2019, 10:50 Alessandro Caviglione 
> wrote:
>
> > No, new bond have the same name...
> > In the log there is:
> >
> >  Found more than one network with the name Public
> > 2019-06-25 00:14:35,802 DEBUG [c.c.h.x.r.XsLocalNetwork]
> > (DirectAgent-35:ctx-c5073156) (logid:0d9e7907) *Found a network called
> > Public on host=192.168.200.39;
> >  Network=9fa48b75-d68e-feaf-2eb4-8a7340f8c89b;
> > pif=ca4c1679-fa36-bc93-37de-28a74ddc4f2c*
> > 2019-06-25 00:14:35,807 DEBUG [c.c.h.x.r.CitrixResourceBase]
> > (DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Created a vif
> > dfaab3d7-7921-e4d5-ba27-537e8d549a5c on 2
> > 2019-06-25 00:14:35,807 DEBUG [c.c.h.x.r.CitrixResourceBase]
> > (DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Creating VIF for r-899-VM
> on
> > nic [Nic:Guest-10.122.12.1-vlan://384]
> > 2019-06-25 00:14:35,809 DEBUG [c.c.h.x.r.CitrixResourceBase]
> > (DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Looking for network named
> > GuestVM
> > 2019-06-25 00:14:35,825 DEBUG [c.c.h.x.r.XsLocalNetwork]
> > (DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Found a network called
> > GuestVM on host=192.168.200.39;
> >  Network=300e55f0-88ff-a460-e498-e75424bc292a;
> > pif=b67841c5-6361-0dbf-a63d-a3e9c1b9f2fc
> >
> > So it seems that, however, it get the right Network and continue to
> looking
> > for other network.
> > Do you think this is the issue also if CS continue with other tasks
> instead
> > stops founding more than one network Public?
> > Could I simply change network name in Xen Pool and update in CS?
> >
> > On Tue, Jun 25, 2019 at 9:52 AM Andrija Panic 
> > wrote:
> >
> > > If your new bond have changes name, have you changed also XenServer
> > Traffic
> > > Label in CloudStack ?
> > > Active-active is known to be sometimes very problematic, switch back to
> > > active-passive until you solve your issues. Experiment later with
> > > active-active.
> > >
> > >
> > >
> > > On Tue, Jun 25, 2019, 09:34 Michael Kesper 
> > wrote:
> > >
> > > > Hi Alessandro,
> > > >
> > > > On 25.06.19 08:43, Alessandro Caviglione wrote:
> > > > > complains on more than one network with name Publci...  ???
> > > >
> > > > [...]
> > > >
> > > > >> 2019-06-25 00:14:35,792 DEBUG [c.c.h.x.r.CitrixResourceBase]
> > > > >> (DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Looking for network
> > > named
> > > > >> Public
> > > > >> 2019-06-25 00:14:35,793 DEBUG [c.c.h.x.r.CitrixResourceBase]
> > > > >> (DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Found more than one
> > > > > network
> > > > >> with the name Public
> > > >
> > > > Bye
> > > > Michael
> > > >
> > > >
> > > >
> > >
> >
>


Re: Very BIG mess with networking

2019-06-25 Thread Alessandro Caviglione
No, new bond have the same name...
In the log there is:

 Found more than one network with the name Public
2019-06-25 00:14:35,802 DEBUG [c.c.h.x.r.XsLocalNetwork]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) *Found a network called
Public on host=192.168.200.39;
 Network=9fa48b75-d68e-feaf-2eb4-8a7340f8c89b;
pif=ca4c1679-fa36-bc93-37de-28a74ddc4f2c*
2019-06-25 00:14:35,807 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Created a vif
dfaab3d7-7921-e4d5-ba27-537e8d549a5c on 2
2019-06-25 00:14:35,807 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Creating VIF for r-899-VM on
nic [Nic:Guest-10.122.12.1-vlan://384]
2019-06-25 00:14:35,809 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Looking for network named
GuestVM
2019-06-25 00:14:35,825 DEBUG [c.c.h.x.r.XsLocalNetwork]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Found a network called
GuestVM on host=192.168.200.39;
 Network=300e55f0-88ff-a460-e498-e75424bc292a;
pif=b67841c5-6361-0dbf-a63d-a3e9c1b9f2fc

So it seems that, however, it get the right Network and continue to looking
for other network.
Do you think this is the issue also if CS continue with other tasks instead
stops founding more than one network Public?
Could I simply change network name in Xen Pool and update in CS?

On Tue, Jun 25, 2019 at 9:52 AM Andrija Panic 
wrote:

> If your new bond have changes name, have you changed also XenServer Traffic
> Label in CloudStack ?
> Active-active is known to be sometimes very problematic, switch back to
> active-passive until you solve your issues. Experiment later with
> active-active.
>
>
>
> On Tue, Jun 25, 2019, 09:34 Michael Kesper  wrote:
>
> > Hi Alessandro,
> >
> > On 25.06.19 08:43, Alessandro Caviglione wrote:
> > > complains on more than one network with name Publci...  ???
> >
> > [...]
> >
> > >> 2019-06-25 00:14:35,792 DEBUG [c.c.h.x.r.CitrixResourceBase]
> > >> (DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Looking for network
> named
> > >> Public
> > >> 2019-06-25 00:14:35,793 DEBUG [c.c.h.x.r.CitrixResourceBase]
> > >> (DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Found more than one
> > > network
> > >> with the name Public
> >
> > Bye
> > Michael
> >
> >
> >
>


Re: Very BIG mess with networking

2019-06-25 Thread Alessandro Caviglione
complains on more than one network with name Publci...  ???

On Tue, Jun 25, 2019 at 6:41 AM Andrija Panic 
wrote:

> Quick one...
>
>
> Issues creating slave interface are reported by XenS.
> Active-active ia VERY problematic on XenS, revert to lacp or something.acs
> complains on more than one network with name Publci...
>
>
> Best...
>
> On Tue, Jun 25, 2019, 01:15 Alessandro Caviglione 
> wrote:
>
> > Hi guys,
> > I'm experiencing a big issue with networking.
> > First of all, we're running CS 4.11.2 on XS 6.5 with Advanced Networking.
> > Our XS Pool network conf was:
> > - eth0 Management
> > - eth1 empty
> > - eth2 Public
> > - eth3 empty
> > - eth4 + eth5: bond LACP for GuestVM
> >
> > During our last maintenance last week, we decided to create a new bond
> > active-passive for Management (eth0 + eth1) and a new bond for Public
> > (eth2 + eth3)
> > In addition, we would change GuestVM bond from LACP to active-active.
> > So, we created from pool master a new bond and put eth0 + eth1 interface
> > in.
> >
> > MGT_NET_UUID=$(xe network-create name-label=Management)
> > PMI_PIF_UUID=$(xe pif-list host-uuid=xxx management=true params=uuid |
> awk
> > '{ print $5 }')
> > MGT_PIF0_UUID=$(xe pif-list host-uuid=xxx device=eth0 params=uuid | awk
> '{
> > print $5 }')
> > MGT_PIF1_UUID=$(xe pif-list host-uuid=xxx device=eth1 params=uuid | awk
> '{
> > print $5 }')
> > xe bond-create network-uuid=$MGT_NET_UUID
> > pif-uuids=$PMI_PIF_UUID,$MGT_PIF1_UUID mode=active-backup
> >
> > I used the same method to create new bond for Public network (obviously
> > changing nics).
> >
> > To change bond mode for GuestVM network I've used:
> >
> > xe pif-list device=bond0 VLAN=-1
> > xe pif-param-set uuid= other-config:bond-mode=balance-slb
> >
> > I've repeated Public and GuestVM commands on each of the three hosts in
> the
> > pool, for Management I've done it only on Pool Master.
> > After that I've restarted toolstack and (after the issue I'll explain)
> also
> > reboot every host.
> > However, this is the result:
> > - Existing VMs runs fine and I can stop, start, migrate
> > - New VM that require new network will fail
> > - restart network with clean will fail and makes network and instance
> > unavailable
> >
> > This is the CS log:
> >
> > 2019-06-25 00:14:35,751 DEBUG [c.c.h.x.r.CitrixResourceBase]
> > (DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Created VM
> > dbb045ef-5072-96ef-fbb0-1d7e3af0a0ea for r-899-VM
> > 2019-06-25 00:14:35,756 DEBUG [c.c.h.x.r.CitrixResourceBase]
> > (DirectAgent-35:ctx-c5073156) (logid:0d9e7907) PV args are
> >
> >
> %template=domP%name=r-899-VM%eth2ip=31.44.38.53%eth2mask=255.255.255.240%gateway=31.44.38.49%eth0ip=10.122.12.1%eth0mask=255.255.255.0%domain=
> > tet.com
> >
> >
> %cidrsize=24%dhcprange=10.122.12.1%eth1ip=169.254.3.241%eth1mask=255.255.0.0%type=router%disable_rp_filter=true%dns1=8.8.8.8%dns2=8.8.4.4
> > 2019-06-25 00:14:35,757 DEBUG [c.c.h.x.r.CitrixResourceBase]
> > (DirectAgent-35:ctx-c5073156) (logid:0d9e7907) HVM args are
> template=domP
> > name=r-899-VM eth2ip=31.44.38.53 eth2mask=255.255.255.240
> > gateway=31.44.38.49 eth0ip=10.122.12.1 eth0mask=255.255.255.0 domain=
> > tet.com
> > cidrsize=24 dhcprange=10.122.12.1 eth1ip=169.254.3.241
> eth1mask=255.255.0.0
> > type=router disable_rp_filter=true dns1=8.8.8.8 dns2=8.8.4.4
> > 2019-06-25 00:14:35,790 DEBUG [c.c.h.x.r.CitrixResourceBase]
> > (DirectAgent-35:ctx-c5073156) (logid:0d9e7907) VBD
> > ec5e1e54-5902-cbcb-a6a8-abec0479d27c created for
> > com.cloud.agent.api.to.DiskTO@36117847
> > 2019-06-25 00:14:35,790 DEBUG [c.c.h.x.r.CitrixResourceBase]
> > (DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Creating VIF for r-899-VM
> on
> > nic [Nic:Public-31.44.38.53-vlan://untagged]
> > 2019-06-25 00:14:35,792 DEBUG [c.c.h.x.r.CitrixResourceBase]
> > (DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Looking for network named
> > Public
> > 2019-06-25 00:14:35,793 DEBUG [c.c.h.x.r.CitrixResourceBase]
> > (DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Found more than one
> network
> > with the name Public
> > 2019-06-25 00:14:35,802 DEBUG [c.c.h.x.r.XsLocalNetwork]
> > (DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Found a network called
> > Public on host=192.168.200.39;
> >  Network=9fa48b75-d68e-feaf-2eb4-8a7340f8c89b;
> > pif=ca4c1679-fa36-bc93-37de-28a74ddc4f2c
> > 2019-06-25 00:14:35,807 DEBUG [c.c.h.x.r.CitrixResourceBase]
> > (DirectAg

Very BIG mess with networking

2019-06-24 Thread Alessandro Caviglione
Hi guys,
I'm experiencing a big issue with networking.
First of all, we're running CS 4.11.2 on XS 6.5 with Advanced Networking.
Our XS Pool network conf was:
- eth0 Management
- eth1 empty
- eth2 Public
- eth3 empty
- eth4 + eth5: bond LACP for GuestVM

During our last maintenance last week, we decided to create a new bond
active-passive for Management (eth0 + eth1) and a new bond for Public
(eth2 + eth3)
In addition, we would change GuestVM bond from LACP to active-active.
So, we created from pool master a new bond and put eth0 + eth1 interface in.

MGT_NET_UUID=$(xe network-create name-label=Management)
PMI_PIF_UUID=$(xe pif-list host-uuid=xxx management=true params=uuid | awk
'{ print $5 }')
MGT_PIF0_UUID=$(xe pif-list host-uuid=xxx device=eth0 params=uuid | awk '{
print $5 }')
MGT_PIF1_UUID=$(xe pif-list host-uuid=xxx device=eth1 params=uuid | awk '{
print $5 }')
xe bond-create network-uuid=$MGT_NET_UUID
pif-uuids=$PMI_PIF_UUID,$MGT_PIF1_UUID mode=active-backup

I used the same method to create new bond for Public network (obviously
changing nics).

To change bond mode for GuestVM network I've used:

xe pif-list device=bond0 VLAN=-1
xe pif-param-set uuid= other-config:bond-mode=balance-slb

I've repeated Public and GuestVM commands on each of the three hosts in the
pool, for Management I've done it only on Pool Master.
After that I've restarted toolstack and (after the issue I'll explain) also
reboot every host.
However, this is the result:
- Existing VMs runs fine and I can stop, start, migrate
- New VM that require new network will fail
- restart network with clean will fail and makes network and instance
unavailable

This is the CS log:

2019-06-25 00:14:35,751 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Created VM
dbb045ef-5072-96ef-fbb0-1d7e3af0a0ea for r-899-VM
2019-06-25 00:14:35,756 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) PV args are
%template=domP%name=r-899-VM%eth2ip=31.44.38.53%eth2mask=255.255.255.240%gateway=31.44.38.49%eth0ip=10.122.12.1%eth0mask=255.255.255.0%domain=
tet.com
%cidrsize=24%dhcprange=10.122.12.1%eth1ip=169.254.3.241%eth1mask=255.255.0.0%type=router%disable_rp_filter=true%dns1=8.8.8.8%dns2=8.8.4.4
2019-06-25 00:14:35,757 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) HVM args are  template=domP
name=r-899-VM eth2ip=31.44.38.53 eth2mask=255.255.255.240
gateway=31.44.38.49 eth0ip=10.122.12.1 eth0mask=255.255.255.0 domain=tet.com
cidrsize=24 dhcprange=10.122.12.1 eth1ip=169.254.3.241 eth1mask=255.255.0.0
type=router disable_rp_filter=true dns1=8.8.8.8 dns2=8.8.4.4
2019-06-25 00:14:35,790 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) VBD
ec5e1e54-5902-cbcb-a6a8-abec0479d27c created for
com.cloud.agent.api.to.DiskTO@36117847
2019-06-25 00:14:35,790 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Creating VIF for r-899-VM on
nic [Nic:Public-31.44.38.53-vlan://untagged]
2019-06-25 00:14:35,792 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Looking for network named
Public
2019-06-25 00:14:35,793 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Found more than one network
with the name Public
2019-06-25 00:14:35,802 DEBUG [c.c.h.x.r.XsLocalNetwork]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Found a network called
Public on host=192.168.200.39;
 Network=9fa48b75-d68e-feaf-2eb4-8a7340f8c89b;
pif=ca4c1679-fa36-bc93-37de-28a74ddc4f2c
2019-06-25 00:14:35,807 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Created a vif
dfaab3d7-7921-e4d5-ba27-537e8d549a5c on 2
2019-06-25 00:14:35,807 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Creating VIF for r-899-VM on
nic [Nic:Guest-10.122.12.1-vlan://384]
2019-06-25 00:14:35,809 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Looking for network named
GuestVM
2019-06-25 00:14:35,825 DEBUG [c.c.h.x.r.XsLocalNetwork]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Found a network called
GuestVM on host=192.168.200.39;
 Network=300e55f0-88ff-a460-e498-e75424bc292a;
pif=b67841c5-6361-0dbf-a63d-a3e9c1b9f2fc
2019-06-25 00:14:35,826 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Creating VLAN 384 on host
192.168.200.39 on device bond0
2019-06-25 00:14:36,467 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) VLAN is created for 384.
The uuid is e34dc684-8a87-7ef6-5a49-8214011f8c3c
2019-06-25 00:14:36,480 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Created a vif
94558211-6bc6-ce64-9535-6d424b2b072c on 0
2019-06-25 00:14:36,481 DEBUG [c.c.h.x.r.CitrixResourceBase]
(DirectAgent-35:ctx-c5073156) (logid:0d9e7907) Creating VIF for r-899-VM on
nic 

CS 4.12 logs

2019-05-16 Thread Alessandro Caviglione
Hi guys,
I've just upgraded from CS 4.9 to 4.12 but I cannot see any "running" logs.
In 4.9 I remember logs was in catalina.log file, but now I can't see any
logging activities.
Is there any other file I've to check?


CS 4.12 and XS 6.5

2019-05-03 Thread Alessandro Caviglione
Hi guys,
we're going to upgrade CS 4.9 to 4.12.
Actually CS are managing some XenServer 6.5 but in Compatibility Matrix for
CS 4.12 I see that XS 6.5 is deprecated.
What it means?
Anyone knows if XS6.5 still works or it's possible that I'll lost the
management of those nodes?

Thank you!


Re: VR DHCP issue

2018-10-01 Thread Alessandro Caviglione
Hi,
on VR I do not have any /etc/dhcphosts.txt
/etc/cloudstack/dhcpentry.json  contains DHCP entry but  /var/log/cloud.log
stops at last VR startup... no DHCP entry... and I still have DHCP issue! :(

On Thu, Sep 27, 2018 at 11:45 AM Andrei Mikhailovsky
 wrote:

> Hi Marcelo,
>
> could you please elaborate on the fix please? I am having this issue with
> a couple of my VRs (not all).
>
> Running /etc/init.d/cloud-early-config start doesn't work as there is no
> such script in the init.d directory. Running service cloud-early-config
> start doesn't fix the DHCP issue.
>
> Thanks
>
> - Original Message -
> > From: "Lotic Lists" 
> > To: "users" 
> > Sent: Friday, 21 September, 2018 03:50:12
> > Subject: RE: VR DHCP issue
>
> > Workaround is run "/etc/init.d/cloud-early-config start"
> >
> > Att.
> > Marcelo
> >
> > -Original Message-
> > From: Ivan Kudryavtsev 
> > Sent: quinta-feira, 20 de setembro de 2018 13:46
> > To: users 
> > Subject: Re: VR DHCP issue
> >
> > Hello, in the past and in 4.9 too, I have met a bug like that with DHCP:
> > https://github.com/fgrehm/vagrant-lxc/issues/153
> >
> > I have to apply that fix in our VRs to make it work always as expected.
> >
> > чт, 20 сент. 2018 г., 22:52 Dag Sonstebo :
> >
> >> Hi Allessandro,
> >>
> >> First of all have you tried to restart the networks "with cleanup"
> >> (alternatively just destroyed the VRs and let them recreate)?
> >>
> >> Can you check the content of the following files on your problem VRs:
> >>
> >> /etc/dhcphosts.txt
> >> /etc/cloudstack/dhcpentry.json
> >>
> >> Also look through the VR /var/log/cloud.log for any hints why DHCP
> >> entries are not passed or parsed.
> >>
> >> Regards,
> >> Dag Sonstebo
> >> Cloud Architect
> >> ShapeBlue
> >>
> >> On 20/09/2018, 16:39, "Alessandro Caviglione"
> >> 
> >> wrote:
> >>
> >> Hi guys,
> >> I'm experiencing an issue in our CS 4.9.
> >> In fact, sonce a week ago, randomly some instances became
> unreachable.
> >> After investigation we see that instances does not have IP address.
> >> We tried to restart VR, restart instance, migrate both to another
> >> host, but
> >> same issue.
> >> So we configured the instance with a fixed ip address and it comes
> back
> >> online.
> >> We have had this issue on about 15 VR...
> >> Any idea??
> >>
> >>
> >>
> >> dag.sonst...@shapeblue.com
> >> www.shapeblue.com
> >> Amadeus House, Floral Street, London  WC2E 9DPUK @shapeblue
> >>
> >>
> >>
>


VR DHCP issue

2018-09-20 Thread Alessandro Caviglione
Hi guys,
I'm experiencing an issue in our CS 4.9.
In fact, sonce a week ago, randomly some instances became unreachable.
After investigation we see that instances does not have IP address.
We tried to restart VR, restart instance, migrate both to another host, but
same issue.
So we configured the instance with a fixed ip address and it comes back
online.
We have had this issue on about 15 VR...
Any idea??


Migrate VR and SVM to other cluster

2018-08-27 Thread Alessandro Caviglione
Hi guys,
is there a way to migrate System VM and VR to another cluster?
I'm using XenServer with ACS4.9

I know that the only way is to put the cluster in maintenance mode but I
don't want to migrate existing instance, just VR and SVM.

Thank yuo


Re: Storage migration and XS VHD issue

2018-07-20 Thread Alessandro Caviglione
Thank you for your suggestions, but how can I merge all the chain VHD if
the VM does not have any snapshot??

On Fri, Jul 20, 2018 at 10:20 AM Makrand  wrote:

> Hi Al,
>
> With XenServer, its always issue with moving bigger volumes. (operation
> just times out)
>
> Here are the parameters that worked for me for bigger volume migrations in
> past. (You may want to tweak as per your env. may increase a bit. )
>
> migratewait: 36000
> storage.pool.max.waitseconds: 36000
> wait:18000
>
> *wait *is most critical of all . You need to change this in global config
> and this warrants management service restart.
>
>
> For the VHD chain read -  https://support.citrix.com/article/CTX201296.
> Understand this.
>
> First, remove all the unnecessary snaps of disks etc. You need click on
> scan (from xencenter) after you remove snap etc.
>
> Good luck
>
>
> --
> Makrand
>
>
> On Fri, Jul 20, 2018 at 1:12 PM, Alessandro Caviglione <
> c.alessan...@gmail.com> wrote:
>
> > Hi guys,
> > we need to move all the VM's disk from one storage to another.
> > Due to extremely slow performance of the source primary storage, migrate
> > VMs and DATA disks from cloudstack does not work because of timeout.
> > So, the alternative, is to move VHD files directly between the storage
> and
> > change Cloudstack DB... but I see that each VM has a lng VHD chain
> and
> > CS DB point to the last one.
> > So... first question is: WHY?
> > Second question is: how can I consolidate all these files in a single
> one?
> >
> > vhd=88e504fa-08e8-4c82-abf6-1ebf8546ade2.vhd capacity=53687091200
> > size=18344002048 hidden=1 parent=none
> >vhd=ecc7b0f1-63f1-4aac-9a69-39feb0db0b6e.vhd capacity=53687091200
> > size=3526001152 hidden=1 parent=88e504fa-08e8-4c82-abf6-1ebf8546ade2.vhd
> >   vhd=73353525-ef56-49db-bfdf-b4e87f668d40.vhd capacity=53687091200
> > size=147194368 hidden=1 parent=ecc7b0f1-63f1-4aac-9a69-39feb0db0b6e.vhd
> >  vhd=3c9c9803-dbd9-4993-98eb-78f9d5a9dd5a.vhd
> capacity=53687091200
> > size=701923840 hidden=1 parent=73353525-ef56-49db-bfdf-b4e87f668d40.vhd
> > vhd=843874a3-6c2e-4e52-b3fd-f5cf6277d297.vhd
> > capacity=53687091200 size=73650688 hidden=1
> > parent=3c9c9803-dbd9-4993-98eb-78f9d5a9dd5a.vhd
> >vhd=1abe6e83-09a8-4ee0-a2b7-270b47c7a461.vhd
> > capacity=53687091200 size=1235640832 hidden=1
> > parent=843874a3-6c2e-4e52-b3fd-f5cf6277d297.vhd
> >   vhd=0cd07d92-d1d0-46f5-bc93-9f49bba72b74.vhd
> > capacity=53687091200 size=82055680 hidden=1
> > parent=1abe6e83-09a8-4ee0-a2b7-270b47c7a461.vhd
> >  vhd=f038eae3-6912-4d52-a39e-276052dee777.vhd
> > capacity=53687091200 size=914149888 hidden=1
> > parent=0cd07d92-d1d0-46f5-bc93-9f49bba72b74.vhd
> > vhd=684abd94-f483-4721-9b1c-b8f82d6b7bd7.vhd
> > capacity=53687091200 size=84156928 hidden=1
> > parent=f038eae3-6912-4d52-a39e-276052dee777.vhd
> >vhd=e9e152e4-87bf-430d-8ec6-7f7b0f45c27a.vhd
> > capacity=53687091200 size=733442560 hidden=1
> > parent=684abd94-f483-4721-9b1c-b8f82d6b7bd7.vhd
> >
>  vhd=9c01a612-99f7-4ba7-800f-c3c3b9d4b268.vhd
> > capacity=53687091200 size=241750528 hidden=1
> > parent=e9e152e4-87bf-430d-8ec6-7f7b0f45c27a.vhd
> >
> >  vhd=74fb956e-1699-481e-8cba-f2a898c5eebf.vhd capacity=53687091200
> > size=752353792 hidden=1 parent=9c01a612-99f7-4ba7-800f-c3c3b9d4b268.vhd
> >
> > vhd=bbb7c296-db11-4989-87ba-ed2e1a0d6dab.vhd capacity=53687091200
> > size=105169408 hidden=1 parent=74fb956e-1699-481e-8cba-f2a898c5eebf.vhd
> >
> >  vhd=d38c45ea-2c3d-42b8-b804-0010e8be2e52.vhd capacity=53687091200
> > size=865821184 hidden=1 parent=bbb7c296-db11-4989-87ba-ed2e1a0d6dab.vhd
> >
> > vhd=1c61f78e-b526-4383-9783-a2f54dad4c53.vhd capacity=53687091200
> > size=96764416 hidden=1 parent=d38c45ea-2c3d-42b8-b804-0010e8be2e52.vhd
> >
> >  vhd=21d75884-4976-400c-92b3-eed01dcbfde5.vhd capacity=53687091200
> > size=1204122112 hidden=1 parent=1c61f78e-b526-4383-9783-a2f54dad4c53.vhd
> >
> > vhd=d9581bd3-c93d-4938-9e59-740fbaff8fb2.vhd capacity=53687091200
> > size=96764416 hidden=1 parent=21d75884-4976-400c-92b3-eed01dcbfde5.vhd
> >
> >  vhd=ba3a708b-932c-4024-9051-9fe30694b03b.vhd capacity=53687091200
> > size=912048640 hidden=1 parent=d9581bd3-c93d-4938-9e59-740fbaff8fb2.vhd
> >
> > vhd=6c75cb97-6f64-4699-a0d4-93f906401e72.vhd capacity=53687091200
> > size=98865664 hidden=1 parent=ba3a708b-932c-4024-9051-9fe30694b03b.vhd
> >
> >  vhd=41960a95-78f6-4e4f-9ec

Storage migration and XS VHD issue

2018-07-20 Thread Alessandro Caviglione
Hi guys,
we need to move all the VM's disk from one storage to another.
Due to extremely slow performance of the source primary storage, migrate
VMs and DATA disks from cloudstack does not work because of timeout.
So, the alternative, is to move VHD files directly between the storage and
change Cloudstack DB... but I see that each VM has a lng VHD chain and
CS DB point to the last one.
So... first question is: WHY?
Second question is: how can I consolidate all these files in a single one?

vhd=88e504fa-08e8-4c82-abf6-1ebf8546ade2.vhd capacity=53687091200
size=18344002048 hidden=1 parent=none
   vhd=ecc7b0f1-63f1-4aac-9a69-39feb0db0b6e.vhd capacity=53687091200
size=3526001152 hidden=1 parent=88e504fa-08e8-4c82-abf6-1ebf8546ade2.vhd
  vhd=73353525-ef56-49db-bfdf-b4e87f668d40.vhd capacity=53687091200
size=147194368 hidden=1 parent=ecc7b0f1-63f1-4aac-9a69-39feb0db0b6e.vhd
 vhd=3c9c9803-dbd9-4993-98eb-78f9d5a9dd5a.vhd capacity=53687091200
size=701923840 hidden=1 parent=73353525-ef56-49db-bfdf-b4e87f668d40.vhd
vhd=843874a3-6c2e-4e52-b3fd-f5cf6277d297.vhd
capacity=53687091200 size=73650688 hidden=1
parent=3c9c9803-dbd9-4993-98eb-78f9d5a9dd5a.vhd
   vhd=1abe6e83-09a8-4ee0-a2b7-270b47c7a461.vhd
capacity=53687091200 size=1235640832 hidden=1
parent=843874a3-6c2e-4e52-b3fd-f5cf6277d297.vhd
  vhd=0cd07d92-d1d0-46f5-bc93-9f49bba72b74.vhd
capacity=53687091200 size=82055680 hidden=1
parent=1abe6e83-09a8-4ee0-a2b7-270b47c7a461.vhd
 vhd=f038eae3-6912-4d52-a39e-276052dee777.vhd
capacity=53687091200 size=914149888 hidden=1
parent=0cd07d92-d1d0-46f5-bc93-9f49bba72b74.vhd
vhd=684abd94-f483-4721-9b1c-b8f82d6b7bd7.vhd
capacity=53687091200 size=84156928 hidden=1
parent=f038eae3-6912-4d52-a39e-276052dee777.vhd
   vhd=e9e152e4-87bf-430d-8ec6-7f7b0f45c27a.vhd
capacity=53687091200 size=733442560 hidden=1
parent=684abd94-f483-4721-9b1c-b8f82d6b7bd7.vhd
  vhd=9c01a612-99f7-4ba7-800f-c3c3b9d4b268.vhd
capacity=53687091200 size=241750528 hidden=1
parent=e9e152e4-87bf-430d-8ec6-7f7b0f45c27a.vhd

 vhd=74fb956e-1699-481e-8cba-f2a898c5eebf.vhd capacity=53687091200
size=752353792 hidden=1 parent=9c01a612-99f7-4ba7-800f-c3c3b9d4b268.vhd

vhd=bbb7c296-db11-4989-87ba-ed2e1a0d6dab.vhd capacity=53687091200
size=105169408 hidden=1 parent=74fb956e-1699-481e-8cba-f2a898c5eebf.vhd

 vhd=d38c45ea-2c3d-42b8-b804-0010e8be2e52.vhd capacity=53687091200
size=865821184 hidden=1 parent=bbb7c296-db11-4989-87ba-ed2e1a0d6dab.vhd

vhd=1c61f78e-b526-4383-9783-a2f54dad4c53.vhd capacity=53687091200
size=96764416 hidden=1 parent=d38c45ea-2c3d-42b8-b804-0010e8be2e52.vhd

 vhd=21d75884-4976-400c-92b3-eed01dcbfde5.vhd capacity=53687091200
size=1204122112 hidden=1 parent=1c61f78e-b526-4383-9783-a2f54dad4c53.vhd

vhd=d9581bd3-c93d-4938-9e59-740fbaff8fb2.vhd capacity=53687091200
size=96764416 hidden=1 parent=21d75884-4976-400c-92b3-eed01dcbfde5.vhd

 vhd=ba3a708b-932c-4024-9051-9fe30694b03b.vhd capacity=53687091200
size=912048640 hidden=1 parent=d9581bd3-c93d-4938-9e59-740fbaff8fb2.vhd

vhd=6c75cb97-6f64-4699-a0d4-93f906401e72.vhd capacity=53687091200
size=98865664 hidden=1 parent=ba3a708b-932c-4024-9051-9fe30694b03b.vhd

 vhd=41960a95-78f6-4e4f-9ec3-2c0d34e0b33f.vhd capacity=53687091200
size=815391232 hidden=1 parent=6c75cb97-6f64-4699-a0d4-93f906401e72.vhd

vhd=e32e9562-6873-490c-bc03-ecc98dfc95a1.vhd capacity=53687091200
size=79954432 hidden=1 parent=41960a95-78f6-4e4f-9ec3-2c0d34e0b33f.vhd

 vhd=dd160ab4-ff9a-4da5-a453-a55426393b04.vhd capacity=53687091200
size=836403712 hidden=1 parent=e32e9562-6873-490c-bc03-ecc98dfc95a1.vhd

vhd=15f9de9c-2da7-469d-9b86-1ccf79064b09.vhd capacity=53687091200
size=82055680 hidden=1 parent=dd160ab4-ff9a-4da5-a453-a55426393b04.vhd

 vhd=6e87a6c6-9e30-4202-b301-5846d6464241.vhd capacity=53687091200
size=899441152 hidden=1 parent=15f9de9c-2da7-469d-9b86-1ccf79064b09.vhd

vhd=0743f4d0-cf96-4a5d-97d7-3f5451482eb0.vhd capacity=53687091200
size=90460672 hidden=1 parent=6e87a6c6-9e30-4202-b301-5846d6464241.vhd

 vhd=09ad513b-2d1d-4878-bd30-12064a989b02.vhd capacity=53687091200
size=823796224 hidden=1 parent=0743f4d0-cf96-4a5d-97d7-3f5451482eb0.vhd

  vhd=787efd1f-cad7-444c-a30d-8edcfcd2dbc6.vhd capacity=53687091200
size=105169408 hidden=1 parent=09ad513b-2d1d-4878-bd30-12064a989b02.vhd

 vhd=1e9c643f-551a-425b-abba-e10d03ed7ca8.vhd capacity=53687091200
size=867922432 hidden=1 parent=787efd1f-cad7-444c-a30d-8edcfcd2dbc6.vhd

vhd=ffbdd502-4517-484a-b1d3-891e451145b0.vhd capacity=53687091200
size=979288576 hidden=1 parent=1e9c643f-551a-425b-abba-e10d03ed7ca8.vhd

   vhd=5d5a3373-886b-427c-98bf-01f700cbd861.vhd
capacity=53687091200 size=1868116480 hidden=0
parent=ffbdd502-4517-484a-b1d3-891e451145b0.vhd


Re: XenServer Licensing Change - Switch Hypervisors?

2018-02-03 Thread Alessandro Caviglione
We too was evaluating ScaleIO on XS, now we move to KVM or Hyper-V but
always with ScaleIO, I don't understand your concern about ScaleIO on KVM.


On Sat, Feb 3, 2018 at 12:32 PM, S. Brüseke - proIO GmbH <
s.brues...@proio.com> wrote:

> Hi Alessandro,
>
> we are in the same situation with using XenServer 6.5. Besides it will not
> be patched XS6.5 has poor memory performance. We are in the middle of
> evaluating KVM with ScaleIO to get rid of XenServer in the near future. I
> am stuck right now on how to mount a ScaleIO volume do a KVM host.
> Migrate all VMs will be a pain in the ass, but XenServer is not the way to
> go after all the decisions Citrix did in the past with its hypervisor.
>
> We are more Linux related so Hyper-V is not an option for us and as far as
> I know you cannot mix Hyper-V with other hypervisors in the same zone in
> Cloudstack. But I am not sure if this limitation is still present in the
> latest stable release.
>
> Mit freundlichen Grüßen / With kind regards,
>
> Swen
>
> -Ursprüngliche Nachricht-
> Von: Alessandro Caviglione [mailto:c.alessan...@gmail.com]
> Gesendet: Samstag, 3. Februar 2018 01:10
> An: users@cloudstack.apache.org
> Betreff: Re: XenServer Licensing Change - Switch Hypervisors?
>
> Hi all,
> I'm also trying to find a solution, our infrastructure is based on XS6.5
> that will not patched on meltdown and spectre so we're considering to
> create new cluster based on a different hypervisor instead of upgrade to
> XS7.2.
> In fact, I think that all here work for a company that has a MS SPLA
> agreement in place, so my question is: since we're already paying MS
> Datacenter license, what do you think about Hyper-V under Cloudstack?
> I'm trying to compare it versus KVM...
>
>
> Thank you.
>
>
> On Tue, Jan 9, 2018 at 3:18 AM, Pierre-Luc Dion <pd...@cloudops.com>
> wrote:
>
> > Hi Dingo,
> >
> > That's an interesting answer to recent citrix licensing change for
> > xenserver, I'll definitely keep an eye on this project!
> >
> > thanks!
> >
> >
> > *Pierre-Luc DION*
> > Architecte de Solution Cloud | Cloud Solutions Architect t
> > 855.652.5683
> >
> > *CloudOps* Votre partenaire infonuagique* | *Cloud Solutions Experts
> > 420 rue Guy *|* Montreal *|* Quebec *|* H3J 1S6 w cloudops.com *|* tw
> > @CloudOps_
> >
> > On Mon, Jan 8, 2018 at 10:13 AM, Nux! <n...@li.nux.ro> wrote:
> >
> > > Good luck, Sean. It should be doable.
> > > If you're buying new Intel hardware, make sure it supports the
> > > invpcid
> > cpu
> > > flag, or buy AMD Epyc.
> > > See my other recent email on the list about performance implications
> > > of Meltdown.
> > >
> > > --
> > > Sent from the Delta quadrant using Borg technology!
> > >
> > > Nux!
> > > www.nux.ro
> > >
> > > - Original Message -
> > > > From: "Sean Lair" <sl...@ippathways.com>
> > > > To: "users" <users@cloudstack.apache.org>
> > > > Sent: Sunday, 7 January, 2018 18:20:11
> > > > Subject: RE: XenServer Licensing Change - Switch Hypervisors?
> > >
> > > > Thanks for the reply Nux, yea we originally chose XenServer over
> > > > KVM
> > > because KVM
> > > > didn't support all of the VM snapshot functionality of XenServer.
> > > >
> > > > We are evaluating switching to KVM now...  But don't have a good
> > > > way of
> > > moving
> > > > customers over from XenServer host to KVM hosts...
> > > >
> > > > We are on XenServer 6.5 and with the new Spectre and Meltdown
> > > vulnerabilities
> > > > not being patched in 6.5...  We may accelerate the move to KVM.
> > > >
> > > >
> > > > -Original Message-
> > > > From: Nux! [mailto:n...@li.nux.ro]
> > > > Sent: Friday, January 5, 2018 4:22 PM
> > > > To: users <users@cloudstack.apache.org>
> > > > Subject: Re: XenServer Licensing Change - Switch Hypervisors?
> > > >
> > > > If you have expertise with XenServer and don't mind paying, then
> > > > it's
> > > not a bad
> > > > direction to follow. It's a nice HV.
> > > > On the long term I think KVM will be a much better solution though.
> > > >
> > > > --
> > > > Sent from the Delta quadrant using Borg technology!
> > > >
> > > > Nux!
> > > > www.nux.ro
> > > >
> 

Re: XenServer Licensing Change - Switch Hypervisors?

2018-02-02 Thread Alessandro Caviglione
Hi all,
I'm also trying to find a solution, our infrastructure is based on XS6.5
that will not patched on meltdown and spectre so we're considering to
create new cluster based on a different hypervisor instead of upgrade to
XS7.2.
In fact, I think that all here work for a company that has a MS SPLA
agreement in place, so my question is: since we're already paying MS
Datacenter license, what do you think about Hyper-V under Cloudstack?
I'm trying to compare it versus KVM...


Thank you.


On Tue, Jan 9, 2018 at 3:18 AM, Pierre-Luc Dion  wrote:

> Hi Dingo,
>
> That's an interesting answer to recent citrix licensing change for
> xenserver, I'll definitely keep an eye on this project!
>
> thanks!
>
>
> *Pierre-Luc DION*
> Architecte de Solution Cloud | Cloud Solutions Architect
> t 855.652.5683
>
> *CloudOps* Votre partenaire infonuagique* | *Cloud Solutions Experts
> 420 rue Guy *|* Montreal *|* Quebec *|* H3J 1S6
> w cloudops.com *|* tw @CloudOps_
>
> On Mon, Jan 8, 2018 at 10:13 AM, Nux!  wrote:
>
> > Good luck, Sean. It should be doable.
> > If you're buying new Intel hardware, make sure it supports the invpcid
> cpu
> > flag, or buy AMD Epyc.
> > See my other recent email on the list about performance implications of
> > Meltdown.
> >
> > --
> > Sent from the Delta quadrant using Borg technology!
> >
> > Nux!
> > www.nux.ro
> >
> > - Original Message -
> > > From: "Sean Lair" 
> > > To: "users" 
> > > Sent: Sunday, 7 January, 2018 18:20:11
> > > Subject: RE: XenServer Licensing Change - Switch Hypervisors?
> >
> > > Thanks for the reply Nux, yea we originally chose XenServer over KVM
> > because KVM
> > > didn't support all of the VM snapshot functionality of XenServer.
> > >
> > > We are evaluating switching to KVM now...  But don't have a good way of
> > moving
> > > customers over from XenServer host to KVM hosts...
> > >
> > > We are on XenServer 6.5 and with the new Spectre and Meltdown
> > vulnerabilities
> > > not being patched in 6.5...  We may accelerate the move to KVM.
> > >
> > >
> > > -Original Message-
> > > From: Nux! [mailto:n...@li.nux.ro]
> > > Sent: Friday, January 5, 2018 4:22 PM
> > > To: users 
> > > Subject: Re: XenServer Licensing Change - Switch Hypervisors?
> > >
> > > If you have expertise with XenServer and don't mind paying, then it's
> > not a bad
> > > direction to follow. It's a nice HV.
> > > On the long term I think KVM will be a much better solution though.
> > >
> > > --
> > > Sent from the Delta quadrant using Borg technology!
> > >
> > > Nux!
> > > www.nux.ro
> > >
> > > - Original Message -
> > >> From: "Sean Lair" 
> > >> To: "users" 
> > >> Sent: Wednesday, 3 January, 2018 00:53:32
> > >> Subject: XenServer Licensing Change - Switch Hypervisors?
> > >
> > >> It looks like XenServer 7.3 will no longer have the following features
> > >> in the Free Edition.  Is anyone considering moving from Free to
> > >> Standard Edition or possibly to another hyper-visor (like KVM) for
> their
> > >> CloudStack environment?
> > >>
> > >> Thoughts?  We are looking more at KVM at this point, any feature gaps
> > >> we should be aware of?
> > >>
> > >> Free Edition Changes
> > >>
> > >> -  Limited to up to 3 hosts per clusters
> > >>
> > >> -  No Pool High-Availability
> > >>
> > >> -  No Dynamic Memory Control (DMC)
> > >>
> > >> https://www.citrix.com/content/dam/citrix/en_us/
> documents/product-over
> > >> view/citrix-xenserver-feature-matrix.pdf
> > >>
> > >> Thanks
> > > > Sean
> >
>


Re: Manually copy volume and update database

2017-12-09 Thread Alessandro Caviglione
pleeease

On Fri, Dec 8, 2017 at 7:10 PM, Alessandro Caviglione <
c.alessan...@gmail.com> wrote:

> Hi guys,
> I've a little issue.
> We're decommissioning a XS6.2 cluster and the last instance is a big one,
> with a DATA DISK of 1 TB.
> Our cluster is connected by NFS and we're trying to migrate this instance
> to a new XS6.5 cluster but every try, will fail.
> I tried to shutdown the instance and move the disk with API: migrate
> volume volumeid=8d5d0640-49cd-40e2-8318-f6732ce91094
> storageid=c24cd510-10ff-3cf2-b490-76bc4028d81e
>
> but after some hours I got:
> Error
> Async job 741bffa2-ef32-4f3d-b013-f66e0c1c4836 failed
> Error 530, Resource [StoragePool:14] is unreachable: Migrate volume
> failed: com.cloud.utils.exception.CloudRuntimeException: Failed to
> migrate volume org.apache.cloudstack.storage.volume.VolumeObject@73f6327b
> to storage pool org.apache.cloudstack.storage.datastore.
> PrimaryDataStoreImpl@286c64b7
>
>
> Since the new cluster uses the same storage, I can just copy/past the VHD
> directly on the storage and change the database data to let the instance
> point to the new VHD just copied.
> I've already tried to do this changing these tables:
> volumes: pool_id, last_pool_id, folder,
> vm_instance: last_host_id, power_host
>
>
> But the instance does not start...
>
> Any suggestion??
>
> Thank you!!
>
>


Manually copy volume and update database

2017-12-08 Thread Alessandro Caviglione
Hi guys,
I've a little issue.
We're decommissioning a XS6.2 cluster and the last instance is a big one,
with a DATA DISK of 1 TB.
Our cluster is connected by NFS and we're trying to migrate this instance
to a new XS6.5 cluster but every try, will fail.
I tried to shutdown the instance and move the disk with API: migrate volume
volumeid=8d5d0640-49cd-40e2-8318-f6732ce91094
storageid=c24cd510-10ff-3cf2-b490-76bc4028d81e

but after some hours I got:
Error
Async job 741bffa2-ef32-4f3d-b013-f66e0c1c4836 failed
Error 530, Resource [StoragePool:14] is unreachable: Migrate volume failed:
com.cloud.utils.exception.CloudRuntimeException: Failed to migrate volume
org.apache.cloudstack.storage.volume.VolumeObject@73f6327b to storage pool
org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@286c64b7


Since the new cluster uses the same storage, I can just copy/past the VHD
directly on the storage and change the database data to let the instance
point to the new VHD just copied.
I've already tried to do this changing these tables:
volumes: pool_id, last_pool_id, folder,
vm_instance: last_host_id, power_host


But the instance does not start...

Any suggestion??

Thank you!!


Re: Unable to locate datastore

2017-11-15 Thread Alessandro Caviglione
select v.* from cloud.snapshots s join
cloud.volumes v on v.id = s.volume_id
where
pool_id = 11

0 rows returned

Second query you wrote is the same :)



On Wed, Nov 15, 2017 at 7:24 PM, Rafael Weingärtner <
rafaelweingart...@gmail.com> wrote:

> Can you post the query you executed?
>
> On Wed, Nov 15, 2017 at 4:22 PM, Alessandro Caviglione <
> c.alessan...@gmail.com> wrote:
>
> > Sorry... I forgot to select cloud database and Rafael query returns an
> > error
> > I've fixed and 0 rows returned!
> >
> > On Wed, Nov 15, 2017 at 7:19 PM, Alessandro Caviglione <
> > c.alessan...@gmail.com> wrote:
> >
> > > Maybe I tried to delete storage 11 but it still here with id 12!
> > > Rafael query does not work, SELECT * FROM cloud.storage_pool_host_ref
> > > where pool_id=11 returns no result.
> > >
> > > On Wed, Nov 15, 2017 at 5:53 PM, Dag Sonstebo <
> > dag.sonst...@shapeblue.com>
> > > wrote:
> > >
> > >> As Rafael says – it looks like primary store 11 is already deleted –
> you
> > >> have a removed date of 2016-08-29 12:26:26 (just check that this is
> > indeed
> > >> the removed date and not the “update_time” – the two columns follow
> each
> > >> other).
> > >>
> > >> 11 CH1-PRI-SATA-2 NetworkFilesystem 2049 1 1 2 171773001728
> > 7672016928768
> > >> 192.168.200.25 /volume2/CH1-PRI-SATA-2 2016-08-24 20:57:42 2016-08-29
> > >> 12:26:26 Maintenance DefaultPrimary CLUSTER 0
> > >> 12 CH1-PRI-SATA-2 d434-8c54-3efa-a90a-98a35fdfbdec
> > NetworkFilesystem
> > >> 2049 1 1 2 4085454602240 7672016928768 192.168.200.25
> > >> /volume2/CH1-PRI-SATA-2 2016-08-29 12:28:06 Up DefaultPrimary CLUSTER
> 0
> > >>
> > >> Also check your host to pool config:
> > >>
> > >> SELECT * FROM cloud.storage_pool_host_ref where pool_id=11;
> > >>
> > >> This will show you if pool 11 is attached to any hosts. Apart from
> that
> > >> check the volumes and snapshots as Rafael suggests to make sure
> > CloudStack
> > >> doesn’t think pool 11 is still in use.
> > >>
> > >> (and appreciate you want to delete another pool – not sure why it
> would
> > >> complain about 11, but if you get to the bottom of the above hopefully
> > the
> > >> other deletion will work)
> > >>
> > >> Regards,
> > >> Dag Sonstebo
> > >> Cloud Architect
> > >> ShapeBlue
> > >>
> > >> On 15/11/2017, 16:31, "Rafael Weingärtner" <
> rafaelweingart...@gmail.com
> > >
> > >> wrote:
> > >>
> > >> Was this storage with ID 11 deleted?
> > >> You can check everything allocated in it by issue the following
> > SQLs:
> > >>
> > >> To find all snapshots:
> > >> select s.* from snapshots s join
> > >> volumes v on v.id = s.volume_id
> > >> where
> > >> pool_id = ?
> > >>
> > >> To find all volumes:
> > >> select v.* from snapshots s join
> > >> volumes v on v.id = s.volume_id
> > >> where
> > >> pool_id = ?
> > >>
> > >>
> > >> On Wed, Nov 15, 2017 at 2:23 PM, Alessandro Caviglione <
> > >> c.alessan...@gmail.com> wrote:
> > >>
> > >> > Hi guys,
> > >> > I'm trying to delete a Primary datastore, but when I try to
> delete
> > >> it I got
> > >> > this error:
> > >> >
> > >> > Unable to locate datastore with id 11
> > >> >
> > >> > In the database, I see:
> > >> >
> > >> > 11 CH1-PRI-SATA-2 NetworkFilesystem 2049 1 1 2 171773001728
> > >> 7672016928768
> > >> > 192.168.200.25 /volume2/CH1-PRI-SATA-2 2016-08-24 20:57:42
> > >> 2016-08-29
> > >> > 12:26:26 Maintenance DefaultPrimary CLUSTER 0
> > >> > 12 CH1-PRI-SATA-2 d434-8c54-3efa-a90a-98a35fdfbdec
> > >> NetworkFilesystem
> > >> > 2049 1 1 2 4085454602240 7672016928768 192.168.200.25
> > >> > /volume2/CH1-PRI-SATA-2 2016-08-29 12:28:06 Up DefaultPrimary
> > >> CLUSTER 0
> > >> >
> > >> > In fact, 11 and 12 are the same primary storage but for a
> strange
> > >> reason,
> > >> > 11 is in maintenance and does not have an ID
> > >> >
> > >> > How can I solve?
> > >> > Could I copy all the data from 12 to 11 and delete the primary
> > >> storage I
> > >> > want to delete?
> > >> > Keep in mind that the storage I need to delete is another one,
> not
> > >> > CH1-PRI-SATA-2
> > >> >
> > >> > Thank you.
> > >> >
> > >>
> > >>
> > >>
> > >> --
> > >> Rafael Weingärtner
> > >>
> > >>
> > >>
> > >> dag.sonst...@shapeblue.com
> > >> www.shapeblue.com
> > >> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> > >> @shapeblue
> > >>
> > >>
> > >>
> > >>
> > >
> >
>
>
>
> --
> Rafael Weingärtner
>


Re: Unable to locate datastore

2017-11-15 Thread Alessandro Caviglione
Sorry... I forgot to select cloud database and Rafael query returns an
error
I've fixed and 0 rows returned!

On Wed, Nov 15, 2017 at 7:19 PM, Alessandro Caviglione <
c.alessan...@gmail.com> wrote:

> Maybe I tried to delete storage 11 but it still here with id 12!
> Rafael query does not work, SELECT * FROM cloud.storage_pool_host_ref
> where pool_id=11 returns no result.
>
> On Wed, Nov 15, 2017 at 5:53 PM, Dag Sonstebo <dag.sonst...@shapeblue.com>
> wrote:
>
>> As Rafael says – it looks like primary store 11 is already deleted – you
>> have a removed date of 2016-08-29 12:26:26 (just check that this is indeed
>> the removed date and not the “update_time” – the two columns follow each
>> other).
>>
>> 11 CH1-PRI-SATA-2 NetworkFilesystem 2049 1 1 2 171773001728 7672016928768
>> 192.168.200.25 /volume2/CH1-PRI-SATA-2 2016-08-24 20:57:42 2016-08-29
>> 12:26:26 Maintenance DefaultPrimary CLUSTER 0
>> 12 CH1-PRI-SATA-2 d434-8c54-3efa-a90a-98a35fdfbdec NetworkFilesystem
>> 2049 1 1 2 4085454602240 7672016928768 192.168.200.25
>> /volume2/CH1-PRI-SATA-2 2016-08-29 12:28:06 Up DefaultPrimary CLUSTER 0
>>
>> Also check your host to pool config:
>>
>> SELECT * FROM cloud.storage_pool_host_ref where pool_id=11;
>>
>> This will show you if pool 11 is attached to any hosts. Apart from that
>> check the volumes and snapshots as Rafael suggests to make sure CloudStack
>> doesn’t think pool 11 is still in use.
>>
>> (and appreciate you want to delete another pool – not sure why it would
>> complain about 11, but if you get to the bottom of the above hopefully the
>> other deletion will work)
>>
>> Regards,
>> Dag Sonstebo
>> Cloud Architect
>> ShapeBlue
>>
>> On 15/11/2017, 16:31, "Rafael Weingärtner" <rafaelweingart...@gmail.com>
>> wrote:
>>
>> Was this storage with ID 11 deleted?
>> You can check everything allocated in it by issue the following SQLs:
>>
>> To find all snapshots:
>> select s.* from snapshots s join
>> volumes v on v.id = s.volume_id
>> where
>> pool_id = ?
>>
>> To find all volumes:
>> select v.* from snapshots s join
>> volumes v on v.id = s.volume_id
>> where
>> pool_id = ?
>>
>>
>> On Wed, Nov 15, 2017 at 2:23 PM, Alessandro Caviglione <
>> c.alessan...@gmail.com> wrote:
>>
>> > Hi guys,
>> > I'm trying to delete a Primary datastore, but when I try to delete
>> it I got
>> > this error:
>> >
>> > Unable to locate datastore with id 11
>> >
>> > In the database, I see:
>> >
>> > 11 CH1-PRI-SATA-2 NetworkFilesystem 2049 1 1 2 171773001728
>> 7672016928768
>> > 192.168.200.25 /volume2/CH1-PRI-SATA-2 2016-08-24 20:57:42
>> 2016-08-29
>> > 12:26:26 Maintenance DefaultPrimary CLUSTER 0
>> > 12 CH1-PRI-SATA-2 d434-8c54-3efa-a90a-98a35fdfbdec
>> NetworkFilesystem
>> > 2049 1 1 2 4085454602240 7672016928768 192.168.200.25
>> > /volume2/CH1-PRI-SATA-2 2016-08-29 12:28:06 Up DefaultPrimary
>> CLUSTER 0
>> >
>> > In fact, 11 and 12 are the same primary storage but for a strange
>> reason,
>> > 11 is in maintenance and does not have an ID
>> >
>> > How can I solve?
>> > Could I copy all the data from 12 to 11 and delete the primary
>> storage I
>> > want to delete?
>> > Keep in mind that the storage I need to delete is another one, not
>> > CH1-PRI-SATA-2
>> >
>> > Thank you.
>> >
>>
>>
>>
>> --
>> Rafael Weingärtner
>>
>>
>>
>> dag.sonst...@shapeblue.com
>> www.shapeblue.com
>> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
>> @shapeblue
>>
>>
>>
>>
>


Re: Unable to locate datastore

2017-11-15 Thread Alessandro Caviglione
Maybe I tried to delete storage 11 but it still here with id 12!
Rafael query does not work, SELECT * FROM cloud.storage_pool_host_ref where
pool_id=11 returns no result.

On Wed, Nov 15, 2017 at 5:53 PM, Dag Sonstebo <dag.sonst...@shapeblue.com>
wrote:

> As Rafael says – it looks like primary store 11 is already deleted – you
> have a removed date of 2016-08-29 12:26:26 (just check that this is indeed
> the removed date and not the “update_time” – the two columns follow each
> other).
>
> 11 CH1-PRI-SATA-2 NetworkFilesystem 2049 1 1 2 171773001728 7672016928768
> 192.168.200.25 /volume2/CH1-PRI-SATA-2 2016-08-24 20:57:42 2016-08-29
> 12:26:26 Maintenance DefaultPrimary CLUSTER 0
> 12 CH1-PRI-SATA-2 d434-8c54-3efa-a90a-98a35fdfbdec NetworkFilesystem
> 2049 1 1 2 4085454602240 7672016928768 192.168.200.25
> /volume2/CH1-PRI-SATA-2 2016-08-29 12:28:06 Up DefaultPrimary CLUSTER 0
>
> Also check your host to pool config:
>
> SELECT * FROM cloud.storage_pool_host_ref where pool_id=11;
>
> This will show you if pool 11 is attached to any hosts. Apart from that
> check the volumes and snapshots as Rafael suggests to make sure CloudStack
> doesn’t think pool 11 is still in use.
>
> (and appreciate you want to delete another pool – not sure why it would
> complain about 11, but if you get to the bottom of the above hopefully the
> other deletion will work)
>
> Regards,
> Dag Sonstebo
> Cloud Architect
> ShapeBlue
>
> On 15/11/2017, 16:31, "Rafael Weingärtner" <rafaelweingart...@gmail.com>
> wrote:
>
> Was this storage with ID 11 deleted?
> You can check everything allocated in it by issue the following SQLs:
>
> To find all snapshots:
> select s.* from snapshots s join
> volumes v on v.id = s.volume_id
> where
> pool_id = ?
>
> To find all volumes:
> select v.* from snapshots s join
> volumes v on v.id = s.volume_id
> where
> pool_id = ?
>
>
> On Wed, Nov 15, 2017 at 2:23 PM, Alessandro Caviglione <
> c.alessan...@gmail.com> wrote:
>
> > Hi guys,
> > I'm trying to delete a Primary datastore, but when I try to delete
> it I got
> > this error:
> >
> > Unable to locate datastore with id 11
> >
> > In the database, I see:
> >
> > 11 CH1-PRI-SATA-2 NetworkFilesystem 2049 1 1 2 171773001728
> 7672016928768
> > 192.168.200.25 /volume2/CH1-PRI-SATA-2 2016-08-24 20:57:42 2016-08-29
> > 12:26:26 Maintenance DefaultPrimary CLUSTER 0
> > 12 CH1-PRI-SATA-2 d434-8c54-3efa-a90a-98a35fdfbdec
> NetworkFilesystem
> > 2049 1 1 2 4085454602240 7672016928768 192.168.200.25
> > /volume2/CH1-PRI-SATA-2 2016-08-29 12:28:06 Up DefaultPrimary
> CLUSTER 0
> >
> > In fact, 11 and 12 are the same primary storage but for a strange
> reason,
> > 11 is in maintenance and does not have an ID
> >
> > How can I solve?
> > Could I copy all the data from 12 to 11 and delete the primary
> storage I
> > want to delete?
> > Keep in mind that the storage I need to delete is another one, not
> > CH1-PRI-SATA-2
> >
> > Thank you.
> >
>
>
>
> --
> Rafael Weingärtner
>
>
>
> dag.sonst...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> @shapeblue
>
>
>
>


Unable to locate datastore

2017-11-15 Thread Alessandro Caviglione
Hi guys,
I'm trying to delete a Primary datastore, but when I try to delete it I got
this error:

Unable to locate datastore with id 11

In the database, I see:

11 CH1-PRI-SATA-2 NetworkFilesystem 2049 1 1 2 171773001728 7672016928768
192.168.200.25 /volume2/CH1-PRI-SATA-2 2016-08-24 20:57:42 2016-08-29
12:26:26 Maintenance DefaultPrimary CLUSTER 0
12 CH1-PRI-SATA-2 d434-8c54-3efa-a90a-98a35fdfbdec NetworkFilesystem
2049 1 1 2 4085454602240 7672016928768 192.168.200.25
/volume2/CH1-PRI-SATA-2 2016-08-29 12:28:06 Up DefaultPrimary CLUSTER 0

In fact, 11 and 12 are the same primary storage but for a strange reason,
11 is in maintenance and does not have an ID

How can I solve?
Could I copy all the data from 12 to 11 and delete the primary storage I
want to delete?
Keep in mind that the storage I need to delete is another one, not
CH1-PRI-SATA-2

Thank you.


Cloudstack - XenServer - ScaleIO

2017-10-25 Thread Alessandro Caviglione
Hi all,
I'm doing a little PoC using Xenserver6.5 + ScaleIO and I'm quite happy
about performance.
Now, I'm thinking about how can be managed by CS.
In production, I'm using CS 4.5 with some XS6.5 and a NFS storage.
With ScaleIO, storage is presented as XenServer hosts as shared LVM volume
and it works fine.
Adding CS to my Lab, how can I use it as Primary storage?
I think I could use as local storage, but I loose all the live migration
features...
There is another way to use ScaleIO within CS environment?

Thank you.


Re: Virtual Router Monitoring/Patching

2017-10-09 Thread Alessandro Caviglione
Yes, this is what we need! :)
But... how can i do it?? :DDD

On Mon, Oct 9, 2017 at 3:32 PM, Rafael Weingärtner <
raf...@autonomiccs.com.br> wrote:

> Yes it is possible.
>
> We already did that, we direct all the logs to a remote log repository,
> and then using Graylog we present the information that is aggregated.
>
>
> On 10/9/2017 10:30 AM, Alessandro Caviglione wrote:
>
>> Hi,
>> I'm replying because I'm already interested in this topic.
>> In fact, we'd like to monitor VR and collect logs with rsyslog.
>> So, is it possible to modify the template image to configure an rsyslog
>> and
>> snmp to allow monitoring of all new deployed VR?
>>
>> Thank you.
>>
>> On Wed, Oct 4, 2017 at 5:10 PM, Dag Sonstebo <dag.sonst...@shapeblue.com>
>> wrote:
>>
>> Hi Alexander,
>>>
>>> As you point out the attack surface of the VRs have been minimised and
>>> the
>>> system VMs overall hardened.
>>> You have two issues with updating the software on the VRs – an update has
>>> the potential to break VR services (or agent services on SSVM/CPVM) as
>>> you
>>> already mentioned,  in addition any updates will obviously be lost the
>>> next
>>> time you restart a network with cleanup. You would also need to somehow
>>> automate the updates on new VRs.
>>>
>>> In general I would think most CloudStack users will wait for new system
>>> VM
>>> templates to be released – but interested in hearing other thoughts on
>>> this.
>>>
>>> Regards,
>>> Dag Sonstebo
>>> Cloud Architect
>>> ShapeBlue
>>>
>>> On 04/10/2017, 15:35, "Stock, Alexander" <alexander.st...@bitgroup.de>
>>> wrote:
>>>
>>>  Hi all,
>>>
>>>  at the moment we try to improve our monitoring of the virtual
>>> routers
>>> in our environment.
>>>  For this we also monitor the update status of the machines and could
>>> see that there are some updates pending (OS Updates not Template
>>> Updates) .
>>>
>>>  So what would like to know is if you have some experience in pathing
>>> the virtual routers and if you have an update strategy for this
>>> (redundant
>>> router,etc..).
>>>  I am in worry that some updates could crash the services which are
>>> responsible for communication with the cloudstack controller.
>>>  I am also not sure if the attack surface is too small to don't worry
>>> about patching.
>>>
>>>  Any ideas or comments are welcome.
>>>  Thank you.
>>>  Alexander
>>>
>>>
>>>
>>>
>>> dag.sonst...@shapeblue.com
>>> www.shapeblue.com
>>> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
>>> @shapeblue
>>>
>>>
>>>
>>>
>>>
> --
> Rafael Weingärtner
>
>


Re: Virtual Router Monitoring/Patching

2017-10-09 Thread Alessandro Caviglione
Hi,
I'm replying because I'm already interested in this topic.
In fact, we'd like to monitor VR and collect logs with rsyslog.
So, is it possible to modify the template image to configure an rsyslog and
snmp to allow monitoring of all new deployed VR?

Thank you.

On Wed, Oct 4, 2017 at 5:10 PM, Dag Sonstebo 
wrote:

> Hi Alexander,
>
> As you point out the attack surface of the VRs have been minimised and the
> system VMs overall hardened.
> You have two issues with updating the software on the VRs – an update has
> the potential to break VR services (or agent services on SSVM/CPVM) as you
> already mentioned,  in addition any updates will obviously be lost the next
> time you restart a network with cleanup. You would also need to somehow
> automate the updates on new VRs.
>
> In general I would think most CloudStack users will wait for new system VM
> templates to be released – but interested in hearing other thoughts on this.
>
> Regards,
> Dag Sonstebo
> Cloud Architect
> ShapeBlue
>
> On 04/10/2017, 15:35, "Stock, Alexander" 
> wrote:
>
> Hi all,
>
> at the moment we try to improve our monitoring of the virtual routers
> in our environment.
> For this we also monitor the update status of the machines and could
> see that there are some updates pending (OS Updates not Template Updates) .
>
> So what would like to know is if you have some experience in pathing
> the virtual routers and if you have an update strategy for this (redundant
> router,etc..).
> I am in worry that some updates could crash the services which are
> responsible for communication with the cloudstack controller.
> I am also not sure if the attack surface is too small to don't worry
> about patching.
>
> Any ideas or comments are welcome.
> Thank you.
> Alexander
>
>
>
>
> dag.sonst...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> @shapeblue
>
>
>
>


Re: Host allocation

2017-01-25 Thread Alessandro Caviglione
Yes but here I configure the cluster, not the host...
It should be a "memory.allocated.capacity.disablethreshold" setting for
every single host because
cluster.memory.allocated.capacity.disablethreshold
will disable the cluster allocation at 90% of the entire cluster, but I
could have some hosts filled (100%) and one at half (50%)...

Am I right?

On Wed, Jan 18, 2017 at 12:31 PM, Dag Sonstebo <dag.sonst...@shapeblue.com>
wrote:

> Hi Allessandro,
>
> To achieve this you would probably have to:
>
> - Set  global setting “host.capacityType.to.order.clusters” to RAM
> (default is CPU)
> - Set *cluster setting* “cluster.memory.allocated.capacity.disablethreshold”
> to 0.90.
> - You may also want to review cluster settings 
> cluster.cpu.allocated.capacity.disablethreshold,
> cluster.cpu.allocated.capacity.notificationthreshold and
> cluster.memory.allocated.capacity.notificationthreshold.
>
> Hope this helps.
>
> Regards,
> Dag Sonstebo
> Cloud Architect
> ShapeBlue
>
> On 18/01/2017, 11:24, "Alessandro Caviglione" <c.alessan...@gmail.com>
> wrote:
>
> Hi guys,
> just a question about host allocation.
> My infrastructure is based on CS 4.5 and XS 6.5, host allocation is
> "random" but I see that CS allocate hosts to completely fill the RAM.
> I've some hosts with 148 GB RAM usable and 148 GB used, completely
> filled.
> This obviously means that XS will swap to HD and instances performance
> is
> reduced...
> How can I tell to CS to allocate the hosts up to 90% its RAM?
>
> Thank you!
>
>
>
> dag.sonst...@shapeblue.com
> www.shapeblue.com
> 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> @shapeblue
>
>
>
>


Host allocation

2017-01-18 Thread Alessandro Caviglione
Hi guys,
just a question about host allocation.
My infrastructure is based on CS 4.5 and XS 6.5, host allocation is
"random" but I see that CS allocate hosts to completely fill the RAM.
I've some hosts with 148 GB RAM usable and 148 GB used, completely filled.
This obviously means that XS will swap to HD and instances performance is
reduced...
How can I tell to CS to allocate the hosts up to 90% its RAM?

Thank you!


Re: Manual Volume Snapshot retention

2016-11-17 Thread Alessandro Caviglione
Hi Dag,
thank you very much, I didn't know jq!
But with your command I get this error:

parse error: Invalid numeric literal at line 1, column 6

I search on Google and I see that it could be a problem of missing double
quote in the json array... but it's strange because it's not a file but an
API query results...

On Mon, Nov 14, 2016 at 11:33 AM, Özhan Rüzgar Karaman <
oruzgarkara...@gmail.com> wrote:

> Hi Dag;
> Jq looks great it really eliminates lots of long lines of codes in my bash
> scripts for json parsing. Thanks for sharing this useful tool with us.
>
> Thanks
> Özhan
>
> On Fri, Nov 11, 2016 at 5:48 PM, Dag Sonstebo <dag.sonst...@shapeblue.com>
> wrote:
>
> > Hi Alessandro,
> >
> > “Jq” is your friend here. You would start by just listing all the volume
> > snapshot ordered by create time – whilst also capturing the snapshot ID:
> >
> > # cloudmonkey list snapshots volumeid=21f830d8-b182-41dc-
> 8a10-48ff0a07f299
> > | jq -r '.snapshot[] | .created + "|" + .id' | sort -r
> > 2016-11-11T14:41:59+|418075c1-bcfc-4b9f-b2f2-4e11fb3e111c
> > 2016-11-11T14:41:29+|363129bd-ee9b-4301-b46b-a09291f05b98
> > 2016-11-11T14:39:52+|fd51897e-725f-40b0-a07d-7bad6cbd7c89
> > 2016-11-11T14:32:57+|7f2a7b7d-789d-4056-b287-9b8f8e113e76
> >
> > Now that you have this list all you need to do is parse it, i.e. any id
> > entries in line 22 onwards you need to delete, whilst also comparing the
> > date stamp with (today – 7days).
> >
> > Keep in mind your logic though: you should probably retain 21 snapshots
> no
> > matter what the age is – if your snapshot script fails to take snapshots
> –
> > and you delete all snapshots older than 7  days you could end up deleting
> > all snapshots… (just my twopence worth).
> >
> >
> > Regards,
> > Dag Sonstebo
> > Cloud Architect
> > ShapeBlue
> >
> > On 11/11/2016, 14:04, "Alessandro Caviglione" <c.alessan...@gmail.com>
> > wrote:
> >
> > Hi guys,
> > I've a Cloudmonkey script under cron that create a Volume Snapshot of
> > a VPS
> > at certain hours.
> > I had to create this script because client wants to have more than
> one
> > Snapshotfor each day, so through GUI this is not possible.
> > Now, could someone help me to delete old Snapshot in the scripts?
> > I need to retain 21 Snapshots or delete Snap older than 7 days.
> >
> > Thank you!!
> >
> >
> >
> > dag.sonst...@shapeblue.com
> > www.shapeblue.com
> > 53 Chandos Place, Covent Garden, London  WC2N 4HSUK
> > @shapeblue
> >
> >
> >
> >
>


Manual Volume Snapshot retention

2016-11-11 Thread Alessandro Caviglione
Hi guys,
I've a Cloudmonkey script under cron that create a Volume Snapshot of a VPS
at certain hours.
I had to create this script because client wants to have more than one
Snapshotfor each day, so through GUI this is not possible.
Now, could someone help me to delete old Snapshot in the scripts?
I need to retain 21 Snapshots or delete Snap older than 7 days.

Thank you!!


Re: XenServer OS Boot Parameters

2016-11-02 Thread Alessandro Caviglione
Mmmm platform row has these
parameters: viridian:true;acpi:1;apic:true;pae:true;nx:true
If I see in XenCenter, that instance has following boot options: graphical
utf8


On Fri, Oct 28, 2016 at 4:21 PM, Pierre-Luc Dion <pd...@cloudops.com> wrote:

> Hi Alexssandro,
>
> I think you will find the string in the database table user_vm_details.
> where the name=platform
>
>
> select * from user_vm_details where name='platform' and vm_id=;
>
>
>
>
> On Mon, Oct 24, 2016 at 8:21 AM, Alessandro Caviglione <
> c.alessan...@gmail.com> wrote:
>
> > Hi all,
> > I've an ACS 4.5.2 installation with XS6.5 SP1.
> > I need to deploy a Virtual Appliance with a specific OS Boot Parameter,
> but
> > if I specify it directly from XenCenter, on next reboot it will reset.
> > Do you know if it's possible to change this setting through API or
> directly
> > in the database?
> >
> > Thank you.
> >
>


Re: R: XenServer bond question

2016-08-23 Thread Alessandro Caviglione
Since I've 6 NIC for each Server, which is the best config?

2 Management
2 Storage + Guest
2 Public

??

On Tue, Aug 23, 2016 at 6:17 PM, Gabriel Beims Bräscher <
gabr...@autonomiccs.com.br> wrote:

> I would say that it depends on how critical is your environment, and if
> the storage and management are suffering from low throughput.
>
> If the main focus is redundancy, keeping management + storage in a bond of
> 2 NICs is worth (considering that you would not have other 2 NICs free to
> use and make 2NICs for Storage + 2NICs for management).
>
> However, both traffic will be limited by the same NIC. On the view of
> throughput, keeping management network separate from storage gives the best
> that you can take from a NIC to each network.
>
> Em 23/08/2016 12:53, c.alessan...@gmail.com escreveu:
>
> Ok, so do you think that the best config is to keep management network 
> separate from storage?
>
> If in next cluster I’ll move storage network to another bond, do you think 
> I’ll able to use both NIC for throughput?
>
> Da: Gabriel Beims Bräscher
>
>
> --
>
> Regards,
>
> Gabriel Beims Bräscher
> Florianópolis | Brazil
> 
>
>


XenServer bond question

2016-08-22 Thread Alessandro Caviglione
Hi guys,
pheraps I should post this question on Citrix forum but I think that here I
can find a more "practical" answer based on similar infrastructure. :)
I've a CS 4.6 with XS 6.2 clusters and here's my network config:

- Management + Storage: 2 NIC LACP
- Guest: 2 NIC LACP
- Public: 2 NIC LACP

All the "2 NIC" goes to a 2 stack switches with LACP configured.
Now, here (
http://support.citrix.com/servlet/KbServlet/download/38321-102-714737/XenServer-6.5.0_Administrators%20Guide.pdf)
I see:

[...]Management interfaces

You can bond a management interface to another NIC so that the second NIC
provides failover for management traffic. Although configuring a LACP link
aggregation bond provides load balancing
for management traffic, active-active NIC bonding does not.[...]

Ok, great, this is exactly what I need to have.

My issue is: in all XS I see only one NIC to make traffic during Storage
Migration, I'm expecting that with LACP I see both NIC to make traffic, but
this does not happen.

Do you have any experience on this topic?
Since we're migrating to XS6.5 adding a new cluster and moving VM, do you
have a better NIC configuration to suggest?

Thank you very much!


R: Facelift for End-User GUI of Apache Cloud Stack?

2016-08-11 Thread Alessandro Caviglione
+1


Da: Mateo Meier, Artmotion

Re: Multiple daily snapshot

2016-08-10 Thread Alessandro Caviglione
So it could be possible to run a cloudmonkey script on a schedule?
I'll try

On Wed, Aug 10, 2016 at 2:58 PM, Gabriel Beims Bräscher <
gabrasc...@gmail.com> wrote:

> Hi Alessandro,
>
> Unfortunately, CloudStack does not provide this functionality.
> At least not out of the box, it would require some extra work.
>
> I will have to check it later, but some script with cloudmonkey[1] might do
> the trick (I never tried to use it to take snapshots of a VM, so I am not
> sure if cloudmonkey can help you).
>
> [1]
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/
> CloudStack+cloudmonkey+CLI
>
> Cheers,
> Gabriel.
>
> 2016-08-10 9:22 GMT-03:00 Alessandro Caviglione <c.alessan...@gmail.com>:
>
> > :(
> > No way??
> >
> > On Tue, Aug 9, 2016 at 3:28 PM, Alessandro Caviglione <
> > c.alessan...@gmail.com> wrote:
> >
> > > Hi guys,
> > > is there a way to schedule multiple daily snapshots for a Volume?
> > > I'm using CS 4.5.2 with XS 6.2 SP1 and after creating first daily
> > > schedule, it goes in gray and I can only schedule hourly, weekly and
> > > monthly.
> > > I just want to schedule 2 snapshots: one at 1 PM and another at 6 PM.
> > >
> > >
> > > Thank you.
> > >
> >
>


Re: Multiple daily snapshot

2016-08-10 Thread Alessandro Caviglione
:(
No way??

On Tue, Aug 9, 2016 at 3:28 PM, Alessandro Caviglione <
c.alessan...@gmail.com> wrote:

> Hi guys,
> is there a way to schedule multiple daily snapshots for a Volume?
> I'm using CS 4.5.2 with XS 6.2 SP1 and after creating first daily
> schedule, it goes in gray and I can only schedule hourly, weekly and
> monthly.
> I just want to schedule 2 snapshots: one at 1 PM and another at 6 PM.
>
>
> Thank you.
>


Multiple daily snapshot

2016-08-09 Thread Alessandro Caviglione
Hi guys,
is there a way to schedule multiple daily snapshots for a Volume?
I'm using CS 4.5.2 with XS 6.2 SP1 and after creating first daily schedule,
it goes in gray and I can only schedule hourly, weekly and monthly.
I just want to schedule 2 snapshots: one at 1 PM and another at 6 PM.


Thank you.


Re: Storage decommissioning

2016-04-03 Thread Alessandro Caviglione
Ok guys... we're about to finish the migration of primary storage... but
I've a question.
Since we've moved all the Instance's volume (ROOT and DATA) through ACS
(4.5), should we consider anything about VMs metadata?
We're running XS 6.2 SP1.

Moving the volume will move also metadata?

Regards.

On Thu, Mar 24, 2016 at 1:13 PM, Alessandro Caviglione <
c.alessan...@gmail.com> wrote:

> Thanks for your feedback, I am now a bit more relaxed! :-
>
> On Thu, Mar 24, 2016 at 12:07 PM, S. Brüseke - proIO GmbH <
> s.brues...@proio.com> wrote:
>
>> Don't hesitate to ask if you have more question. We did the exact same
>> job. We migrated primary and secondary storage. Secondary was horror,
>> primary is not a problem at all. ;-)
>>
>>
>>
>> Mit freundlichen Grüßen / With kind regards,
>>
>>
>>
>> Swen
>>
>>
>>
>> *Von:* Alessandro Caviglione [mailto:c.alessan...@gmail.com]
>> *Gesendet:* Donnerstag, 24. März 2016 12:06
>> *An:* S. Brüseke - proIO GmbH
>> *Betreff:* Re: Storage decommissioning
>>
>>
>>
>> Ok, great!
>>
>> I'll inform you about the operations... :)
>>
>>
>>
>> On Thu, Mar 24, 2016 at 11:45 AM, S. Brüseke - proIO GmbH <
>> s.brues...@proio.com> wrote:
>>
>> You do not need to move them. If you put the primary storage they are
>> located into maintenance than CS will recreate VRs and System VMs on
>> another primary storage.
>> This will include a short downtime for each VR, but CS will do this step
>> by step; VR after VR
>>
>> Mit freundlichen Grüßen / With kind regards,
>>
>> Swen
>>
>>
>> -Ursprüngliche Nachricht-
>> Von: Alessandro Caviglione [mailto:c.alessan...@gmail.com]
>> Gesendet: Donnerstag, 24. März 2016 11:15
>> An: users@cloudstack.apache.org
>> Betreff: Re: Storage decommissioning
>>
>>
>> Hi,
>> thank you for your suggests... I'm going to move VMs ROOT and DATA to the
>> new storage using CS GUI.
>> Our environment is CS 4.5.2 with XenServer 6.2 SP1.
>> I think that the problem shoud arrive when we've to move secondary
>> storage but one step at time.
>> Just another question How can I move VR and SSVM??
>>
>> On Thu, Mar 24, 2016 at 6:30 AM, Sanjeev Neelarapu <
>> sanjeev.neelar...@accelerite.com> wrote:
>>
>> > Hi,
>> >
>> > Decommissioning of primary storage should not be a problem. Since we
>> > can migrate all the disks to additional primary storage in the cluster.
>> > Coming to artifacts stored in the secondary storage, if we make the
>> > templates as public, all the templates will be available in additional
>> > secondary storages within the zone. For snapshots and volumes may have
>> > to rsync and change the image_store id in all the relevant db tables.
>> >
>> > Best Regards,
>> > Sanjeev N
>> > Chief Product Engineer, Accelerite
>> > Off: +91 40 6722 9368 | EMail: sanjeev.neelar...@accelerite.com
>> >
>> >
>> > -Original Message-
>> > From: ilya [mailto:ilya.mailing.li...@gmail.com]
>> > Sent: Thursday, March 24, 2016 1:20 AM
>> > To: users@cloudstack.apache.org
>> > Subject: Re: Storage decommissioning
>> >
>> > I'd strongly suggest you play this out in the lab environment that
>> > mimics what you need to do.
>> >
>> > On 3/23/16 12:47 PM, ilya wrote:
>> > > Alessandro,
>> > >
>> > > You told us nothing about your environment and setup. No downtime is
>> > > only possible with specific hypervisors - like ESX and perhaps Xen.
>> > >
>> > > Regards
>> > > ilya
>> > >
>> > >
>> > > On 3/22/16 3:29 PM, Alessandro Caviglione wrote:
>> > >> Hi guys,
>> > >> I'm writing just to ask for advice...
>> > >> We're decommissionig our storage and we need to move all the VMs
>> > >> from old storage to this new one.
>> > >> In CS we've defined a new primary storage and I think we've to
>> > >> migrate all ROOT and DATA disks from old PRIMARY to the new
>> > >> PRIMARY, this should be done without interruption of the service.
>> > >> The new storage will host also SECONDARY storage, so we need to
>> > >> move also Template, Snapshots and other things.
>> > >> How can we do it?
>> > >>
>> > >> Thank you!!
>> > >>
>> >
>>

Re: Storage decommissioning

2016-03-24 Thread Alessandro Caviglione
Hi,
thank you for your suggests... I'm going to move VMs ROOT and DATA to the
new storage using CS GUI.
Our environment is CS 4.5.2 with XenServer 6.2 SP1.
I think that the problem shoud arrive when we've to move secondary
storage but one step at time.
Just another question How can I move VR and SSVM??

On Thu, Mar 24, 2016 at 6:30 AM, Sanjeev Neelarapu <
sanjeev.neelar...@accelerite.com> wrote:

> Hi,
>
> Decommissioning of primary storage should not be a problem. Since we can
> migrate all the disks to additional primary storage in the cluster.
> Coming to artifacts stored in the secondary storage, if we make the
> templates as public, all the templates will be available in additional
> secondary storages within the zone. For snapshots and volumes may have to
> rsync and change the image_store id in all the relevant db tables.
>
> Best Regards,
> Sanjeev N
> Chief Product Engineer, Accelerite
> Off: +91 40 6722 9368 | EMail: sanjeev.neelar...@accelerite.com
>
>
> -Original Message-
> From: ilya [mailto:ilya.mailing.li...@gmail.com]
> Sent: Thursday, March 24, 2016 1:20 AM
> To: users@cloudstack.apache.org
> Subject: Re: Storage decommissioning
>
> I'd strongly suggest you play this out in the lab environment that mimics
> what you need to do.
>
> On 3/23/16 12:47 PM, ilya wrote:
> > Alessandro,
> >
> > You told us nothing about your environment and setup. No downtime is
> > only possible with specific hypervisors - like ESX and perhaps Xen.
> >
> > Regards
> > ilya
> >
> >
> > On 3/22/16 3:29 PM, Alessandro Caviglione wrote:
> >> Hi guys,
> >> I'm writing just to ask for advice...
> >> We're decommissionig our storage and we need to move all the VMs from
> >> old storage to this new one.
> >> In CS we've defined a new primary storage and I think we've to
> >> migrate all ROOT and DATA disks from old PRIMARY to the new PRIMARY,
> >> this should be done without interruption of the service.
> >> The new storage will host also SECONDARY storage, so we need to move
> >> also Template, Snapshots and other things.
> >> How can we do it?
> >>
> >> Thank you!!
> >>
>
>
>
> DISCLAIMER
> ==
> This e-mail may contain privileged and confidential information which is
> the property of Accelerite, a Persistent Systems business. It is intended
> only for the use of the individual or entity to which it is addressed. If
> you are not the intended recipient, you are not authorized to read, retain,
> copy, print, distribute or use this message. If you have received this
> communication in error, please notify the sender and delete all copies of
> this message. Accelerite, a Persistent Systems business does not accept any
> liability for virus infected mails.
>


Storage decommissioning

2016-03-22 Thread Alessandro Caviglione
Hi guys,
I'm writing just to ask for advice...
We're decommissionig our storage and we need to move all the VMs from old
storage to this new one.
In CS we've defined a new primary storage and I think we've to migrate all
ROOT and DATA disks from old PRIMARY to the new PRIMARY, this should be
done without interruption of the service.
The new storage will host also SECONDARY storage, so we need to move also
Template, Snapshots and other things.
How can we do it?

Thank you!!


Snapshot VM with Volume Snapshot active

2016-02-16 Thread Alessandro Caviglione
Hi guys,
maybe I do not remember very well... but I thought I could do a VM snapshot
even if there are active volume snapshot.
Moreover, a volume snapshot is a copy of the volume that is archived, it
can not be revert but only turn it into a template or a new volume.
In fact, if I go to XenCenter, the VM has no active snapshot and if I want
I could take a snapshot of the VM from XenCenter!!
So why if I have a volume with an active snapshot, I can not make a VM
snapshot?
The recurring snapshots of the volumes is used by CS as a backup system,
but if it inhibits the ability to make VM snapshot then it is a big problem.


Re: R: A Story of a Failed XenServer Upgrade

2016-01-12 Thread Alessandro Caviglione
Hi guys,
I think that there are a little bit of confusion around this topic
Pierre-Luc Dion posted an official documentation (
http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.6/hypervisor/xenserver.html#upgrading-xenserver-versions)
that differs in many steps from that published by Geoff Higginbottom of
Shapeblue and mentioned by Yiping Zhang... that is the same I've followed
for my failed upgrade.

In the Cloudstack document, the host do NOT GOES into Maintenance Mode and
I've to run the following scripts:
/opt/xensource/bin/cloud-clean-vlan.sh
/opt/xensource/bin/cloud-prepare-upgrade.sh

Since in the Cloudstack doc the host do not goes in MM, they says that I've
to migrate all the VMs manually: "Live migrate all VMs on this host to
other hosts. See the instructions for live migration in the Administrator’s
Guide."

Cloudstack doc says also that I've to copy the scripts from Pierre
mentioned:

/opt/xensource/sm/NFSSR.py
/opt/xensource/bin/setupxenserver.sh
/opt/xensource/bin/make_migratable.sh
/opt/xensource/bin/cloud-clean-vlan.sh

Point 6 and 7 are strange I've to upgrade the entire cluster and clear
the host tag BEFORE connect again to Cloudstack:
6)Repeat these steps to upgrade every host in the cluster to the same
version of XenServer.
7)Run the following command on one host in the XenServer cluster to clean
up the host tag...

Shapeblue says that I've to manage again the Cluster after the upgrade the
Pool Master and I can upgrade the other hosts later...

Another thing that is worring me is the script:
/opt/xensource/bin/cloud-clean-vlan.sh

So, what it does??
What means "clean-vlan"?? :o





On Fri, Jan 8, 2016 at 10:52 PM, Yiping Zhang  wrote:

> Since I can’t use attachment,  I just include the doc in the message.
> Hopefully, the indentations and formats will go through properly.
>
> Yiping
>
> --
> XenServer pool manual upgrade from 6.2 to 6.5 using ISO
> Reference article for upgrading XenServer pool used for Cloudstack
>
>
> http://www.shapeblue.com/how-to-upgrade-an-apache-cloudstack-citrix-xenserver-cluster
>
>
> Manual upgrade to XenServer from 6.2 to 6.5 using ISO
>
>
> On CloudStack Management server
>
>   *   Edit the file /etc/cloudstack/managment/environment.properties to
> include the following line at the end:
>  *   manage.xenserver.pool.master=false
>   *   Restart cloudstack-management service
>  *   service cloudstack-management restart
>
> Pre-upgrade steps
>
>   *   Disable XenServer pool HA from XenCenter or CLI
>   *   Backup XenServer resource pool configurations
>  *   Take screen shot for pool network settings in XenCenter
>  *   Take notes of Storage Repo mount points and NFS volumes.
>
> Inside CloudStack Web UI
>
>   *   Put pool master host into Maintenance (CLOUDSTACK ONLY!). This
> should migrate all VM instances currently running on the pool master onto
> other hosts
>   *   Unmanage the cluster.  This should make the hypervisors show as
> disconnected in the UI.  PLEASE MAKE SURE THAT YOU CLICK "Unmanage
> Cluster", NOT "Disable Cluster"!!!
>
> On Pool Master
>
>   *   Connect to physical console using DRAC/iLO/equivalent
>   *   Attach XenServer 6.5 ISO as virtual DVD
>   *   Verify that this host uses Legacy BIOS rather than UEFI, as UEFI is
> NOT supported by XenServer.  (May not be needed, as XS 6.2 also requires
> Legacy BIOS)
>   *   Reboot physical server
>   *   Once the server boots up off DVD image:
> Note: we used an answer file to allow automated upgrade.  You can just
> manually do the upgrade
>  *   At the first prompt, hit F2 to get the advanced menu, which won't
> time out quickly
>  *   Type:
> *   menu.c32
>  *   Hit Enter, then hit the Tab key.
>  *   You will be presented with a boot line that looks similar to the
> following:
> *   mboot.c32 /boot/xen.gz dom0_max_vcpus=2 dom0_mem=752M
> com1=115200,8n1 console=com1,vga — /boot/vmlinuz xencons=hvc console=hvc0
> console=tty0 — /install.img
>  *   You will need to edit this line to include the bold parts.
> Nothing else in this line needs to be changed:
> *   mboot.c32 /boot/xen.gz dom0_max_vcpus=2 dom0_mem=752M
> com1=115200,8n1 console=com1,vga — /boot/vmlinuz xencons=hvc console=hvc0
> console=tty0 answerfile=http://server_ip/path/to/answer-file.xml —
> /install.img
>  *   Hit Enter and watch the system upgrade itself.
>  *   Once complete, eject the DVD image and reboot the host.
>
> Verify network and storage settings of upgraded host (in XenCenter):
>
>   *   Configure networks if necessary, just in case any additional NIC's
> need to be configured
>   *   Repair the HA SR, if necessary
>
> Inside CloudStack Web UI
>
>   *   Re-manage the cluster
>   *   Wait for all hosts to be in the Up state (except the pool master,
> which will stay as "disconnected")
>   *   Wait for all SR are connected and online
>   *   Take the pool master out of Maintenance mode
>
> On 

Re: R: A Story of a Failed XenServer Upgrade

2016-01-08 Thread Alessandro Caviglione
Maybe a Forum could be a better solution?
It would be also a "old fashion" solution! :D

On Fri, Jan 8, 2016 at 8:10 PM, Ahmad Emneina <aemne...@gmail.com> wrote:

> The mailing list strips attachments you'll need to post it on an external
> site.
>
>
> > On Jan 8, 2016, at 11:00 AM, Yiping Zhang <yzh...@marketo.com> wrote:
> >
> > Hm  I definitely had included the attachment (as I can see from my
> Outlook’s sent folder that the message has an attachment).
> >
> > I am wondering if the mailing list requires any special privilege to
> send messages with attachment. Does anyone know ?  I can forward the doc to
> someone who has the power to resend it to the list if anyone volunteers to
> do so.
> >
> > To answer Nux!’s suggestion of doing a blog, but I am old fashioned guy
> that I have not tried that yet :)
> >
> > Yiping
> >
> >
> >
> >
> >> On 1/8/16, 10:35 AM, "Davide Pala" <davide.p...@gesca.it> wrote:
> >>
> >> I think you've forget the attachment ...
> >>
> >>
> >>
> >> Inviato dal mio dispositivo Samsung
> >>
> >>
> >>  Messaggio originale 
> >> Da: Yiping Zhang <yzh...@marketo.com>
> >> Data: 08/01/2016 18:44 (GMT+01:00)
> >> A: users@cloudstack.apache.org
> >> Oggetto: Re: A Story of a Failed XenServer Upgrade
> >>
> >>
> >> See attached pdf document. This is the final procedure we adopted after
> upgrading seven XenServer pools.
> >>
> >> Yiping
> >>
> >>
> >>
> >>
> >>
> >>> On 1/8/16, 2:20 AM, "Alessandro Caviglione" <c.alessan...@gmail.com>
> wrote:
> >>>
> >>> Hi Yiping,
> >>> yes, thank you very much!!
> >>> Please share the doc so I can try again the upgrade process and see if
> it
> >>> was only a "unfortunate coincidence of events" or a wrong upgrade
> process.
> >>>
> >>> Thanks!
> >>>
> >>>> On Fri, Jan 8, 2016 at 10:20 AM, Nux! <n...@li.nux.ro> wrote:
> >>>>
> >>>> Yiping,
> >>>>
> >>>> Why not make a blog post about it so everyone can benefit? :)
> >>>>
> >>>> Lucian
> >>>>
> >>>> --
> >>>> Sent from the Delta quadrant using Borg technology!
> >>>>
> >>>> Nux!
> >>>> www.nux.ro
> >>>>
> >>>> - Original Message -
> >>>>> From: "Yiping Zhang" <yzh...@marketo.com>
> >>>>> To: users@cloudstack.apache.org, aemne...@gmail.com
> >>>>> Sent: Friday, 8 January, 2016 01:31:21
> >>>>> Subject: Re: A Story of a Failed XenServer Upgrade
> >>>>
> >>>>> Hi, Alessandro
> >>>>>
> >>>>> Late to the thread.  Is this still an issue for you ?
> >>>>>
> >>>>> I went thru this process before and I have a step by step document
> that
> >>>> I can
> >>>>> share if you still need it.
> >>>>>
> >>>>> Yiping
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>> On 1/2/16, 4:43 PM, "Ahmad Emneina" <aemne...@gmail.com> wrote:
> >>>>>>
> >>>>>> Hi Alessandro,
> >>>>>> Without seeing the logs, or DB, it will be hard to diagnose the
> issue.
> >>>> I've
> >>>>>> seen something similar in the past, where the XenServer host
> version isnt
> >>>>>> getting updated in the DB, as part of the XS upgrade process. That
> caused
> >>>>>> CloudStack to use the wrong hypervisor resource to try connecting
> back to
> >>>>>> the XenServers... ending up in failure. If you could share sanitized
> >>>>>> versions of your log and db, someone here might be able to give you
> the
> >>>>>> necessary steps to get your cluster back under CloudStack control.
> >>>>>>
> >>>>>> On Sat, Jan 2, 2016 at 1:27 PM, Alessandro Caviglione <
> >>>>>> c.alessan...@gmail.com> wrote:
> >>>>>>
> >>>>>>> No guys,as the article wrote, my first action was to put in
> Maintenance
> >>>>&

Re: A Story of a Failed XenServer Upgrade

2016-01-08 Thread Alessandro Caviglione
Hi Yiping,
yes, thank you very much!!
Please share the doc so I can try again the upgrade process and see if it
was only a "unfortunate coincidence of events" or a wrong upgrade process.

Thanks!

On Fri, Jan 8, 2016 at 10:20 AM, Nux! <n...@li.nux.ro> wrote:

> Yiping,
>
> Why not make a blog post about it so everyone can benefit? :)
>
> Lucian
>
> --
> Sent from the Delta quadrant using Borg technology!
>
> Nux!
> www.nux.ro
>
> - Original Message -
> > From: "Yiping Zhang" <yzh...@marketo.com>
> > To: users@cloudstack.apache.org, aemne...@gmail.com
> > Sent: Friday, 8 January, 2016 01:31:21
> > Subject: Re: A Story of a Failed XenServer Upgrade
>
> > Hi, Alessandro
> >
> > Late to the thread.  Is this still an issue for you ?
> >
> > I went thru this process before and I have a step by step document that
> I can
> > share if you still need it.
> >
> > Yiping
> >
> >
> >
> >
> > On 1/2/16, 4:43 PM, "Ahmad Emneina" <aemne...@gmail.com> wrote:
> >
> >>Hi Alessandro,
> >>Without seeing the logs, or DB, it will be hard to diagnose the issue.
> I've
> >>seen something similar in the past, where the XenServer host version isnt
> >>getting updated in the DB, as part of the XS upgrade process. That caused
> >>CloudStack to use the wrong hypervisor resource to try connecting back to
> >>the XenServers... ending up in failure. If you could share sanitized
> >>versions of your log and db, someone here might be able to give you the
> >>necessary steps to get your cluster back under CloudStack control.
> >>
> >>On Sat, Jan 2, 2016 at 1:27 PM, Alessandro Caviglione <
> >>c.alessan...@gmail.com> wrote:
> >>
> >>> No guys,as the article wrote, my first action was to put in Maintenance
> >>> Mode the Pool Master INSIDE CS; "It is vital that you upgrade the
> XenServer
> >>> Pool Master first before any of the Slaves.  To do so you need to
> empty the
> >>> Pool Master of all CloudStack VMs, and you do this by putting the Host
> into
> >>> Maintenance Mode within CloudStack to trigger a live migration of all
> VMs
> >>> to alternate Hosts"
> >>>
> >>> This is exactly what I've done and after the XS upgrade, no hosts was
> able
> >>> to communicate with CS and also with the upgraded host.
> >>>
> >>> Putting an host in Maint Mode within CS will trigger MM also on
> XenServer
> >>> host or just will move the VMs to other hosts?
> >>>
> >>> And again what's the best practices to upgrade a XS cluster?
> >>>
> >>> On Sat, Jan 2, 2016 at 7:11 PM, Remi Bergsma <
> rberg...@schubergphilis.com>
> >>> wrote:
> >>>
> >>> > CloudStack should always do the migration of VM's not the Hypervisor.
> >>> >
> >>> > That's not true. You can safely migrate outside of CloudStack as the
> >>> power
> >>> > report will tell CloudStack where the vms live and the db gets
> updated
> >>> > accordingly. I do this a lot while patching and that works fine on
> 6.2
> >>> and
> >>> > 6.5. I use both CloudStack 4.4.4 and 4.7.0.
> >>> >
> >>> > Regards, Remi
> >>> >
> >>> >
> >>> > Sent from my iPhone
> >>> >
> >>> > On 02 Jan 2016, at 16:26, Jeremy Peterson <jpeter...@acentek.net
>  >>> > jpeter...@acentek.net>> wrote:
> >>> >
> >>> > I don't use XenServer maintenance mode until after CloudStack has
> put the
> >>> > Host in maintenance mode.
> >>> >
> >>> > When you initiate maintenance mode from the host rather than
> CloudStack
> >>> > the db does not know where the VM's are and your UUID's get jacked.
> >>> >
> >>> > CS is your brains not the hypervisor.
> >>> >
> >>> > Maintenance in CS.  All VM's will migrate.  Maintenance in XenCenter.
> >>> > Upgrade.  Reboot.  Join Pool.  Remove Maintenance starting at
> hypervisor
> >>> if
> >>> > needed and then CS and move on to the next Host.
> >>> >
> >>> > CloudStack should always do the migration of VM's not the Hypervisor.
> >>> >
> >>> > Jeremy
> >>> >
> >>> >
> >>> > 

Re: A Story of a Failed XenServer Upgrade

2016-01-02 Thread Alessandro Caviglione
No guys,as the article wrote, my first action was to put in Maintenance
Mode the Pool Master INSIDE CS; "It is vital that you upgrade the XenServer
Pool Master first before any of the Slaves.  To do so you need to empty the
Pool Master of all CloudStack VMs, and you do this by putting the Host into
Maintenance Mode within CloudStack to trigger a live migration of all VMs
to alternate Hosts"

This is exactly what I've done and after the XS upgrade, no hosts was able
to communicate with CS and also with the upgraded host.

Putting an host in Maint Mode within CS will trigger MM also on XenServer
host or just will move the VMs to other hosts?

And again what's the best practices to upgrade a XS cluster?

On Sat, Jan 2, 2016 at 7:11 PM, Remi Bergsma <rberg...@schubergphilis.com>
wrote:

> CloudStack should always do the migration of VM's not the Hypervisor.
>
> That's not true. You can safely migrate outside of CloudStack as the power
> report will tell CloudStack where the vms live and the db gets updated
> accordingly. I do this a lot while patching and that works fine on 6.2 and
> 6.5. I use both CloudStack 4.4.4 and 4.7.0.
>
> Regards, Remi
>
>
> Sent from my iPhone
>
> On 02 Jan 2016, at 16:26, Jeremy Peterson <jpeter...@acentek.net jpeter...@acentek.net>> wrote:
>
> I don't use XenServer maintenance mode until after CloudStack has put the
> Host in maintenance mode.
>
> When you initiate maintenance mode from the host rather than CloudStack
> the db does not know where the VM's are and your UUID's get jacked.
>
> CS is your brains not the hypervisor.
>
> Maintenance in CS.  All VM's will migrate.  Maintenance in XenCenter.
> Upgrade.  Reboot.  Join Pool.  Remove Maintenance starting at hypervisor if
> needed and then CS and move on to the next Host.
>
> CloudStack should always do the migration of VM's not the Hypervisor.
>
> Jeremy
>
>
> -Original Message-
> From: Davide Pala [mailto:davide.p...@gesca.it]
> Sent: Friday, January 1, 2016 5:18 PM
> To: users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>
> Subject: R: A Story of a Failed XenServer Upgrade
>
> Hi alessandro. If u put in maintenance mode the master you force the
> election of a new pool master. Now when you have see the upgraded host as
> disconnected you are connected to the new pool master and the host (as a
> pool member) cannot comunicate with a pool master of an earliest version.
> The solution? Launche the upgrade on the pool master without enter in
> maintenance mode. And remember a consistent backup!!!
>
>
>
> Inviato dal mio dispositivo Samsung
>
>
>  Messaggio originale 
> Da: Alessandro Caviglione <c.alessan...@gmail.com c.alessan...@gmail.com>>
> Data: 01/01/2016 23:23 (GMT+01:00)
> A: users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>
> Oggetto: A Story of a Failed XenServer Upgrade
>
> Hi guys,
> I want to share my XenServer Upgrade adventure to understand if I did
> domething wrong.
> I upgraded CS from 4.4.4 to 4.5.2 without any issues, after all the VRs
> has been upgraded I start the upgrade process of my XenServer hosts from
> 6.2 to 6.5.
> I do not already have PoolHA enabled so I followed this article:
>
> http://www.shapeblue.com/how-to-upgrade-an-apache-cloudstack-citrix-xenserver-cluster/
>
> The cluster consists of n° 3 XenServer hosts.
>
> First of all I added manage.xenserver.pool.master=false
> to environment.properties file and restarted cloudstack-management service.
>
> After that I put in Maintenance Mode Pool Master host and, after all VMs
> has been migrated, I Unmanaged the cluster.
> At this point all host appears as "Disconnected" from CS interface and
> this should be right.
> Now I put XenServer 6.5 CD in the host in Maintenance Mode and start a
> in-place upgrade.
> After XS6.5 has been installed, I istalled the 6.5SP1 and reboot again.
> At this point I expected that, after click on Manage Cluster on CS, all
> the hosts come back to "UP" and I could go ahead upgrading the other
> hosts
>
> But, instead of that, all the hosts still appears as "Disconnected", I
> tried a couple of cloudstack-management service restart without success.
>
> So I opened XenCenter and connect to Pool Master I upgraded to 6.5 and it
> appear in Maintenance Mode, so I tried to Exit from Maint Mode but I got
> the error: The server is still booting
>
> After some investigation, I run the command "xe task-list" and this is the
> result:
>
> uuid ( RO): 72f48a56-1d24-1ca3-aade-091f1830e2f1
> name-label ( RO): VM.set_memory_dynamic_range name-description ( RO):
> status ( RO): pending
&g

A Story of a Failed XenServer Upgrade

2016-01-01 Thread Alessandro Caviglione
Hi guys,
I want to share my XenServer Upgrade adventure to understand if I did
domething wrong.
I upgraded CS from 4.4.4 to 4.5.2 without any issues, after all the VRs has
been upgraded I start the upgrade process of my XenServer hosts from 6.2 to
6.5.
I do not already have PoolHA enabled so I followed this article:
http://www.shapeblue.com/how-to-upgrade-an-apache-cloudstack-citrix-xenserver-cluster/

The cluster consists of n° 3 XenServer hosts.

First of all I added manage.xenserver.pool.master=false
to environment.properties file and restarted cloudstack-management service.

After that I put in Maintenance Mode Pool Master host and, after all VMs
has been migrated, I Unmanaged the cluster.
At this point all host appears as "Disconnected" from CS interface and this
should be right.
Now I put XenServer 6.5 CD in the host in Maintenance Mode and start a
in-place upgrade.
After XS6.5 has been installed, I istalled the 6.5SP1 and reboot again.
At this point I expected that, after click on Manage Cluster on CS, all the
hosts come back to "UP" and I could go ahead upgrading the other hosts

But, instead of that, all the hosts still appears as "Disconnected", I
tried a couple of cloudstack-management service restart without success.

So I opened XenCenter and connect to Pool Master I upgraded to 6.5 and it
appear in Maintenance Mode, so I tried to Exit from Maint Mode but I got
the error: The server is still booting

After some investigation, I run the command "xe task-list" and this is the
result:

uuid ( RO): 72f48a56-1d24-1ca3-aade-091f1830e2f1
name-label ( RO): VM.set_memory_dynamic_range
name-description ( RO):
status ( RO): pending
progress ( RO): 0.000

I tried a couple of reboot but nothing changes so I decided to shut
down the server, force raise a slave host to master with emergency mode,
remove old server from CS and reboot CS.

After that, I see my cluster up and running again, so I installed XS 6.2SP1
on the "upgraded" host and added again to the cluster

So after an entire day of work, I'm in the same situation! :D

Anyone can tell me if I made something wrong??

Thank you very much!


Re: Stuck Upgrading Virtual Router

2015-12-30 Thread Alessandro Caviglione
Hi Andrei,
how can I find the VR not started properly?
I see that all system vms and VRs are already using the new template...

Thanks

On Wed, Dec 30, 2015 at 11:41 AM, Andrei Mikhailovsky <and...@arhont.com>
wrote:

> Hi Alessandro,
>
> I think I had a similar issue, which was caused by one of the VRs not
> starting properly. I have fixed this by finding the VR and restarting its
> network with the clean up option.
>
> The cloudstackc-sysvmadm is there to make things easier during the
> upgrade. You can pretty much do it manually and it will achieve the same
> thing. When you restart the network with the clean up option, ACS would
> attempt to kill the existing router and recreate it. As you now have the
> new systemvm template, the VR and system vms will be created from that
> template.
>
> I would also take a look at all VRs and system vms to make sure they use
> the new systemvm template.
>
> Andrei
>
> - Original Message -
> > From: "Alessandro Caviglione" <c.alessan...@gmail.com>
> > To: "users" <users@cloudstack.apache.org>
> > Sent: Tuesday, 29 December, 2015 21:24:58
> > Subject: Stuck Upgrading Virtual Router
>
> > Hi all,
> > I'm upgrading my little infrastructure from CS 4.4.4 to 4.5.2.
> > All worked fine but now the management server is stuck at upgrading VR
> > stage.
> > I run "nohup cloudstack-sysvmadm -d IPaddress -u cloud -p password -a >
> > sysvm.log 2>&1 &" command and the system replied:
> >
> > Stopping and starting 1 secondary storage vm(s)...
> > Done stopping and starting secondary storage vm(s)
> >
> > Stopping and starting 1 console proxy vm(s)...
> > Done stopping and starting console proxy vm(s) .
> >
> > After that, CS starts to upgrade Routing vm(s):
> >
> > Stopping and starting 19 running routing vm(s)...
> >
> >
> > Now, after some hours, CS is still there but I see that all the VR
> and
> > VPC has been upgraded to 4.5.2.
> >
> > How can I conclude the upgrade process?
> > Can I simply kill the cloudstack-sysvmadm process?
> >
> > Thanks
>


Change Source NAT

2015-10-13 Thread Alessandro Caviglione
Hi guys,
I'd like to know if it's possible to change Source NAT for a specific
server/IP.
I'm running ACS 4.4.4 with XS6.2SP1 with Advanced Network.
I'm having some issue with a cPanel instance with multiple public IP.
I made some port forwarding from the Public IPs to the primary and
secondary cPanel's IPs but something do not works fine.
cPanel do some kind of check and discover that source NAT is different from
the IP where corresponding website responds.

Can you help me??


Change SNAT

2015-09-23 Thread Alessandro Caviglione
Hi guys,
just a quick question.
Is it possible to change Source NAT of an instance behind a VR or a VPC?
I'm using Advanced Network and I've a VPC with a public mail server, I
would like that public IP is the same for "in and out" but, at this moment,
the server send email using default SNAT of the VPC and MX record point to
another public IP of the VPC (NAT on default SNAT on VPC is not
possible...).


Implementing IPv6

2015-09-09 Thread Alessandro Caviglione
Hi guys,
I need some help in implementing IPv6 to our CS 4.4.2 Advanced Networking
with XS 6.2 SP1.
We have only one zone with a lot of IPv4 public IP already in use.
We'd like to deploy IPv6 but since it's a new procedure for us (and is not
very well documented...) I'm asking some guidelines.
Can anyone write the steps to do that?

Thank you!


Re: Implementing IPv6

2015-09-09 Thread Alessandro Caviglione
Ok, no problem to upgrade both ACS and XenServer... but "guide" is a big
word for that page! :)
For example...
Need I to add IPv6 range to Public network or just I have to create the
IPv6 shared network?
Are VR ready for IPv6 or there is a "special" version like SystemVM?
Why I need to deploy the "special" SystemVM? after that, XenServer and
Storage should be "talk" in IPv6??


On Wed, Sep 9, 2015 at 11:55 AM, Vadim Kimlaychuk <va...@kickcloud.net>
wrote:

> Alessandro,
>
>   You probably need to update to 4.5 first and update XenServer to 6.5
> as well. Then try to follow this guide:
> http://docs.cloudstack.apache.org/en/latest/networking/ipv6.html
>
> Regards,
>
> Vadim.
>
>
> On 2015-09-09 12:44, Daan Hoogland wrote:
>
> Alessandro, close to no IPv6 functionality has been implemented in the
>> virtual router. I don't think you will get it to work with 4.4.
>>
>> On Wed, Sep 9, 2015 at 11:23 AM, Alessandro Caviglione <
>> c.alessan...@gmail.com> wrote:
>>
>> Hi guys,
>>> I need some help in implementing IPv6 to our CS 4.4.2 Advanced Networking
>>> with XS 6.2 SP1.
>>> We have only one zone with a lot of IPv4 public IP already in use.
>>> We'd like to deploy IPv6 but since it's a new procedure for us (and is
>>> not
>>> very well documented...) I'm asking some guidelines.
>>> Can anyone write the steps to do that?
>>>
>>> Thank you!
>>>
>>


Re: Implementing IPv6

2015-09-09 Thread Alessandro Caviglione
Yeah... I'll try! :P
Thank you!

On Wed, Sep 9, 2015 at 2:47 PM, Vadim Kimlaychuk <va...@kickcloud.net>
wrote:

> Alessandro,
>
>I do understand that guide does not look impressive. But usually
> functionality is a bit ahead of the documentation, so it is worth to try.
> You may set up small test-cloud apart from your installation to see how it
> works. VR-s are based on Debian Linux 7 that should support IPv6 out of the
> box. Probably you don't need this "special" system VM that was described in
> document, because 4.5 system VM should already include IPv6 options that
> were under development that time.
>XenServer and storage usually talk over separate VLAN or separate
> physical connection and there should not be a problem to assign any IPv4
> private address space.
>
>You may write better guide after you try and share it with us ;-)
> Vadim.
>
> On 2015-09-09 13:56, Alessandro Caviglione wrote:
>
> Ok, no problem to upgrade both ACS and XenServer... but "guide" is a big
>> word for that page! :)
>> For example...
>> Need I to add IPv6 range to Public network or just I have to create the
>> IPv6 shared network?
>> Are VR ready for IPv6 or there is a "special" version like SystemVM?
>> Why I need to deploy the "special" SystemVM? after that, XenServer and
>> Storage should be "talk" in IPv6??
>>
>> On Wed, Sep 9, 2015 at 11:55 AM, Vadim Kimlaychuk <va...@kickcloud.net>
>> wrote:
>>
>> Alessandro,
>>
>> You probably need to update to 4.5 first and update XenServer to 6.5
>> as well. Then try to follow this guide:
>> http://docs.cloudstack.apache.org/en/latest/networking/ipv6.html [1]
>>
>> Regards,
>>
>> Vadim.
>>
>> On 2015-09-09 12:44, Daan Hoogland wrote:
>>
>> Alessandro, close to no IPv6 functionality has been implemented in the
>> virtual router. I don't think you will get it to work with 4.4.
>>
>> On Wed, Sep 9, 2015 at 11:23 AM, Alessandro Caviglione <
>> c.alessan...@gmail.com> wrote:
>>
>> Hi guys, I need some help in implementing IPv6 to our CS 4.4.2 Advanced
>> Networking
>> with XS 6.2 SP1.
>> We have only one zone with a lot of IPv4 public IP already in use.
>> We'd like to deploy IPv6 but since it's a new procedure for us (and is
>> not
>> very well documented...) I'm asking some guidelines.
>> Can anyone write the steps to do that?
>>
>> Thank you!
>>
>
>
>
> Links:
> --
> [1] http://docs.cloudstack.apache.org/en/latest/networking/ipv6.html
>


Re: Help in importing VM

2015-06-17 Thread Alessandro Caviglione
I'm sorry Vladim,
i'm trying to do what you wrote but the XenConver allows only to convert a
running windows OS (just P2V).
Is there a particular version of XenConvert I gave to use??

On Mon, Jun 8, 2015 at 1:26 PM, Vadim Kimlaychuk vadim.kimlayc...@elion.ee
wrote:

 Alessandro,

 You got it -- vhd-parent is what I have been thinking of. If you
 would like to know more about snapshots read this:
 http://support.citrix.com/article/CTX122978. There is also explanation of
 Coalescing -- read it.
 I personally don't like such a situation where you can't
 explicitly define the file you VM rely on, but this is how XenServer works.
 Unfortunately.  For instance I have 4 VM-s with 4 snapshots (total, not
 each)  and over 90+ files belongs to these VMs, because I did
 snapshots/deleted snapshots many times. They are not coalesced, because all
 of them are like fast-forward from origin, but still each step you do --
 generates new VHD.  I believe there is some garbage there, but I can't
 clean it manually.  I do plan to export-uninstall-import these VM-s some
 time and then will see how it helps. As I understood only xe vm-uninstall
 should clean all the depended objects.

 Vadim.

 -Original Message-
 From: Alessandro Caviglione [mailto:c.alessan...@gmail.com]
 Sent: Monday, June 08, 2015 1:39 PM
 To: users@cloudstack.apache.org
 Subject: Re: Help in importing VM

 Ok... I missed a couple of rows

 location ( RO): 7b856647-9893-4275-8738-755046817c7b
 type ( RO): User
 sharable ( RO): false
read-only ( RO): false
 storage-lock ( RO): false
  managed ( RO): true
   parent ( RO): not in database
  missing ( RO): false
 other-config (MRW):
xenstore-data (MRO):
sm-config (MRO): *vhd-parent:
 65d3eb8e-76f1-4b37-965a-0d9ad3056645*
  on-boot ( RW): persist
allow-caching ( RW): false
  metadata-latest ( RO): false
 metadata-of-pool ( RO): not in database
 tags (SRW):


 Thank you very much!!



 On Mon, Jun 8, 2015 at 12:29 PM, Alessandro Caviglione 
 c.alessan...@gmail.com wrote:

  Thank you Vladim...
  but it's a little strange... I did snapshot on the original VM but
  I've also created a new VM from that snapshot, this should clone the
  entire vhd, isn't it?
 
  However, this is the results of the command, where I can see that this
  VHD is still connected to the other VM?
 
   xe vdi-list uuid=7b856647-9893-4275-8738-755046817c7b params=all
  uuid ( RO): 7b856647-9893-4275-8738-755046817c7b
name-label ( RW):
  name-description ( RW):
 is-a-snapshot ( RO): false
   snapshot-of ( RO): not in database
 snapshots ( RO):
 snapshot-time ( RO): 19700101T00:00:00Z
allowed-operations (SRO): forget; generate_config; update;
  resize; destroy; clone; copy; snapshot
current-operations (SRO):
   sr-uuid ( RO): e6212223-af2c-17ed-bdf3-7954fe500073
 sr-name-label ( RO): 76ebfe94-cb9d-390d-bb6d-8dc21e977bdd
 vbd-uuids (SRO): 1a47a516-1268-d134-7161-3d37972a2be6
   crashdump-uuids (SRO):
  virtual-size ( RO): 5368709120
  physical-utilisation ( RO): 14848
 
  On Mon, Jun 8, 2015 at 12:21 PM, Vadim Kimlaychuk 
  vadim.kimlayc...@elion.ee wrote:
 
  Hello Alessandro,
 
 
 
  This is OK if you did snapshot(s). The original VDI
  will be displayed if you get VM params and looks for extra options
  there. There are may be even more files connected to VM.  Don’t bother
 about this.
 
  Roughly you should do the following steps:
 
  1.   Stop the VM
 
  2.   Make export  with “xe vm-export” to  XVA file
 
  3.   Extract VHD file from XVA using XenConvert (look here
  http://marcusdaniels.net/quick-and-easy-xenserver-to-hyper-v-conversi
  on/)
 
  4.   Put VHD file on HTTP server
 
  5.   Register template in Cloudstack from URL at p.4
 
 
 
  Vadim.
 
 
 
  -Original Message-
  From: Alessandro Caviglione [mailto:c.alessan...@gmail.com]
  Sent: Monday, June 08, 2015 1:12 PM
  To: users@cloudstack.apache.org
  Subject: Help in importing VM
 
 
 
  Hi guys,
 
  I've a little question about how to import a VM in ACS.
 
  A my client has a VM running on XenServer 6.2 SP1, now he wants to
  migrate to our Cloud platform and we should import that VM in his
 account.
 
  We done a snapshot of the running VM and created a new VM from that
  snapshot, after that we found the VHD name from the commands:
 
 
 
  xe vm-list name-label=TOMIGRATE
 
  uuid ( RO)   : 9ab667ef-32b9-d61b-73ef-4d6c40196c43
 
   name-label ( RW): TOMIGRATE
 
  power-state ( RO): halted
 
 
 
 
 
  xe vm-disk-list uuid=9ab667ef-32b9-d61b-73ef-4d6c40196c43
 
  Disk 0 VBD:
 
  uuid ( RO

Help in importing VM

2015-06-08 Thread Alessandro Caviglione
Hi guys,
I've a little question about how to import a VM in ACS.
A my client has a VM running on XenServer 6.2 SP1, now he wants to migrate
to our Cloud platform and we should import that VM in his account.
We done a snapshot of the running VM and created a new VM from that
snapshot, after that we found the VHD name from the commands:

xe vm-list name-label=TOMIGRATE
uuid ( RO)   : 9ab667ef-32b9-d61b-73ef-4d6c40196c43
 name-label ( RW): TOMIGRATE
power-state ( RO): halted


xe vm-disk-list uuid=9ab667ef-32b9-d61b-73ef-4d6c40196c43
Disk 0 VBD:
uuid ( RO) : 1a47a516-1268-d134-7161-3d37972a2be6
vm-name-label ( RO): TOMIGRATE
   userdevice ( RW): 0


Disk 0 VDI:
uuid ( RO) : 7b856647-9893-4275-8738-755046817c7b
   name-label ( RW):
sr-name-label ( RO): 76ebfe94-cb9d-390d-bb6d-8dc21e977bdd
 virtual-size ( RO): 5368709120

Now, browsing the NFS SR, I found the
7b856647-9893-4275-8738-755046817c7b.vhd file, but it's strange that the
size it's just 14 KB!!

Why?


Re: Help in importing VM

2015-06-08 Thread Alessandro Caviglione
Ok... I missed a couple of rows

location ( RO): 7b856647-9893-4275-8738-755046817c7b
type ( RO): User
sharable ( RO): false
   read-only ( RO): false
storage-lock ( RO): false
 managed ( RO): true
  parent ( RO): not in database
 missing ( RO): false
other-config (MRW):
   xenstore-data (MRO):
   sm-config (MRO): *vhd-parent:
65d3eb8e-76f1-4b37-965a-0d9ad3056645*
 on-boot ( RW): persist
   allow-caching ( RW): false
 metadata-latest ( RO): false
metadata-of-pool ( RO): not in database
tags (SRW):


Thank you very much!!



On Mon, Jun 8, 2015 at 12:29 PM, Alessandro Caviglione 
c.alessan...@gmail.com wrote:

 Thank you Vladim...
 but it's a little strange... I did snapshot on the original VM but I've
 also created a new VM from that snapshot, this should clone the entire vhd,
 isn't it?

 However, this is the results of the command, where I can see that this VHD
 is still connected to the other VM?

  xe vdi-list uuid=7b856647-9893-4275-8738-755046817c7b params=all
 uuid ( RO): 7b856647-9893-4275-8738-755046817c7b
   name-label ( RW):
 name-description ( RW):
is-a-snapshot ( RO): false
  snapshot-of ( RO): not in database
snapshots ( RO):
snapshot-time ( RO): 19700101T00:00:00Z
   allowed-operations (SRO): forget; generate_config; update; resize;
 destroy; clone; copy; snapshot
   current-operations (SRO):
  sr-uuid ( RO): e6212223-af2c-17ed-bdf3-7954fe500073
sr-name-label ( RO): 76ebfe94-cb9d-390d-bb6d-8dc21e977bdd
vbd-uuids (SRO): 1a47a516-1268-d134-7161-3d37972a2be6
  crashdump-uuids (SRO):
 virtual-size ( RO): 5368709120
 physical-utilisation ( RO): 14848

 On Mon, Jun 8, 2015 at 12:21 PM, Vadim Kimlaychuk 
 vadim.kimlayc...@elion.ee wrote:

 Hello Alessandro,



 This is OK if you did snapshot(s). The original VDI will
 be displayed if you get VM params and looks for extra options there. There
 are may be even more files connected to VM.  Don’t bother about this.

 Roughly you should do the following steps:

 1.   Stop the VM

 2.   Make export  with “xe vm-export” to  XVA file

 3.   Extract VHD file from XVA using XenConvert (look here
 http://marcusdaniels.net/quick-and-easy-xenserver-to-hyper-v-conversion/)

 4.   Put VHD file on HTTP server

 5.   Register template in Cloudstack from URL at p.4



 Vadim.



 -Original Message-
 From: Alessandro Caviglione [mailto:c.alessan...@gmail.com]
 Sent: Monday, June 08, 2015 1:12 PM
 To: users@cloudstack.apache.org
 Subject: Help in importing VM



 Hi guys,

 I've a little question about how to import a VM in ACS.

 A my client has a VM running on XenServer 6.2 SP1, now he wants to
 migrate to our Cloud platform and we should import that VM in his account.

 We done a snapshot of the running VM and created a new VM from that
 snapshot, after that we found the VHD name from the commands:



 xe vm-list name-label=TOMIGRATE

 uuid ( RO)   : 9ab667ef-32b9-d61b-73ef-4d6c40196c43

  name-label ( RW): TOMIGRATE

 power-state ( RO): halted





 xe vm-disk-list uuid=9ab667ef-32b9-d61b-73ef-4d6c40196c43

 Disk 0 VBD:

 uuid ( RO) : 1a47a516-1268-d134-7161-3d37972a2be6

 vm-name-label ( RO): TOMIGRATE

userdevice ( RW): 0





 Disk 0 VDI:

 uuid ( RO) : 7b856647-9893-4275-8738-755046817c7b

   name-label ( RW):

 sr-name-label ( RO): 76ebfe94-cb9d-390d-bb6d-8dc21e977bdd

  virtual-size ( RO): 5368709120



 Now, browsing the NFS SR, I found the

 7b856647-9893-4275-8738-755046817c7b.vhd file, but it's strange that the
 size it's just 14 KB!!



 Why?





A little lesson about Snapshots

2015-05-23 Thread Alessandro Caviglione
...so guys, let me tell you my little adventure with snapshots.
Our environment is ACS 4.4.2 with XS6.2SP1.
Yesterday we done some activities on a customer's server, foolishly we have
XenCenter interface already opened and we took a couple of snapshot during
our activities.
At the end, we've to change the service offering of the server, so we
opened ACS web interface, stopped the instance and change service offering.
When we start again the server the instance would not start... in ACS logs
we see:

Catch Exception
com.xensource.xenapi.Types$UuidInvalid :VDI getByUuid for uuid:
x failed due to The uuid you supplied was invalid.

After google a little, we understood that we stopped the instance with a
couple of active snapshots took from XenCenter instead of ACS.
So... maybe, in ACS db there was a wrong uuid of the Root Disk of the
instance...
In fact, in Volume table of ACS db we see that path record for that
instance was different from the one we see in xe vdi-list in XenServer.
So, this was our situation in XenServer:

uuid ( RO): 0345bbf9-be9c-45ae-80e7-fa5fff31625b
name-label ( RW): ROOT-136
snapshot-of ( RO): a0de7625-f98a-4443-a13f-6c9577c2d958
snapshot-time ( RO): 20150522T21:20:39Z
sm-config (MRO): vhd-parent: 9ffe5381-5a0e-4e7c-8614-e19318d9dec9


uuid ( RO): cf50f4ba-05b9-46f9-85e4-f1ac82cdb6b4
name-label ( RW): ROOT-136
snapshot-of ( RO): a0de7625-f98a-4443-a13f-6c9577c2d958
snapshot-time ( RO): 20150522T12:49:44Z
sm-config (MRO): vhd-parent: 083364dc-b43e-401b-ab73-1959a23a9d1

uuid ( RO): a0de7625-f98a-4443-a13f-6c9577c2d958
name-label ( RW): ROOT-136
snapshot-of ( RO): not in database
snapshots ( RO): 0345bbf9-be9c-45ae-80e7-fa5fff31625b;
cf50f4ba-05b9-46f9-85e4-f1ac82cdb6b4

Now, I need to understand a couple of things...
First of all... how Snapshots works??
Instinctively we change the path record in ACS db with the first one
(0345bbf9-be9c-45ae-80e7-fa5fff31625b), you can see that snapshot-time is
later than others.
When instance started we see that was not tha last situation of the
instance... so we stopped again and changed path record with the
a0de7625-f98a-4443-a13f-6c9577c2d958.
So far so good, now the instance was in the last situation and all works
fine!!
Now... why the last situation was in the ROOT DISK that is has not parent
snapshot?
I thought that last Snapshot ROOT DISK has the last instance situation...

Second... since now the instance is running fine but nor in ACS, nor in
XenCenter we can see any Snapshot (that in fact there are two), how can we
delete those Snapshots??

Thank you!!


R: Business Lists

2015-05-12 Thread Alessandro Caviglione
Why we're still in a mailing list and not in a forum??


- Messaggio originale -
Da: Giles Sirett giles.sir...@shapeblue.com
Inviato: ‎12/‎05/‎2015 18:46
A: users@cloudstack.apache.org users@cloudstack.apache.org
Oggetto: RE: Business Lists

Good lord - I thought these mailing lists were one place I was safe from these 
emails

Spam, ban him !

Kind Regards
Giles

D: +44 20 3603 0541 | M: +44 796 111 2055
giles.sir...@shapeblue.com




 -Original Message-
 From: Andrew Simmons [mailto:andrew.simm...@b2b-mktresearch.com]
 Sent: 12 May 2015 15:54
 To: users@cloudstack.apache.org
 Subject: Business Lists

 Hi,



 Would you be interested in acquiring a mailing list for your company marketing
 use?



 We can help you with our database  e-marketing services for improvising your
 leads flow, ROI, profits, market shares, marketing, branding, recruiting, 
 sales,
 new product launch, survey campaigns, etc. If you feel that I should talk to
 somebody else in your company/ acquaintances, please forward this email to
 the right person and I'll be happy to collaborate further.



 Our Database comprises over 30 million+ verified business contacts with 
 emails,
 phone, postal, etc. - you will have access to any list based on your targets.



 If you can let me know your targeted criteria as below, I can assist you with
 some samples along with the count/costs, and more details for your
 consideration.

. Geography:

. Industry:

. Executive title/job roles:

. Company Size (revenue type/employee size):

. or any other specifications:



 Thanks and looking forward to hearing from you!



 Andrew Simmons

 Sales/Marketing Dept.

 Office: 302-353-4442



 Email Lists | Email Marketing | Data Appending | List Cleansing | Email 
 Hygiene
 | Lead generation

 DISCLAIMER: This e-mail and attachments are confidential and are intended
 solely for the use of the individual to whom it is addressed. If you are not 
 the
 intended recipient, be advised that you have received this Email in error and
 that any use, dissemination, forwarding, printing, or copying of this Email is
 strictly prohibited. If this transmission is received in error please notify 
 the
 sender immediately and delete this message from your E-mail system.

 We respect your privacy. If you wish not to receive emails please 
 UNSUBSCRIBE mailto:intellectualsinfin...@gmail.com



Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design  Buildhttp://shapeblue.com/iaas-cloud-design-and-build//
CSForge – rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/
CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/
CloudStack Software 
Engineeringhttp://shapeblue.com/cloudstack-software-engineering/
CloudStack Infrastructure 
Supporthttp://shapeblue.com/cloudstack-infrastructure-support/
CloudStack Bootcamp Training Courseshttp://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 SA Pty Ltd is a company 
registered by The Republic of South Africa and is traded under license from 
Shape Blue Ltd. ShapeBlue is a registered trademark.


Console Improvements

2015-05-07 Thread Alessandro Caviglione
Hi guys,
I'm using CS 4.4.2 and i just want to know if there is a chance to improve
the current console.
I do not want to denigrate the work of developers because I love CloudStack
and I think it's very undervalued compared to other competitors ... but the
console is really bad.
Any other product has a better console: Proxmox, SolusVM, Euchalyptus, etc
...
I know that compared to the entire ecosystem of CloudStack the console is a
small piece of the puzzle, but it's the piece that the end user sees first.
The console is virtually unusable performing an installation from ISO, the
characters are not transferred properly, when you reboot an instance the
console goes in Access Denied and you have to re-open, while using it there
is a continuous flapping of the screen.
So the user have to open the SSH or RDP ports to the Internet to connect
directly to his instance and work better ... reducing security and
increasing the user inconvenience.
Is there any chance of improvement?

Thank you very much


Storage for Snapshots

2015-02-23 Thread Alessandro Caviglione
Hi guys,
I've tried to find a way but without success.
We've a simple infrastructure with some XS hosts, CS 4.4, one primary
storage and one secondary storage.
Now I'd like to add a deduplication appliance as secondary storage to hosts
only instance snapshots.
How can I configure CS to move the snapshot to that specific secondary
storage?

Thank you!


Re: Storage for Snapshots

2015-02-23 Thread Alessandro Caviglione
Yes but my goal should be to use dedup appliance only for snapshot, not
also for ISOs and Template...
I think that also secondary storage should have tags to separate
ISO/Template from Snap.


On Mon, Feb 23, 2015 at 10:46 AM, Nux! n...@li.nux.ro wrote:

 Hi Alessandro,

 I do not think you can separate secondary storage that way.
 Depending on the capabilities of your deduplication device, you might be
 able to mount it in the secondary storage NFS server, under
 /path/secondary/storage/snapshots; say if it's an ISCSI lun etc.

 HTH
 Lucian

 --
 Sent from the Delta quadrant using Borg technology!

 Nux!
 www.nux.ro

 - Original Message -
  From: Alessandro Caviglione c.alessan...@gmail.com
  To: users@cloudstack.apache.org
  Sent: Monday, 23 February, 2015 09:39:46
  Subject: Storage for Snapshots

  Hi guys,
  I've tried to find a way but without success.
  We've a simple infrastructure with some XS hosts, CS 4.4, one primary
  storage and one secondary storage.
  Now I'd like to add a deduplication appliance as secondary storage to
 hosts
  only instance snapshots.
  How can I configure CS to move the snapshot to that specific secondary
  storage?
 
  Thank you!



Re: Add services to active in-use Network Offering

2015-01-13 Thread Alessandro Caviglione
This is a big drawback of CloudStack, it is extremely flexible when you
have to create objects from scratch, but it is a hard piece of wood when
you have to change them when you already use it!

On Tue, Jan 13, 2015 at 7:01 AM, Ahmad Emneina aemne...@gmail.com wrote:

 ah, I didnt realize your network was created. so import volume, deploy to
 network (specifying current ip address to preserve it).

 On Mon, Jan 12, 2015 at 8:49 PM, Lee Webb nullify...@gmail.com wrote:

  I was trying to avoid having to manipulate the VM's themselves (other
 than
  perhaps stop  start) or something that was a little less destructive
 than
  delete the network  recreate it.
 
  I've had a go at updating the Network using a new NetworkOfferingId, but
  Cloudmonkey reports that it's not something that can be done for Shared
  networks:
 
  (local)  update network id=b2623beb-a685-4b72-81b7-53cb72351896
  networkofferingid=546e9b9a-ec00-438e-ba2f-2509bea949f2
  Async job 19acea4c-443f-4e1b-8e25-a66f13ba789c failed
  Error 530, NetworkOffering and domain suffix upgrade can be perfomed for
  Isolated networks only
  accountid = 0c0622ba-7b4b-11e4-84fb-2ebf37d37efd
  cmd =
  org.apache.cloudstack.api.command.admin.network.UpdateNetworkCmdByAdmin
  created = 2015-01-13T04:41:13+
  jobid = 19acea4c-443f-4e1b-8e25-a66f13ba789c
  jobprocstatus = 0
  jobresult:
  errorcode = 530
  errortext = NetworkOffering and domain suffix upgrade can be perfomed for
  Isolated networks only
  jobresultcode = 530
  jobresulttype = object
  jobstatus = 2
  userid = 0c062ac6-7b4b-11e4-84fb-2ebf37d37efd
 
   On 13 Jan 2015, at 3:41 pm, Ahmad Emneina aemne...@gmail.com wrote:
  
   One solution that comes to mind is: import the vm volume as a template
 in
   cloudstack. Then deploy the vm to the desired network. At deploytime
 you
   could specify the desired ip address for the vm.
  
   On Mon, Jan 12, 2015 at 8:21 PM, Lee Webb nullify...@gmail.com
 wrote:
  
   Hi List!
  
   I'm wondering whether it's possible to add services to a Network
  Offering
   after it has been created  in use?
  
   I've a very basic offering with no services on a shared network
 sitting
  on
   a physical VLAN which I'd now like to add services to (such as DNS 
  DHCP).
  
   Is it possible to add them in flight so that they can keep all of the
   assigned addresses etc.?
  
   What options do I have here
  
   Regards, lee
 
 



Re: Unable to get current status on

2015-01-13 Thread Alessandro Caviglione
Other users and I have same issue with 4.4, I think you can ignore this
message...
Il 13/gen/2015 12:21 zen...@conac.cn zen...@conac.cn ha scritto:

 hi,list:
I use CS4.4 with Xenserver 6.2,it always has warn in the log file,
 as follow:
 2015-01-13 19:17:53,474 WARN [c.c.a.m.DirectAgentAttache]
 (DirectAgentCronJob-365:ctx-dd57900e) Unable to get current status on
 4(XS11-Cnode01)
 2015-01-13 19:17:53,642 WARN [c.c.a.m.DirectAgentAttache]
 (DirectAgentCronJob-183:ctx-656cb94f) Unable to get current status on
 1(XS14-Cnode04)
 2015-01-13 19:17:53,693 WARN [c.c.a.m.DirectAgentAttache]
 (DirectAgentCronJob-366:ctx-7051846f) Unable to get current status on
 3(XS12-Cnode02)
 2015-01-13 19:17:54,160 WARN [c.c.a.m.DirectAgentAttache]
 (DirectAgentCronJob-92:ctx-104a568d) Unable to get current status on
 5(XS13-Cnode03)
 2015-01-13 19:18:18,651 WARN [c.c.a.m.DirectAgentAttache]
 (DirectAgentCronJob-93:ctx-748b8309) Unable to get current status on
 2(XS15-Cnode05)
 2015-01-13 19:18:51,980 WARN [c.c.a.m.DirectAgentAttache]
 (DirectAgentCronJob-371:ctx-595f4ad2) Unable to get current status on
 8(XS11-v61-Cnode02)
 2015-01-13 19:18:53,282 WARN [c.c.a.m.DirectAgentAttache]
 (DirectAgentCronJob-186:ctx-eee52939) Unable to get current status on
 10(XS12-v61-Cnode03)
 2015-01-13 19:18:53,427 WARN [c.c.a.m.DirectAgentAttache]
 (DirectAgentCronJob-372:ctx-f59095ae) Unable to get current status on
 9(XS13-v61-Cnode04)
 2015-01-13 19:18:53,475 WARN [c.c.a.m.DirectAgentAttache]
 (DirectAgentCronJob-47:ctx-1571c417) Unable to get current status on
 4(XS11-Cnode01)
 2015-01-13 19:18:53,641 WARN [c.c.a.m.DirectAgentAttache]
 (DirectAgentCronJob-373:ctx-7884a081) Unable to get current status on
 1(XS14-Cnode04)
 2015-01-13 19:18:53,693 WARN [c.c.a.m.DirectAgentAttache]
 (DirectAgentCronJob-187:ctx-6d3238de) Unable to get current status on
 3(XS12-Cnode02)
 2015-01-13 19:18:54,161 WARN [c.c.a.m.DirectAgentAttache]
 (DirectAgentCronJob-374:ctx-c2cbb575) Unable to get current status on
 5(XS13-Cnode03)
 2015-01-13 19:19:18,652 WARN [c.c.a.m.DirectAgentAttache]
 (DirectAgentCronJob-94:ctx-81d79d3b) Unable to get current status on
 2(XS15-Cnode05)

 Who can help me to deal with it? thanks!







Add customer's isolated network to Instance

2014-12-18 Thread Alessandro Caviglione
Ok guys, I don't know how to solve my problem...
We're a Service Provider and we'd like to implement a shared Netscaler
Gateway VPX to provide Virtual Servers to customers that wants to build
their own XenApp infrastructure in our Cloud.
So, an our customer already deployed an instance that hosts Citrix
Storefront, DDC and so on, and other instances that are the VDAs Servers
and that hosts the company apps.
We created a Virtual Server in the Netscaler VPX in our Isolated Network
and configure it to point to the public IP (we use Advanced Networking) of
the customer's VR.
With a couple or firewall and port forwarding rule we're able to
authenticate the users on the NS (that authenticate users on the customer's
Active Directory deployed in customer's Isolated Network).
When user start an app, I see that Netscaler is trying to contact the VDA
server private IP (that is in the customer's Isolated Network), obviously
without success.
After a lot of research we see that Netscaler should have an interface
(called SNIP) in the same subnet of the VDAs Servers.
So... it's possible to add to our Netscaler a NIC that reside in the
Isolated Network of our customer?

Thank you!!


Re: Shared Storage for VMs

2014-12-12 Thread Alessandro Caviglione
Just use a Unified Storage and export volumes to VMs...

On Fri, Dec 12, 2014 at 11:39 AM, Andrija Panic andrija.pa...@gmail.com
wrote:

 Drbd and gfs2 or something?

 Sent from Google Nexus 4
 On Dec 12, 2014 10:00 AM, Jochim, Ingo ingo.joc...@bautzen-it.de
 wrote:

  Hi all,
 
  I'd like to discuss my feature request for having shared storage for
  several virtual machines controlled by ACS.
  https://issues.apache.org/jira/browse/CLOUDSTACK-7970
  Any ideas about this? Are there workarounds which I can used today?
 
  Many thanks in advance.
  Regards,
  Ingo
 



Re: ACS 4.4.1 XenServer 6.2 - VMs lost connection in Isolated network

2014-12-10 Thread Alessandro Caviglione
Hi, I've had the same issue but it appear only in Isolated Network inside
VPC.
Also ACL and port forwarding applied to that Internal Network stops
working...

On Wed, Dec 10, 2014 at 3:44 PM, Motty Cruz motty.c...@gmail.com wrote:

 Hi Jayapal,

 I was able to restart Network clean, to rebuilt the VR. I have not had
 those issues in the last 10hrs. I can almost say that fixed my issue but
 not certain.

 Thanks,
 Motty

 On 12/09/2014 08:41 PM, Jayapal Reddy Uradi wrote:

 HI Motty,

 First make sure there are no issue in the VM like ip addr, route,
 firewall etc.

 Second When you send traffic from the VM, capture the it in each place to
 figure where exactly the traffic is blocking.
 Is it reached to hypervisor, router etc ? This way you can find who is
 culprit.

 Thanks,
 Jayapal


 On 10-Dec-2014, at 3:10 AM, Somesh Naidu somesh.na...@citrix.com wrote:

  Check routes on the guests that are having trouble. You should verify if
 the public traffic from these guests is reaching the router.

 -Original Message-
 From: Motty Cruz [mailto:motty.c...@gmail.com]
 Sent: Tuesday, 9 December 2014 11:46 AM
 To: users@cloudstack.apache.org
 Subject: ACS 4.4.1 XenServer 6.2 - VMs lost connection in Isolated
 network

 Hi All,

 I have total of about 5 VMs on Isolated network, but they lost
 connection to outside world. I am able to ping the VR but can't ping to
 outside world. If I log in to VR, am able to ping anywhere outside or
 inside network.

 out of the 5 VMs, 3 machines never loose connection, the two VMs that do
 loose connection are windows machines. To get the connection again, I have
 to restart VR. Any ideas?

 I want to mentioned that, I have three other Isolated networks in the
 same zone. I do not have problems with other Isolated networks.

 I do need help!

 Thanks,
 Motty





Re: Strange instance boot issue

2014-12-09 Thread Alessandro Caviglione
Hi Geoff,
thank you for your tech suggest!
I think you're right, in fact changing compute offering to 1 GHz the server
boot up in 10 sec...
Thank you very much, also today I've learned something! :)

On Mon, Dec 8, 2014 at 10:42 AM, Geoff Higginbottom 
geoff.higginbot...@shapeblue.com wrote:

 Hi Allesandro,

 This is just a hunch, but could it be that Windows only uses its 1st CPU
 to handle the boot process.  If this is the case when you allocate 4vCPU @
 500Mhz it only has 500Mhz of CPU power to process the very intensive boot
 process, vs having 2000Mhz when you allocate a single vCPU @ 200MHz.

 I believe it's always better to provide a faster single vCPU than multiple
 Slower vCPUs as there are overheads on the Guest OS and Hypervisor when
 dealing with multiple vCPUs.

 Regards

 Geoff Higginbottom

 D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581

 geoff.higginbot...@shapeblue.com

 -Original Message-
 From: Alessandro Caviglione [mailto:c.alessan...@gmail.com]
 Sent: 08 December 2014 02:20
 To: users@cloudstack.apache.org
 Subject: Re: Strange instance boot issue

 Ok... maybe I found the issue!!
 Again... I'm learning CS in these month so you've to be patient with me!
 :) But this thing is strange...
 I configure some Compute offering setting CPU speed to 500 MHz and
 changing vCPU number for each offer, all the offerings are with CPU CAP
 enabled.
 Now, if I deploy a W2008R2 instance from a template or an ISO (yes
 W2012 is working fine! :-/) with 4vCPU (4*500 MHz = 2 GHz) I get the
 issue... sloow boot time (about 15 mins).
 If I deploy the same instance with 1 vCPU with 2000 MHz, the instance boot
 in 7 sec!!
 Why???

 On Sun, Dec 7, 2014 at 1:49 AM, Alessandro Caviglione 
 c.alessan...@gmail.com wrote:

  Hi guys,
  I'm sorry if I submit this problem, I honestly do not think it is a
  fault of CloudStack, but I do not know where to look anymore ...
  For several days (up to a week ago I did not have this problem) I have
  trouble creating templates and run instances.
  My infrastructure is composed of CS4.4.1 and 4 XenServer 6.2 hosts.
  I want to point out that the problem is not due to poor storage
  performance.
  When I create an instance from an ISO, the installation time is
  greatly increased.
  When restarting the instances, for example windows VMs, they remain in
  the boot about 30 minutes.
  The strange thing is that when instances are started, the performances
  are excellent!
  What's even more strange is that trying to install a new VM directly
  from XenServer, installation is fast and the boot issue when restart
  the VMs does not appear and also boot is very fast (about 20/30 sec.)
  In short, the problem seems to be only when the VMs are managed by
  CloudStack.
  I found this article and correct the BIOS of my server, even though I
  had never encountered this problem until a week ago. (
  http://support.citrix.com/article/CTX127395)
 
 
  Someone can give me some guidance?
 
 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 frameworkhttp://shapeblue.com/csforge/
 CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/
 CloudStack Software Engineering
 http://shapeblue.com/cloudstack-software-engineering/
 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 SA Pty Ltd is
 a company registered by The Republic of South Africa and is traded under
 license from Shape Blue Ltd. ShapeBlue is a registered trademark.



Re: Fresh 4.4.2 - Unable to get status on .... my XenServer

2014-12-07 Thread Alessandro Caviglione
Yes, I do not believe that the issue is related to a host already
assigned...
Me too have this issue, CS4.4.1 and XS 6.2 hosts Zone installed from
scratch, Unable to get status on... error appear in management server
logs from the beginning.
However, I can work with my hosts, create instance, template, networks and
so on...
I can think that this is a bug... :-/

On Wed, Dec 3, 2014 at 4:50 PM, Matthew Midgett 
clouds...@trick-solutions.com.invalid wrote:

 I just finished installing XenServer again and started from a setup and I'm
 still getting the same errors that I was before about not being able to get
 a status. What to do now?


 JrSm9iRGlzcGF0Y2hlcnQAGFZtV29ya0pvYkRpc3BhdGNoZXIuamF2YXQABnJ1bkpvYnNxAH4ACw

 AAAfd0AD9vcmcuYXBhY2hlLmNsb3Vkc3RhY2suZnJhbWV3b3JrLmpvYnMuaW1wbC5Bc3luY0pvYk

 1hbmFnZXJJbXBsJDV0ABhBc3luY0pvYk1hbmFnZXJJbXBsLmphdmF0AAxydW5JbkNvbnRleHRzcQ

 B-AAsxdAA-b3JnLmFwYWNoZS5jbG91ZHN0YWNrLm1hbmFnZWQuY29udGV4dC5NYW5hZ2VkQ2

 9udGV4dFJ1bm5hYmxlJDF0ABtNYW5hZ2VkQ29udGV4dFJ1bm5hYmxlLmphdmF0AANydW5zcQB-AA

 s4dABCb3JnLmFwYWNoZS5jbG91ZHN0YWNrLm1hbmFnZWQuY29udGV4dC5pbXBsLkRlZmF1bH

 RNYW5hZ2VkQ29udGV4dCQxdAAaRGVmYXVsdE1hbmFnZWRDb250ZXh0LmphdmF0AARjYWxsc3EAfg

 ALZ3QAQG9yZy5hcGFjaGUuY2xvdWRzdGFjay5tYW5hZ2VkLmNvbnRleHQuaW1wbC5EZWZhdW

 x0TWFuYWdlZENvbnRleHRxAH4AGnQAD2NhbGxXaXRoQ29udGV4dHNxAH4ACwAAADVxAH4AHXEAfg

 AadAAOcnVuV2l0aENvbnRleHRzcQB-AAsudAA8b3JnLmFwYWNoZS5jbG91ZHN0YWNrLm1hbm

 FnZWQuY29udGV4dC5NYW5hZ2VkQ29udGV4dFJ1bm5hYmxlcQB-ABZxAH4AF3NxAH4ACwAAAcxxAH

 4AEXEAfgAScQB-ABdzcQB-AAsAAAHXdAAuamF2YS51dGlsLmNvbmN1cnJlbnQuRXhlY3V0b3JzJF

 J1bm5hYmxlQWRhcHRlcnQADkV4ZWN1dG9ycy5qYXZhcQB-ABtzcQB-AAsAAAEGdAAfamF2YS51dG

 lsLmNvbmN1cnJlbnQuRnV0dXJlVGFza3QAD0Z1dHVyZVRhc2suamF2YXEAfgAXc3EAfgALAAAEeX

 QAJ2phdmEudXRpbC5jb25jdXJyZW50LlRocmVhZFBvb2xFeGVjdXRvcnQAF1RocmVhZFBvb2xFeG

 VjdXRvci5qYXZhdAAJcnVuV29ya2Vyc3EAfgALAAACZ3QALmphdmEudXRpbC5jb25jdXJyZW50Ll

 RocmVhZFBvb2xFeGVjdXRvciRXb3JrZXJxAH4ALHEAfgAXc3EAfgALAAAC6XQAEGphdmEubGFuZy

 5UaHJlYWR0AAtUaHJlYWQuamF2YXEAfgAXc3IAJmphdmEudXRpbC5Db2xsZWN0aW9ucyRVbm1vZG

 lmaWFibGVMaXN0_A8lMbXsjhACAAFMAARsaXN0cQB-AAZ4cgAsamF2YS51dGlsLkNvbGxlY3Rpb2

 5zJFVubW9kaWZpYWJsZUNvbGxlY3Rpb24ZQgCAy173HgIAAUwAAWN0ABZMamF2YS91dGlsL0NvbG

 xlY3Rpb247eHBzcgATamF2YS51dGlsLkFycmF5TGlzdHiB0h2Zx2GdAwABSQAEc2l6ZXhwAH
 cEAHhxAH4AOHg
 2014-12-03 10:28:23,558 WARN  [o.a.c.s.SecondaryStorageManagerImpl]
 (secstorage-1:ctx-2d3ea815) Exception while trying
 to start secondary storage vm
 java.lang.RuntimeException: Job failed due to exception Resource [Host:4]
 is
 unreachable: Host 4: Unable to start instance due to DB Exception on:
 com.mysql.jdbc.JDBC4PreparedStatement@7268fbbc: UPDATE
 op_dc_link_local_ip_address_alloc SET
 op_dc_link_local_ip_address_alloc.nic_id=123,

 op_dc_link_local_ip_address_alloc.reservation_id=_binary'97c33776-2f60-494b-
 8f3c-7b20a0d7881f', op_dc_link_local_ip_address_alloc.taken='2014-12-03
 15:28:23' WHERE op_dc_link_local_ip_address_alloc.id = 1806
 2014-12-03 10:28:23,562 INFO  [o.a.c.s.SecondaryStorageManagerImpl]
 (secstorage-1:ctx-2d3ea815) Unable to start secondary storage vm for
 standby
 capacity, secStorageVm vm Id : 13, will recycle it and start a new one
 2014-12-03 10:28:23,697 WARN  [c.c.u.d.Merovingian2]
 (secstorage-1:ctx-00d2f7e3) Was unable to find lock for the key
 vm_instance13 and thread id 819805219
 2014-12-03 10:28:37,991 WARN  [c.c.a.m.DirectAgentAttache]
 (DirectAgentCronJob-15:ctx-077ec0bf) Unable to get current status on
 1(xenhv2.pvdc.chlt.charlottecolo.com)
 2014-12-03 10:28:56,362 WARN  [c.c.a.m.DirectAgentAttache]
 (DirectAgentCronJob-30:ctx-7833f032) Unable to get current status on
 4(xenhv1.pvdc.chlt.charlottecolo.com)
 2014-12-03 10:29:37,990 WARN  [c.c.a.m.DirectAgentAttache]
 (DirectAgentCronJob-8:ctx-40da93df) Unable to get current status on
 1(xenhv2.pvdc.chlt.charlottecolo.com)
 2014-12-03 10:29:52,876 WARN  [o.a.c.f.j.i.AsyncJobMonitor]
 (Timer-1:ctx-db89f3ef) Task (job-393) has been pending for
 90 seconds
 2014-12-03 10:29:56,361 WARN  [c.c.a.m.DirectAgentAttache]
 (DirectAgentCronJob-61:ctx-80573bda) Unable to get current status on
 4(xenhv1.pvdc.chlt.charlottecolo.com)
 2014-12-03 10:30:02,536 DEBUG [o.a.c.s.i.s.TemplateObject]
 (Work-Job-Executor-61:ctx-927aa31e job-388/job-393 ctx-21971f3e) failed to
 process event and answer
 com.cloud.utils.exception.CloudRuntimeException: DB Exception on:
 com.mysql.jdbc.JDBC4PreparedStatement@571a2d18: SELECT
 template_spool_ref.id, template_spool_ref.pool_id,
 template_spool_ref.template_id, template_spool_ref.created,
 template_spool_ref.last_updated, template_spool_ref.download_pct,
 template_spool_ref.download_state, template_spool_ref.local_path,
 template_spool_ref.error_str, template_spool_ref.job_id,
 template_spool_ref.install_path, template_spool_ref.template_size,
 template_spool_ref.marked_for_gc, template_spool_ref.update_count,
 template_spool_ref.updated, template_spool_ref.state FROM
 template_spool_ref
 WHERE 

Re: Strange instance boot issue

2014-12-07 Thread Alessandro Caviglione
Ok... maybe I found the issue!!
Again... I'm learning CS in these month so you've to be patient with me! :)
But this thing is strange...
I configure some Compute offering setting CPU speed to 500 MHz and changing
vCPU number for each offer, all the offerings are with CPU CAP enabled.
Now, if I deploy a W2008R2 instance from a template or an ISO (yes
W2012 is working fine! :-/) with 4vCPU (4*500 MHz = 2 GHz) I get the
issue... sloow boot time (about 15 mins).
If I deploy the same instance with 1 vCPU with 2000 MHz, the instance boot
in 7 sec!!
Why???

On Sun, Dec 7, 2014 at 1:49 AM, Alessandro Caviglione 
c.alessan...@gmail.com wrote:

 Hi guys,
 I'm sorry if I submit this problem, I honestly do not think it is a fault
 of CloudStack, but I do not know where to look anymore ...
 For several days (up to a week ago I did not have this problem) I have
 trouble creating templates and run instances.
 My infrastructure is composed of CS4.4.1 and 4 XenServer 6.2 hosts.
 I want to point out that the problem is not due to poor storage
 performance.
 When I create an instance from an ISO, the installation time is greatly
 increased.
 When restarting the instances, for example windows VMs, they remain in the
 boot about 30 minutes.
 The strange thing is that when instances are started, the performances are
 excellent!
 What's even more strange is that trying to install a new VM directly from
 XenServer, installation is fast and the boot issue when restart the VMs
 does not appear and also boot is very fast (about 20/30 sec.)
 In short, the problem seems to be only when the VMs are managed by
 CloudStack.
 I found this article and correct the BIOS of my server, even though I had
 never encountered this problem until a week ago. (
 http://support.citrix.com/article/CTX127395)


 Someone can give me some guidance?



Strange instance boot issue

2014-12-06 Thread Alessandro Caviglione
Hi guys,
I'm sorry if I submit this problem, I honestly do not think it is a fault
of CloudStack, but I do not know where to look anymore ...
For several days (up to a week ago I did not have this problem) I have
trouble creating templates and run instances.
My infrastructure is composed of CS4.4.1 and 4 XenServer 6.2 hosts.
I want to point out that the problem is not due to poor storage performance.
When I create an instance from an ISO, the installation time is greatly
increased.
When restarting the instances, for example windows VMs, they remain in the
boot about 30 minutes.
The strange thing is that when instances are started, the performances are
excellent!
What's even more strange is that trying to install a new VM directly from
XenServer, installation is fast and the boot issue when restart the VMs
does not appear and also boot is very fast (about 20/30 sec.)
In short, the problem seems to be only when the VMs are managed by
CloudStack.
I found this article and correct the BIOS of my server, even though I had
never encountered this problem until a week ago. (
http://support.citrix.com/article/CTX127395)


Someone can give me some guidance?


Re: Port forwarding on nic2

2014-12-05 Thread Alessandro Caviglione
Thank you very much!
I'm still learning use API! :)



On Fri, Dec 5, 2014 at 1:53 PM, Jayapal Reddy Uradi 
jayapalreddy.ur...@citrix.com wrote:

 Hi,

 I have tried configuring the static for nic2 from the UI.
 UI is not showing the VM nic2 ip addresses, it is showing primary/default
 nic2.

 API is working fine. So I will file UI bug.

 Thanks,
 Jayapal

 On 03-Dec-2014, at 10:41 AM, Vadim Kimlaychuk vadim.kimlayc...@elion.ee
 wrote:

  Hi Alessandro,
 
  I think default NIC is tightly coupled with default route and
 default GW. You may have several NICs at your system but only once is used
 for communication to outside world. If you have several shared networks
 choose one that is connected to Internet as default. If both connected --
 choose any of them.
 
  Regards,
 
  Vadim.
  
  From: Alessandro Caviglione [c.alessan...@gmail.com]
  Sent: Wednesday, December 03, 2014 2:19
  To: users@cloudstack.apache.org
  Subject: Re: Port forwarding on nic2
 
  Hellooo,
  I see another strange thing...
  I'm also a newbie of CS and I'm understanding just now some concepts
 but...
  what mean default nic?
  Why in an instance I have a default nic that I can change (if I've more
  than one nic)?
  And why, also if I change the default nic, I still can only configure
 port
  forwarding on the first nic I configured for my instance?
  When I configure a port forwarding and I select the instance, a dropdown
  menu should show the IP address of the instance, but I see only primary?
  Maybe I'm experiencing a bug?
 
  On Sun, Nov 30, 2014 at 10:21 PM, Alessandro Caviglione 
  c.alessan...@gmail.com wrote:
 
  Hi guys,
  I'm experiencing an issue about port forwarding.
  I've deployed an instance with 2 NICs, both isolated network.
  Now I've configured some services in the instance, some listening on
 NIC 1
  IP and some listening on NIC 2 IP.
  IP are in two different subnet, both assigned by CS DHCP.
  Now, I click the second network in the network menu  View IP Address 
  Public IP  Configuration tab  Port forwarding  then I create a new
 port
  forwarding rule specifying the port, protocol and clicking the Add
 button
  to specify the instance IP.
  The instance appear in the popup but when I select the instance I just
 can
  choose the Primary IP that is corresponding to the NIC 1.
 
  Something I wrong?
 




Re: Port forwarding on nic2

2014-12-02 Thread Alessandro Caviglione
Hellooo,
I see another strange thing...
I'm also a newbie of CS and I'm understanding just now some concepts but...
what mean default nic?
Why in an instance I have a default nic that I can change (if I've more
than one nic)?
And why, also if I change the default nic, I still can only configure port
forwarding on the first nic I configured for my instance?
When I configure a port forwarding and I select the instance, a dropdown
menu should show the IP address of the instance, but I see only primary?
Maybe I'm experiencing a bug?

On Sun, Nov 30, 2014 at 10:21 PM, Alessandro Caviglione 
c.alessan...@gmail.com wrote:

 Hi guys,
 I'm experiencing an issue about port forwarding.
 I've deployed an instance with 2 NICs, both isolated network.
 Now I've configured some services in the instance, some listening on NIC 1
 IP and some listening on NIC 2 IP.
 IP are in two different subnet, both assigned by CS DHCP.
 Now, I click the second network in the network menu  View IP Address 
 Public IP  Configuration tab  Port forwarding  then I create a new port
 forwarding rule specifying the port, protocol and clicking the Add button
 to specify the instance IP.
 The instance appear in the popup but when I select the instance I just can
 choose the Primary IP that is corresponding to the NIC 1.

 Something I wrong?



Port forwarding on nic2

2014-11-30 Thread Alessandro Caviglione
Hi guys,
I'm experiencing an issue about port forwarding.
I've deployed an instance with 2 NICs, both isolated network.
Now I've configured some services in the instance, some listening on NIC 1
IP and some listening on NIC 2 IP.
IP are in two different subnet, both assigned by CS DHCP.
Now, I click the second network in the network menu  View IP Address 
Public IP  Configuration tab  Port forwarding  then I create a new port
forwarding rule specifying the port, protocol and clicking the Add button
to specify the instance IP.
The instance appear in the popup but when I select the instance I just can
choose the Primary IP that is corresponding to the NIC 1.

Something I wrong?


Re: Resize console VM window

2014-11-16 Thread Alessandro Caviglione
I've not already tried because we're going to create the master template
for each OS and with WIN2012 we're experiencing this issue...


On Sun, Nov 16, 2014 at 1:15 PM, Geoff Higginbottom 
geoff.higginbot...@shapeblue.com wrote:

 Have you installed the Hypervisor tools in your VM Template

 Regards

 Geoff Higginbottom
 CTO / Cloud Architect

 D: +44 20 3603 0542tel:+442036030542 | S: +44 20 3603 0540tel:
 +442036030540 | M: +447968161581tel:+447968161581

 geoff.higginbot...@shapeblue.commailto:geoff.higginbot...@shapeblue.com
 | www.shapeblue.comhtp://www.shapeblue.com/ | Twitter:@cloudstackguru
 https://twitter.com/#!/cloudstackguru

 ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N
 4HSx-apple-data-detectors://5


 On 15 Nov 2014, at 22:39, Alessandro Caviglione c.alessan...@gmail.com
 mailto:c.alessan...@gmail.com wrote:

 Hi guys,
 I'm quite new to CS and I'm having this issue.
 When I deploy a WIN2012 instance and try to open the VM console, it is too
 small for the lowest WIN2012 resolution and the result is that the console
 windows is focused in the upper-left corner of the Win Desktop.
 Also if I move the window with the position bar of the console, it will
 reposition in upper-left corner when I click the mouse button inside the
 window.
 This makes it completely unusable and I have to open 3389 port through the
 VR to permit the RDP connection to the WIN2012 instance.
 Is there any way to resize VM console window??

 Thank you!
 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 frameworkhttp://shapeblue.com/csforge/
 CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/
 CloudStack Software Engineering
 http://shapeblue.com/cloudstack-software-engineering/
 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 SA Pty Ltd is
 a company registered by The Republic of South Africa and is traded under
 license from Shape Blue Ltd. ShapeBlue is a registered trademark.



Resize console VM window

2014-11-15 Thread Alessandro Caviglione
Hi guys,
I'm quite new to CS and I'm having this issue.
When I deploy a WIN2012 instance and try to open the VM console, it is too
small for the lowest WIN2012 resolution and the result is that the console
windows is focused in the upper-left corner of the Win Desktop.
Also if I move the window with the position bar of the console, it will
reposition in upper-left corner when I click the mouse button inside the
window.
This makes it completely unusable and I have to open 3389 port through the
VR to permit the RDP connection to the WIN2012 instance.
Is there any way to resize VM console window??

Thank you!