Mailing List Archive

xen-api build and test environment
All,
We are trying to add some new feature in xen-api and test in openstack
environment. But build xen-api accroding to README.markdown at
https://github.com/xapi-project/xen-api.git on ubuntu 12.04 always failed. There
are dependences not in documents, like blktap-dev, and also some basic build
failure, like obuild.

Just curious how xen-api developer do the build? Build it stand-alone, or with
xenserver? Do you have frequent fresh build test?

Another question is how you do the test? Do you have some simple unit test tools
to verify API function, or you test it in XCP environment?

Do you have plan do do some test in openstack environment? You know, libvirt in
openstack doesn't support xen well.


Best Rgds,
Edwin

_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
Re: xen-api build and test environment [ In reply to ]
Hi Edwin,

On 16 Apr 2014, at 11:36, Zhai, Edwin <edwin.zhai@intel.com> wrote:

> All,
> We are trying to add some new feature in xen-api and test in openstack environment. But build xen-api accroding to README.markdown at https://github.com/xapi-project/xen-api.git on ubuntu 12.04 always failed. There are dependences not in documents, like blktap-dev, and also some basic build failure, like obuild.
>
> Just curious how xen-api developer do the build? Build it stand-alone, or with xenserver? Do you have frequent fresh build test?

For components like ‘xenopsd’, ‘xcp-networkd’ etc I prefer to install all the dependencies in CentOS (or Debian) via xenserver-core[1]. I can then clone the repo and build the binaries.

For ‘xapi’ itself the xenserver-core .spec file references a branch with a couple of build fixes in it. These need to be tidied up and merged to master— Bob Ball (cc:d) and I are trying to sort this out.

I think we should try to create a ‘vagrant box’ configuration to help people set this up — what do you think?

> Another question is how you do the test? Do you have some simple unit test tools to verify API function, or you test it in XCP environment?

For ‘xapi’, there are a few unit tests which run as part of the build. There’s also a program called ‘quicktest’ (in the xen-api repo) which can install VMs, suspend/resume, migrate etc. After that we normally run system tests via xenrt[2]

> Do you have plan do do some test in openstack environment? You know, libvirt in openstack doesn't support xen well.

I think xapi is tested as part of the XenServer openstack CI[3]

HTH,
Dave
[1] https://github.com/xenserver/xenserver-core
[2] http://www.xenserver.org/discuss-virtualization/virtualization-blog/entry/introducing-open-source-xenrt.html
[3] https://wiki.openstack.org/wiki/XenServer/XenServer_CI

>
>
> Best Rgds,
> Edwin
>
> _______________________________________________
> Xen-api mailing list
> Xen-api@lists.xen.org
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
Re: xen-api build and test environment [ In reply to ]
On Wed, 16 Apr 2014, Dave Scott wrote:

> Hi Edwin,
>
> On 16 Apr 2014, at 11:36, Zhai, Edwin <edwin.zhai@intel.com> wrote:
>
>> All,
>> We are trying to add some new feature in xen-api and test in openstack environment. But build xen-api accroding to README.markdown at https://github.com/xapi-project/xen-api.git on ubuntu 12.04 always failed. There are dependences not in documents, like blktap-dev, and also some basic build failure, like obuild.
>>
>> Just curious how xen-api developer do the build? Build it stand-alone, or with xenserver? Do you have frequent fresh build test?
>
> For components like ‘xenopsd’, ‘xcp-networkd’ etc I prefer to install all the dependencies in CentOS (or Debian) via xenserver-core[1]. I can then clone the repo and build the binaries.
>
> For ‘xapi’ itself the xenserver-core .spec file references a branch with a couple of build fixes in it. These need to be tidied up and merged to master— Bob Ball (cc:d) and I are trying to sort this out.

Qiaowei is trying this according to Bob's instruction. Pls. let us know if you
guys have fix.

>
> I think we should try to create a ‘vagrant box’ configuration to help people set this up — what do you think?

