From lixiao at nudt.edu.cn Wed Oct 14 07:57:16 2009 From: lixiao at nudt.edu.cn (=?gb2312?B?wO7P/g==?=) Date: Wed, 14 Oct 2009 15:57:16 +0800 Subject: Missing Dependency Message-ID: <455507036.20406@nudt.edu.cn> Rencently,I changed the IP of my koji and regen-repo,but it shows missing dependency.The root.log as follows, redhat-rpm-config-8.0.45-29.el5.noarch from build has depsolving problems --> Missing Dependency: perl(Getopt::Long) is needed by package redhat-rpm-config-8.0.45-29.el5.noarch (build) redhat-rpm-config-8.0.45-29.el5.noarch from build has depsolving problems --> Missing Dependency: /bin/bash is needed by package redhat-rpm-config-8.0.45-29.el5.noarch (build) redhat-rpm-config-8.0.45-29.el5.noarch from build has depsolving problems --> Missing Dependency: /bin/sh is needed by package redhat-rpm-config-8.0.45-29.el5.noarch (build) redhat-rpm-config-8.0.45-29.el5.noarch from build has depsolving problems --> Missing Dependency: /usr/bin/perl is needed by package redhat-rpm-config-8.0.45-29.el5.noarch (build) Error: Missing Dependency: /bin/bash is needed by package redhat-rpm-config-8.0.45-29.el5.noarch (build) Error: Missing Dependency: /usr/bin/perl is needed by package redhat-rpm-config-8.0.45-29.el5.noarch (build) Error: Missing Dependency: perl(Getopt::Long) is needed by package redhat-rpm-config-8.0.45-29.el5.noarch (build) Error: Missing Dependency: /bin/sh is needed by package redhat-rpm-config-8.0.45-29.el5.noarch (build) From mikem at redhat.com Wed Oct 14 16:23:43 2009 From: mikem at redhat.com (Mike McLean) Date: Wed, 14 Oct 2009 12:23:43 -0400 Subject: Missing Dependency In-Reply-To: <455507036.20406@nudt.edu.cn> References: <455507036.20406@nudt.edu.cn> Message-ID: <4AD5FB0F.8020908@redhat.com> On 10/14/2009 03:57 AM, ?? wrote: > Rencently,I changed the IP of my koji and regen-repo,but it shows missing > dependency.The root.log as follows, By default, repo regens use the --update option against the last active repo. Because of this, old entries will persist. This is normally a helpful optimization, but when those old entries reference a now-changed url, it can be a problem. The fix is to expire the active repo. This will force a full rebuild of the repo (no --update). If you only have a few active repos, you can expire them on the command line like: % koji call repoExpire (the koji taginfo command will report the repo id of the active repo for the tag) If you have a lot of active repos (i.e. lots of different build targets), then the easiest way to expire them all is in the db. For example: => update repo set state = 2 where state in (0, 1); Once you've expired the repos, kojira should trigger the regenerations. From lijian.gnu at gmail.com Thu Oct 15 02:08:27 2009 From: lijian.gnu at gmail.com (Jian Lee) Date: Thu, 15 Oct 2009 10:08:27 +0800 Subject: Missing Dependency In-Reply-To: <4AD5FB0F.8020908@redhat.com> References: <455507036.20406@nudt.edu.cn> <4AD5FB0F.8020908@redhat.com> Message-ID: <1255572507.1103.48.camel@localhost> Hi, li xiao Maybe this reason, chinese help can get from http://jianlee.ylinux.org/Computer/Server/koji.html#sec27 ? 2009-10-14?? 12:23 -0400?Mike McLean??? > On 10/14/2009 03:57 AM, ?? wrote: > > Rencently,I changed the IP of my koji and regen-repo,but it shows missing > > dependency.The root.log as follows, > > By default, repo regens use the --update option against the last active > repo. Because of this, old entries will persist. This is normally a > helpful optimization, but when those old entries reference a now-changed > url, it can be a problem. > > The fix is to expire the active repo. This will force a full rebuild of > the repo (no --update). > > If you only have a few active repos, you can expire them on the command > line like: > % koji call repoExpire > (the koji taginfo command will report the repo id of the active repo for > the tag) > > If you have a lot of active repos (i.e. lots of different build > targets), then the easiest way to expire them all is in the db. For example: > => update repo set state = 2 where state in (0, 1); > > Once you've expired the repos, kojira should trigger the regenerations. > > -- > Fedora-buildsys-list mailing list > Fedora-buildsys-list at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-buildsys-list -- Thanks from Jian Lee [HOME] http://jianlee.ylinux.org [MSN] lijian.gnu at hotmail.com From mikem at redhat.com Fri Oct 16 19:47:55 2009 From: mikem at redhat.com (Mike McLean) Date: Fri, 16 Oct 2009 15:47:55 -0400 Subject: Missing Dependency In-Reply-To: <9ef5bdcc0910151953g57a3d5b5xa70376f49a53c4fe@mail.gmail.com> References: <9ef5bdcc0910151953g57a3d5b5xa70376f49a53c4fe@mail.gmail.com> Message-ID: <4AD8CDEB.2070405@redhat.com> On 10/15/2009 10:53 PM, xiao li wrote: > Frist,thanks for your help. > I have expired all the repos before I submitted the problem.As you said,I > have executed the instruction to expire all the repos in the db.But the > problem existed all the same.Do you have another solutions? Thanks for your > reply. Please keep these discussions on the list. Your original email doesn't really indicate much other than missing dependencies. There are numerous possibilities. Can provide some details about the problem? What does your tag/target setup look like? Just to clarify -- Did you mean to say that your setup was working fine until you changed the ip address of a host? If so... - are you sure that was the only change? - was it only the ip address, or did the hostname change also? - which machine(s) changed address and what was running on them? - do your pkgurl and topurl settings in kojid.conf still reference an appropriate address? From lixiao986 at gmail.com Tue Oct 20 02:05:44 2009 From: lixiao986 at gmail.com (xiao li) Date: Tue, 20 Oct 2009 10:05:44 +0800 Subject: the datails of Missing Dependency Message-ID: <9ef5bdcc0910191905v6e0a9cd8h960ac4e00419c993@mail.gmail.com> This is the detailed information about Missing Dependency when I built the srpms.BuildrootError: could not init mock buildroot, mock exited with status 30; see root.log for more information.The attachment is the root.log.Please do me a favour.Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: root.log Type: application/octet-stream Size: 7984 bytes Desc: not available URL: From dennis at ausil.us Tue Oct 20 03:46:18 2009 From: dennis at ausil.us (Dennis Gilmore) Date: Mon, 19 Oct 2009 22:46:18 -0500 Subject: the datails of Missing Dependency In-Reply-To: <9ef5bdcc0910191905v6e0a9cd8h960ac4e00419c993@mail.gmail.com> References: <9ef5bdcc0910191905v6e0a9cd8h960ac4e00419c993@mail.gmail.com> Message-ID: <200910192246.23866.dennis@ausil.us> On Monday 19 October 2009 09:05:44 pm xiao li wrote: > This is the detailed information about Missing Dependency when I built the > srpms.BuildrootError: could not init mock buildroot, mock exited with > status 30; see root.log for more information.The attachment is the > root.log.Please do me a favour.Thanks. > you seem to be missing perl bash and a few other essential packages from the buildroot. make sure that they are available via "koji latest-pkg Dennis -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: From mikem at redhat.com Tue Oct 20 14:05:14 2009 From: mikem at redhat.com (Mike McLean) Date: Tue, 20 Oct 2009 10:05:14 -0400 Subject: the datails of Missing Dependency In-Reply-To: <9ef5bdcc0910191905v6e0a9cd8h960ac4e00419c993@mail.gmail.com> References: <9ef5bdcc0910191905v6e0a9cd8h960ac4e00419c993@mail.gmail.com> Message-ID: <4ADDC39A.4070003@redhat.com> On 10/19/2009 10:05 PM, xiao li wrote: > This is the detailed information about Missing Dependency when I built the > srpms.BuildrootError: could not init mock buildroot, mock exited with status > 30; see root.log for more information.The attachment is the root.log.Please > do me a favour.Thanks. You did not answer any of the questions I asked in my last email. If you want help, please re-read that email and answer them. https://www.redhat.com/archives/fedora-buildsys-list/2009-October/msg00003.html From sergio at sergiomb.no-ip.org Mon Oct 26 20:27:12 2009 From: sergio at sergiomb.no-ip.org (Sergio Monteiro Basto) Date: Mon, 26 Oct 2009 20:27:12 +0000 Subject: networkmanger fails in network config on boot rescue Message-ID: <1256588832.14946.9.camel@segulix> Hi, newest Fedora 11 , build with pungi , when I select a installation from url, netwokmanager always fails to get IP . its a nic , and try to run wpasupplicant !? How I tell on grub to not use networkmanger and use the service network ? I need to use dhcp reading this ML some one suggest label one kernel vmlinuz append initrd=initrd.img text nofb gateway=1.2.3.1 dns=1.2.3.4 netmask=255.255.255.0 ks=url_of_ks_file method=url_of_satellite but I'd like disable networkmanager since since service network works well and NetworkManager don't. I try this on office where I need dhcp . and at home with a simple router . Thanks, -- S?rgio M. B. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3159 bytes Desc: not available URL: From sergio at sergiomb.no-ip.org Tue Oct 27 19:01:30 2009 From: sergio at sergiomb.no-ip.org (Sergio Monteiro Basto) Date: Tue, 27 Oct 2009 19:01:30 +0000 Subject: networkmanger fails in network config on boot rescue In-Reply-To: <1256588832.14946.9.camel@segulix> References: <1256588832.14946.9.camel@segulix> Message-ID: <1256670090.19135.6.camel@segulix> Hi, using vmlinuz and initrd.img from fedora 11 release networkManager works , ( http://ftp.up.pt/fedora/releases/11/Fedora/i386/os/isolinux/) but vmlinuz and initrd.img from isolinux of pungi build doesn't work http://sergiomb.no-ip.org/pungi/f11/11/i386/os/isolinux/ why ? is anaconda ? , is networkmanager ? is kernel ? On Mon, 2009-10-26 at 20:27 +0000, Sergio Monteiro Basto wrote: > Hi, newest Fedora 11 , build with pungi , > when I select a installation from url, netwokmanager always fails to get > IP . its a nic , and try to run wpasupplicant !? > > How I tell on grub to not use networkmanger and use the service > network ? > > I need to use dhcp > > reading this ML some one suggest > label one > kernel vmlinuz > append initrd=initrd.img text nofb gateway=1.2.3.1 dns=1.2.3.4 > netmask=255.255.255.0 ks=url_of_ks_file method=url_of_satellite > > but I'd like disable networkmanager since since service network works > well and NetworkManager don't. I try this on office where I need dhcp . > and at home with a simple router . > > > Thanks, > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list -- S?rgio M. B. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3159 bytes Desc: not available URL: From chenbaozi at gmail.com Wed Oct 28 01:42:13 2009 From: chenbaozi at gmail.com (Chen Baozi) Date: Wed, 28 Oct 2009 09:42:13 +0800 Subject: networkmanger fails in network config on boot rescue In-Reply-To: <1256670090.19135.6.camel@segulix> References: <1256588832.14946.9.camel@segulix> <1256670090.19135.6.camel@segulix> Message-ID: I guess it is something to do with anaconda-runtime, the initrd that it makes does not include the kernel modules what the networkmanager needs. I suggest you check the kernel modules list in the anaconda-runtime scripts. On Wed, Oct 28, 2009 at 3:01 AM, Sergio Monteiro Basto < sergio at sergiomb.no-ip.org> wrote: > Hi, > using vmlinuz and initrd.img from fedora 11 release > networkManager works , > ( http://ftp.up.pt/fedora/releases/11/Fedora/i386/os/isolinux/) > > but vmlinuz and initrd.img from isolinux of pungi build doesn't work > http://sergiomb.no-ip.org/pungi/f11/11/i386/os/isolinux/ > > why ? is anaconda ? , is networkmanager ? is kernel ? > > > > On Mon, 2009-10-26 at 20:27 +0000, Sergio Monteiro Basto wrote: > > Hi, newest Fedora 11 , build with pungi , > > when I select a installation from url, netwokmanager always fails to get > > IP . its a nic , and try to run wpasupplicant !? > > > > How I tell on grub to not use networkmanger and use the service > > network ? > > > > I need to use dhcp > > > > reading this ML some one suggest > > label one > > kernel vmlinuz > > append initrd=initrd.img text nofb gateway=1.2.3.1 dns=1.2.3.4 > > netmask=255.255.255.0 ks=url_of_ks_file method=url_of_satellite > > > > but I'd like disable networkmanager since since service network works > > well and NetworkManager don't. I try this on office where I need dhcp . > > and at home with a simple router . > > > > > > Thanks, > > _______________________________________________ > > Kickstart-list mailing list > > Kickstart-list at redhat.com > > https://www.redhat.com/mailman/listinfo/kickstart-list > -- > S?rgio M. B. > > -- > Fedora-buildsys-list mailing list > Fedora-buildsys-list at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-buildsys-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jiteshs at marvell.com Wed Oct 28 13:08:25 2009 From: jiteshs at marvell.com (Jitesh Shah) Date: Wed, 28 Oct 2009 18:38:25 +0530 Subject: [Patch] Add a policy spec so that only package owners can tag builds Message-ID: <1256735305.2549.28.camel@localhost.localdomain> We recently had a requirement that builds of a particular package should only be managed by package owners (owner derived from the [package,tag] pair) (Just to clear any possible confusion, I do NOT mean the build owner, but the package owner) Initially, I had assumed that only package owners can schedule builds of their package, but a quick look at the code yielded nothing to prove the assumption. So, I created a random user and verified that he can build and tag packages. Then, I looked at whether I can write a policy to this effect. But, none of the tests that were already there seemed to provide the functionality. So, I hacked up a patch to add a test. With this patch in place, I can add a like "is_package_owner :: allow" to allow only package owners to build. the policy spec in my /etc/koji-hub/hub.conf looks like this now: tag = has_perm admin :: allow is_package_owner :: allow all :: deny Do let me know whether it is sane and makes sense. (The patch is NOT taken against the git HEAD, but it should apply easily with some fuzz) Jitesh >From f10b458131c5a1aa75f97e2cb458051630918f04 Mon Sep 17 00:00:00 2001 From: Jitesh Shah Date: Wed, 28 Oct 2009 17:20:01 +0530 Subject: [PATCH] Add own policy spec Signed-off-by: Jitesh Shah --- hub/kojihub.py | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/hub/kojihub.py b/hub/kojihub.py index a281b5e..ef1c364 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -4443,6 +4443,26 @@ class IsBuildOwnerTest(koji.policy.BaseSimpleTest): #otherwise... return False +class IsPackageOwnerTest(koji.policy.BaseSimpleTest): + """Check if user owns the build""" + name = "is_package_owner" + def run(self, data): + build = get_build(data['build']) + pkg_id = get_package_id(koji.parse_NVR(build['nvr'])['name'], strict=True) + tag = get_tag(data['tag']) + pkgs = readPackageList(tagID=tag['id'], pkgID=pkg_id, inherit=True) + owner_id = pkgs.get(pkg_id,None)['owner_id'] + owner = get_user(owner_id) + user = get_user(data['user_id']) + if owner_id == user['id']: + return True + if owner['usertype'] == koji.USERTYPES['GROUP']: + # owner is a group, check to see if user is a member + if owner['id'] in koji.auth.get_user_groups(user['id']): + return True + #otherwise... + return False + class UserInGroupTest(koji.policy.BaseSimpleTest): """Check if user is in group(s) -- 1.6.0.3 -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Add-own-policy-spec.patch Type: text/x-patch Size: 1534 bytes Desc: not available URL: