CloudStack 4.2 package with CentOS 5.4

2013-07-14 Thread Rayees Namathponnan
Hi All,

Is anyone packaged CloudStack 4.2 package with  CentOS 5.4 ? I am getting below 
error while packaging with Centos 5.4


[root@rhel5 centos63]# cat /etc/redhat-release
CentOS release 5.4 (Final)
[root@rhel5 centos63]# pwd
/root /build/workspace/CloudStack_RHEL_5/cloudstack/packaging/centos63
[root@rhel5 centos63]# ./package.sh
4.2.0-SNAPSHOT
error: Group field must be present in package: cloudstack-usage
[root@rhel5 centos63]#

Is existing  packaging/centos63/ package.sh support only in centos 6.3 ?

Regards,
Rayees




Re: CloudStack 4.2 package with CentOS 5.4

2013-07-14 Thread David Nalley
On Sun, Jul 14, 2013 at 2:26 PM, Rayees Namathponnan
 wrote:
> Hi All,
>
> Is anyone packaged CloudStack 4.2 package with  CentOS 5.4 ? I am getting 
> below error while packaging with Centos 5.4
>

Try building again , I just pushed a fix in to 4.2 and master for
this. Surprised we are just now running into this though.

--David


RE: CloudStack 4.2 package with CentOS 5.4

2013-07-14 Thread Rayees Namathponnan
Thanks David,

Issue fixed with cloudstack-usage, we need to apply same fix with  
cloudstack-cli and cloudstacl-awsapi.


Also packaging scripts looking for cloudstack-4.2.0-SNAPSHOT.tgz in wrong 
location

[root@rhel5 centos63]# ./package.sh 
4.2.0-SNAPSHOT
error: File /usr/src/redhat/SOURCES/cloudstack-4.2.0-SNAPSHOT.tgz: No such file 
or directory

It should support to look for cloudstack-4.2.0-SNAPSHOT.tgz at " 
/root/jenkins/build/workspace/CloudStack_RHEL_5/cloudstack/dist/rpmbuild/SOURCES
 "


Regards,
Rayees 

-Original Message-
From: David Nalley [mailto:da...@gnsa.us] 
Sent: Sunday, July 14, 2013 11:34 AM
To: dev@cloudstack.apache.org
Subject: Re: CloudStack 4.2 package with CentOS 5.4

On Sun, Jul 14, 2013 at 2:26 PM, Rayees Namathponnan 
 wrote:
> Hi All,
>
> Is anyone packaged CloudStack 4.2 package with  CentOS 5.4 ? I am 
> getting below error while packaging with Centos 5.4
>

Try building again , I just pushed a fix in to 4.2 and master for this. 
Surprised we are just now running into this though.

--David


Re: CloudStack 4.2 package with CentOS 5.4

2013-07-14 Thread David Nalley
On Sun, Jul 14, 2013 at 2:51 PM, Rayees Namathponnan
 wrote:
> Thanks David,
>
> Issue fixed with cloudstack-usage, we need to apply same fix with  
> cloudstack-cli and cloudstacl-awsapi.
>

Fixed, sorry for missing those earlier.

>
> Also packaging scripts looking for cloudstack-4.2.0-SNAPSHOT.tgz in wrong 
> location
>
> [root@rhel5 centos63]# ./package.sh
> 4.2.0-SNAPSHOT
> error: File /usr/src/redhat/SOURCES/cloudstack-4.2.0-SNAPSHOT.tgz: No such 
> file or directory
>
> It should support to look for cloudstack-4.2.0-SNAPSHOT.tgz at " 
> /root/jenkins/build/workspace/CloudStack_RHEL_5/cloudstack/dist/rpmbuild/SOURCES
>  "
>
>

Not sure why it isn't honoring the RPMDIR environment variable. EL5
might have called that something different, as EL5 rpmbuild is pretty
old. Might be better to see if we can make this happen with mock so
you can do it all on EL6 or even Fedora. I may look at that in the
next few weeks.


Re: Swift in 4.2 is broken, anybody wants it to be supported in 4.2?

2013-07-14 Thread Andrew Bayer
Not sure about the upload status - Swift itself may not have anything like
that. It looks like files >5gb require some jumping through hoops with
swift in general -
http://docs.openstack.org/api/openstack-object-storage/1.0/content/large-object-creation.html.
And jclouds' blobstore approach supports payloads directly from
inputstreams, if that's what you mean.

A.

On Fri, Jul 12, 2013 at 5:56 PM, Edison Su  wrote:

