__package_zypper should try to print diagnostics in case of failure #202

Closed
opened 2021-11-20 15:21:21 +00:00 by ungleich-gitea · 1 comment

Created by: telmich

Currently:

INFO: testhost: Running manifest and explorers for __package_zypper/postgresql-devel
INFO: testhost: Generating code for __package_zypper/postgresql-devel
INFO: testhost: Executing code for __package_zypper/postgresql-devel
ERROR: testhost: Command failed: ssh -o User=root -q testhost __object_id=postgresql-devel __object=/var/lib/cdist/object/__package_zypper/postgresql-devel/.cdist /bin/sh -e /var/lib/cdist/object/__package_zypper/postgresql-devel/.cdist/code-remote
INFO: cdist: Total processing time for 1 host(s): 34.397316694259644
ERROR: cdist: Failed to configure the following hosts: testhost

Doing it manually:

testhost:/etc/zypp/repos.d # zypper --quiet --non-interactive install --type "package" --auto-agree-with-licenses "postgresql-devel"
Problem: nothing provides libecpg6 = 8.3.23 needed by postgresql-devel-8.3.23-0.4.1.x86_64
Solution 1: do not install postgresql-devel-8.3.23-0.4.1.x86_64
Solution 2: break postgresql-devel by ignoring some of its dependencies

Choose from above solutions by number or cancel 1/2/c: c
testhost:/etc/zypp/repos.d # zypper --quiet --non-interactive install --type "package" --auto-agree-with-licenses "postgresql-devel" > /dev/null
testhost:/etc/zypp/repos.d #

Zypper seems to be a bit stupid printing diagnostics on stdout, but maybe we can remove >/dev/null in case normal operations with --quiet are quiet

*Created by: telmich* Currently: INFO: testhost: Running manifest and explorers for __package_zypper/postgresql-devel INFO: testhost: Generating code for __package_zypper/postgresql-devel INFO: testhost: Executing code for __package_zypper/postgresql-devel ERROR: testhost: Command failed: ssh -o User=root -q testhost __object_id=postgresql-devel __object=/var/lib/cdist/object/__package_zypper/postgresql-devel/.cdist /bin/sh -e /var/lib/cdist/object/__package_zypper/postgresql-devel/.cdist/code-remote INFO: cdist: Total processing time for 1 host(s): 34.397316694259644 ERROR: cdist: Failed to configure the following hosts: testhost Doing it manually: testhost:/etc/zypp/repos.d # zypper --quiet --non-interactive install --type "package" --auto-agree-with-licenses "postgresql-devel" Problem: nothing provides libecpg6 = 8.3.23 needed by postgresql-devel-8.3.23-0.4.1.x86_64 Solution 1: do not install postgresql-devel-8.3.23-0.4.1.x86_64 Solution 2: break postgresql-devel by ignoring some of its dependencies Choose from above solutions by number or cancel [1/2/c](c): c testhost:/etc/zypp/repos.d # zypper --quiet --non-interactive install --type "package" --auto-agree-with-licenses "postgresql-devel" > /dev/null testhost:/etc/zypp/repos.d # Zypper seems to be a bit stupid printing diagnostics on stdout, but maybe we can remove >/dev/null in case normal operations with --quiet are quiet
ungleich-gitea added the
Stale
label 2021-11-20 15:21:21 +00:00
Author
Owner

closed

closed
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#202
No description provided.