It is a good idea, and can help new developer to setup environment via fresh
build. Otherwise, we need answer questions for many times.

>
>> Another question is how you do the test? Do you have some simple unit test tools to verify API function, or you test it in XCP environment?
>
> For ‘xapi’, there are a few unit tests which run as part of the build. There’s also a program called ‘quicktest’ (in the xen-api repo) which can install VMs, suspend/resume, migrate etc. After that we normally run system tests via xenrt[2]

It's helpful info. Thanks.

>
>> Do you have plan do do some test in openstack environment? You know, libvirt in openstack doesn't support xen well.
>
> I think xapi is tested as part of the XenServer openstack CI[3]

Yes. But I believe XenServer openstack use release version instead of latest git
code. Is it possible to run some test for it, and fix bugs. Or it should be
responsibility of openstack?

>
> HTH,
> Dave
> [1] https://github.com/xenserver/xenserver-core
> [2] http://www.xenserver.org/discuss-virtualization/virtualization-blog/entry/introducing-open-source-xenrt.html
> [3] https://wiki.openstack.org/wiki/XenServer/XenServer_CI
>
>>
>>
>> Best Rgds,
>> Edwin
>>
>> _______________________________________________
>> Xen-api mailing list
>> Xen-api@lists.xen.org
>> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>
>

Best Rgds,
Edwin
Re: xen-api build and test environment [ In reply to ]
Hi Dave,

How are you building packages for Debian?

I had to hack on xenserver:buildroot/blob/master/scripts/deb/configure.sh
and some other files to be able to build the packages for Debian

Is there any other way? Does worth to send a PR with these changes?

Thank you,

Celso Fernandes

www.zertico.com

+55 35 3629-1616
Av. BPS, 1303 - PCE - PCTI - Sala 10


On Wed, Apr 16, 2014 at 11:38 AM, Dave Scott <Dave.Scott@citrix.com> wrote:

> Hi Edwin,
>
> On 16 Apr 2014, at 11:36, Zhai, Edwin <edwin.zhai@intel.com> wrote:
>
> > All,
> > We are trying to add some new feature in xen-api and test in openstack
> environment. But build xen-api accroding to README.markdown at
> https://github.com/xapi-project/xen-api.git on ubuntu 12.04 always
> failed. There are dependences not in documents, like blktap-dev, and also
> some basic build failure, like obuild.
> >
> > Just curious how xen-api developer do the build? Build it stand-alone,
> or with xenserver? Do you have frequent fresh build test?
>
> For components like ‘xenopsd’, ‘xcp-networkd’ etc I prefer to install all
> the dependencies in CentOS (or Debian) via xenserver-core[1]. I can then
> clone the repo and build the binaries.
>
> For ‘xapi’ itself the xenserver-core .spec file references a branch with a
> couple of build fixes in it. These need to be tidied up and merged to
> master— Bob Ball (cc:d) and I are trying to sort this out.
>
> I think we should try to create a ‘vagrant box’ configuration to help
> people set this up — what do you think?
>
> > Another question is how you do the test? Do you have some simple unit
> test tools to verify API function, or you test it in XCP environment?
>
> For ‘xapi’, there are a few unit tests which run as part of the build.
> There’s also a program called ‘quicktest’ (in the xen-api repo) which can
> install VMs, suspend/resume, migrate etc. After that we normally run system
> tests via xenrt[2]
>
> > Do you have plan do do some test in openstack environment? You know,
> libvirt in openstack doesn't support xen well.
>
> I think xapi is tested as part of the XenServer openstack CI[3]
>
> HTH,
> Dave
> [1] https://github.com/xenserver/xenserver-core
> [2]
> http://www.xenserver.org/discuss-virtualization/virtualization-blog/entry/introducing-open-source-xenrt.html
> [3] https://wiki.openstack.org/wiki/XenServer/XenServer_CI
>
> >
> >
> > Best Rgds,
> > Edwin
> >
> > _______________________________________________
> > Xen-api mailing list
> > Xen-api@lists.xen.org
> > http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>
>
> _______________________________________________
> Xen-api mailing list
> Xen-api@lists.xen.org
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>
Re: xen-api build and test environment [ In reply to ]
Hi Celso,

On 28 Apr 2014, at 23:26, Celso Fernandes <fernandes@zertico.com> wrote:

> Hi Dave,
>
> How are you building packages for Debian?
>
> I had to hack on xenserver:buildroot/blob/master/scripts/deb/configure.sh and some other files to be able to build the packages for Debian
>
> Is there any other way? Does worth to send a PR with these changes?

I don’t think there’s any other way at the moment. Please do send a PR with the changes!

Thanks,
Dave

>
> Thank you,
>
> Celso Fernandes
>
> www.zertico.com
>
> +55 35 3629-1616
> Av. BPS, 1303 - PCE - PCTI - Sala 10
>
>
> On Wed, Apr 16, 2014 at 11:38 AM, Dave Scott <Dave.Scott@citrix.com> wrote:
> Hi Edwin,
>
> On 16 Apr 2014, at 11:36, Zhai, Edwin <edwin.zhai@intel.com> wrote:
>
> > All,
> > We are trying to add some new feature in xen-api and test in openstack environment. But build xen-api accroding to README.markdown at https://github.com/xapi-project/xen-api.git on ubuntu 12.04 always failed. There are dependences not in documents, like blktap-dev, and also some basic build failure, like obuild.
> >
> > Just curious how xen-api developer do the build? Build it stand-alone, or with xenserver? Do you have frequent fresh build test?
>
> For components like ‘xenopsd’, ‘xcp-networkd’ etc I prefer to install all the dependencies in CentOS (or Debian) via xenserver-core[1]. I can then clone the repo and build the binaries.
>
> For ‘xapi’ itself the xenserver-core .spec file references a branch with a couple of build fixes in it. These need to be tidied up and merged to master— Bob Ball (cc:d) and I are trying to sort this out.
>
> I think we should try to create a ‘vagrant box’ configuration to help people set this up — what do you think?
>
> > Another question is how you do the test? Do you have some simple unit test tools to verify API function, or you test it in XCP environment?
>
> For ‘xapi’, there are a few unit tests which run as part of the build. There’s also a program called ‘quicktest’ (in the xen-api repo) which can install VMs, suspend/resume, migrate etc. After that we normally run system tests via xenrt[2]
>
> > Do you have plan do do some test in openstack environment? You know, libvirt in openstack doesn't support xen well.
>
> I think xapi is tested as part of the XenServer openstack CI[3]
>
> HTH,
> Dave
> [1] https://github.com/xenserver/xenserver-core
> [2] http://www.xenserver.org/discuss-virtualization/virtualization-blog/entry/introducing-open-source-xenrt.html
> [3] https://wiki.openstack.org/wiki/XenServer/XenServer_CI
>
> >
> >
> > Best Rgds,
> > Edwin
> >
> > _______________________________________________
> > Xen-api mailing list
> > Xen-api@lists.xen.org
> > http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>
>
> _______________________________________________
> Xen-api mailing list
> Xen-api@lists.xen.org
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>


_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
Re: xen-api build and test environment [ In reply to ]
Hi Celso,

I've been working on a debian fix - see https://github.com/xenserver/buildroot/pull/409.

Hopefully this will be very generic; please can we collaborate on this rather than having two competing approaches?

Thanks,

Bob

