Modify ↓
Ticket #969 (closed defect: fixed)
bcfg2-admin query doesn't get correct group membership
Reported by: | Jim Rowan <[email protected]…> | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.2.0 Release |
Component: | bcfg2-server | Version: | 1.0 |
Keywords: | Cc: |
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>
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
This is resolved in [71bb583ac04ff1c52e03d69a91bbb508783566f8]