← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1322692] [NEW] seed_random runs too early if local datasource used

 

Public bug reported:

right now, seed_random is running in 'cloud_init_modules'.
The reason for that was to ensure that it ran before the ssh config module (which writes the ssh keys).

The problem is that cloud_init_modules is not guaranteed to have network
access, and we're running 'pollinate -q', which depends on network.


the result is that if you seed an image (cloud-localds) or use config-drive, pollinate will/may run before network is available.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: cloud-init 0.7.5-0ubuntu1
ProcVersionSignature: User Name 3.13.0-24.47-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.1
Architecture: amd64
Date: Fri May 23 16:09:11 2014
Ec2AMI: ami-00000005
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.small
Ec2Kernel: aki-00000002
Ec2Ramdisk: ari-00000002
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: cloud-init
     Importance: Medium
         Status: Confirmed

** Affects: cloud-init (Ubuntu)
     Importance: Medium
         Status: Confirmed


** Tags: amd64 apport-bug ec2-images trusty

** Changed in: cloud-init (Ubuntu)
       Status: New => Confirmed

** Changed in: cloud-init (Ubuntu)
   Importance: Undecided => Medium

** Also affects: cloud-init
   Importance: Undecided
       Status: New

** Changed in: cloud-init
   Importance: Undecided => Medium

** Changed in: cloud-init
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1322692

Title:
  seed_random runs too early if local datasource used

Status in Init scripts for use on cloud images:
  Confirmed
Status in “cloud-init” package in Ubuntu:
  Confirmed

Bug description:
  right now, seed_random is running in 'cloud_init_modules'.
  The reason for that was to ensure that it ran before the ssh config module (which writes the ssh keys).

  The problem is that cloud_init_modules is not guaranteed to have
  network access, and we're running 'pollinate -q', which depends on
  network.

  
  the result is that if you seed an image (cloud-localds) or use config-drive, pollinate will/may run before network is available.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: cloud-init 0.7.5-0ubuntu1
  ProcVersionSignature: User Name 3.13.0-24.47-generic 3.13.9
  Uname: Linux 3.13.0-24-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.1
  Architecture: amd64
  Date: Fri May 23 16:09:11 2014
  Ec2AMI: ami-00000005
  Ec2AMIManifest: FIXME
  Ec2AvailabilityZone: nova
  Ec2InstanceType: m1.small
  Ec2Kernel: aki-00000002
  Ec2Ramdisk: ari-00000002
  PackageArchitecture: all
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: cloud-init
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1322692/+subscriptions


Follow ups

References