Skip to content

Existing mysql installations will fail with 13.0.0 change for Ubuntu 20.04 #1500

Closed
@PresGas

Description

@PresGas

Describe the Bug

On updating the Puppet module with an existing installation of mysql rather than mariadb, puppet will run with errors attempting to assume mariadb. Our particular case has:

mysql-client-8.0/focal-updates,focal-security,now 8.0.30-0ubuntu0.20.04.2 amd64 [installed,automatic]
mysql-client-core-8.0/focal-updates,focal-security,now 8.0.30-0ubuntu0.20.04.2 amd64 [installed,automatic]
mysql-common/focal,focal,now 5.8+1.0.5ubuntu2 all [installed]
mysql-server/focal-updates,focal-updates,focal-security,focal-security,now 8.0.30-0ubuntu0.20.04.2 all [installed]
mysql-server-8.0/focal-updates,focal-security,now 8.0.30-0ubuntu0.20.04.2 amd64 [installed,automatic]
mysql-server-core-8.0/focal-updates,focal-security,now 8.0.30-0ubuntu0.20.04.2 amd64 [installed,automatic]

Current error on Puppet execution:

Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install mariadb-server' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mariadb-server : Depends: mariadb-server-10.3 (>= 1:10.3.34-0ubuntu0.20.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Error: /Stage[main]/Mysql::Server::Install/Package[mysql-server]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install mariadb-server' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mariadb-server : Depends: mariadb-server-10.3 (>= 1:10.3.34-0ubuntu0.20.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages. (corrective)

Suspect change was here?
#1449

Expected Behavior

If an Ubu 20.04 machine already has mysql installed, should continue with that.

Steps to Reproduce

Update Puppetfile with 13.0.0 of puppetlabs-mysql module. Was using 12.0.3.

Environment

  • Version 2019.8
  • Platform Ubuntu 20.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions