[CentOS-devel] [NFV SIG][CBS] Question building DPDK

Fri Jun 26 23:42:56 UTC 2015
Joseph Gasparakis <joseph.gasparakis at intel.com>

Hi all,

I have some questions as this is the first time I am using CBS :-)

First of all I have done all the prework on my .koji directory and I have 
verified I can build:

<snap>
[jgaspara at jg-vm ~]$ koji list-permissions --mine 
build
</snap>

I am trying to build DPDK 2.0 (commit id 493db80afd) and I (believe I) 
have successfully created a dpdk package for 
nfv7-opnfv-arno-[testing|release]:

<snap>
[jgaspara at jg-vm ~]$ koji add-pkg --owner "jgasparakis" 
nfv7-opnfv-arno-testing dpdk
[jgaspara at jg-vm ~]$ koji add-pkg --owner "jgasparakis" 
nfv7-opnfv-arno-release dpdk
</snap>

Then, I suppose I need to kick off a git build, but it seems like I need 
to somehow add the DPDK git tree to the permitted SCMs for CBS:

<snap>

[jgaspara at jg-vm ~]$ koji build nfv7-opnfv-arno-el7 
"git+http://dpdk.org/git/dpdk?#493db80afd009eea35ee7d95ad4aba49df5113a3"
Created task: 15451
Task info: http://cbs.centos.org/koji/taskinfo?taskID=15451
Watching tasks (this may be safely interrupted)...
15451 build (nfv7-opnfv-arno-el7, 
/git/dpdk:493db80afd009eea35ee7d95ad4aba49df5113a3): open 
(x86_64-2.cbs.centos.org)
  15452 buildSRPMFromSCM 
(/git/dpdk:493db80afd009eea35ee7d95ad4aba49df5113a3): free
15451 build (nfv7-opnfv-arno-el7, 
/git/dpdk:493db80afd009eea35ee7d95ad4aba49df5113a3): open 
(x86_64-2.cbs.centos.org) -> FAILED: BuildError: dpdk.org:/git/dpdk is not 
in the list of allowed SCMs
  1 free  0 open  0 done  1 failed
  15452 buildSRPMFromSCM 
(/git/dpdk:493db80afd009eea35ee7d95ad4aba49df5113a3): free -> FAILED: 
BuildError: dpdk.org:/git/dpdk is not in the list of allowed SCMs
  0 free  0 open  0 done  2 failed

15451 build (nfv7-opnfv-arno-el7, 
/git/dpdk:493db80afd009eea35ee7d95ad4aba49df5113a3) failed

</snap>

Am I right? If so can someone please change permissions for the repo or 
let me know how I can add the repo to the allowed ones? If not 
can you point me to what I am doing wrong? :-)

Again, the DPDK repo is http://dpdk.org/git/dpdk, the commit id that 
matches tag v2.0.0 is 493db80afd009eea35ee7d95ad4aba49df5113a3 and the 
spec file lives in pkg/dpdk.spec. I am assuming CBS will pick it up and 
create the rpm based on that spec file.

Thanks!

Joseph