Comments (7)
@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.
@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.
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.
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.
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.
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.
Makes perfect sense @elyezer and @sthirugn. Thanks.
Closing now as the issue was probably in the upstream installer.
from automation-tools.
Related Issues (20)
- Add RHV CA to CA trust on the box HOT 1
- trouble with partition_disk task HOT 1
- Add task for enabling the external logging
- trouble with disable_base_os in provisioning jobs
- install_prerequisites for capsule_setup HOT 1
- get_packages_name returns filter object, should return list
- Cannot login to Boxes created on provisioning server HOT 2
- provisioning jobs failing in vm_create phase HOT 1
- Fix task setup_foreman_discovery for nightlies HOT 1
- '--foreman-admin-password' changed to '--foreman-initial-admin-password'
- RHEL8 Avahi discovery requires EPEL8 released
- Remove setup_ansible_scap_client
- Cleanup 6.0 and 6.1 Tasks from Automation tools
- Add ability to assert for downloaded manifest content HOT 4
- Maintain repo installed via repo file even though its available via AK HOT 1
- satellite-maintenance-beta is not used when selecting "beta" distribution.
- Move away from Env Vars and use Paramerters in repo HOT 1
- Fix automation to use foreman-maintain to install packages instead of using yum. HOT 1
- Adopt requests and reaplce with curl calls in automation_tools/__init__.py
- replace instances of katello-service
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from automation-tools.