> -----Original Message-----
> From: xen-api-bounces@lists.xen.org [mailto:xen-api-
> bounces@lists.xen.org] On Behalf Of Dave Scott
> Sent: 29 April 2014 10:50
> To: Celso Fernandes
> Cc: xen-api@lists.xen.org
> Subject: Re: [Xen-API] xen-api build and test environment
>
> Hi Celso,
>
> On 28 Apr 2014, at 23:26, Celso Fernandes <fernandes@zertico.com> wrote:
>
> > Hi Dave,
> >
> > How are you building packages for Debian?
> >
> > I had to hack on
> xenserver:buildroot/blob/master/scripts/deb/configure.sh and some other
> files to be able to build the packages for Debian
> >
> > Is there any other way? Does worth to send a PR with these changes?
>
> I don't think there's any other way at the moment. Please do send a PR with
> the changes!
>
> Thanks,
> Dave
>
> >
> > Thank you,
> >
> > Celso Fernandes
> >
> > www.zertico.com
> >
> > +55 35 3629-1616
> > Av. BPS, 1303 - PCE - PCTI - Sala 10
> >
> >
> > On Wed, Apr 16, 2014 at 11:38 AM, Dave Scott <Dave.Scott@citrix.com>
> wrote:
> > Hi Edwin,
> >
> > On 16 Apr 2014, at 11:36, Zhai, Edwin <edwin.zhai@intel.com> wrote:
> >
> > > All,
> > > We are trying to add some new feature in xen-api and test in openstack
> environment. But build xen-api accroding to README.markdown at
> https://github.com/xapi-project/xen-api.git on ubuntu 12.04 always failed.
> There are dependences not in documents, like blktap-dev, and also some
> basic build failure, like obuild.
> > >
> > > Just curious how xen-api developer do the build? Build it stand-alone, or
> with xenserver? Do you have frequent fresh build test?
> >
> > For components like 'xenopsd', 'xcp-networkd' etc I prefer to install all
> the dependencies in CentOS (or Debian) via xenserver-core[1]. I can then
> clone the repo and build the binaries.
> >
> > For 'xapi' itself the xenserver-core .spec file references a branch with a
> couple of build fixes in it. These need to be tidied up and merged to
> master- Bob Ball (cc:d) and I are trying to sort this out.
> >
> > I think we should try to create a 'vagrant box' configuration to help people
> set this up - what do you think?
> >
> > > Another question is how you do the test? Do you have some simple unit
> test tools to verify API function, or you test it in XCP environment?
> >
> > For 'xapi', there are a few unit tests which run as part of the build. There's
> also a program called 'quicktest' (in the xen-api repo) which can install VMs,
> suspend/resume, migrate etc. After that we normally run system tests via
> xenrt[2]
> >
> > > Do you have plan do do some test in openstack environment? You know,
> libvirt in openstack doesn't support xen well.
> >
> > I think xapi is tested as part of the XenServer openstack CI[3]
> >
> > HTH,
> > Dave
> > [1] https://github.com/xenserver/xenserver-core
> > [2] http://www.xenserver.org/discuss-virtualization/virtualization-
> blog/entry/introducing-open-source-xenrt.html
> > [3] https://wiki.openstack.org/wiki/XenServer/XenServer_CI
> >
> > >
> > >
> > > Best Rgds,
> > > Edwin
> > >
> > > _______________________________________________
> > > Xen-api mailing list
> > > Xen-api@lists.xen.org
> > > http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
> >
> >
> > _______________________________________________
> > Xen-api mailing list
> > Xen-api@lists.xen.org
> > http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
> >
>
>
> _______________________________________________
> Xen-api mailing list
> Xen-api@lists.xen.org
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
Re: xen-api build and test environment [ In reply to ]
Hi Dave and Bob,
Thank you for replies.


On Tue, Apr 29, 2014 at 7:08 AM, Bob Ball <bob.ball@citrix.com> wrote:

> Hi Celso,
>
> I've been working on a debian fix - see
> https://github.com/xenserver/buildroot/pull/409.
>
> Hopefully this will be very generic; please can we collaborate on this
> rather than having two competing approaches?
>

Sure we can collaborate, the PR you send contains must the modifications
I've done, except the automatic detection of debian distro, as I've made
some tests we can only build on Jessie (because of Ocaml 4), have you
succeed on Wheezy?


