Re: ACS 4.5 - volume snapshots NOT removed from CEPH (only from Secondaryt NFS and DB)

2015-09-10 Thread Andrija Panic
We are testing some [dirty?] patch on our dev system and we shall soon
share it for review.

Basically, we are using external python script that is invoked in some part
of code execution to delete needed CEPH snapshots and then after that
proceeds with volume deleteion etc...

On 10 September 2015 at 11:26, Andrija Panic 
wrote:

> Eh, OK. Thx for the info.
>
> BTW why is 16 snapshot limits hardcoded - any reason for that ?
>
> Not cleaning snapshots on CEPH and trying to delete volume after having
> more than 16 snapshtos in CEPH = Agent crashing on KVM side...and some VMs
> being rebooted etc - which means downtime :|
>
> Thanks,
>
> On 9 September 2015 at 22:05, Simon Weller  wrote:
>
>> Andrija,
>>
>> The Ceph snapshot deletion is not currently implemented.
>>
>> See: https://issues.apache.org/jira/browse/CLOUDSTACK-8302
>>
>> - Si
>>
>> 
>> From: Andrija Panic 
>> Sent: Wednesday, September 9, 2015 3:03 PM
>> To: d...@cloudstack.apache.org; users@cloudstack.apache.org
>> Subject: ACS 4.5 - volume snapshots NOT removed from CEPH (only from
>> Secondaryt NFS and DB)
>>
>> Hi folks,
>>
>> we enounter issue in ACS 4.5.1 (perhaps other versions also affected) -
>> when we delete some snapshot (volume snapshot) in ACS, ACS marks it as
>> deleted in DB, deletes from NFS Secondary Storage but fails to delete
>> snapshot on CEPH primary storage (doesn even try to delete it AFAIK)
>>
>> So we end up having 5 live snapshots in DB (just example) but actually in
>> CEPH there are more than i.e. 16 snapshots.
>>
>> More of the issue, when ACS agent tries to obtain list of snapshots from
>> CEPH for some volume or so - if number of snapshots is over 16, it raises
>> exception  (and perhaps this is the reason Agent crashed for us - need to
>> check with my colegues who are investigatin this in details). This number
>> 16 is for whatever reasons hardcoded in ACS code.
>>
>> Wondering if anyone experienced this, or have any info - we plan to try to
>> fix this, and I will inlcude my dev colegues here, but we might need some
>> help at least for guidance or-
>>
>> Any help is really apreaciated or at list confirmation that this is known
>> issue etc.
>>
>> Thanks,
>>
>> --
>>
>> Andrija Panić
>>
>
>
>
> --
>
> Andrija Panić
>



-- 

Andrija Panić


Windows 7 sysprep ( Cloudstack KVM )

2015-09-10 Thread Cristian Ciobanu
Hello,

    Did someone tested windows 7 ? i'm curious if works, because i tested and 
works on first boot (with generated password by cloudstack), but if i restart 
the VPS the Administrator password is removed, I'm able to log in via console 
without password, but if i set the password manually again for the 
Administrator, after restart the same thing will happen ( password removed )

I'm not sure if the issue is from sysprep or from cloud instance manager.

Can someone help me ?


Regards,
Cristian

 

Re: VPC VPN Connectivity Issues

2015-09-10 Thread Remi Bergsma
@Jayapal can you verify VPN is supposed to work on Mac OSX or not?




On 10/09/15 01:47, "Jeremy Peterson"  wrote:

>So I'm still looking into this has anyone ever tried this?
>
>Do you have anyone I can talk to?
>
>I've been asking since 8.29.2015
>
>I guess the issue is on a Mac since my VPN network is 10.1.2.0/24 and my VPC 
>network is 192.168.2.0/24 he cannot connect.  
>I tested it out on windows 8, 7, 10, 8.1 all work as expected.
>
>I don't have a Mac I can test with so I was hoping someone here would have any 
>advise.
>
>Jeremy
>
>-Original Message-
>From: Jeremy Peterson [mailto:jpeter...@acentek.net] 
>Sent: Tuesday, September 8, 2015 8:12 AM
>To: users@cloudstack.apache.org
>Subject: RE: VPC VPN Connectivity Issues
>
>No my issue is not resolved I've been reaching out to the IRC channel and have 
>not received notification of anyone knowing what my issue could be.
>
>It would be great to get some traction this week on the issue.  I keep having 
>to open ACL for public access to the servers as this user is unable to get to 
>the server via VPN.
>
>Jeremy
>
>-Original Message-
>From: Remi Bergsma [mailto:rberg...@schubergphilis.com] 
>Sent: Saturday, September 5, 2015 10:11 AM
>To:  
>Subject: Re: VPC VPN Connectivity Issues
>
>Hi Jeremy,
>
>Did you already solve your problem?
>
>Not sure if it is possible to use the IPSec tunnels from remote VPN. Firewall 
>might be too strict, but haven't looked yet. 
>
>Regards, Remi 
>
>Sent from my iPhone
>
>> On 29 Aug 2015, at 17:00, Jeremy Peterson  wrote:
>> 
>> I am not sure if this was asked or answered but googling has led me no where.
>> 
>> 
>> I am running cloudstack 4.5.0,  XenServer 6.5, Advanced networking w/ VLAN 
>> segmentation.
>> 
>> 
>> I have a VPC setup which i am using a IPSec tunnel back to a zywall firewall 
>> and a monowall firewall.
>> 
>> 
>> MonowallCloustack VPCzywall
>> 
>> 192.168.1.0/24192.168.2.0/24192.168.71.0/24
>> 
>> 
>> Tunnels are setup in vpc for both locations and servers in cloudstack can 
>> connect to the world and connect to the monowall and zywall networks.
>> 
>> 
>> Everything is fine with that but when I have a remote user that needs to VPN 
>> into the cloudstack VPC is where i am thrown into a whirlwind of questions.
>> 
>> 
>> I setup a VPN connection on the VR for the VPC.
>> 
>> I setup username/password.
>> 
>> 
>> The user sets up the connection on his Mac OSX and using split tunnel can 
>> connect to the VPN.
>> 
>> 
>> My VPN network is 10.1.2.0/24
>> 
>> 
>> He receives a 10.1.2.3 ip address.
>> 
>> 
>> He is unable to ping the IPSec Tunnel gateways 192.168.1.1 and 192.168.71.1.
>> 
>> 
>> He can get to the world as his default gateway is his router.
>> 
>> 
>> I switched to push all traffic over the VPN to remove the split tunnel.
>> 
>> 
>> He is able to ping the 10.1.2.1 gateway on the VR
>> 
>> 
>> He is able to ping his gateway the VPC router 10.1.2.1.
>> 
>> 
>> He is able to ping the VPC network's gateway 192.168.2.1
>> 
>> He is unable to get to the world.  I try to ping google dns 8.8.8.8 and it 
>> doesnt' get past the VR 10.1.2.1 in traceroutes.
>> 
>> I am looking for help on this as i'm confused.  If I change him back to a 
>> split tunnel as that would be prefered why is the tunnel not annoucing all 
>> networks know to the VR.
>> 
>> I was able to recreate this issue on windows 8.1.
>> 
>> ?Jeremy


Re: ACS 4.5 - volume snapshots NOT removed from CEPH (only from Secondaryt NFS and DB)

2015-09-10 Thread Andrija Panic
Eh, OK. Thx for the info.

BTW why is 16 snapshot limits hardcoded - any reason for that ?

Not cleaning snapshots on CEPH and trying to delete volume after having
more than 16 snapshtos in CEPH = Agent crashing on KVM side...and some VMs
being rebooted etc - which means downtime :|

Thanks,

On 9 September 2015 at 22:05, Simon Weller  wrote:

> Andrija,
>
> The Ceph snapshot deletion is not currently implemented.
>
> See: https://issues.apache.org/jira/browse/CLOUDSTACK-8302
>
> - Si
>
> 
> From: Andrija Panic 
> Sent: Wednesday, September 9, 2015 3:03 PM
> To: d...@cloudstack.apache.org; users@cloudstack.apache.org
> Subject: ACS 4.5 - volume snapshots NOT removed from CEPH (only from
> Secondaryt NFS and DB)
>
> Hi folks,
>
> we enounter issue in ACS 4.5.1 (perhaps other versions also affected) -
> when we delete some snapshot (volume snapshot) in ACS, ACS marks it as
> deleted in DB, deletes from NFS Secondary Storage but fails to delete
> snapshot on CEPH primary storage (doesn even try to delete it AFAIK)
>
> So we end up having 5 live snapshots in DB (just example) but actually in
> CEPH there are more than i.e. 16 snapshots.
>
> More of the issue, when ACS agent tries to obtain list of snapshots from
> CEPH for some volume or so - if number of snapshots is over 16, it raises
> exception  (and perhaps this is the reason Agent crashed for us - need to
> check with my colegues who are investigatin this in details). This number
> 16 is for whatever reasons hardcoded in ACS code.
>
> Wondering if anyone experienced this, or have any info - we plan to try to
> fix this, and I will inlcude my dev colegues here, but we might need some
> help at least for guidance or-
>
> Any help is really apreaciated or at list confirmation that this is known
> issue etc.
>
> Thanks,
>
> --
>
> Andrija Panić
>



-- 

Andrija Panić


Re: VPC VPN Connectivity Issues

2015-09-10 Thread Andrija Panic
Jeremy,

I will give you here my observations and experience on ipsec and remote VPN
 per my experience (anyone please correct me if Im wrong - this is pure
experience, not how it perhaps should be meant to be)

- ipsec tunesl - worked for us always (acs 4.5.1 + kvm - plus vxlan,
previously vlan segmentation - doesnt really matter)
- all remote locations to which you make ipsec tunnels and the VPC
supercidr - must be NON-overlapping IPs/networks = whole VPC super CIDR
must NOT exist on remote end, to avoid routing issue when VR decides to
send packets to remote ipsec tunnel end or not. - obviously this is already
working for you...

- Remote VPN:
- 4.4 had problems with Mac connecting at all, this was fixed in 4.5
- In 4.5 All windows/linux/mac should be able to connect at all.

- When you setup Remote VPN, in order to be able to access IP/VMs inside
VPC, you must route all traffic over VPN connections - or perhaps make
static routes manually after the connection has been established (here you
are - obviousy NOT routing all traffic over internet connection)
- IF you route all traffic over VPC connection - than your laptop will not
have internet access, only access to inside VPC.

First way is better kind od spliting tunnel, but again seting static routes
is PITA.

Hope it helps, ping me with more specific questions if I can help...

Thanks


On 10 September 2015 at 11:31, Remi Bergsma 
wrote:

> @Jayapal can you verify VPN is supposed to work on Mac OSX or not?
>
>
>
>
> On 10/09/15 01:47, "Jeremy Peterson"  wrote:
>
> >So I'm still looking into this has anyone ever tried this?
> >
> >Do you have anyone I can talk to?
> >
> >I've been asking since 8.29.2015
> >
> >I guess the issue is on a Mac since my VPN network is 10.1.2.0/24 and my
> VPC network is 192.168.2.0/24 he cannot connect.
> >I tested it out on windows 8, 7, 10, 8.1 all work as expected.
> >
> >I don't have a Mac I can test with so I was hoping someone here would
> have any advise.
> >
> >Jeremy
> >
> >-Original Message-
> >From: Jeremy Peterson [mailto:jpeter...@acentek.net]
> >Sent: Tuesday, September 8, 2015 8:12 AM
> >To: users@cloudstack.apache.org
> >Subject: RE: VPC VPN Connectivity Issues
> >
> >No my issue is not resolved I've been reaching out to the IRC channel and
> have not received notification of anyone knowing what my issue could be.
> >
> >It would be great to get some traction this week on the issue.  I keep
> having to open ACL for public access to the servers as this user is unable
> to get to the server via VPN.
> >
> >Jeremy
> >
> >-Original Message-
> >From: Remi Bergsma [mailto:rberg...@schubergphilis.com]
> >Sent: Saturday, September 5, 2015 10:11 AM
> >To:  
> >Subject: Re: VPC VPN Connectivity Issues
> >
> >Hi Jeremy,
> >
> >Did you already solve your problem?
> >
> >Not sure if it is possible to use the IPSec tunnels from remote VPN.
> Firewall might be too strict, but haven't looked yet.
> >
> >Regards, Remi
> >
> >Sent from my iPhone
> >
> >> On 29 Aug 2015, at 17:00, Jeremy Peterson 
> wrote:
> >>
> >> I am not sure if this was asked or answered but googling has led me no
> where.
> >>
> >>
> >> I am running cloudstack 4.5.0,  XenServer 6.5, Advanced networking w/
> VLAN segmentation.
> >>
> >>
> >> I have a VPC setup which i am using a IPSec tunnel back to a zywall
> firewall and a monowall firewall.
> >>
> >>
> >> MonowallCloustack VPCzywall
> >>
> >> 192.168.1.0/24192.168.2.0/24192.168.71.0/24
> >>
> >>
> >> Tunnels are setup in vpc for both locations and servers in cloudstack
> can connect to the world and connect to the monowall and zywall networks.
> >>
> >>
> >> Everything is fine with that but when I have a remote user that needs
> to VPN into the cloudstack VPC is where i am thrown into a whirlwind of
> questions.
> >>
> >>
> >> I setup a VPN connection on the VR for the VPC.
> >>
> >> I setup username/password.
> >>
> >>
> >> The user sets up the connection on his Mac OSX and using split tunnel
> can connect to the VPN.
> >>
> >>
> >> My VPN network is 10.1.2.0/24
> >>
> >>
> >> He receives a 10.1.2.3 ip address.
> >>
> >>
> >> He is unable to ping the IPSec Tunnel gateways 192.168.1.1 and
> 192.168.71.1.
> >>
> >>
> >> He can get to the world as his default gateway is his router.
> >>
> >>
> >> I switched to push all traffic over the VPN to remove the split tunnel.
> >>
> >>
> >> He is able to ping the 10.1.2.1 gateway on the VR
> >>
> >>
> >> He is able to ping his gateway the VPC router 10.1.2.1.
> >>
> >>
> >> He is able to ping the VPC network's gateway 192.168.2.1
> >>
> >> He is unable to get to the world.  I try to ping google dns 8.8.8.8 and
> it doesnt' get past the VR 10.1.2.1 in traceroutes.
> >>
> >> I am looking for help on this as i'm confused.  If I change him back to
> a split tunnel as 

