Bug 1374374 - Execution of '/usr/bin/yum -d 0 -e 0 -y install bind' returned 1: Error downloading packages: (but bind is already installed)
Summary: Execution of '/usr/bin/yum -d 0 -e 0 -y install bind' returned 1: Error downl...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installer
Version: 6.2.0
Hardware: x86_64
OS: Linux
medium
low vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-08 14:02 UTC by Reartes Guillermo
Modified: 2016-09-27 16:02 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-27 16:01:57 UTC
Target Upstream Version:


Attachments (Terms of Use)
foreman-debug (2.02 MB, application/x-xz)
2016-09-08 14:02 UTC, Reartes Guillermo
no flags Details
sos-report (8.88 MB, application/x-xz)
2016-09-08 14:06 UTC, Reartes Guillermo
no flags Details

Description Reartes Guillermo 2016-09-08 14:02:48 UTC
Created attachment 1199118 [details]
foreman-debug

Description of problem:

When enabling extra features to the onboard capsule (dns, dhcp & tftp) i noticed an error in the satellite-installer.
It calimed that it was not able to install the package bind, but it was already installed. The execution finished ok.
It looks like a spurious error.

Version-Release number of selected component (if applicable):
Sat 6.2.1

How reproducible:
Tried only once. It happened when i enabled extra features tho the onboard capsule.

Steps to Reproduce:

Created an updated answer file, i enabled tftp, dhcp and dns on the onboard capsule:

[root@sixthsat1 scenarios.d]# cp satellite-answers-sixthsat1-1.yaml  satellite-answers-sixthsat1-2.yaml
[root@sixthsat1 scenarios.d]# vim satellite-answers-sixthsat1-2.yaml
[root@sixthsat1 scenarios.d]# vim satellite.yaml 

[root@sixthsat1 scenarios.d]# file /etc/foreman-installer/scenarios.d/satellite-answers-sixthsat1-2.yaml
/etc/foreman-installer/scenarios.d/satellite-answers-sixthsat1-2.yaml: ASCII text


Then i tried to reconfigure the Satellite:

[root@sixthsat1 scenarios.d]# satellite-installer --scenario satellite
 Execution of '/usr/bin/yum -d 0 -e 0 -y install bind' returned 1: Error downloading packages:
 /Stage[main]/Dns::Install/Package[bind]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install bind' returned 1: Error downloading packages:
Installing             Info: RESOURCE Cert[sixthsat1.example.com-puppet-c [19%] [................                                                                     ]^C/usr/share/gems/gems/kafo-0.7.6/lib/kafo/kafo_configure.rb:394:in `each': Interrupt
        from /usr/share/gems/gems/kafo-0.7.6/lib/kafo/kafo_configure.rb:394:in `block in run_installation'
        from /usr/share/gems/gems/kafo-0.7.6/lib/kafo/kafo_configure.rb:392:in `spawn'
        from /usr/share/gems/gems/kafo-0.7.6/lib/kafo/kafo_configure.rb:392:in `run_installation'
        from /usr/share/gems/gems/kafo-0.7.6/lib/kafo/kafo_configure.rb:143:in `execute'
        from /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
        from /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
        from /usr/share/gems/gems/kafo-0.7.6/lib/kafo/kafo_configure.rb:150:in `run'
        from /usr/sbin/satellite-installer:12:in `<main>'

It must have been the proxy? internet connection? I did not think much, but i retried:

[root@sixthsat1 scenarios.d]# satellite-installer --scenario satellite
Installing             Notice: /Stage[main]/Katello::Qpid/Exec[bind katel [99%] [.................................................................................... ]^C/usr/share/gems/gems/kafo-0.7.6/lib/kafo/kafo_configure.rb:394:in `each': Interrupt
        from /usr/share/gems/gems/kafo-0.7.6/lib/kafo/kafo_configure.rb:394:in `block in run_installation'
        from /usr/share/gems/gems/kafo-0.7.6/lib/kafo/kafo_configure.rb:392:in `spawn'
        from /usr/share/gems/gems/kafo-0.7.6/lib/kafo/kafo_configure.rb:392:in `run_installation'
        from /usr/share/gems/gems/kafo-0.7.6/lib/kafo/kafo_configure.rb:143:in `execute'
        from /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
        from /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
        from /usr/share/gems/gems/kafo-0.7.6/lib/kafo/kafo_configure.rb:150:in `run'
        from /usr/sbin/satellite-installer:12:in `<main>'

Ok, let's try manually (in the past i had to do something like it):
[root@sixthsat1 scenarios.d]# yum install bind
Complementos cargados:langpacks, product-id, search-disabled-repos, subscription-manager
El paquete 32:bind-9.9.4-29.el7_2.3.x86_64 ya se encuentra instalado con su versión más reciente
Nada para hacer


Wow, it is already installed. Ok, let's wait until it finishes:

[root@sixthsat1 scenarios.d]# satellite-installer --scenario satellite
Installing             Done                                               [100%] [....................................................................................]
  Success!
  * Satellite is running at https://sixthsat1.example.com
  * To install additional capsule on separate machine continue by running:

      capsule-certs-generate --capsule-fqdn "$CAPSULE" --certs-tar "~/$CAPSULE-certs.tar"

  The full log is at /var/log/foreman-installer/satellite.log


Does bind work? Looks like a spurious error:

[root@sixthsat1 scenarios.d]# dig sixthsat1.example.com @192.168.209.5

; <<>> DiG 9.9.4-RedHat-9.9.4-29.el7_2.3 <<>> sixthsat1.example.com @192.168.209.5
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58766
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;sixthsat1.example.com.         IN      A

;; ANSWER SECTION:
sixthsat1.example.com.  10800   IN      A       192.168.209.5

;; AUTHORITY SECTION:
example.com.            10800   IN      NS      sixthsat1.example.com.

;; Query time: 7 msec
;; SERVER: 192.168.209.5#53(192.168.209.5)
;; WHEN: jue sep 08 10:47:34 ART 2016
;; MSG SIZE  rcvd: 80


I works!

[root@sixthsat1 scenarios.d]# katello-service restart
Redirecting to /bin/systemctl stop  foreman-tasks.service

Redirecting to /bin/systemctl stop  httpd.service

Redirecting to /bin/systemctl stop  pulp_workers.service

Redirecting to /bin/systemctl stop  pulp_resource_manager.service

Redirecting to /bin/systemctl stop  pulp_celerybeat.service

Redirecting to /bin/systemctl stop  foreman-proxy.service

Redirecting to /bin/systemctl stop  tomcat.service

Redirecting to /bin/systemctl stop  qdrouterd.service

Redirecting to /bin/systemctl stop  qpidd.service

Redirecting to /bin/systemctl stop  postgresql.service

Redirecting to /bin/systemctl stop  mongod.service

Success!
Redirecting to /bin/systemctl start  mongod.service

Redirecting to /bin/systemctl start  postgresql.service

Redirecting to /bin/systemctl start  qpidd.service

Redirecting to /bin/systemctl start  qdrouterd.service

Redirecting to /bin/systemctl start  tomcat.service

Redirecting to /bin/systemctl start  foreman-proxy.service

Redirecting to /bin/systemctl start  pulp_celerybeat.service

Redirecting to /bin/systemctl start  pulp_resource_manager.service

Redirecting to /bin/systemctl start  pulp_workers.service

Redirecting to /bin/systemctl start  httpd.service

Redirecting to /bin/systemctl start  foreman-tasks.service

Success!


Then i refreshed capsule features and it showed: tftp, dns, dhcp.


Actual results:

This was show during satellite-installer execution, it looks like a fatal error. (if there is no bind, there is no dns, but it continued)
 Execution of '/usr/bin/yum -d 0 -e 0 -y install bind' returned 1: Error downloading packages:
 /Stage[main]/Dns::Install/Package[bind]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install bind' returned 1: Error downloading packages:

Expected results:
no errors.


Additional info:
There is no 6.2.1 version entry in bugzilla version field (!)

Comment 1 Reartes Guillermo 2016-09-08 14:06:16 UTC
Created attachment 1199120 [details]
sos-report

Comment 3 Stephen Benjamin 2016-09-27 16:01:57 UTC
Works for me. The message "Error downloading packages:" indicates a network or similar problem, not a Satellite bug.


Note You need to log in before you can comment on or make changes to this bug.