lp:~smoser/pollinate/trunk.virt-cleanup

Created by Scott Moser and last modified
Get this branch:
bzr branch lp:~smoser/pollinate/trunk.virt-cleanup
Only Scott Moser can upload to this branch. If you are Scott Moser please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Scott Moser
Project:
pollinate
Status:
Merged

Recent revisions

355. By Scott Moser

pollinate: Use systemd-detect-virt and namespace virt/<type> in useragent.

This changes pollinate's collection of hypervisor to use
systemd-detect-virt(1) when the system is running in systemd. The old
code path is mostly maintained for systems where that is not the
case.

Things to note about this change:
 a.) systemd-detect-virt is much faster than running even a single
     dmesg | grep --quiet kvm
     On my system, 'dmesg | grep --quiet kvm' takes ~ 7.5 seconds per 1000
     runs while systemd-detect-virt takes ~ 0.8.
 b.) systemd-detect-virt will only identify the "innermost" virt.
     If running in an lxc container on kvm, it would report 'lxc'
     The previous path could potentially report 'kvm' and 'xen' or 'lxd'.
 c.) The old path would report 'lxd' this change reports 'lxc'
 d.) Instead of '<virt>/' this adds to the useragent 'virt/<virt>'
     ('virt/kvm' rather than 'kvm/')

354. By Scott Moser

update changelog

353. By Scott Moser

pollinate: Add cloud image build info and data in 'add-user-agent'.

This adds the ability for user or software to write additional information
into /etc/pollinate/add-user-agent that will be surfaced in user-agent.
The format of the file is tokens one per line of <namespace>/<data>.
Comments are supported with '#' either inline on a line by themselves.

We expect to have some combination of MAAS and curtin write information
to /etc/pollinate/add-user-agent such as:
  maas/version/2.3.1

Additionally, collect up data in /etc/cloud/build.info. Official Ubuntu
images write 'serial: XXXXXXX' to this file as well as 'build_name'.
build_name is not reported if it is the expected value of 'server'.

352. By Dustin Kirkland 

* debian/pollinate.postinst:
  - ensure that the pollinate user owns /var/cache/pollinate;
    to be safe, we're going to do this just after the mkdir, and
    after the adduser;
    this avoids the warning:
    + adduser: Warning: The home directory /var/cache/pollinate
      does not belong to the user you are currently creating.

351. By Dustin Kirkland 

* pollinate:
  - add hypervisor to useragent string

350. By Dimitri John Ledkov

opening 4.28

349. By Dimitri John Ledkov

releasing 4.27

348. By Dimitri John Ledkov

Fixup maintscript & version missmatch from the previous upload.

347. By Dimitri John Ledkov

opening 4.27

346. By Dimitri John Ledkov

releasing 4.26

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:~pollinate/pollinate/trunk
This branch contains Public information 
Everyone can see this information.

Subscribers