Re: Windows 7 sysprep ( Cloudstack KVM )

2015-09-10 Thread Pierre-Luc Dion
Hi Cristian,

What VPS refer to ?  VPC or VR in cloudstack or something else in Windows?

Cheers,


On Thu, Sep 10, 2015 at 5:12 AM, Cristian Ciobanu 
wrote:

> Hello,
>
> Did someone tested windows 7 ? i'm curious if works, because i tested
> and works on first boot (with generated password by cloudstack), but if i
> restart the VPS the Administrator password is removed, I'm able to log in
> via console without password, but if i set the password manually again for
> the Administrator, after restart the same thing will happen ( password
> removed )
>
> I'm not sure if the issue is from sysprep or from cloud instance manager.
>
> Can someone help me ?
>
>
> Regards,
> Cristian
>
>


Re: VPC VPN Connectivity Issues

2015-09-10 Thread Andrija Panic
ok, I also do that, route all traffic over VPN, but in that case, you need
to know Internet stops working on your laptop :) not nice, but good
security :)

On 10 September 2015 at 14:15, Jeremy Peterson 
wrote:

> I first thought of that but he doesn't know root and cannot sudo to add
> routes.
>
> That's why I changed it to a full tunnel pushing all traffic over the VPN.
>
> Jeremy
>
> -Original Message-
> From: Sam Ceylani [mailto:s...@mistercertified.com]
> Sent: Wednesday, September 9, 2015 6:52 PM
> To:  
> Subject: Re: VPC VPN Connectivity Issues
>
> on windows -- vpn client automatically adds route for your vpc network,
> check route -n on mac from terminal to see route is there and add manually
> if required...
>
> Sent from my iPhone
>
> > On Sep 9, 2015, at 7:47 PM, Jeremy Peterson 
> wrote:
> >
> > So I'm still looking into this has anyone ever tried this?
> >
> > Do you have anyone I can talk to?
> >
> > I've been asking since 8.29.2015
> >
> > I guess the issue is on a Mac since my VPN network is 10.1.2.0/24 and
> my VPC network is 192.168.2.0/24 he cannot connect.
> > I tested it out on windows 8, 7, 10, 8.1 all work as expected.
> >
> > I don't have a Mac I can test with so I was hoping someone here would
> have any advise.
> >
> > Jeremy
> >
> > -Original Message-
> > From: Jeremy Peterson [mailto:jpeter...@acentek.net]
> > Sent: Tuesday, September 8, 2015 8:12 AM
> > To: users@cloudstack.apache.org
> > Subject: RE: VPC VPN Connectivity Issues
> >
> > No my issue is not resolved I've been reaching out to the IRC channel
> and have not received notification of anyone knowing what my issue could be.
> >
> > It would be great to get some traction this week on the issue.  I keep
> having to open ACL for public access to the servers as this user is unable
> to get to the server via VPN.
> >
> > Jeremy
> >
> > -Original Message-
> > From: Remi Bergsma [mailto:rberg...@schubergphilis.com]
> > Sent: Saturday, September 5, 2015 10:11 AM
> > To:  
> > Subject: Re: VPC VPN Connectivity Issues
> >
> > Hi Jeremy,
> >
> > Did you already solve your problem?
> >
> > Not sure if it is possible to use the IPSec tunnels from remote VPN.
> Firewall might be too strict, but haven't looked yet.
> >
> > Regards, Remi
> >
> > Sent from my iPhone
> >
> >> On 29 Aug 2015, at 17:00, Jeremy Peterson 
> wrote:
> >>
> >> I am not sure if this was asked or answered but googling has led me no
> where.
> >>
> >>
> >> I am running cloudstack 4.5.0,  XenServer 6.5, Advanced networking w/
> VLAN segmentation.
> >>
> >>
> >> I have a VPC setup which i am using a IPSec tunnel back to a zywall
> firewall and a monowall firewall.
> >>
> >>
> >> MonowallCloustack VPCzywall
> >>
> >> 192.168.1.0/24192.168.2.0/24192.168.71.0/24
> >>
> >>
> >> Tunnels are setup in vpc for both locations and servers in cloudstack
> can connect to the world and connect to the monowall and zywall networks.
> >>
> >>
> >> Everything is fine with that but when I have a remote user that needs
> to VPN into the cloudstack VPC is where i am thrown into a whirlwind of
> questions.
> >>
> >>
> >> I setup a VPN connection on the VR for the VPC.
> >>
> >> I setup username/password.
> >>
> >>
> >> The user sets up the connection on his Mac OSX and using split tunnel
> can connect to the VPN.
> >>
> >>
> >> My VPN network is 10.1.2.0/24
> >>
> >>
> >> He receives a 10.1.2.3 ip address.
> >>
> >>
> >> He is unable to ping the IPSec Tunnel gateways 192.168.1.1 and
> 192.168.71.1.
> >>
> >>
> >> He can get to the world as his default gateway is his router.
> >>
> >>
> >> I switched to push all traffic over the VPN to remove the split tunnel.
> >>
> >>
> >> He is able to ping the 10.1.2.1 gateway on the VR
> >>
> >>
> >> He is able to ping his gateway the VPC router 10.1.2.1.
> >>
> >>
> >> He is able to ping the VPC network's gateway 192.168.2.1
> >>
> >> He is unable to get to the world.  I try to ping google dns 8.8.8.8 and
> it doesnt' get past the VR 10.1.2.1 in traceroutes.
> >>
> >> I am looking for help on this as i'm confused.  If I change him back to
> a split tunnel as that would be prefered why is the tunnel not annoucing
> all networks know to the VR.
> >>
> >> I was able to recreate this issue on windows 8.1.
> >>
> >> ?Jeremy
>



-- 

Andrija Panić


RE: VPC VPN Connectivity Issues

2015-09-10 Thread Jeremy Peterson
I first thought of that but he doesn't know root and cannot sudo to add routes.

That's why I changed it to a full tunnel pushing all traffic over the VPN.

Jeremy

-Original Message-
From: Sam Ceylani [mailto:s...@mistercertified.com] 
Sent: Wednesday, September 9, 2015 6:52 PM
To:  
Subject: Re: VPC VPN Connectivity Issues

on windows -- vpn client automatically adds route for your vpc network, check 
route -n on mac from terminal to see route is there and add manually if 
required...

Sent from my iPhone

> On Sep 9, 2015, at 7:47 PM, Jeremy Peterson  wrote:
> 
> So I'm still looking into this has anyone ever tried this?
> 
> Do you have anyone I can talk to?
> 
> I've been asking since 8.29.2015
> 
> I guess the issue is on a Mac since my VPN network is 10.1.2.0/24 and my VPC 
> network is 192.168.2.0/24 he cannot connect.  
> I tested it out on windows 8, 7, 10, 8.1 all work as expected.
> 
> I don't have a Mac I can test with so I was hoping someone here would have 
> any advise.
> 
> Jeremy
> 
> -Original Message-
> From: Jeremy Peterson [mailto:jpeter...@acentek.net] 
> Sent: Tuesday, September 8, 2015 8:12 AM
> To: users@cloudstack.apache.org
> Subject: RE: VPC VPN Connectivity Issues
> 
> No my issue is not resolved I've been reaching out to the IRC channel and 
> have not received notification of anyone knowing what my issue could be.
> 
> It would be great to get some traction this week on the issue.  I keep having 
> to open ACL for public access to the servers as this user is unable to get to 
> the server via VPN.
> 
> Jeremy
> 
> -Original Message-
> From: Remi Bergsma [mailto:rberg...@schubergphilis.com] 
> Sent: Saturday, September 5, 2015 10:11 AM
> To:  
> Subject: Re: VPC VPN Connectivity Issues
> 
> Hi Jeremy,
> 
> Did you already solve your problem?
> 
> Not sure if it is possible to use the IPSec tunnels from remote VPN. Firewall 
> might be too strict, but haven't looked yet. 
> 
> Regards, Remi 
> 
> Sent from my iPhone
> 
>> On 29 Aug 2015, at 17:00, Jeremy Peterson  wrote:
>> 
>> I am not sure if this was asked or answered but googling has led me no where.
>> 
>> 
>> I am running cloudstack 4.5.0,  XenServer 6.5, Advanced networking w/ VLAN 
>> segmentation.
>> 
>> 
>> I have a VPC setup which i am using a IPSec tunnel back to a zywall firewall 
>> and a monowall firewall.
>> 
>> 
>> MonowallCloustack VPCzywall
>> 
>> 192.168.1.0/24192.168.2.0/24192.168.71.0/24
>> 
>> 
>> Tunnels are setup in vpc for both locations and servers in cloudstack can 
>> connect to the world and connect to the monowall and zywall networks.
>> 
>> 
>> Everything is fine with that but when I have a remote user that needs to VPN 
>> into the cloudstack VPC is where i am thrown into a whirlwind of questions.
>> 
>> 
>> I setup a VPN connection on the VR for the VPC.
>> 
>> I setup username/password.
>> 
>> 
>> The user sets up the connection on his Mac OSX and using split tunnel can 
>> connect to the VPN.
>> 
>> 
>> My VPN network is 10.1.2.0/24
>> 
>> 
>> He receives a 10.1.2.3 ip address.
>> 
>> 
>> He is unable to ping the IPSec Tunnel gateways 192.168.1.1 and 192.168.71.1.
>> 
>> 
>> He can get to the world as his default gateway is his router.
>> 
>> 
>> I switched to push all traffic over the VPN to remove the split tunnel.
>> 
>> 
>> He is able to ping the 10.1.2.1 gateway on the VR
>> 
>> 
>> He is able to ping his gateway the VPC router 10.1.2.1.
>> 
>> 
>> He is able to ping the VPC network's gateway 192.168.2.1
>> 
>> He is unable to get to the world.  I try to ping google dns 8.8.8.8 and it 
>> doesnt' get past the VR 10.1.2.1 in traceroutes.
>> 
>> I am looking for help on this as i'm confused.  If I change him back to a 
>> split tunnel as that would be prefered why is the tunnel not annoucing all 
>> networks know to the VR.
>> 
>> I was able to recreate this issue on windows 8.1.
>> 
>> ?Jeremy


RE: VPC VPN Connectivity Issues

2015-09-10 Thread Jeremy Peterson
Why does internet stop working?

Shouldn't all traffic route to the VR and use the VR's public interface for 
network connectivity?

Jeremy

-Original Message-
From: Andrija Panic [mailto:andrija.pa...@gmail.com] 
Sent: Thursday, September 10, 2015 7:25 AM
To: users@cloudstack.apache.org
Subject: Re: VPC VPN Connectivity Issues

ok, I also do that, route all traffic over VPN, but in that case, you need to 
know Internet stops working on your laptop :) not nice, but good security :)

On 10 September 2015 at 14:15, Jeremy Peterson 
wrote:

> I first thought of that but he doesn't know root and cannot sudo to 
> add routes.
>
> That's why I changed it to a full tunnel pushing all traffic over the VPN.
>
> Jeremy
>
> -Original Message-
> From: Sam Ceylani [mailto:s...@mistercertified.com]
> Sent: Wednesday, September 9, 2015 6:52 PM
> To:  
> Subject: Re: VPC VPN Connectivity Issues
>
> on windows -- vpn client automatically adds route for your vpc 
> network, check route -n on mac from terminal to see route is there and 
> add manually if required...
>
> Sent from my iPhone
>
> > On Sep 9, 2015, at 7:47 PM, Jeremy Peterson 
> wrote:
> >
> > So I'm still looking into this has anyone ever tried this?
> >
> > Do you have anyone I can talk to?
> >
> > I've been asking since 8.29.2015
> >
> > I guess the issue is on a Mac since my VPN network is 10.1.2.0/24 
> > and
> my VPC network is 192.168.2.0/24 he cannot connect.
> > I tested it out on windows 8, 7, 10, 8.1 all work as expected.
> >
> > I don't have a Mac I can test with so I was hoping someone here 
> > would
> have any advise.
> >
> > Jeremy
> >
> > -Original Message-
> > From: Jeremy Peterson [mailto:jpeter...@acentek.net]
> > Sent: Tuesday, September 8, 2015 8:12 AM
> > To: users@cloudstack.apache.org
> > Subject: RE: VPC VPN Connectivity Issues
> >
> > No my issue is not resolved I've been reaching out to the IRC 
> > channel
> and have not received notification of anyone knowing what my issue could be.
> >
> > It would be great to get some traction this week on the issue.  I 
> > keep
> having to open ACL for public access to the servers as this user is 
> unable to get to the server via VPN.
> >
> > Jeremy
> >
> > -Original Message-
> > From: Remi Bergsma [mailto:rberg...@schubergphilis.com]
> > Sent: Saturday, September 5, 2015 10:11 AM
> > To:  
> > Subject: Re: VPC VPN Connectivity Issues
> >
> > Hi Jeremy,
> >
> > Did you already solve your problem?
> >
> > Not sure if it is possible to use the IPSec tunnels from remote VPN.
> Firewall might be too strict, but haven't looked yet.
> >
> > Regards, Remi
> >
> > Sent from my iPhone
> >
> >> On 29 Aug 2015, at 17:00, Jeremy Peterson 
> wrote:
> >>
> >> I am not sure if this was asked or answered but googling has led me 
> >> no
> where.
> >>
> >>
> >> I am running cloudstack 4.5.0,  XenServer 6.5, Advanced networking 
> >> w/
> VLAN segmentation.
> >>
> >>
> >> I have a VPC setup which i am using a IPSec tunnel back to a zywall
> firewall and a monowall firewall.
> >>
> >>
> >> MonowallCloustack VPCzywall
> >>
> >> 192.168.1.0/24192.168.2.0/24192.168.71.0/24
> >>
> >>
> >> Tunnels are setup in vpc for both locations and servers in 
> >> cloudstack
> can connect to the world and connect to the monowall and zywall networks.
> >>
> >>
> >> Everything is fine with that but when I have a remote user that 
> >> needs
> to VPN into the cloudstack VPC is where i am thrown into a whirlwind 
> of questions.
> >>
> >>
> >> I setup a VPN connection on the VR for the VPC.
> >>
> >> I setup username/password.
> >>
> >>
> >> The user sets up the connection on his Mac OSX and using split 
> >> tunnel
> can connect to the VPN.
> >>
> >>
> >> My VPN network is 10.1.2.0/24
> >>
> >>
> >> He receives a 10.1.2.3 ip address.
> >>
> >>
> >> He is unable to ping the IPSec Tunnel gateways 192.168.1.1 and
> 192.168.71.1.
> >>
> >>
> >> He can get to the world as his default gateway is his router.
> >>
> >>
> >> I switched to push all traffic over the VPN to remove the split tunnel.
> >>
> >>
> >> He is able to ping the 10.1.2.1 gateway on the VR
> >>
> >>
> >> He is able to ping his gateway the VPC router 10.1.2.1.
> >>
> >>
> >> He is able to ping the VPC network's gateway 192.168.2.1
> >>
> >> He is unable to get to the world.  I try to ping google dns 8.8.8.8 
> >> and
> it doesnt' get past the VR 10.1.2.1 in traceroutes.
> >>
> >> I am looking for help on this as i'm confused.  If I change him 
> >> back to
> a split tunnel as that would be prefered why is the tunnel not 
> annoucing all networks know to the VR.
> >>
> >> I was able to recreate this issue on windows 8.1.
> >>
> >> ?Jeremy
>



-- 

Andrija Panić


Re: VPC VPN Connectivity Issues

2015-09-10 Thread Andrija Panic
Logic makes sense I agree, but I'm not aware of the cause of this
behaviour,
It's simply at the moment how it works - you can isseu Jira ticket to
improve this I guess...

On 10 September 2015 at 14:29, Jeremy Peterson 
wrote:

> Why does internet stop working?
>
> Shouldn't all traffic route to the VR and use the VR's public interface
> for network connectivity?
>
> Jeremy
>
> -Original Message-
> From: Andrija Panic [mailto:andrija.pa...@gmail.com]
> Sent: Thursday, September 10, 2015 7:25 AM
> To: users@cloudstack.apache.org
> Subject: Re: VPC VPN Connectivity Issues
>
> ok, I also do that, route all traffic over VPN, but in that case, you need
> to know Internet stops working on your laptop :) not nice, but good
> security :)
>
> On 10 September 2015 at 14:15, Jeremy Peterson 
> wrote:
>
> > I first thought of that but he doesn't know root and cannot sudo to
> > add routes.
> >
> > That's why I changed it to a full tunnel pushing all traffic over the
> VPN.
> >
> > Jeremy
> >
> > -Original Message-
> > From: Sam Ceylani [mailto:s...@mistercertified.com]
> > Sent: Wednesday, September 9, 2015 6:52 PM
> > To:  
> > Subject: Re: VPC VPN Connectivity Issues
> >
> > on windows -- vpn client automatically adds route for your vpc
> > network, check route -n on mac from terminal to see route is there and
> > add manually if required...
> >
> > Sent from my iPhone
> >
> > > On Sep 9, 2015, at 7:47 PM, Jeremy Peterson 
> > wrote:
> > >
> > > So I'm still looking into this has anyone ever tried this?
> > >
> > > Do you have anyone I can talk to?
> > >
> > > I've been asking since 8.29.2015
> > >
> > > I guess the issue is on a Mac since my VPN network is 10.1.2.0/24
> > > and
> > my VPC network is 192.168.2.0/24 he cannot connect.
> > > I tested it out on windows 8, 7, 10, 8.1 all work as expected.
> > >
> > > I don't have a Mac I can test with so I was hoping someone here
> > > would
> > have any advise.
> > >
> > > Jeremy
> > >
> > > -Original Message-
> > > From: Jeremy Peterson [mailto:jpeter...@acentek.net]
> > > Sent: Tuesday, September 8, 2015 8:12 AM
> > > To: users@cloudstack.apache.org
> > > Subject: RE: VPC VPN Connectivity Issues
> > >
> > > No my issue is not resolved I've been reaching out to the IRC
> > > channel
> > and have not received notification of anyone knowing what my issue could
> be.
> > >
> > > It would be great to get some traction this week on the issue.  I
> > > keep
> > having to open ACL for public access to the servers as this user is
> > unable to get to the server via VPN.
> > >
> > > Jeremy
> > >
> > > -Original Message-
> > > From: Remi Bergsma [mailto:rberg...@schubergphilis.com]
> > > Sent: Saturday, September 5, 2015 10:11 AM
> > > To:  
> > > Subject: Re: VPC VPN Connectivity Issues
> > >
> > > Hi Jeremy,
> > >
> > > Did you already solve your problem?
> > >
> > > Not sure if it is possible to use the IPSec tunnels from remote VPN.
> > Firewall might be too strict, but haven't looked yet.
> > >
> > > Regards, Remi
> > >
> > > Sent from my iPhone
> > >
> > >> On 29 Aug 2015, at 17:00, Jeremy Peterson 
> > wrote:
> > >>
> > >> I am not sure if this was asked or answered but googling has led me
> > >> no
> > where.
> > >>
> > >>
> > >> I am running cloudstack 4.5.0,  XenServer 6.5, Advanced networking
> > >> w/
> > VLAN segmentation.
> > >>
> > >>
> > >> I have a VPC setup which i am using a IPSec tunnel back to a zywall
> > firewall and a monowall firewall.
> > >>
> > >>
> > >> MonowallCloustack VPCzywall
> > >>
> > >> 192.168.1.0/24192.168.2.0/24192.168.71.0/24
> > >>
> > >>
> > >> Tunnels are setup in vpc for both locations and servers in
> > >> cloudstack
> > can connect to the world and connect to the monowall and zywall networks.
> > >>
> > >>
> > >> Everything is fine with that but when I have a remote user that
> > >> needs
> > to VPN into the cloudstack VPC is where i am thrown into a whirlwind
> > of questions.
> > >>
> > >>
> > >> I setup a VPN connection on the VR for the VPC.
> > >>
> > >> I setup username/password.
> > >>
> > >>
> > >> The user sets up the connection on his Mac OSX and using split
> > >> tunnel
> > can connect to the VPN.
> > >>
> > >>
> > >> My VPN network is 10.1.2.0/24
> > >>
> > >>
> > >> He receives a 10.1.2.3 ip address.
> > >>
> > >>
> > >> He is unable to ping the IPSec Tunnel gateways 192.168.1.1 and
> > 192.168.71.1.
> > >>
> > >>
> > >> He can get to the world as his default gateway is his router.
> > >>
> > >>
> > >> I switched to push all traffic over the VPN to remove the split
> tunnel.
> > >>
> > >>
> > >> He is able to ping the 10.1.2.1 gateway on the VR
> > >>
> > >>
> > >> He is able to ping his gateway the VPC router 10.1.2.1.
> > >>
> > 

Packer and CloudStack

2015-09-10 Thread Hany Fahim
Hi Folks,

I’m currently looking into adopting Packer  to build
images for CloudStack easily. I’ve been looking in packer-cloudstack
 plugin, but
unfortunately there have been some backwards incompatible changes made to
Packer that prevents this plugin from working. We do not have direct access
to the CloudStack installation we’re working with, and only have the API
available to us.

I’d like to ask the community if anyone else has got Packer to work in some
form with CloudStack? At the very least, we’re looking for a way for Packer
to produce VHD images that can be imported into CloudStack manually.

Any help would be appreciated.
​


Hany Fahim
VM Farms
http://vmfarms.com
h...@vmfarms.com
1-866-278-0021 x700
Twitter: @vmfarms


Re: Windows 7 sysprep ( Cloudstack KVM )

2015-09-10 Thread Cristian Ciobanu
Hello,

     For VR, i found the solution for. I used the CloudbaseInit  (usually used 
for openstack)


Regards,
Cristian

On 9/10/2015 2:49:28 PM, Pierre-Luc Dion  wrote:
Hi Cristian,

What VPS refer to ? VPC or VR in cloudstack or something else in Windows?

Cheers,


On Thu, Sep 10, 2015 at 5:12 AM, Cristian Ciobanu
wrote:

> Hello,
>
> Did someone tested windows 7 ? i'm curious if works, because i tested
> and works on first boot (with generated password by cloudstack), but if i
> restart the VPS the Administrator password is removed, I'm able to log in
> via console without password, but if i set the password manually again for
> the Administrator, after restart the same thing will happen ( password
> removed )
>
> I'm not sure if the issue is from sysprep or from cloud instance manager.
>
> Can someone help me ?
>
>
> Regards,
> Cristian
>
>


Re: Cloudmonkey doubt

2015-09-10 Thread Prashant s
you can also use a forloop

first get all your projects


> list projects domainid=ec1fd5f6-b5c8-11e3-89aa-b208915c1447 filter=id


then list your vms in projects


> !for i in `cat useast-projects` ; do cloudmonkey list virtualmachines
domainid=ac45a97a-a54b-11e3-a5ba-42c77b0ab567 projectid=$i
filter=name,id,ipaddress,hostname,instancename


hope this helps

On Tue, Sep 8, 2015 at 3:20 AM, Fernando Guillén Camba <
fernando.guil...@usc.es> wrote:

> Ok that works perfectly.
> Thanks for the help.
>
> El 05/09/15 a las 17:07, Remi Bergsma escribió:
>
> If you specify projectid=-1 you get all vms from all projects. I usually
> do two calls, one for all non-projects and another for all project vms.
> It's not cloudmonkey, it's the api.
>
> Sent from my iPhone
>
> On 03 Sep 2015, at 14:37, Fernando Guillén Camba 
> wrote:
>
> Hi
>
> I'm trying to automate a few things with Cloudmonkey and I'm having
> problems with the following behaviour:
> If I issue the command
>
> list virtualmachines listall=true
>
> I get a list of all VM except the ones in projects
> if I issue the command
>
> list virtualmachines projectid=**id** listall=true
>
> I get a list of the virtualmachines of that  project.
>
> ¿Is there a way of listing all the virtual machines, both those owned by
> users and those in projects? ¿Is there some kind of wildcard I can use?
> If someone can offer me some way of listing all the VM in a domain I will
> be most grateful.
>
> I'm using Cloudmonkey 5.3.1 with CS 4.5.2
>
>
> --
>   Fernando Guillén Camba
>  Unidade de Xestión de
> Infraestruturas TIC [image: E-mail:] fernando.guil...@usc.es
>  · [image: Phone:] +34 881816409 
> citius.usc.es  ·  citiususc
> 
>
>
>
> --
> [image: CiTIUS]  Fernando Guillén Camba
>  Unidade de Xestión de
> Infraestruturas TIC [image: E-mail:] fernando.guil...@usc.es
>  · [image: Phone:] +34 881816409 [image:
> Website:] citius.usc.es  · [image: Twitter:]
> citiususc 
>


