Bug 822672
| Summary: | Test case failure: katello-reset-dbs, re-configure SAM | ||
|---|---|---|---|
| Product: | [Retired] Subscription Asset Manager | Reporter: | Eric Sammons <esammons> |
| Component: | katello-configure | Assignee: | Jordan OMara <jomara> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Tazim Kolhar <tkolhar> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 1.3 | CC: | athomas, bkearney, cpelland, cwelton, lzap, tkolhar, tomckay |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 1.X | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-06-07 17:28:03 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 833466 | ||
|
Description
Eric Sammons
2012-05-17 18:19:51 UTC
BTW theres a "-f" force flag, no need of "yes" then: /usr/share/katello/script/katello-reset-dbs -f Unable to reproduce with Katello, this is Headpin only issue. Eric can you extend your scenario to: 1. yum install -y katello-headpin-all 2. katello-configure --deployment=katello ***: headpin ping 3. /usr/share/katello/scripts/katello-reset-dbs ***: headpin ping 4. katello-configure --deployment=sam ***: headpin ping Because Headping testing repo installation is currently failing, I dont see from the output it was running the first time. Also, attach katello-debug output, if possible. Current installation issue is: https://bugzilla.redhat.com/show_bug.cgi?id=823493 Unfortunately with a yum install -y katello-headpin-all I can not run katello-configure --deployment=katello; I have tested and this fails as expected as there is no way for SAM to support a katello deployment. Moving to 1.2 since katello-reset-dbs is a non-user command and while it needs to be fixed, it should not be necessary in a customer install. Captured the output from a recent test; looks like a issue in the user.rb. [snip] == AddUserToTaskStatus: migrating ============================================ rake aborted! An error has occurred, this and all later migrations canceled: uninitialized constant Glue::Pulp /usr/share/katello/app/models/user.rb:19 /usr/share/katello/db/migrate/20111208225553_add_user_to_task_status.rb:3:in `up_without_benchmarks' [/snip] VERIFIED with the build:
[root@dhcp201-113 ~]# rpm -qa | grep katello
katello-headpin-all-0.2.12-2.el6_2.noarch
katello-certs-tools-1.1.5-1.el6_2.noarch
katello-common-0.3.2-1.el6_2.noarch
katello-cli-common-0.3.5-2.el6_2.noarch
katello-configure-0.3.7-1.el6_2.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-glue-candlepin-0.3.2-1.el6_2.noarch
katello-cli-headpin-0.2.2-1.el6_2.noarch
katello-selinux-0.2.4-1.el6_2.noarch
katello-headpin-0.2.12-2.el6_2.noarch
Steps to reproduce :
yum install -y katello-headpin-all
[root@dhcp201-113 ~]# katello-configure --deployment=katello
You have attempted to set up katello with katello-headpin installed.
Please consult the documentation or use a valid --deployment flag.
[root@dhcp201-113 ~]# /usr/share/katello/scripts/katello-reset-dbs
-bash: /usr/share/katello/scripts/katello-reset-dbs: No such file or directory
[root@dhcp201-113 ~]# katello-configure --deployment=sam
Starting Katello configuration
The top-level log file is [/var/log/katello/katello-configure-20120605-155638/main.log]
Creating Katello database user
############################################################ ... OK
Creating Katello database
############################################################ ... OK
Creating Candlepin database user
############################################################ ... OK
Candlepin setup
############################################################ ... OK
Populating Katello database schema
############################################################ ... OK
Initializing Katello data
############################################################ ... OK
[root@dhcp201-113 ~]# headpin -u admin -p admin org list
--------------------------------------------------------------------------------
Organization List
Id Name Description
--------------------------------------------------------------------------------
1 ACME_Corporation ACME_Corporation Organization
sam deployment configured and is working
|