Opened 16 months ago

Closed 15 months ago

Last modified 15 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

Description

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

Change History (6)

comment:1 Changed 15 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 15 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 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/runcmd [100]
2020-09-12 17:32:17,376 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/inst

comment:3 Changed 15 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 http://archive.ubuntu.com/ubuntu focal/main amd64 nano amd64 4.8-1ubuntu1
  Temporary failure resolving 'archive.ubuntu.com'

comment:4 Changed 15 months ago by D Delmar Davis

Ok.

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 15 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 http://archive.ubuntu.com/ubuntu focal InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu focal-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Reading package lists...
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease  Tempo
Last edited 15 months ago by D Delmar Davis (previous) (diff)

comment:6 Changed 15 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.