Custom Query (894 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (73 - 75 of 894)

Ticket Owner Reporter Resolution Summary
#595 desai Jim Rowan <[email protected]…> fixed group categories not handled quite right
Description

I tried something which turns out to be illegal in my group config, and was surprised with the results. I'm not sure which aspects of this are defective, if any.

from Metadata/groups.xml:

  <Group name='sles'>
    <Group name='suse'/>
  </Group>
  <Group name='sles9' category='sles-version'>
    <Group name='sles'/>
  </Group>
  <Group name='sles9sp1' category='sles-version'>
    <Group name='sles9'/>
  </Group>
  <Group name='sles9sp3' category='sles-version'>
    <Group name='sles9sp1'/>
  </Group>

Output from bcfg2-info groups:

 sles             | no       |                 | suse,rpm,linux,unix
 sles9            | no       | sles-version    | sles,suse,rpm,linux,unix
 sles9sp1         | no       | sles-version    | sles9,sles,suse,rpm,linux,unix
 sles9sp3         | no       | sles-version    | sles9sp1 

So, I have two issues.

1.) The configuration validated with no mention that I had this heirarchy of groups with the same category. Probably, some warning is appropriate at the very least.

2.) The doc says "A group can only contain one instance of a group in any category." Literally taken, this is ambiguous (I believe) with respect to the situation of a group including another instance of the same category. However, the intent seems clear and I think the first level inclusion of sles9 in sles9sp1 should have failed.

#965 solj Jim Rowan <[email protected]…> fixed Services with rules that specify "mode='manual'" are being modified.
Description

This is Version: 1.1.1-1~lucid1

A rule such as this:

<Service name='nxsensor' type='deb' mode='manual' status='off'/>

Causes the /etc/rc?.d/* files to be removed.

Before: jmr-ubuntu# ls -l rc?.d/*nxsensor lrwxrwxrwx 1 root root 18 Nov 17 11:28 rc0.d/K01nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root root 18 Nov 17 11:28 rc2.d/S99nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root root 18 Nov 17 11:28 rc3.d/S99nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root root 18 Nov 17 11:28 rc5.d/S99nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root root 18 Nov 17 11:28 rc6.d/K01nxsensor -> ../init.d/nxsensor

After: jmr-ubuntu# ls -l rc?.d/*nxsensor zsh: no matches found: rc?.d/*nxsensor

And when the status is changed to 'on', they're added back in: jmr-ubuntu# ls -l rc?.d/*nxsensor lrwxrwxrwx 1 root bin 18 Nov 17 11:38 rc0.d/K20nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root bin 18 Nov 17 11:38 rc1.d/K20nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root bin 18 Nov 17 11:38 rc2.d/S20nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root bin 18 Nov 17 11:38 rc3.d/S20nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root bin 18 Nov 17 11:38 rc4.d/S20nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root bin 18 Nov 17 11:38 rc5.d/S20nxsensor -> ../init.d/nxsensor lrwxrwxrwx 1 root bin 18 Nov 17 11:38 rc6.d/K20nxsensor -> ../init.d/nxsensor

#969 desai Jim Rowan <[email protected]…> fixed bcfg2-admin query doesn't get correct group membership
Description

bcfg2-admin query g=ubuntu isn't listing all the members of the group ubuntu. The membership of ubuntu, in this case, come from inclusion in a dynamic group (ubuntu10-04) which ubuntu includes.

Indeed, the machine jmr-ubuntu is in the ubuntu group:

> showclient jmr-ubuntu.qualcomm.com
Hostname:       jmr-ubuntu.qualcomm.com
Profile:        q-desktop
Groups:         amd64
                ubuntu10-04
                q-desktop
                ubuntu
                ubuntu-lucid
                deb
                ubuntu-lucid-all-pkgs
                minimal
Bundles:        ntp
                bcfg2
                qc-desktop
                ssh
Connector data
================================================================================
Probes: {'groups': ''}
================================================================================

However, a query only returns the one machine that was directly included in the ubuntu group (this one client was defined that way).

bcfg# bcfg2-admin query g=ubuntu      
bcfg.qualcomm.com

But it does correctly know that many machines are in the dynamic group:

bcfg# bcfg2-admin query g=ubuntu10-04
(returns a bunch of machines, one of which is jmr-ubuntu)

The groups.xml file:

<Groups version='3.0'>
        <Group profile='true' public='true' default='true' name='basic'>
          <Group name='minimal'/>
        </Group>
        <Group profile='true' public='true' name='desktop'>
          <Group name='minimal'/>
        </Group>
        <Group profile='true' public='true' name='compute'>
          <Group name='minimal'/>
        </Group>
        <Group profile='true' public='true' name='q-desktop'>
          <Group name='minimal'/>
          <Group name='ubuntu-lucid-all-pkgs'/>
          <Bundle name='qc-desktop'/>
        </Group>
        <Group profile='true' public='true' name='s-desktop'>
          <Group name='minimal'/>
          <Group name='ubuntu-lucid-all-pkgs'/>
          <Bundle name='qc-desktop'/>
          <Bundle name='s-dev'/>
        </Group>
        <Group profile='true' public='true' name='bcfg2-server'>
          <Group name='minimal'/>
          <Bundle name='ubuntu-server'/>
          <Group name='ubuntu-lucid'/>
        </Group>

        <!-- dynamic groups that gv/os_dist might spit out -->
        <Group name='ubuntu10-04' category='distro'>
          <Group name='ubuntu-lucid'/>
          <Group name='ubuntu-lucid-all-pkgs'/>
        </Group>
        <Group name='sled10sp3' category='distro'>
          <Group name='suse'/>
        </Group>
        <Group name='sles10sp3' category='distro'>
          <Group name='suse'/>
        </Group>

        <Group name='ubuntu-lucid'>
          <Group name='ubuntu'/>
        </Group>

        <Group name='minimal'>
          <!-- tiny set of things we handle for all machines -->
          <Bundle name='bcfg2'/>
          <Bundle name='ntp'/>
          <Bundle name='ssh'/>
        </Group>

        <Group name='ubuntu'>
          <Group name='deb'/>
        </Group>
        <Group name='debian'>
          <Group name='deb'/>
        </Group>
        <Group name='freebsd'/>
        <Group name='gentoo'/>
        <Group name='redhat'>
          <Group name='chkconfig'/>
        </Group>
        <Group name='suse'>
          <Group name='chkconfig'/>
        </Group>
        <Group name='mandrake'/>
        <Group name='solaris'/>

        <Group name='chkconfig'/>
        <Group name='deb'/>
        <Group name='ubuntu-lucid-all-pkgs'/>
</Groups>

Note: See TracQuery for help on using queries.