Re: Packer and CloudStack

2015-09-10 Thread Hany Fahim
Thanks for the quick reply Tim!

I actually stumbled on this project during my research. If my understanding
is correct, this requires access to an XenServer host. I unfortunately only
have access to the CloudStack API and not the underlying XenServer
hypervisor. Is it possible to use this tool without access to the XenServer?



Hany Fahim
VM Farms
http://vmfarms.com
h...@vmfarms.com
1-866-278-0021 x700
Twitter: @vmfarms

On Thu, Sep 10, 2015 at 10:58 AM, Tim Mackey  wrote:

> Hany,
>
> Take a look at this: https://github.com/xenserverarmy/packer.  I updated
> it
> last week for the changes in Packer 0.8.6, and have tested it with
> XenServer 6.2 and 6.5.  Here are the things you might want to know which
> I've not updated in the README.MD:
>
> - There are two builders, xenserver-iso and xenserver-vm.  xenserver-iso
> creates an artifact from an ISO (requires a XenServer ISO SR and will
> automatically download the ISO if not present).  xenserver-vm creates an
> artifact from a pre-existing VM which could be running.  Both builders
> assume an NFS SR is present (by-product of a limitation in an earlier
> implementation).  I plan on removing that requirement next week.
> - Any provisioners you wish to define will work, provided they use the SSH
> communicator.  I'm still working on the WinRM communicator
> - There is a cloudstack-xenserver post-processor which will upload the VHD
> artifact to your CloudStack instance.  It only requires API access.  If the
> CloudStack instance is remote, tell the post-processor to compress,
> otherwise leave it uncompressed (faster)
>
> If you run into problems or have questions, just ask, and I do accept pull
> requests.  Since this is your first time with this project, I'm very
> interested in any "first use" problems such that the README can be updated.
>
> -tim
>
> On Thu, Sep 10, 2015 at 8:30 AM, Hany Fahim  wrote:
>
> > Hi Folks,
> >
> > I’m currently looking into adopting Packer  to build
> > images for CloudStack easily. I’ve been looking in packer-cloudstack
> >  plugin, but
> > unfortunately there have been some backwards incompatible changes made to
> > Packer that prevents this plugin from working. We do not have direct
> access
> > to the CloudStack installation we’re working with, and only have the API
> > available to us.
> >
> > I’d like to ask the community if anyone else has got Packer to work in
> some
> > form with CloudStack? At the very least, we’re looking for a way for
> Packer
> > to produce VHD images that can be imported into CloudStack manually.
> >
> > Any help would be appreciated.
> > ​
> >
> > 
> > Hany Fahim
> > VM Farms
> > http://vmfarms.com
> > h...@vmfarms.com
> > 1-866-278-0021 x700
> > Twitter: @vmfarms
> >
>


Re: Packer and CloudStack

2015-09-10 Thread Tim Mackey
Hany,

It does require a XenServer host, call it a "build host", but that host can
be anywhere including local to you (actually preferable).  The "build host"
also doesn't have to even remotely match the capabilities of the hosts in
the CloudStack instance, including things like storage and networking.

The idea is that you create your VM locally to your specifications, and
then upload it into whatever XenServer backed CloudStack instance you're
using.  If you happen to know what you want and can define it in a
kickstart file, then go with xenserver-iso and let it do all the heavy
lifting.  If you might need to tweak on stuff, create the VM within
XenServer and do the tweaking, then when you're happy use xenserver-vm to
do all the heavy lifting.  There is also an intermediate stage which uses
both paths, but that doesn't sound like it would work for you.

I'm happy to walk you through this in a bit more detail, either here on the
list or if you want something a bit more interactive, I'm @xenserverarmy on
Twitter

-tim

On Thu, Sep 10, 2015 at 11:02 AM, Hany Fahim  wrote:

> Thanks for the quick reply Tim!
>
> I actually stumbled on this project during my research. If my understanding
> is correct, this requires access to an XenServer host. I unfortunately only
> have access to the CloudStack API and not the underlying XenServer
> hypervisor. Is it possible to use this tool without access to the
> XenServer?
>
>
> 
> Hany Fahim
> VM Farms
> http://vmfarms.com
> h...@vmfarms.com
> 1-866-278-0021 x700
> Twitter: @vmfarms
>
> On Thu, Sep 10, 2015 at 10:58 AM, Tim Mackey  wrote:
>
> > Hany,
> >
> > Take a look at this: https://github.com/xenserverarmy/packer.  I updated
> > it
> > last week for the changes in Packer 0.8.6, and have tested it with
> > XenServer 6.2 and 6.5.  Here are the things you might want to know which
> > I've not updated in the README.MD:
> >
> > - There are two builders, xenserver-iso and xenserver-vm.  xenserver-iso
> > creates an artifact from an ISO (requires a XenServer ISO SR and will
> > automatically download the ISO if not present).  xenserver-vm creates an
> > artifact from a pre-existing VM which could be running.  Both builders
> > assume an NFS SR is present (by-product of a limitation in an earlier
> > implementation).  I plan on removing that requirement next week.
> > - Any provisioners you wish to define will work, provided they use the
> SSH
> > communicator.  I'm still working on the WinRM communicator
> > - There is a cloudstack-xenserver post-processor which will upload the
> VHD
> > artifact to your CloudStack instance.  It only requires API access.  If
> the
> > CloudStack instance is remote, tell the post-processor to compress,
> > otherwise leave it uncompressed (faster)
> >
> > If you run into problems or have questions, just ask, and I do accept
> pull
> > requests.  Since this is your first time with this project, I'm very
> > interested in any "first use" problems such that the README can be
> updated.
> >
> > -tim
> >
> > On Thu, Sep 10, 2015 at 8:30 AM, Hany Fahim  wrote:
> >
> > > Hi Folks,
> > >
> > > I’m currently looking into adopting Packer  to
> build
> > > images for CloudStack easily. I’ve been looking in packer-cloudstack
> > >  plugin, but
> > > unfortunately there have been some backwards incompatible changes made
> to
> > > Packer that prevents this plugin from working. We do not have direct
> > access
> > > to the CloudStack installation we’re working with, and only have the
> API
> > > available to us.
> > >
> > > I’d like to ask the community if anyone else has got Packer to work in
> > some
> > > form with CloudStack? At the very least, we’re looking for a way for
> > Packer
> > > to produce VHD images that can be imported into CloudStack manually.
> > >
> > > Any help would be appreciated.
> > > ​
> > >
> > > 
> > > Hany Fahim
> > > VM Farms
> > > http://vmfarms.com
> > > h...@vmfarms.com
> > > 1-866-278-0021 x700
> > > Twitter: @vmfarms
> > >
> >
>


Re: Packer and CloudStack

2015-09-10 Thread Tim Mackey
Hany,

Take a look at this: https://github.com/xenserverarmy/packer.  I updated it
last week for the changes in Packer 0.8.6, and have tested it with
XenServer 6.2 and 6.5.  Here are the things you might want to know which
I've not updated in the README.MD:

- There are two builders, xenserver-iso and xenserver-vm.  xenserver-iso
creates an artifact from an ISO (requires a XenServer ISO SR and will
automatically download the ISO if not present).  xenserver-vm creates an
artifact from a pre-existing VM which could be running.  Both builders
assume an NFS SR is present (by-product of a limitation in an earlier
implementation).  I plan on removing that requirement next week.
- Any provisioners you wish to define will work, provided they use the SSH
communicator.  I'm still working on the WinRM communicator
- There is a cloudstack-xenserver post-processor which will upload the VHD
artifact to your CloudStack instance.  It only requires API access.  If the
CloudStack instance is remote, tell the post-processor to compress,
otherwise leave it uncompressed (faster)

If you run into problems or have questions, just ask, and I do accept pull
requests.  Since this is your first time with this project, I'm very
interested in any "first use" problems such that the README can be updated.

-tim

On Thu, Sep 10, 2015 at 8:30 AM, Hany Fahim  wrote:

> Hi Folks,
>
> I’m currently looking into adopting Packer  to build
> images for CloudStack easily. I’ve been looking in packer-cloudstack
>  plugin, but
> unfortunately there have been some backwards incompatible changes made to
> Packer that prevents this plugin from working. We do not have direct access
> to the CloudStack installation we’re working with, and only have the API
> available to us.
>
> I’d like to ask the community if anyone else has got Packer to work in some
> form with CloudStack? At the very least, we’re looking for a way for Packer
> to produce VHD images that can be imported into CloudStack manually.
>
> Any help would be appreciated.
> ​
>
> 
> Hany Fahim
> VM Farms
> http://vmfarms.com
> h...@vmfarms.com
> 1-866-278-0021 x700
> Twitter: @vmfarms
>


Re: Packer and CloudStack

2015-09-10 Thread Hany Fahim
Thanks a lot Tim for the thorough explanation. I haven't thought about
using a local XenServer to act as the "build host". I'll need to look into
getting my hands on some hardware to install XenServer. It's good to know
this is an option.

Are there alternative methods out there that can allow one to build Packer
artifacts using just a local laptop? Reducing dependencies would be a huge
bonus.



Hany Fahim
VM Farms
http://vmfarms.com
h...@vmfarms.com
1-866-278-0021 x700
Twitter: @vmfarms

On Thu, Sep 10, 2015 at 11:39 AM, Tim Mackey  wrote:

> Hany,
>
> It does require a XenServer host, call it a "build host", but that host can
> be anywhere including local to you (actually preferable).  The "build host"
> also doesn't have to even remotely match the capabilities of the hosts in
> the CloudStack instance, including things like storage and networking.
>
> The idea is that you create your VM locally to your specifications, and
> then upload it into whatever XenServer backed CloudStack instance you're
> using.  If you happen to know what you want and can define it in a
> kickstart file, then go with xenserver-iso and let it do all the heavy
> lifting.  If you might need to tweak on stuff, create the VM within
> XenServer and do the tweaking, then when you're happy use xenserver-vm to
> do all the heavy lifting.  There is also an intermediate stage which uses
> both paths, but that doesn't sound like it would work for you.
>
> I'm happy to walk you through this in a bit more detail, either here on the
> list or if you want something a bit more interactive, I'm @xenserverarmy on
> Twitter
>
> -tim
>
> On Thu, Sep 10, 2015 at 11:02 AM, Hany Fahim  wrote:
>
> > Thanks for the quick reply Tim!
> >
> > I actually stumbled on this project during my research. If my
> understanding
> > is correct, this requires access to an XenServer host. I unfortunately
> only
> > have access to the CloudStack API and not the underlying XenServer
> > hypervisor. Is it possible to use this tool without access to the
> > XenServer?
> >
> >
> > 
> > Hany Fahim
> > VM Farms
> > http://vmfarms.com
> > h...@vmfarms.com
> > 1-866-278-0021 x700
> > Twitter: @vmfarms
> >
> > On Thu, Sep 10, 2015 at 10:58 AM, Tim Mackey  wrote:
> >
> > > Hany,
> > >
> > > Take a look at this: https://github.com/xenserverarmy/packer.  I
> updated
> > > it
> > > last week for the changes in Packer 0.8.6, and have tested it with
> > > XenServer 6.2 and 6.5.  Here are the things you might want to know
> which
> > > I've not updated in the README.MD:
> > >
> > > - There are two builders, xenserver-iso and xenserver-vm.
> xenserver-iso
> > > creates an artifact from an ISO (requires a XenServer ISO SR and will
> > > automatically download the ISO if not present).  xenserver-vm creates
> an
> > > artifact from a pre-existing VM which could be running.  Both builders
> > > assume an NFS SR is present (by-product of a limitation in an earlier
> > > implementation).  I plan on removing that requirement next week.
> > > - Any provisioners you wish to define will work, provided they use the
> > SSH
> > > communicator.  I'm still working on the WinRM communicator
> > > - There is a cloudstack-xenserver post-processor which will upload the
> > VHD
> > > artifact to your CloudStack instance.  It only requires API access.  If
> > the
> > > CloudStack instance is remote, tell the post-processor to compress,
> > > otherwise leave it uncompressed (faster)
> > >
> > > If you run into problems or have questions, just ask, and I do accept
> > pull
> > > requests.  Since this is your first time with this project, I'm very
> > > interested in any "first use" problems such that the README can be
> > updated.
> > >
> > > -tim
> > >
> > > On Thu, Sep 10, 2015 at 8:30 AM, Hany Fahim  wrote:
> > >
> > > > Hi Folks,
> > > >
> > > > I’m currently looking into adopting Packer  to
> > build
> > > > images for CloudStack easily. I’ve been looking in packer-cloudstack
> > > >  plugin, but
> > > > unfortunately there have been some backwards incompatible changes
> made
> > to
> > > > Packer that prevents this plugin from working. We do not have direct
> > > access
> > > > to the CloudStack installation we’re working with, and only have the
> > API
> > > > available to us.
> > > >
> > > > I’d like to ask the community if anyone else has got Packer to work
> in
> > > some
> > > > form with CloudStack? At the very least, we’re looking for a way for
> > > Packer
> > > > to produce VHD images that can be imported into CloudStack manually.
> > > >
> > > > Any help would be appreciated.
> > > > ​
> > > >
> > > > 
> > > > Hany Fahim
> > > > VM Farms
> > > > http://vmfarms.com
> > > > h...@vmfarms.com
> > > > 1-866-278-0021 x700
> > > > Twitter: @vmfarms
> > > >
> > >
> >
>