> I need the following functionalities from any swift client/library:
> 1. can directly upload an remote URL into swift, S3 has the API:
> http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/AmazonS3Client.html#putObject(java.lang.String,
> java.lang.String, java.io.InputStream,
> com.amazonaws.services.s3.model.ObjectMetadata)
> 2. can track the status of upload: like,
> http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/transfer/TransferManager.html
> 3. can upload file more than 5GB.
> Do you know jclouds swift interface supports above functionalities?
>
> > -Original Message-
> > From: Andrew Bayer [mailto:andrew.ba...@gmail.com]
> > Sent: Friday, July 12, 2013 5:31 PM
> > To: dev@cloudstack.apache.org
> > Cc: Chip Childers
> > Subject: Re: Swift in 4.2 is broken, anybody wants it to be supported in
> 4.2?
> >
> > Don't forget Apache jclouds - we've got a robust Swift interface:
> > http://jclouds.incubator.apache.org/documentation/quickstart/openstack/
> >
> > A.
> >
> > On Fri, Jul 12, 2013 at 4:11 PM, Edison Su  wrote:
> >
> > >
> > >
> > > > -Original Message-
> > > > From: Chip Childers [mailto:chip.child...@sungard.com]
> > > > Sent: Friday, July 12, 2013 7:50 AM
> > > > To: ; Edison Su
> > > > Subject: Re: Swift in 4.2 is broken, anybody wants it to be
> > > > supported in
> > > 4.2?
> > > >
> > > > On Fri, Jul 12, 2013 at 10:40 AM, John Burwell 
> > > wrote:
> > > > > All,
> > > > >
> > > > > I have assembled a wiki topic [1] that describes the process for
> > > creating
> > > > Riak CS and Swift development/test environments using Vagrant and
> > > > VirtualBox.  I created a  Devstack Vagrant configuration [2], and,
> > > following
> > > > further testing and feedback, I plan to submit it to the OpenStack
> > > project.
> > > > Therefore, please let me know if you have any problems (or send a
> > > > PR),
> > > and I
> > > > will fix them.
> > > > >
> > > > > Thanks,
> > > > > -John
> > > > >
> > > > > [1]:
> > > >
> > https://cwiki.apache.org/confluence/display/CLOUDSTACK/Object+Storag
> > > > e+
> > > > Dev-Test+Environments
> > > > > [2]: https://github.com/jburwell/devstack
> > > >
> > > > John, this is awesome!
> > > >
> > > > Edison, Does this help you out?
> > > It will help a little, but anyway, thanks John's help.
> > > My current problem is that, swift doesn't have a client library, which
> > > can directly upload a template from an URL into swift storage.
> > > I searched, there is a java library, called,
> > > http://joss.javaswift.org/, which can upload an object from an
> > > inputstream, but it only works with certain swift storage vendors.
> > > Seems I have to download the template url into staging area, then
> > > upload the file into swift?
> > >
>


Re: Invoking an API from an API plugin

2013-07-14 Thread Chiradeep Vittal
APIs should call the service interface directly and not call other APIs.

On 7/12/13 1:40 AM, "SuichII, Christopher"  wrote:

>Er, I should have mentioned that it is not as easy as simply invoking one
>API command from another since all the CS API commands have private
>@paramenter members. Because of this, I cannot simply instantiate a
>command, populate it with the parameters and call execute() on it.
>
>-Chris
>
>On Jul 11, 2013, at 4:09 PM, Chris Suich 
> wrote:
>
>> I'm writing an API plugin that needs to consume an API that already
>>exists in CS. The only way I can find to do this would be to send the
>>REST/HTTP request from my plugin, but I'm hoping there is an easier way.
>>Since both plugins are on the same Java classpath they have the ability
>>to invoke each other.
>> 
>> Is there a simple way to do this that I'm missing?
>> 
>> -Chris
>



Re: Shared networks without IP range.

2013-07-14 Thread Chiradeep Vittal
I can think of a use case where the user wants static Ips, but with
range/overlap/reuse checks.

On 7/11/13 4:41 PM, "Murali Reddy"  wrote:

>On 11/07/13 2:33 PM, "Prasanna Santhanam"  wrote:
>
>>On Tue, Jul 09, 2013 at 12:27:28PM +0530, Girish Shilamkar wrote:
>>> Hello,
>>> 
>>> In order to create shared network StartIp/endIp/gateway/netmask are
>>> required. I am looking at an old test case which creates shared
>>> network without IP range
>>> and deploys vm in it. It of course fails as IP range is required
>>> while creating shared network.
>>
>>> Has anything related to shared network changed in recent times or
>>> the test case is just invalid ?
>>
>>The steps of the test are as follows. If anyone has tested this
>>scenario and/or know how this works, your input would help resolve the
>>failure in automated tests:
>
>I am not aware of the history (2.2.x releases) but current behaviour is
>you can not create a network without IP range being specified. For now
>mark this test as invalid or make expected behaviour is to fail network
>creation.
>
>Having said that, we can create network offering and network without any
>network services (including DHCP, DNS). Without IPAM/DNS/DHCP services, IP
>range for the network has no relevance to CloudStack. So, in my opinion
>current behaviour is not right when network offering has no services,
>unless there is a reason for such enforcement. Opened CLOUDSTACK-3474 for
>further investigation.
> 
>>
>>If not, I'll remove this test as invalid.
>>
>># 1. create a shared network using shared network offering but do not
>>specify startIp/endIp arguments
>># 2. create an account
>># 3. deploy a VM in this account using the above network
>>
>># Validate the following
>># 1. listNetworks should return the created network
>># 2. listAccounts to return the created account
>># 3. VM deployment should succeed and NIC is in networks address space
>># 4. delete the account
>>
>>
>>-- 
>>Prasanna.,
>>
>>
>>Powered by BigRock.com
>>
>>
>
>



Secondary Storage Setup Question

2013-07-14 Thread Mike Tutkowski
Hi,

I'm trying to set up CloudStack with a VMware-only configuration. In the
past, I've always used DevCloud2, which has worked nicely when I had Xen in
the mix.

One of the steps I need to do, of course, is to configure secondary storage.

I have two NFS shares:

/export/primary
/export/secondary

My management server is running in Eclipse on a different computer than the
one the NFS shares are on.

I've gotten to the point where I'm supposed to seed secondary storage with
a system VM template (
http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.0-incubating/html/Installation_Guide/management-server-install-flow.html).
It makes reference to a script I'm supposed to run. The problem is - since
I didn't install the CS MS on this computer (it's on a different computer)
- I never downloaded any scripts.

It might be elsewhere in the directions, but can someone point me to what I
need to have downloaded (and from where) on my computer hosting these NFS
shares so I can run the necessary script?

Thanks!

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