>
> Thanks,
>
> Bob
>
> > -----Original Message-----
> > From: xen-api-bounces@lists.xen.org [mailto:xen-api-
> > bounces@lists.xen.org] On Behalf Of Dave Scott
> > Sent: 29 April 2014 10:50
> > To: Celso Fernandes
> > Cc: xen-api@lists.xen.org
> > Subject: Re: [Xen-API] xen-api build and test environment
> >
> > Hi Celso,
> >
> > On 28 Apr 2014, at 23:26, Celso Fernandes <fernandes@zertico.com> wrote:
> >
> > > Hi Dave,
> > >
> > > How are you building packages for Debian?
> > >
> > > I had to hack on
> > xenserver:buildroot/blob/master/scripts/deb/configure.sh and some other
> > files to be able to build the packages for Debian
> > >
> > > Is there any other way? Does worth to send a PR with these changes?
> >
> > I don't think there's any other way at the moment. Please do send a PR
> with
> > the changes!
> >
> > Thanks,
> > Dave
> >
> > >
> > > Thank you,
> > >
> > > Celso Fernandes
> > >
> > > www.zertico.com
> > >
> > > +55 35 3629-1616
> > > Av. BPS, 1303 - PCE - PCTI - Sala 10
> > >
> > >
> > > On Wed, Apr 16, 2014 at 11:38 AM, Dave Scott <Dave.Scott@citrix.com>
> > wrote:
> > > Hi Edwin,
> > >
> > > On 16 Apr 2014, at 11:36, Zhai, Edwin <edwin.zhai@intel.com> wrote:
> > >
> > > > All,
> > > > We are trying to add some new feature in xen-api and test in
> openstack
> > environment. But build xen-api accroding to README.markdown at
> > https://github.com/xapi-project/xen-api.git on ubuntu 12.04 always
> failed.
> > There are dependences not in documents, like blktap-dev, and also some
> > basic build failure, like obuild.
> > > >
> > > > Just curious how xen-api developer do the build? Build it
> stand-alone, or
> > with xenserver? Do you have frequent fresh build test?
> > >
> > > For components like 'xenopsd', 'xcp-networkd' etc I prefer to install
> all
> > the dependencies in CentOS (or Debian) via xenserver-core[1]. I can then
> > clone the repo and build the binaries.
> > >
> > > For 'xapi' itself the xenserver-core .spec file references a branch
> with a
> > couple of build fixes in it. These need to be tidied up and merged to
> > master- Bob Ball (cc:d) and I are trying to sort this out.
> > >
> > > I think we should try to create a 'vagrant box' configuration to help
> people
> > set this up - what do you think?
> > >
> > > > Another question is how you do the test? Do you have some simple unit
> > test tools to verify API function, or you test it in XCP environment?
> > >
> > > For 'xapi', there are a few unit tests which run as part of the build.
> There's
> > also a program called 'quicktest' (in the xen-api repo) which can
> install VMs,
> > suspend/resume, migrate etc. After that we normally run system tests via
> > xenrt[2]
> > >
> > > > Do you have plan do do some test in openstack environment? You know,
> > libvirt in openstack doesn't support xen well.
> > >
> > > I think xapi is tested as part of the XenServer openstack CI[3]
> > >
> > > HTH,
> > > Dave
> > > [1] https://github.com/xenserver/xenserver-core
> > > [2] http://www.xenserver.org/discuss-virtualization/virtualization-
> > blog/entry/introducing-open-source-xenrt.html
> > > [3] https://wiki.openstack.org/wiki/XenServer/XenServer_CI
> > >
> > > >
> > > >
> > > > Best Rgds,
> > > > Edwin
> > > >
> > > > _______________________________________________
> > > > Xen-api mailing list
> > > > Xen-api@lists.xen.org
> > > > http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
> > >
> > >
> > > _______________________________________________
> > > Xen-api mailing list
> > > Xen-api@lists.xen.org
> > > http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
> > >
> >
> >
> > _______________________________________________
> > Xen-api mailing list
> > Xen-api@lists.xen.org
> > http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>