Re: Packer and CloudStack

2015-09-10 Thread Pierre-Luc Dion
Hello Hany,

I think Erik did some work with Packer and CloudStack, I don't know if he
would have some insight here.
Erik, are you still planning to do a talk at CCCEU15?


Cheers,


On Thu, Sep 10, 2015 at 1:14 PM, Hany Fahim  wrote:

> Thanks a lot Tim for the thorough explanation. I haven't thought about
> using a local XenServer to act as the "build host". I'll need to look into
> getting my hands on some hardware to install XenServer. It's good to know
> this is an option.
>
> Are there alternative methods out there that can allow one to build Packer
> artifacts using just a local laptop? Reducing dependencies would be a huge
> bonus.
>
>
> 
> Hany Fahim
> VM Farms
> http://vmfarms.com
> h...@vmfarms.com
> 1-866-278-0021 x700
> Twitter: @vmfarms
>
> On Thu, Sep 10, 2015 at 11:39 AM, Tim Mackey  wrote:
>
> > Hany,
> >
> > It does require a XenServer host, call it a "build host", but that host
> can
> > be anywhere including local to you (actually preferable).  The "build
> host"
> > also doesn't have to even remotely match the capabilities of the hosts in
> > the CloudStack instance, including things like storage and networking.
> >
> > The idea is that you create your VM locally to your specifications, and
> > then upload it into whatever XenServer backed CloudStack instance you're
> > using.  If you happen to know what you want and can define it in a
> > kickstart file, then go with xenserver-iso and let it do all the heavy
> > lifting.  If you might need to tweak on stuff, create the VM within
> > XenServer and do the tweaking, then when you're happy use xenserver-vm to
> > do all the heavy lifting.  There is also an intermediate stage which uses
> > both paths, but that doesn't sound like it would work for you.
> >
> > I'm happy to walk you through this in a bit more detail, either here on
> the
> > list or if you want something a bit more interactive, I'm @xenserverarmy
> on
> > Twitter
> >
> > -tim
> >
> > On Thu, Sep 10, 2015 at 11:02 AM, Hany Fahim  wrote:
> >
> > > Thanks for the quick reply Tim!
> > >
> > > I actually stumbled on this project during my research. If my
> > understanding
> > > is correct, this requires access to an XenServer host. I unfortunately
> > only
> > > have access to the CloudStack API and not the underlying XenServer
> > > hypervisor. Is it possible to use this tool without access to the
> > > XenServer?
> > >
> > >
> > > 
> > > Hany Fahim
> > > VM Farms
> > > http://vmfarms.com
> > > h...@vmfarms.com
> > > 1-866-278-0021 x700
> > > Twitter: @vmfarms
> > >
> > > On Thu, Sep 10, 2015 at 10:58 AM, Tim Mackey 
> wrote:
> > >
> > > > Hany,
> > > >
> > > > Take a look at this: https://github.com/xenserverarmy/packer.  I
> > updated
> > > > it
> > > > last week for the changes in Packer 0.8.6, and have tested it with
> > > > XenServer 6.2 and 6.5.  Here are the things you might want to know
> > which
> > > > I've not updated in the README.MD:
> > > >
> > > > - There are two builders, xenserver-iso and xenserver-vm.
> > xenserver-iso
> > > > creates an artifact from an ISO (requires a XenServer ISO SR and will
> > > > automatically download the ISO if not present).  xenserver-vm creates
> > an
> > > > artifact from a pre-existing VM which could be running.  Both
> builders
> > > > assume an NFS SR is present (by-product of a limitation in an earlier
> > > > implementation).  I plan on removing that requirement next week.
> > > > - Any provisioners you wish to define will work, provided they use
> the
> > > SSH
> > > > communicator.  I'm still working on the WinRM communicator
> > > > - There is a cloudstack-xenserver post-processor which will upload
> the
> > > VHD
> > > > artifact to your CloudStack instance.  It only requires API access.
> If
> > > the
> > > > CloudStack instance is remote, tell the post-processor to compress,
> > > > otherwise leave it uncompressed (faster)
> > > >
> > > > If you run into problems or have questions, just ask, and I do accept
> > > pull
> > > > requests.  Since this is your first time with this project, I'm very
> > > > interested in any "first use" problems such that the README can be
> > > updated.
> > > >
> > > > -tim
> > > >
> > > > On Thu, Sep 10, 2015 at 8:30 AM, Hany Fahim 
> wrote:
> > > >
> > > > > Hi Folks,
> > > > >
> > > > > I’m currently looking into adopting Packer  to
> > > build
> > > > > images for CloudStack easily. I’ve been looking in
> packer-cloudstack
> > > > >  plugin, but
> > > > > unfortunately there have been some backwards incompatible changes
> > made
> > > to
> > > > > Packer that prevents this plugin from working. We do not have
> direct
> > > > access
> > > > > to the CloudStack installation we’re working with, and only have
> the
> > > API
> > > > > available to us.
> > > > >
> > > > > I’d like to ask the community if anyone else has 

Unable to create a deployment for VM (Additional DATADISK - API-job)

2015-09-10 Thread Cristian Ciobanu

Hello,

    I have a problem when i try to deploy a VM with DATADISK via API, i don't 
have any issue when i deploy from the CS interface.

I found some logs on CS MGMT:

==> management-server.log <==
2015-09-10 19:07:19,584 DEBUG [c.c.a.ApiServlet] (catalina-exec-21:ctx-60c7d3d4 
ctx-a0298b0c ctx-9750e753) ===END===  5.135.217.237 -- GET  
account=client_3_1=nZ72olHQnj4Ap25Wyfmlp2nU0S2kib-gg1JBN6_nWy-h8rYg2o2p6LBRmidFJTkxKxYT_Eao6GquFIF62sdpRQ=deployVirtualMachine=0bc04371-2d2d-4a52-8094-7f25abb1e32b=cadaver=6aef553f-aa33-4db2-815a-1b0f0b575645=cadaver=json=59bdf4c6-9cca-4f35-a050-ac6b64c74cda=e873ac1f-b95b-48be-863e-0d81c5307995=a85f1632-0718-4e67-b7c6-00d566121bf4=qJHb2yDblfKlbAYWXXVTB9oc%2BHY%3D
2015-09-10 19:07:19,585 DEBUG [o.a.c.a.BaseCmd] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) Ignoring paremeter 
displayvm as the caller is not authorized to pass it in
2015-09-10 19:07:19,585 DEBUG [o.a.c.a.BaseCmd] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) Ignoring paremeter 
deploymentplanner as the caller is not authorized to pass it in
===

2015-09-10 19:07:19,846 WARN  [o.a.c.alerts] (API-Job-Executor-91:ctx-71d92d17 
job-754 ctx-38551c18)  alertType:: 8 // dataCenterId:: 1 // podId:: null // 
clusterId:: null // message:: Failed to deploy Vm with Id: 72, on Host with Id: 
null
2015-09-10 19:07:19,929 INFO  [o.a.c.a.c.u.v.DeployVMCmd] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) 
com.cloud.exception.InsufficientServerCapacityException: Unable to create a 
deployment for VM[User|i-6-72-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2015-09-10 19:07:19,929 INFO  [o.a.c.a.c.u.v.DeployVMCmd] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) Unable to create a 
deployment for VM[User|i-6-72-VM]
==

Can i get some help ? Thanks !


Regards,
Cristian

 

RE: Unable to create a deployment for VM (Additional DATADISK - API-job)

2015-09-10 Thread Somesh Naidu
Cristian,

First off, I would recommend masking information such as apikey, signature, 
public IPs, etc. when posting on the list for security reasons.

The reason for failure as per logs is "InsufficientServerCapacityException" 
however, from the logs snippets it is not possible to find the root cause. 
Also, I suspect the "InsufficientServerCapacityException" is a consequential 
error, that is, result of all the compute/storage resources ending up in the 
avoid set. What caused the compute/storage resource to end up in that list is 
the root cause. You should trace "job-754" and look for the initial failure.

Alternately, you could compare API call you're using vs the one generated via 
CS GUI to see for any differences. It will also help to know version of CS 
(looks like pre 4.5) and hypervisor. 

Regards,
Somesh

-Original Message-
From: Cristian Ciobanu [mailto:cristian.c@istream.today] 
Sent: Thursday, September 10, 2015 1:18 PM
To: users@cloudstack.apache.org
Subject: Unable to create a deployment for VM (Additional DATADISK - API-job)


Hello,

    I have a problem when i try to deploy a VM with DATADISK via API, i don't 
have any issue when i deploy from the CS interface.

I found some logs on CS MGMT:

==> management-server.log <==
2015-09-10 19:07:19,584 DEBUG [c.c.a.ApiServlet] (catalina-exec-21:ctx-60c7d3d4 
ctx-a0298b0c ctx-9750e753) ===END===  5.135.217.237 -- GET  
account=client_3_1=nZ72olHQnj4Ap25Wyfmlp2nU0S2kib-gg1JBN6_nWy-h8rYg2o2p6LBRmidFJTkxKxYT_Eao6GquFIF62sdpRQ=deployVirtualMachine=0bc04371-2d2d-4a52-8094-7f25abb1e32b=cadaver=6aef553f-aa33-4db2-815a-1b0f0b575645=cadaver=json=59bdf4c6-9cca-4f35-a050-ac6b64c74cda=e873ac1f-b95b-48be-863e-0d81c5307995=a85f1632-0718-4e67-b7c6-00d566121bf4=qJHb2yDblfKlbAYWXXVTB9oc%2BHY%3D
2015-09-10 19:07:19,585 DEBUG [o.a.c.a.BaseCmd] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) Ignoring paremeter 
displayvm as the caller is not authorized to pass it in
2015-09-10 19:07:19,585 DEBUG [o.a.c.a.BaseCmd] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) Ignoring paremeter 
deploymentplanner as the caller is not authorized to pass it in
===

2015-09-10 19:07:19,846 WARN  [o.a.c.alerts] (API-Job-Executor-91:ctx-71d92d17 
job-754 ctx-38551c18)  alertType:: 8 // dataCenterId:: 1 // podId:: null // 
clusterId:: null // message:: Failed to deploy Vm with Id: 72, on Host with Id: 
null
2015-09-10 19:07:19,929 INFO  [o.a.c.a.c.u.v.DeployVMCmd] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) 
com.cloud.exception.InsufficientServerCapacityException: Unable to create a 
deployment for VM[User|i-6-72-VM]Scope=interface com.cloud.dc.DataCenter; id=1
2015-09-10 19:07:19,929 INFO  [o.a.c.a.c.u.v.DeployVMCmd] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) Unable to create a 
deployment for VM[User|i-6-72-VM]
==

Can i get some help ? Thanks !


Regards,
Cristian

 


Re: Packer and CloudStack

2015-09-10 Thread Erik Weber
My talk was based on packer-cloudstack, and was made before the changes to
packer.

As mentioned in the issues thread on GitHub, Sander @ SBP plans to make
this a packer built in builder. I don't know if he has gotten around to
start on this yet, but the current best option is to try to get packer
0.7.5 going, or use packer-xenserver as Tim mentioned.


Unfortunately I no longer have travel funding and won't be able to attend
CCCEU this year :-(


Erik
Den torsdag 10. september 2015 skrev Pierre-Luc Dion 
følgende:

> Hello Hany,
>
> I think Erik did some work with Packer and CloudStack, I don't know if he
> would have some insight here.
> Erik, are you still planning to do a talk at CCCEU15?
>
>
> Cheers,
>
>
> On Thu, Sep 10, 2015 at 1:14 PM, Hany Fahim  > wrote:
>
>> Thanks a lot Tim for the thorough explanation. I haven't thought about
>> using a local XenServer to act as the "build host". I'll need to look into
>> getting my hands on some hardware to install XenServer. It's good to know
>> this is an option.
>>
>> Are there alternative methods out there that can allow one to build Packer
>> artifacts using just a local laptop? Reducing dependencies would be a huge
>> bonus.
>>
>>
>> 
>> Hany Fahim
>> VM Farms
>> http://vmfarms.com
>> h...@vmfarms.com 
>> 1-866-278-0021 x700
>> Twitter: @vmfarms
>>
>> On Thu, Sep 10, 2015 at 11:39 AM, Tim Mackey > > wrote:
>>
>> > Hany,
>> >
>> > It does require a XenServer host, call it a "build host", but that host
>> can
>> > be anywhere including local to you (actually preferable).  The "build
>> host"
>> > also doesn't have to even remotely match the capabilities of the hosts
>> in
>> > the CloudStack instance, including things like storage and networking.
>> >
>> > The idea is that you create your VM locally to your specifications, and
>> > then upload it into whatever XenServer backed CloudStack instance you're
>> > using.  If you happen to know what you want and can define it in a
>> > kickstart file, then go with xenserver-iso and let it do all the heavy
>> > lifting.  If you might need to tweak on stuff, create the VM within
>> > XenServer and do the tweaking, then when you're happy use xenserver-vm
>> to
>> > do all the heavy lifting.  There is also an intermediate stage which
>> uses
>> > both paths, but that doesn't sound like it would work for you.
>> >
>> > I'm happy to walk you through this in a bit more detail, either here on
>> the
>> > list or if you want something a bit more interactive, I'm
>> @xenserverarmy on
>> > Twitter
>> >
>> > -tim
>> >
>> > On Thu, Sep 10, 2015 at 11:02 AM, Hany Fahim > > wrote:
>> >
>> > > Thanks for the quick reply Tim!
>> > >
>> > > I actually stumbled on this project during my research. If my
>> > understanding
>> > > is correct, this requires access to an XenServer host. I unfortunately
>> > only
>> > > have access to the CloudStack API and not the underlying XenServer
>> > > hypervisor. Is it possible to use this tool without access to the
>> > > XenServer?
>> > >
>> > >
>> > > 
>> > > Hany Fahim
>> > > VM Farms
>> > > http://vmfarms.com
>> > > h...@vmfarms.com 
>> > > 1-866-278-0021 x700
>> > > Twitter: @vmfarms
>> > >
>> > > On Thu, Sep 10, 2015 at 10:58 AM, Tim Mackey > > wrote:
>> > >
>> > > > Hany,
>> > > >
>> > > > Take a look at this: https://github.com/xenserverarmy/packer.  I
>> > updated
>> > > > it
>> > > > last week for the changes in Packer 0.8.6, and have tested it with
>> > > > XenServer 6.2 and 6.5.  Here are the things you might want to know
>> > which
>> > > > I've not updated in the README.MD:
>> > > >
>> > > > - There are two builders, xenserver-iso and xenserver-vm.
>> > xenserver-iso
>> > > > creates an artifact from an ISO (requires a XenServer ISO SR and
>> will
>> > > > automatically download the ISO if not present).  xenserver-vm
>> creates
>> > an
>> > > > artifact from a pre-existing VM which could be running.  Both
>> builders
>> > > > assume an NFS SR is present (by-product of a limitation in an
>> earlier
>> > > > implementation).  I plan on removing that requirement next week.
>> > > > - Any provisioners you wish to define will work, provided they use
>> the
>> > > SSH
>> > > > communicator.  I'm still working on the WinRM communicator
>> > > > - There is a cloudstack-xenserver post-processor which will upload
>> the
>> > > VHD
>> > > > artifact to your CloudStack instance.  It only requires API
>> access.  If
>> > > the
>> > > > CloudStack instance is remote, tell the post-processor to compress,
>> > > > otherwise leave it uncompressed (faster)
>> > > >
>> > > > If you run into 

RE: Unable to create a deployment for VM (Additional DATADISK - API-job)

2015-09-10 Thread Cristian Ciobanu
Hello,

    Thanks for the help!

Regards,
Cristian



 
On 9/10/2015 9:34:18 PM, Somesh Naidu  wrote:
> 2015-09-10 19:07:19,638 DEBUG [o.a.c.s.a.ClusterScopeStoragePoolAllocator] 
> (API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) No storage pools 
> available for shared volume allocation, returning
> 2015-09-10 19:07:19,638 DEBUG [o.a.c.s.a.ZoneWideStoragePoolAllocator] 
> (API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) 
> ZoneWideStoragePoolAllocator to find storage pool
> 2015-09-10 19:07:19,638 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
> (API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) No suitable pools 
> found for volume: Vol[99|vm=72|DATADISK] under cluster: 1
> 2015-09-10 19:07:19,638 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
> (API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) No suitable pools 
> found
> 2015-09-10 19:07:19,638 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
> (API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) No suitable 
> storagePools found under this Cluster: 1

Looks like the service offering you are using has storage type set to shared 
while none exists.

Regards,
Somesh


-Original Message-
From: Cristian Ciobanu [mailto:cristian.c@istream.today]
Sent: Thursday, September 10, 2015 2:25 PM
To: users@cloudstack.apache.org
Subject: RE: Unable to create a deployment for VM (Additional DATADISK - 
API-job)

Hello,

   Thanks for answer and suggestion ( is a testing environment )

   Also i did a grep for the job-754, and i found more events about this 
problem ( I use CS 4.5.2 with KVM on CentOS-6.6, Local Storage enabled,basic 
network )

[root@mgcs management]# cat  *.log | grep job-754
2015-09-10 19:07:19,581 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
(API-Job-Executor-91:ctx-71d92d17 job-754) Add job-754 into job monitoring
2015-09-10 19:07:19,583 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(catalina-exec-21:ctx-60c7d3d4 ctx-a0298b0c ctx-9750e753) submit async job-754, 
details: AsyncJobVO {id:754, userId: 6, accountId: 6, instanceType: 
VirtualMachine, instanceId: 72, cmd: 
org.apache.cloudstack.api.command.user.vm.DeployVMCmd, cmdInfo: 
{"serviceofferingid":"59bdf4c6-9cca-4f35-a050-ac6b64c74cda","cmdEventType":"VM.CREATE","ctxUserId":"6","zoneid":"a85f1632-0718-4e67-b7c6-00d566121bf4","httpmethod":"GET","templateid":"e873ac1f-b95b-48be-863e-0d81c5307995","domainid":"6aef553f-aa33-4db2-815a-1b0f0b575645","apikey":"notherealapiyfmlp2nU0S2kib-gg1JBN6_nWy-h8rYg2o2p6LBRmidFJTkxKxYT_Eao6GquFIF62sdpRQ","id":"72","response":"json","ctxDetails":"{\"com.cloud.template.VirtualMachineTemplate\":\"e873ac1f-b95b-48be-863e-0d81c5307995\",\"com.cloud.vm.VirtualMachine\":\"650d158e-b3f4-4009-ab62-c64467ab785d\",\"com.cloud.offering.DiskOffering\":\"0bc04371-2d2d-4a52-8094-7f25abb1e32b\",\"com.cloud.domain.Domain\":\"6aef553f-aa33-4db2-815a-1b0f0b575645\",\"com.cloud.dc.DataCenter\":\"a85f1632-0718-4e67-b7c6-00d566121bf4\",\"com.cloud.offering.ServiceOffering\":\"59bdf4c6-9cca-4f35-a050-ac6b64c74cda\"}","name":"cadaver","account":"client_3_1","uuid":"650d158e-b3f4-4009-ab62-c64467ab785d","ctxAccountId":"6","diskofferingid":"0bc04371-2d2d-4a52-8094-7f25abb1e32b","ctxStartEventId":"1512","signature":"qJHb2yDblfKlbAYWXXVTB9oc+HY\u003d","displayname":"cadaver"},
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 14038006851726, completeMsid: null, lastUpdated: null, 
lastPolled: null, created: null}
2015-09-10 19:07:19,583 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-91:ctx-71d92d17 job-754) Executing AsyncJobVO {id:754, 
userId: 6, accountId: 6, instanceType: VirtualMachine, instanceId: 72, cmd: 
org.apache.cloudstack.api.command.user.vm.DeployVMCmd, cmdInfo: 
{"serviceofferingid":"59bdf4c6-9cca-4f35-a050-ac6b64c74cda","cmdEventType":"VM.CREATE","ctxUserId":"6","zoneid":"a85f1632-0718-4e67-b7c6-00d566121bf4","httpmethod":"GET","templateid":"e873ac1f-b95b-48be-863e-0d81c5307995","domainid":"6aef553f-aa33-4db2-815a-1b0f0b575645","apikey":"notherealapiyfmlp2nU0S2kib-gg1JBN6_nWy-h8rYg2o2p6LBRmidFJTkxKxYT_Eao6GquFIF62sdpRQ","id":"72","response":"json","ctxDetails":"{\"com.cloud.template.VirtualMachineTemplate\":\"e873ac1f-b95b-48be-863e-0d81c5307995\",\"com.cloud.vm.VirtualMachine\":\"650d158e-b3f4-4009-ab62-c64467ab785d\",\"com.cloud.offering.DiskOffering\":\"0bc04371-2d2d-4a52-8094-7f25abb1e32b\",\"com.cloud.domain.Domain\":\"6aef553f-aa33-4db2-815a-1b0f0b575645\",\"com.cloud.dc.DataCenter\":\"a85f1632-0718-4e67-b7c6-00d566121bf4\",\"com.cloud.offering.ServiceOffering\":\"59bdf4c6-9cca-4f35-a050-ac6b64c74cda\"}","name":"cadaver","account":"client_3_1","uuid":"650d158e-b3f4-4009-ab62-c64467ab785d","ctxAccountId":"6","diskofferingid":"0bc04371-2d2d-4a52-8094-7f25abb1e32b","ctxStartEventId":"1512","signature":"qJHb2yDblfKlbAYWXXVTB9oc+HY\u003d","displayname":"cadaver"},
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 14038006851726, 

RE: Unable to create a deployment for VM (Additional DATADISK - API-job)

2015-09-10 Thread Cristian Ciobanu
Hello,

   Thanks for answer and suggestion ( is a testing environment )

   Also i did a grep for the job-754, and i found more events about this 
problem ( I use CS 4.5.2 with KVM on CentOS-6.6, Local Storage enabled,basic 
network )

[root@mgcs management]# cat  *.log | grep job-754
2015-09-10 19:07:19,581 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
(API-Job-Executor-91:ctx-71d92d17 job-754) Add job-754 into job monitoring
2015-09-10 19:07:19,583 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(catalina-exec-21:ctx-60c7d3d4 ctx-a0298b0c ctx-9750e753) submit async job-754, 
details: AsyncJobVO {id:754, userId: 6, accountId: 6, instanceType: 
VirtualMachine, instanceId: 72, cmd: 
org.apache.cloudstack.api.command.user.vm.DeployVMCmd, cmdInfo: 
{"serviceofferingid":"59bdf4c6-9cca-4f35-a050-ac6b64c74cda","cmdEventType":"VM.CREATE","ctxUserId":"6","zoneid":"a85f1632-0718-4e67-b7c6-00d566121bf4","httpmethod":"GET","templateid":"e873ac1f-b95b-48be-863e-0d81c5307995","domainid":"6aef553f-aa33-4db2-815a-1b0f0b575645","apikey":"notherealapiyfmlp2nU0S2kib-gg1JBN6_nWy-h8rYg2o2p6LBRmidFJTkxKxYT_Eao6GquFIF62sdpRQ","id":"72","response":"json","ctxDetails":"{\"com.cloud.template.VirtualMachineTemplate\":\"e873ac1f-b95b-48be-863e-0d81c5307995\",\"com.cloud.vm.VirtualMachine\":\"650d158e-b3f4-4009-ab62-c64467ab785d\",\"com.cloud.offering.DiskOffering\":\"0bc04371-2d2d-4a52-8094-7f25abb1e32b\",\"com.cloud.domain.Domain\":\"6aef553f-aa33-4db2-815a-1b0f0b575645\",\"com.cloud.dc.DataCenter\":\"a85f1632-0718-4e67-b7c6-00d566121bf4\",\"com.cloud.offering.ServiceOffering\":\"59bdf4c6-9cca-4f35-a050-ac6b64c74cda\"}","name":"cadaver","account":"client_3_1","uuid":"650d158e-b3f4-4009-ab62-c64467ab785d","ctxAccountId":"6","diskofferingid":"0bc04371-2d2d-4a52-8094-7f25abb1e32b","ctxStartEventId":"1512","signature":"qJHb2yDblfKlbAYWXXVTB9oc+HY\u003d","displayname":"cadaver"},
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 14038006851726, completeMsid: null, lastUpdated: null, 
lastPolled: null, created: null}
2015-09-10 19:07:19,583 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-91:ctx-71d92d17 job-754) Executing AsyncJobVO {id:754, 
userId: 6, accountId: 6, instanceType: VirtualMachine, instanceId: 72, cmd: 
org.apache.cloudstack.api.command.user.vm.DeployVMCmd, cmdInfo: 
{"serviceofferingid":"59bdf4c6-9cca-4f35-a050-ac6b64c74cda","cmdEventType":"VM.CREATE","ctxUserId":"6","zoneid":"a85f1632-0718-4e67-b7c6-00d566121bf4","httpmethod":"GET","templateid":"e873ac1f-b95b-48be-863e-0d81c5307995","domainid":"6aef553f-aa33-4db2-815a-1b0f0b575645","apikey":"notherealapiyfmlp2nU0S2kib-gg1JBN6_nWy-h8rYg2o2p6LBRmidFJTkxKxYT_Eao6GquFIF62sdpRQ","id":"72","response":"json","ctxDetails":"{\"com.cloud.template.VirtualMachineTemplate\":\"e873ac1f-b95b-48be-863e-0d81c5307995\",\"com.cloud.vm.VirtualMachine\":\"650d158e-b3f4-4009-ab62-c64467ab785d\",\"com.cloud.offering.DiskOffering\":\"0bc04371-2d2d-4a52-8094-7f25abb1e32b\",\"com.cloud.domain.Domain\":\"6aef553f-aa33-4db2-815a-1b0f0b575645\",\"com.cloud.dc.DataCenter\":\"a85f1632-0718-4e67-b7c6-00d566121bf4\",\"com.cloud.offering.ServiceOffering\":\"59bdf4c6-9cca-4f35-a050-ac6b64c74cda\"}","name":"cadaver","account":"client_3_1","uuid":"650d158e-b3f4-4009-ab62-c64467ab785d","ctxAccountId":"6","diskofferingid":"0bc04371-2d2d-4a52-8094-7f25abb1e32b","ctxStartEventId":"1512","signature":"qJHb2yDblfKlbAYWXXVTB9oc+HY\u003d","displayname":"cadaver"},
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 14038006851726, completeMsid: null, lastUpdated: null, 
lastPolled: null, created: null}
2015-09-10 19:07:19,585 DEBUG [o.a.c.a.BaseCmd] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) Ignoring paremeter 
displayvm as the caller is not authorized to pass it in
2015-09-10 19:07:19,585 DEBUG [o.a.c.a.BaseCmd] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) Ignoring paremeter 
deploymentplanner as the caller is not authorized to pass it in
2015-09-10 19:07:19,589 DEBUG [c.c.u.AccountManagerImpl] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) Access to 
Acct[d5ef6a91-1933-42f1-9704-1b4080ad79da-client_3_1] granted to 
Acct[d5ef6a91-1933-42f1-9704-1b4080ad79da-client_3_1] by DomainChecker
2015-09-10 19:07:19,591 DEBUG [c.c.u.AccountManagerImpl] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) Access to 
Acct[d5ef6a91-1933-42f1-9704-1b4080ad79da-client_3_1] granted to 
Acct[d5ef6a91-1933-42f1-9704-1b4080ad79da-client_3_1] by DomainChecker
2015-09-10 19:07:19,593 DEBUG [c.c.u.AccountManagerImpl] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) Access to 
Tmpl[203-QCOW2-203-2-9dc340ec-e3ba-3a71-bb56-bc9b7d19e1d9 granted to 
Acct[d5ef6a91-1933-42f1-9704-1b4080ad79da-client_3_1] by DomainChecker
2015-09-10 19:07:19,593 DEBUG [o.a.c.a.BaseCmd] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) Ignoring paremeter 
displayvm as the caller is not authorized to pass it in
2015-09-10 

