Giter Site home page Giter Site logo

Comments (7)

omaciel avatar omaciel commented on June 24, 2024

@jhutar so it looks like katello was not installed and I wonder if we need to provide some other environmental values (Jenkins does all the for us automatically)? @elyezer does anything here stand out to you?

from automation-tools.

elyezer avatar elyezer commented on June 24, 2024

@jhutar and @omaciel this is not automation-tools issue, upstream installer is a really black box thing. It have been failing some times recently on automation.

I recommending checking the repo enabled, also if is missing something that is actually a katello-deploy bug than automation-tools.

Also I recommend checking the installation logs to check for some missing dependency because katello-deploy script does not return a non-zero return code when it fails to run some command.

from automation-tools.

jhutar avatar jhutar commented on June 24, 2024

OK, I take this back. Nothing has changed on my side and today this worked:

# RHN_USERNAME=<user> RHN_PASSWORD=<pass> RHN_POOLID=<pool> fab -H root@<hostname> product_install:satellite6-upstream
[...]
  �[1m�[32mSuccess!�[0m
[<hostname>] out:   * �[1m�[36mKatello�[0m is running at �[1m�[36mhttps://<hostname>�[0m
[<hostname>] out:       Initial credentials are �[1m�[36madmin�[0m / �[1m�[36mchangeme�[0m
[<hostname>] out:   * �[1m�[36mCapsule�[0m is running at �[1m�[36mhttps://<hostname>:9090�[0m
[<hostname>] out:   * To install additional capsule on separate machine continue by running:"
[<hostname>] out: 
[<hostname>] out:       capsule-certs-generate --capsule-fqdn "�[1m�[36m$CAPSULE�[0m" --certs-tar "�[1m�[36m~/$CAPSULE-certs.tar�[0m"
[<hostname>] out: 
[<hostname>] out:   The full log is at �[1m�[36m/var/log/katello-installer/katello-installer.log�[0m
[<hostname>] out: 

[<hostname>] Executing task 'setup_scap_client'
[<hostname>] run: yum -y install puppet-foreman_scap_client
[<hostname>] out: Loaded plugins: fastestmirror, priorities, product-id, security, subscription-
[<hostname>] out:               : manager
[<hostname>] out: Setting up Install Process
[<hostname>] out: Loading mirror speeds from cached hostfile
[<hostname>] out:  * epel: <...>
[<hostname>] out: 151 packages excluded due to repository priority protections
[<hostname>] out: No package �[1mpuppet-foreman_scap_client�[m� available.
[<hostname>] out: Error: Nothing to do
[<hostname>] out: 

Warning: run() received nonzero return code 1 while executing 'yum -y install puppet-foreman_scap_client'!



Done.
Disconnecting from <hostname>... done.

Error at the end, about installing puppet-foreman_scap_client is different issue I guess.

And one final question: Although there was error when installing that scap package, fab exitted with "0". Is that expected?

from automation-tools.

jhutar avatar jhutar commented on June 24, 2024

To make myself clear - why I'm asking about that error code: I want to know if the exit code of the fab command reflect successfulness of the underlying action of if I should check for something else.

from automation-tools.

elyezer avatar elyezer commented on June 24, 2024

That is just telling you that the scap client was not installed and as that is not a blocker fabric was asked to just warning instead of failing.

from automation-tools.

sthirugn avatar sthirugn commented on June 24, 2024

In addition to what @elyezer said: Look at https://github.com/SatelliteQE/automation-tools/blob/master/automation_tools/__init__.py#L432 and note warn_only=true. This is a minor post installation task for automation and we don't want the whole installation to be considered failed if this task failed, so we ask fabric to ignore errors using warn_only=true so it just prints the error as warning and continues to run other tasks.

from automation-tools.

jhutar avatar jhutar commented on June 24, 2024

Makes perfect sense @elyezer and @sthirugn. Thanks.

Closing now as the issue was probably in the upstream installer.

from automation-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.