But in Ubuntu default repos (20.04, 22.04) there is no such package. Only python3-psycopg2.
So module not workin =(
Log from puppet:
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install python-psycopg2' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package python-psycopg2 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
E: Package 'python-psycopg2' has no installation candidate
Error: /Stage[main]/Postgresql::Lib::Python/Package[python-psycopg2]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install python-psycopg2' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package python-psycopg2 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
E: Package 'python-psycopg2' has no installation candidate
Notice: /Stage[main]/Keystone::Db/Oslo::Db[keystone_config]/Keystone_config[database/sqlite_synchronous]: Dependency Package[python-psycopg2] has failures: true
root@ost-m01-v:~# apt search python psycopg2
Sorting... Done
Full Text Search... Done
python-psycopg2-doc/focal 2.8.4-2 all
Python module for PostgreSQL (documentation package)
python3-psycogreen/focal 1.0.1-1 all
psycopg2 integration with coroutine libraries
python3-psycopg2/focal 2.8.4-2 amd64
Python 3 module for PostgreSQL
python3-psycopg2-dbg/focal 2.8.4-2 amd64
Python 3 module for PostgreSQL (debug extension)
Module needs python-psycopg2 package:
[muxa@stolyarov-ocs temp]$ grep -nri python-psycopg2 puppet-oslo/ oslo/spec/ defines/ oslo_db_ spec.rb: 93: is_expected.to contain_ package( 'python- psycopg2' ).with( :ensure => 'present') oslo/spec/ defines/ oslo_db_ spec.rb: 104: is_expected.not_to contain_ package( 'python- psycopg2' )
puppet-
puppet-
But in Ubuntu default repos (20.04, 22.04) there is no such package. Only python3-psycopg2.
So module not workin =(
Log from puppet:
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options: :=--force- confold install python-psycopg2' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package python-psycopg2 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
E: Package 'python-psycopg2' has no installation candidate main]/Postgresq l::Lib: :Python/ Package[ python- psycopg2] /ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options: :=--force- confold install python-psycopg2' returned 100: Reading package lists...
Error: /Stage[
Building dependency tree...
Reading state information...
Package python-psycopg2 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
E: Package 'python-psycopg2' has no installation candidate main]/Keystone: :Db/Oslo: :Db[keystone_ config] /Keystone_ config[ database/ sqlite_ synchronous] : Dependency Package[ python- psycopg2] has failures: true
Notice: /Stage[
Additional info RELEASE= 20.04 CODENAME= focal DESCRIPTION= "Ubuntu 20.04.5 LTS"
root@ost-m01-v:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
root@ost-m01-v:~# apt search python psycopg2 psycopg2- doc/focal 2.8.4-2 all
Sorting... Done
Full Text Search... Done
python-
Python module for PostgreSQL (documentation package)
python3- psycogreen/ focal 1.0.1-1 all
psycopg2 integration with coroutine libraries
python3- psycopg2/ focal 2.8.4-2 amd64
Python 3 module for PostgreSQL
python3- psycopg2- dbg/focal 2.8.4-2 amd64
Python 3 module for PostgreSQL (debug extension)