RE: Unable to create a deployment for VM (Additional DATADISK - API-job)

2015-09-10 Thread Somesh Naidu
> 2015-09-10 19:07:19,638 DEBUG [o.a.c.s.a.ClusterScopeStoragePoolAllocator] 
> (API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) No storage pools 
> available for shared volume allocation, returning
> 2015-09-10 19:07:19,638 DEBUG [o.a.c.s.a.ZoneWideStoragePoolAllocator] 
> (API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) 
> ZoneWideStoragePoolAllocator to find storage pool
> 2015-09-10 19:07:19,638 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
> (API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) No suitable pools 
> found for volume: Vol[99|vm=72|DATADISK] under cluster: 1
> 2015-09-10 19:07:19,638 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
> (API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) No suitable pools 
> found
> 2015-09-10 19:07:19,638 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
> (API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) No suitable 
> storagePools found under this Cluster: 1

Looks like the service offering you are using has storage type set to shared 
while none exists.

Regards,
Somesh


-Original Message-
From: Cristian Ciobanu [mailto:cristian.c@istream.today] 
Sent: Thursday, September 10, 2015 2:25 PM
To: users@cloudstack.apache.org
Subject: RE: Unable to create a deployment for VM (Additional DATADISK - 
API-job)

Hello,

   Thanks for answer and suggestion ( is a testing environment )

   Also i did a grep for the job-754, and i found more events about this 
problem ( I use CS 4.5.2 with KVM on CentOS-6.6, Local Storage enabled,basic 
network )

[root@mgcs management]# cat  *.log | grep job-754
2015-09-10 19:07:19,581 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
(API-Job-Executor-91:ctx-71d92d17 job-754) Add job-754 into job monitoring
2015-09-10 19:07:19,583 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(catalina-exec-21:ctx-60c7d3d4 ctx-a0298b0c ctx-9750e753) submit async job-754, 
details: AsyncJobVO {id:754, userId: 6, accountId: 6, instanceType: 
VirtualMachine, instanceId: 72, cmd: 
org.apache.cloudstack.api.command.user.vm.DeployVMCmd, cmdInfo: 
{"serviceofferingid":"59bdf4c6-9cca-4f35-a050-ac6b64c74cda","cmdEventType":"VM.CREATE","ctxUserId":"6","zoneid":"a85f1632-0718-4e67-b7c6-00d566121bf4","httpmethod":"GET","templateid":"e873ac1f-b95b-48be-863e-0d81c5307995","domainid":"6aef553f-aa33-4db2-815a-1b0f0b575645","apikey":"notherealapiyfmlp2nU0S2kib-gg1JBN6_nWy-h8rYg2o2p6LBRmidFJTkxKxYT_Eao6GquFIF62sdpRQ","id":"72","response":"json","ctxDetails":"{\"com.cloud.template.VirtualMachineTemplate\":\"e873ac1f-b95b-48be-863e-0d81c5307995\",\"com.cloud.vm.VirtualMachine\":\"650d158e-b3f4-4009-ab62-c64467ab785d\",\"com.cloud.offering.DiskOffering\":\"0bc04371-2d2d-4a52-8094-7f25abb1e32b\",\"com.cloud.domain.Domain\":\"6aef553f-aa33-4db2-815a-1b0f0b575645\",\"com.cloud.dc.DataCenter\":\"a85f1632-0718-4e67-b7c6-00d566121bf4\",\"com.cloud.offering.ServiceOffering\":\"59bdf4c6-9cca-4f35-a050-ac6b64c74cda\"}","name":"cadaver","account":"client_3_1","uuid":"650d158e-b3f4-4009-ab62-c64467ab785d","ctxAccountId":"6","diskofferingid":"0bc04371-2d2d-4a52-8094-7f25abb1e32b","ctxStartEventId":"1512","signature":"qJHb2yDblfKlbAYWXXVTB9oc+HY\u003d","displayname":"cadaver"},
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 14038006851726, completeMsid: null, lastUpdated: null, 
lastPolled: null, created: null}
2015-09-10 19:07:19,583 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-91:ctx-71d92d17 job-754) Executing AsyncJobVO {id:754, 
userId: 6, accountId: 6, instanceType: VirtualMachine, instanceId: 72, cmd: 
org.apache.cloudstack.api.command.user.vm.DeployVMCmd, cmdInfo: 
{"serviceofferingid":"59bdf4c6-9cca-4f35-a050-ac6b64c74cda","cmdEventType":"VM.CREATE","ctxUserId":"6","zoneid":"a85f1632-0718-4e67-b7c6-00d566121bf4","httpmethod":"GET","templateid":"e873ac1f-b95b-48be-863e-0d81c5307995","domainid":"6aef553f-aa33-4db2-815a-1b0f0b575645","apikey":"notherealapiyfmlp2nU0S2kib-gg1JBN6_nWy-h8rYg2o2p6LBRmidFJTkxKxYT_Eao6GquFIF62sdpRQ","id":"72","response":"json","ctxDetails":"{\"com.cloud.template.VirtualMachineTemplate\":\"e873ac1f-b95b-48be-863e-0d81c5307995\",\"com.cloud.vm.VirtualMachine\":\"650d158e-b3f4-4009-ab62-c64467ab785d\",\"com.cloud.offering.DiskOffering\":\"0bc04371-2d2d-4a52-8094-7f25abb1e32b\",\"com.cloud.domain.Domain\":\"6aef553f-aa33-4db2-815a-1b0f0b575645\",\"com.cloud.dc.DataCenter\":\"a85f1632-0718-4e67-b7c6-00d566121bf4\",\"com.cloud.offering.ServiceOffering\":\"59bdf4c6-9cca-4f35-a050-ac6b64c74cda\"}","name":"cadaver","account":"client_3_1","uuid":"650d158e-b3f4-4009-ab62-c64467ab785d","ctxAccountId":"6","diskofferingid":"0bc04371-2d2d-4a52-8094-7f25abb1e32b","ctxStartEventId":"1512","signature":"qJHb2yDblfKlbAYWXXVTB9oc+HY\u003d","displayname":"cadaver"},
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 14038006851726, completeMsid: null, lastUpdated: null, 
lastPolled: null, created: null}
2015-09-10 19:07:19,585 DEBUG [o.a.c.a.BaseCmd] 

RE: listStoragePools does not exist or it is not available for user with id

2015-09-10 Thread Somesh Naidu
I hope you realize that this API is only available to ROOT Admin users.

Regards,
Somesh


-Original Message-
From: Vadim Kimlaychuk [mailto:va...@kickcloud.net] 
Sent: Thursday, September 10, 2015 2:00 AM
To: users@cloudstack.apache.org
Cc: Cristian Ciobanu
Subject: Re: listStoragePools does not exist or it is not available for user 
with id

Cristian,

I see "4.5.2" in api call in log. Haven't noticed it before. I 
may only suggest to call the same function from UI with the same user ID 
and check log for correct API request parameters. I haven't been using 
API so much, but signature calculation was always problematic for me, so 
I copied it from the log.

Vadim.


> Cristian,
> 
> It would be nice to know which CS version do you use? :)
> 
> Vadim
> 
> On 2015-⁠09-⁠10 00:01, Cristian Ciobanu wrote:
> 
>> Hello,
>> 
>> I have the following issue when i call the API, can someone tell me 
>> what is wrong on my configuration ?
>> 
>> 2015-09-09 22:56:35,071 INFO [a.c.c.a.ApiServer] 
>> (catalina-exec-2:ctx-9f0b0be5 ctx-88500807 ctx-da66b9f0) (userId=4 
>> accountId=4 sessionId=null) 172.20.217.237 -- GET 
>> apikey=YldqK50HK18FPp4bGvUvO-0l4OFG67Bsa_BbpSWXH3sUPw7h7dbQVEzjil5yyYv41r9cReUr2cPXUi2bUHUx1g=listCapabilities=json=5b9PvDifkSK2JB1WJ1ssaVq1v%2BM%3D
>>  
>> 200 
>> {"listcapabilitiesresponse":{"capability":{"securitygroupsenabled":false,"cloudstackversion":"4.5.2","userpublictemplateenabled":true,"supportELB":"false","projectinviterequired":false,"allowusercreateprojects":true,"customdiskofferingminsize":1,"customdiskofferingmaxsize":1024,"regionsecondaryenabled":false,"kvmsnapshotenabled":false}}}
>> 2015-09-09 22:56:35,089 INFO [a.c.c.a.ApiServer] 
>> (catalina-exec-4:ctx-eee702f9 ctx-da90e1a6) 172.20.217.237 -- GET 
>> apikey=YldqK50HK18FPp4bGvUvO-0l4OFG67Bsa_BbpSWXH3sUPw7h7dbQVEzjil5yyYv41r9cReUr2cPXUi2bUHUx1g=listStoragePools=json=u9bX0SoqNm7wmO9uAln5YzAnTak%3D
>>  
>> 432 The given command:listStoragePools does not exist or it is not 
>> available for user with id:null
>> 
>> Thanks
>> 
>> Regards,
>> Cristian


