Opened 23 months ago

Closed 22 months ago

Last modified 22 months ago

#53 closed Task (Works For Me)

Backcheck container creation / profiles and documentation.

Reported by: D Delmar Davis Owned by: D Delmar Davis
Priority: Important Milestone: Make Shit Happen / Own Your Shit.
Component: kb2018 (hp) Keywords: ansible, lxc, documentation
Cc: Joe Dumoulin


The current profile and ubuntu-lts for 2020 are missing openssh and probably a few other things.

Change History (6)

comment:1 Changed 22 months ago by D Delmar Davis

Set default profile to susdev20 and verified that ubuntu-18-04 works as expected.

Now to test using 20.04

comment:2 Changed 22 months ago by D Delmar Davis

Cloud init is not installing the packages section. (python has no candidate only python2 or python 3)
From reading /var/log/cloud-init.log

Command: ['eatmydata', 'apt-get', '--option=Dpkg::Options::=--force-confold', '--option=Dpkg::options::=--force-unsafe-io', '--assume-yes', '--quiet', 'install', 'python3', 'python', 'nano', 'openssh-server', 'less']
Exit code: 100
Reason: -
Stdout: -
Stderr: -

from /var/log/cloud-init-output.log

Building dependency tree...
Reading state information...
Package python is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python2-minimal python2 python-is-python2 2to3 python-is-python3

E: Package 'python' has no installation candidate
2020-09-12 17:32:17,376 -[WARNING]: Failed running /var/lib/cloud/instance/scripts/runcmd [100]
2020-09-12 17:32:17,376 -[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/inst

comment:3 Changed 22 months ago by D Delmar Davis

SHIT. Need to revisit resovled crap.

less is already the newest version (551-1ubuntu0.1).
The following additional packages will be installed:
  libwrap0 ncurses-term openssh-sftp-server python3-distro ssh-import-id wget
Suggested packages:
  hunspell molly-guard monkeysphere ssh-askpass ufw
The following NEW packages will be installed:
  libwrap0 nano ncurses-term openssh-server openssh-sftp-server python3-distro
  ssh-import-id wget
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,367 kB of archives.
After this operation, 8,076 kB of additional disk space will be used.
Err:1 focal/main amd64 nano amd64 4.8-1ubuntu1
  Temporary failure resolving ''

comment:4 Changed 22 months ago by D Delmar Davis


Removed the workarounds for resolvd and refreshed the image.
Works for focal. Will backcheck against 18.04.

Rebuilt guenter to checkout redmine.

Will update the creating/using new containers doc before closing this.

comment:5 Changed 22 months ago by D Delmar Davis

Spoke too soon.

Cloud-init v. 20.2-45-g5f7825e2-0ubuntu1~20.04.1 running 'modules:config' at Sat
, 12 Sep 2020 19:11:14 +0000. Up 5.00 seconds.
Err:1 focal InRelease
  Temporary failure resolving ''
Err:2 focal-security InRelease
  Temporary failure resolving ''
Err:3 focal-updates InRelease
  Temporary failure resolving ''
Err:4 focal-backports InRelease
  Temporary failure resolving ''
Reading package lists...
W: Failed to fetch  Tempo
Last edited 22 months ago by D Delmar Davis (previous) (diff)

comment:6 Changed 22 months ago by D Delmar Davis

Resolution: Works For Me
Status: assignedclosed
  • Added brute force package install to susdev20 profile.
  • tested new install for both 18.04 and focal.

Packages section does not work on ubuntu as fresh install can't find repositories.

Will document later today.

Note: See TracTickets for help on using tickets.