Bug 471220
| Summary: | service Monitoring does not support chkconfig | ||
|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Miroslav Suchý <msuchy> |
| Component: | Installation | Assignee: | Miroslav Suchý <msuchy> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 0.3 | CC: | jpazdziora |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2009-01-22 16:30:31 UTC | Type: | --- |
| 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: | 456552 | ||
|
Description
Miroslav Suchý
2008-11-12 14:43:03 UTC
Note for myself:
This code enabled services in old installer. But we cannot use it since it require installed packages:
#if ($opts{"monitoring-backend"}) {
my $org_id = RHN::SatInstall->get_satellite_org_id();
my $sc = new RHN::SatCluster(customer_id => $org_id,
description => 'RHN Monitoring Satellite',
last_update_user => 'installer',
);
$sc->create_new();
my $scout_shared_key = RHN::SatCluster->fetch_key($sc->recid);
RHN::SatInstall->write_config({ monitoringDOTscout_shared_key => $scout_shared_key },
'/etc/sysconfig/rhn-satellite-prep/satellite-local-rules.conf');
#}
#if ($opts{"monitoring-scout"}) {
print "Setting up Monitoring scout\n";
RHN::SatInstall->setup_monitoring_sysv_step('MonitoringScout');
#}
We can use it. In this time we have this modules installed. spacewalk-setup is called in install.pl after all packages are installed. And in spacewalk are loaded using yum install spacewalk. I created new package spacewalk-monitoring which beside this new init.d scripts contains all monitoring dependecy. Commits between: bdc76452e0b6f17779d1c42438c69bae85c532f2 and 1787439183ac7f388bb9294ba1f1283bfa49c59b The rhn-installation.log no longer has the error: Unsubstituted Tags: Shutting down rhn-satellite... Stopping cobbler daemon: [FAILED] Stopping rhn-search... rhn-search was not running. 2009-01-14 12:57:15 MonitoringScout: Debug level = 0 2009-01-14 12:57:15 MonitoringScout: Switches: stop 2009-01-14 12:57:15 MonitoringScout: ALREADY STOPPED 2009-01-14 12:57:15 MonitoringScout: ============ STATUS =============== 2009-01-14 12:57:15 MonitoringScout: ---- Monitoring backend functionality is disabled 2009-01-14 12:57:15 MonitoringScout: ---- Monitoring scout functionality is disabled 2009-01-14 12:57:15 MonitoringScout: Last action: stop 2009-01-14 12:57:15 MonitoringScout: ** Installed for SysV startup ** 2009-01-14 12:57:15 MonitoringScout: STOPPED 2009-01-14 12:57:15 MonitoringScout: =================================== 2009-01-14 12:57:15 Monitoring: Debug level = 0 2009-01-14 12:57:15 Monitoring: Switches: stop 2009-01-14 12:57:15 Monitoring: ALREADY STOPPED 2009-01-14 12:57:15 Monitoring: ============ STATUS =============== 2009-01-14 12:57:15 Monitoring: ---- Monitoring backend functionality is disabled 2009-01-14 12:57:15 Monitoring: ---- Monitoring scout functionality is disabled 2009-01-14 12:57:15 Monitoring: Last action: stop 2009-01-14 12:57:15 Monitoring: ** Installed for SysV startup ** 2009-01-14 12:57:15 Monitoring: STOPPED 2009-01-14 12:57:15 Monitoring: =================================== Stopping httpd: [FAILED] Stopping tomcat5: Stopping RHN Taskomatic... RHN Taskomatic was not running. Done. |