RE: Unable to add Ceph KVM node in cloudstack

2015-09-10 Thread Shetty, Pradeep
I have one question:

Is ceph rbd protocol supported by default on libvirt version 
0.10.2-54.el6.x86_64 OR do we need to compile libvirt to support rbd within 
cloudstack.

Regards,
Pradeep


-Original Message-
From: Vadim Kimlaychuk [mailto:va...@kickcloud.net] 
Sent: 09 September 2015 12:07
To: users@cloudstack.apache.org
Cc: Shetty, Pradeep
Subject: RE: Unable to add Ceph KVM node in cloudstack

Pradeep,

I have installed CS 4.2 with Ceph storage successfully around year ago. 
There were no problem with configuration except the fact that you can't 
configure RBD storage as primary storage during Zone set-up. 
It must be NFS.
After Zone is set-up and running you may add another primary storage 
and there you have list of choices where RBD type is present. 
After RBD is added you may assign this as default storage for particular 
cluster assuming that each cluster has its own primary storage.

PS. I have also used Ceph object gateway to connect secondary storage. 
It works as expected. It would be nice to know which way are you going to 
integrate Ceph into CS?

Vadim.

On 2015-09-09 08:09, Shetty, Pradeep wrote:

> Please share steps for adding ceph RBD as primary storage using KVM 
> hypervisor in cloudstack.
> 
> We are well aware of the best practices/recommendations for cloudstack.
> 
> Regards,
> Pradeep
> 
> -Original Message-
> From: Vadim Kimlaychuk [mailto:va...@kickcloud.net]
> Sent: 08 September 2015 12:14
> To: users@cloudstack.apache.org
> Subject: RE: Unable to add Ceph KVM node in cloudstack
> 
> Pradeep,
> 
> From documentation :
> Warning -- It is NOT recommended to run services on this host not 
> controlled by CloudStack.
> 
> Good practice -- KVM host must be virgin-clean.
> 
> Vadim.
> 
> On 2015-09-08 09:14, Shetty, Pradeep wrote:
> 
> Hello Vadim,
> 
> We have followed the same guide and using OVS version 2.3.2 .
> 
> Ceph storage cluster is running on same KVM hypervisor and it fails 
> when adding to cloudstack.
> 
> Regards,
> Pradeep
> 
> -Original Message-
> From: Vadim Kimlaychuk [mailto:va...@kickcloud.net]
> Sent: 08 September 2015 11:34
> To: users@cloudstack.apache.org
> Cc: Shetty, Pradeep
> Subject: Re: Unable to add Ceph KVM node in cloudstack
> 
> Hello Shetty,
> 
> It seems you agent or libvirt configuration is wrong. Please, specify 
> also do you use OVS or Linux bridge?
> Did you follow this guide?
> http://cloudstack-installation.readthedocs.org/en/latest/hypervisor/kv
> [1]
> m.html
> [1 [2]]
> 
> Regards,
> 
> Vadim
> 
> On 2015-09-08 08:18, Shetty, Pradeep wrote:
> 
> Hello Folks,
> 
> We are working on ceph(hammer, 0.94.3) implementation on kvm 
> hypervisor(centos 6.5) which will be integrated on cloudstack(4.4.2),
> 
> --- Single KVM node( OS- CentOS 6.5, libvirt-0.10.2-54.el6.x86_64, 
> openvswitch 2.3.2) + ceph hammer, cluster health is Ok.
> 
> We are unable to add the KVM host(new cluster) in cloudstack in an 
> existing zone, below is the error log.
> 
> > agent log-- libvirt: XML-RPC error : Cannot write data: Broken
> pipe
> 03/09/2015 13:13:15 4882 jsvc.exec error: Service exit with a return 
> value of 143
> 
> Please let us know the exact steps to add Ceph KVM host to cloudstack.
> 
> Thanks,
> Pradeep

  Links:
  --
  [1]
  
http://cloudstack-installation.readthedocs.org/en/latest/hypervisor/kvm.html
[2]



Links:
--
[1] 
http://cloudstack-installation.readthedocs.org/en/latest/hypervisor/kv
[2] 
http://cloudstack-installation.readthedocs.org/en/latest/hypervisor/kvm.html


Re: CCP-4.5.0: Adding additional interfaces are not accepting on VMs if the VM has vm snapshots

2015-09-10 Thread Mike Tutkowski
This code looks pretty "sure" of itself (so I'm thinking it's not a bug to
prohibit this action):

// Check that Vm does not have VM Snapshots

if (_vmSnapshotDao.findByVm(vmId).size() > 0) {

throw new InvalidParameterValueException("NIC cannot be added
to VM with VM Snapshots");

}

The logic above is in UserVmManagerImpl.java (in the addNicToVirtualMachine
method).

I believe we also prohibit adding data disks to VMs that have one or more
VM snapshots on them.

On Tue, Sep 8, 2015 at 12:59 AM, anil lakineni <
anilkumar459.lakin...@gmail.com> wrote:

> Hi All,
>
> We are facing issues when adding additional interfaces on VMs if VM has vm
> snapshots. Issue is VM not accepting to add additional interface due to VM
> snapshots.
>
> Error is: *Add netowrk to VM Action failed - Service Exception : NIC cannot
> be added to VM with VM Snapshots*
>
> I believe that this is not a correct behaviour of CloudPlatform, because we
> are able to add additional interfaces on VMs with VM snapshots in remaining
> versions of Cloud Stack.
>
> Is it a bug on CCP 4.5.0?? Please let me know if I have to change/modify
> any values at CCP
> I will be Waiting for your valuable inputs. Thanks in advance.
>
> Using CitrixCloudPlatform 4.5.0 and XenServer 6.2 hosts
>
> Regards,
> Anil.
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkow...@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
*™*


Re: listStoragePools does not exist or it is not available for user with id

2015-09-10 Thread Vadim Kimlaychuk

Cristian,

   I see "4.5.2" in api call in log. Haven't noticed it before. I 
may only suggest to call the same function from UI with the same user ID 
and check log for correct API request parameters. I haven't been using 
API so much, but signature calculation was always problematic for me, so 
I copied it from the log.


Vadim.



Cristian,

It would be nice to know which CS version do you use? :)

Vadim

On 2015-⁠09-⁠10 00:01, Cristian Ciobanu wrote:


Hello,

I have the following issue when i call the API, can someone tell me 
what is wrong on my configuration ?


2015-09-09 22:56:35,071 INFO [a.c.c.a.ApiServer] 
(catalina-exec-2:ctx-9f0b0be5 ctx-88500807 ctx-da66b9f0) (userId=4 
accountId=4 sessionId=null) 172.20.217.237 -- GET 
apikey=YldqK50HK18FPp4bGvUvO-0l4OFG67Bsa_BbpSWXH3sUPw7h7dbQVEzjil5yyYv41r9cReUr2cPXUi2bUHUx1g=listCapabilities=json=5b9PvDifkSK2JB1WJ1ssaVq1v%2BM%3D 
200 
{"listcapabilitiesresponse":{"capability":{"securitygroupsenabled":false,"cloudstackversion":"4.5.2","userpublictemplateenabled":true,"supportELB":"false","projectinviterequired":false,"allowusercreateprojects":true,"customdiskofferingminsize":1,"customdiskofferingmaxsize":1024,"regionsecondaryenabled":false,"kvmsnapshotenabled":false}}}
2015-09-09 22:56:35,089 INFO [a.c.c.a.ApiServer] 
(catalina-exec-4:ctx-eee702f9 ctx-da90e1a6) 172.20.217.237 -- GET 
apikey=YldqK50HK18FPp4bGvUvO-0l4OFG67Bsa_BbpSWXH3sUPw7h7dbQVEzjil5yyYv41r9cReUr2cPXUi2bUHUx1g=listStoragePools=json=u9bX0SoqNm7wmO9uAln5YzAnTak%3D 
432 The given command:listStoragePools does not exist or it is not 
available for user with id:null


Thanks

Regards,
Cristian


Re: Unable to create a deployment for VM (Additional DATADISK - API-job)

2015-09-10 Thread Simon Weller
Cristian,

The following logs look the most interesting:

2015-09-10 19:07:19,637 DEBUG [o.a.c.s.a.ClusterScopeStoragePoolAllocator] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) 
ClusterScopeStoragePoolAllocator looking for storage pool
2015-09-10 19:07:19,637 DEBUG [o.a.c.s.a.ClusterScopeStoragePoolAllocator] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) Looking for pools in 
dc: 1  pod:1  cluster:1 having tags:[Local]
2015-09-10 19:07:19,637 DEBUG [o.a.c.s.a.ClusterScopeStoragePoolAllocator] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) Found pools matching 
tags: []
2015-09-10 19:07:19,638 DEBUG [o.a.c.s.a.ClusterScopeStoragePoolAllocator] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) No storage pools 
available for shared volume allocation, returning
2015-09-10 19:07:19,638 DEBUG [o.a.c.s.a.ZoneWideStoragePoolAllocator] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) 
ZoneWideStoragePoolAllocator to find storage pool
2015-09-10 19:07:19,638 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) No suitable pools found 
for volume: Vol[99|vm=72|DATADISK] under cluster: 1
2015-09-10 19:07:19,638 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) No suitable pools found
2015-09-10 19:07:19,638 DEBUG [c.c.d.DeploymentPlanningManagerImpl] 
(API-Job-Executor-91:ctx-71d92d17 job-754 ctx-38551c18) No suitable 
storagePools found under this Cluster: 1

Do you have any storage tags defined that would prevent the primary storage 
from being allocated to from this particular cluster or host?

- Si




From: Cristian Ciobanu 
Sent: Thursday, September 10, 2015 1:24 PM
To: users@cloudstack.apache.org
Subject: RE: Unable to create a deployment for VM (Additional DATADISK - 
API-job)

Hello,

   Thanks for answer and suggestion ( is a testing environment )

   Also i did a grep for the job-754, and i found more events about this 
problem ( I use CS 4.5.2 with KVM on CentOS-6.6, Local Storage enabled,basic 
network )

[root@mgcs management]# cat  *.log | grep job-754
2015-09-10 19:07:19,581 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
(API-Job-Executor-91:ctx-71d92d17 job-754) Add job-754 into job monitoring
2015-09-10 19:07:19,583 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(catalina-exec-21:ctx-60c7d3d4 ctx-a0298b0c ctx-9750e753) submit async job-754, 
details: AsyncJobVO {id:754, userId: 6, accountId: 6, instanceType: 
VirtualMachine, instanceId: 72, cmd: 
org.apache.cloudstack.api.command.user.vm.DeployVMCmd, cmdInfo: 
{"serviceofferingid":"59bdf4c6-9cca-4f35-a050-ac6b64c74cda","cmdEventType":"VM.CREATE","ctxUserId":"6","zoneid":"a85f1632-0718-4e67-b7c6-00d566121bf4","httpmethod":"GET","templateid":"e873ac1f-b95b-48be-863e-0d81c5307995","domainid":"6aef553f-aa33-4db2-815a-1b0f0b575645","apikey":"notherealapiyfmlp2nU0S2kib-gg1JBN6_nWy-h8rYg2o2p6LBRmidFJTkxKxYT_Eao6GquFIF62sdpRQ","id":"72","response":"json","ctxDetails":"{\"com.cloud.template.VirtualMachineTemplate\":\"e873ac1f-b95b-48be-863e-0d81c5307995\",\"com.cloud.vm.VirtualMachine\":\"650d158e-b3f4-4009-ab62-c64467ab785d\",\"com.cloud.offering.DiskOffering\":\"0bc04371-2d2d-4a52-8094-7f25abb1e32b\",\"com.cloud.domain.Domain\":\"6aef553f-aa33-4db2-815a-1b0f0b575645\",\"com.cloud.dc.DataCenter\":\"a85f1632-0718-4e67-b7c6-00d566121bf4\",\"com.cloud.offering.ServiceOffering\":\"59bdf4c6-9cca-4f35-a050-ac6b64c74cda\"}","name":"cadaver","account":"client_3_1","uuid":"650d158e-b3f4-4009-ab62-c64467ab785d","ctxAccountId":"6","diskofferingid":"0bc04371-2d2d-4a52-8094-7f25abb1e32b","ctxStartEventId":"1512","signature":"qJHb2yDblfKlbAYWXXVTB9oc+HY\u003d","displayname":"cadaver"},
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 14038006851726, completeMsid: null, lastUpdated: null, 
lastPolled: null, created: null}
2015-09-10 19:07:19,583 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(API-Job-Executor-91:ctx-71d92d17 job-754) Executing AsyncJobVO {id:754, 
userId: 6, accountId: 6, instanceType: VirtualMachine, instanceId: 72, cmd: 
org.apache.cloudstack.api.command.user.vm.DeployVMCmd, cmdInfo: