Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 632429

Summary: Replace section 3.2 Using the MRG Management Console with MRG Grid
Product: Red Hat Enterprise MRG Reporter: Trevor McKay <tmckay>
Component: Management_Console_Installation_GuideAssignee: Lana Brindley <lbrindle>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Sarenik <jsarenik>
Severity: high Docs Contact:
Priority: high    
Version: DevelopmentCC: jross, jsarenik, lbrindle, matt, mhideo
Target Milestone: 1.3   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-14 20:31:52 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:

Description Trevor McKay 2010-09-09 21:45:58 UTC
Description of problem:

The current section 3.2 is overly complex and/or incorrect in that it leaves out installation of the condor-qmf package which is essential.

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

This is for 1.3

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:

Section 3.2 should be replaced with something close to the following:

3.2. Using the MRG Management Console with MRG Grid
  Connecting MRG Grid to the MRG Management Console
   Be sure to install MRG Grid using the procedures located in the Grid
Installation Guide

   You will be installing the Condor QMF plugins (which augment the
Condor daemons by connecting them to a Qpid broker and making them
accessible via QMF) and modifying configuration of each of your grid nodes.

  Note, you will need to have root privilege to execute the following yum and echo commands.

  First, install the condor-qmf package. It provides QMF plugins to
various Condor daemons:

   # yum install condor-qmf

  Second, if your qpidd broker is not running on localhost, set the
QMF_BROKER_HOST to the hostname of the machine running your Qpid broker:

   # echo "QMF_BROKER_HOST = <hostname of broker machine>" >> /etc/condor/config.d/40QMF.config

  Finally, if Condor was already running during the two steps above,
restart it with `service condor restart`.

Additional configuration to enable all Console features:

  To allow for submissions from the Console, set QUEUE_ALL_USERS_TRUSTED
= TRUE, on the Grid nodes running the condor_schedd.
   # echo "QUEUE_ALL_USERS_TRUSTED = TRUE" >> /etc/condor/config.d/40QMF.config

  To enable fair-share editing from the Console, set
ENABLE_RUNTIME_CONFIG = TRUE, on the Grid nodes running the
condor_negotiator.
   # echo "ENABLE_RUNTIME_CONFIG = TRUE" >> /etc/condor/config.d/40QMF.config

Also, the sampling frequency of some graphs in the Grid overview screens
are controlled by how quickly the Condor Collector sends updates. The
default update rate is 15 minutes (900 seconds). It may be desirable to
increase the rate by changing COLLECTOR_UPDATE_INTERVAL. For instance,
on the Grid node running your condor_collector,

  # echo "COLLECTOR_UPDATE_INTERVAL = 60" >> /etc/condor/config.d/40QMF.config

Additional info:

Comment 1 Trevor McKay 2010-09-10 12:06:13 UTC
My apologies, this is based on revision 3.1 of the document.

Comment 2 Trevor McKay 2010-09-10 12:26:27 UTC
After consideration, we (grid) suggest that this revised section 3.2 should be folded into chapter 2 as follows:

1) Create a new subsection between the existing "first run" and "install sesame" subsections in chapter 2 which contains the revisions above.  Add a note that if the console will not be used with Grid, this new subsection may be skipped (similar to the language in the current Chapter 2, First Run, Step 1).

2) Eliminate the current Chapter 2, First Run, Step 1 which talks about condor-qmf installation since this subsection covers it and it is only necessary for use with Grid.

BZ 632424 (linked above) relates to Chapter 2, First Run changes as well.

Comment 3 Lana Brindley 2010-09-14 04:42:55 UTC
The condor-qmf package is mentioned in the Start Console chapter.

Everything else has largely changed. Please review the 3.2 version of the document on the stage (available within the next 24 hours) and let me know if any further changes are required.

Thanks,
LKB

Comment 4 Lana Brindley 2010-09-15 01:03:20 UTC
This has been updated again. Please look for revision 3.3, available shortly.

LKB

Comment 5 Trevor McKay 2010-09-15 14:11:18 UTC
As of revision 3.4, some of the original notes still apply.  Restated here.

Some of the current "Connecting MRG Grid to the MRG Management Console" in section 3.2 is incorrect.  All of the plugin configuration is handled automatically by installation of condor-qmf; this creates a /etc/condor/config.d/60condor-qmf.config file which sets up the plugins.  None of the 40* files need to exist except 40QMF.conf

If condor-qmf is installed in the Start Console chapter, the workflow that remains should be:

1) create the 40QMF.config file, as in the current step 1 (but not the other files)

2) As in the current step 6, set QMF_BROKER_HOST in the 40QMF.config files on all nodes where the qpidd broker is not running locally.

3) As in the current step 2, set QUEUE_ALL_USERS_TRUSTED = TRUE to allow submissions from the console but do it in the 40QMF.config files

4)  To enable fair-share editing from the Console, set
ENABLE_RUNTIME_CONFIG = TRUE in the 40QMF.config files on the Grid nodes running the condor_negotiator.

5) Also, the sampling frequency of some graphs in the Grid overview screens
are controlled by how quickly the Condor Collector sends updates. The
default update rate is 15 minutes (900 seconds). It may be desirable to
increase the rate by changing COLLECTOR_UPDATE_INTERVAL. 

For instance, on the Grid node running the condor_collector, set COLLECTOR_UPDATE_INTERVAL = 60 in the 40QMF.config

6) if Condor was already running during the two steps above, restart it with /sbin/service condor restart

Note, the defaults for QMF_PUBLISH_SUBMISSIONS have changed so this no longer explicitly needs to be turned off as it is in the current step 2.

Comment 6 Lana Brindley 2010-09-16 00:09:50 UTC
<section id="sect-Management_Console_Installation_Guide-Using_the_CONSOLE-Using_the_CONSOLE_with_GRID">
	<title>Using the &CONSOLE; with &GRID;</title>
	 <orderedlist id="orde-Management_Console_Installation_Guide-Using_the_CONSOLE_with_GRID-Connecting_the_CONSOLE_with_GRID">
	<title>Connecting the &CONSOLE; with &GRID;</title>
		 <para>
			Install &GRID; using the procedures located in the <citetitle>&GRID; Installation Guide</citetitle>
		</para>
	 <listitem>
		<para>
			Create a new file in the <filename>/etc/condor/config.d/</filename> directory called <filename>40QMF.config</filename>:
		</para>
				 
<screen>
# cd /etc/condor/config.d/
# touch 40QMF.config
</screen>
	</listitem>
	 <listitem>
		<para>
			Edit the new <emphasis>40QMF</emphasis> file on all nodes to add the following line, with the hostname of the machine running the broker:
		</para>
				 
<programlisting>
QMF_BROKER_HOST = <replaceable>hostname</replaceable></programlisting>

	</listitem>
	 <listitem>
		<para>
			Edit the new <emphasis>40QMF</emphasis> file on all nodes which are not running the &RHM; broker locally to add the following line:
		</para>
				
<programlisting>
QUEUE_ALL_USERS_TRUSTED = TRUE
</programlisting>
	</listitem>
	 <listitem>
		<para>
			To be able to edit fair-share in the &CONSOLE;, edit the new <emphasis>40QMF</emphasis> file on all nodes running the <command>condor_negotiator</command> to add the following line:
		</para>
				
<programlisting>
ENABLE_RUNTIME_CONFIG = TRUE
</programlisting>

	</listitem>
	 <listitem>
		<para>
			The sampling frequency of some graphs in the &GRID; overview screens is related to how frequently the Condor Collector sends updates. The default rate is fifteen minutes (900 sconds). This can be changed by adjusting the <command>COLLECTOR_UPDATE_INTERVAL</command> parameter.
		</para>
		 <para>
			Do this by editing the new <emphasis>40QMF</emphasis> file on the node running the <command>condor_collector</command> to add the following line, with the desired value in seconds:
		</para>
				
<programlisting>
COLLECTOR_UPDATE_INTERVAL = 60
</programlisting>

	</listitem>
	 <listitem>
		<para>
			Restart the <command>condor</command> service to pick up the changes:
		</para>
				
<screen>
# /sbin/service condor restart
</screen>

	</listitem>
</orderedlist>
<note>
<title>Note</title>
	 <para>
		&GRID; can also be configured remotely using the remote configuration feature. For more information about the remote configuration feature and how to use it, see the <citetitle>&GRID; User Guide</citetitle>.
	</para>
</note>
</section>
	
LKB

Comment 7 Lana Brindley 2010-09-16 02:32:01 UTC
Modified again in revision 3.6, after IRC chat with mattf and tmckay.

Thanks,
LKB

Comment 8 Lana Brindley 2010-09-16 02:37:23 UTC
(In reply to comment #7)
> Modified again in revision 3.6, after IRC chat with mattf and tmckay.
> 
> Thanks,
> LKB

Make that revision 3.7.
LKB

Comment 9 Jan Sarenik 2010-09-16 05:50:34 UTC
Verified in Revision 3.7, as of Thu Sep 16 2010.

Comment 10 Trevor McKay 2010-09-16 12:21:35 UTC
Notes on revision 3.7

A) There is a minor typo in the introduction in section 3.2.  Something wrong around the word "with" in the following sentence:

"Each of the nodes in the MRG Grid pool with then need to have the configuration modified."

B) In step 4, "Edit the new 40QMF file on all nodes running the condor_schedd to add the following line:"

  Note, the addition of QUEUE_ALL_USERS_TRUSTED = TRUE is only necessary if submissions are to be allowed from the console.  If submissions will not be allowed from the console, i.e. the console will only be used for monitoring, this step is not required.

  Therefore, this sentence should probably be prefaced with "To allow submissions from the Console, "

C) The bold "40QMF file" references do not say "40QMF.config file".  Is this an intentional abbreviation of the filename, or a mistake?

D) Finally, Matt has been arguing persistently for moving the "yum install condor-qmf" instructions from Chapter 2, First Run, step 1, to the beginning of section 3.2.

Although I think it is not a disaster to have it where it is currently in Chapter 2, since it notes specifically that it is only necessary if Console will be used with Grid, I agree with Matt that it makes more logical sense to move the "yum install condor-qmf" step to section 3.2 and remove the qualifying statement.

So the first few steps in 3.2 looks something like this:

"
1 Install MRG Grid using the procedures located in the MRG Grid Installation Guide

2  Install the condor-qmf package. It provides QMF plugins to
various Condor daemons:

   # yum install condor-qmf


3 Create a new file in the /etc/condor/config.d/ directory called 40QMF.config: 
"

and Chapter 2, Start Console, Step 1 disappears

Comment 11 Trevor McKay 2010-09-16 19:01:34 UTC
Additional notes after consultation with Matt.  These augment comment 10 above, using the same reference letter here to refer to the above comments:

B)  Concerning "QUEUE_ALL_USERS_TRUSTED".

  It is imperative to note that this parameter should only be set for nodes which the admin wishes to accept jobs submitted from the console.  This is not necessarily every node that is running schedd; it is ONLY the ones that the admin wishes to be available for job submissions from the console (schedds without this parameter set may still accept jobs submitted through condor tools).  This is important because this parameter relaxes some restrictions on the node.  No sense loosening restrictions when it is not intended.

D)  Concerning the moving of yum install condor-qmf out of Chapt 2 and into section 3.2:

    This really should be moved.

    It is ESSENTIAL to note that condor-qmf must be installed on all nodes that will communicate with the Console.  The current language in the instructions in Chapter 2 misses this completely.  

  "yum install condor-qmf" is a PER NODE operation.

Comment 12 Lana Brindley 2010-09-16 23:03:28 UTC
(In reply to comment #10)
> Notes on revision 3.7
> 
> A) There is a minor typo in the introduction in section 3.2.  Something wrong
> around the word "with" in the following sentence:
> 
> "Each of the nodes in the MRG Grid pool with then need to have the
> configuration modified."

<para>
	In order to use the &CONSOLE; to manage a &GRID; installation, some configuration must be performed. The Condor QMF plugins allow the condor daemons to connect to a &RHM; broker using QMF. Each of the nodes in the &GRID; pool will then need to have the configuration modified.
</para>

> 
> B) In step 4, "Edit the new 40QMF file on all nodes running the condor_schedd
> to add the following line:"
> 
>   Note, the addition of QUEUE_ALL_USERS_TRUSTED = TRUE is only necessary if
> submissions are to be allowed from the console.  If submissions will not be
> allowed from the console, i.e. the console will only be used for monitoring,
> this step is not required.
> 
>   Therefore, this sentence should probably be prefaced with "To allow
> submissions from the Console, "

<listitem>
	<para>
		To allow submissions from the &CONSOLE;, edit the new <filename>40QMF</filename> file on all nodes running the <command>condor_schedd</command> to add the following line:
	</para>
				 
<programlisting>
QUEUE_ALL_USERS_TRUSTED = TRUE
</programlisting>
	<para>
		This step is not required if the &CONSOLE; is only going to be used for monitoring.
	</para>
</listitem>


> C) The bold "40QMF file" references do not say "40QMF.config file".  Is this an
> intentional abbreviation of the filename, or a mistake?

The .config extension got added later on, so only the initial reference to the filename got it. I thought it was a bit clunky to repeat over and over, but I've changed them now to avoid any confusion.

> 
> D) Finally, Matt has been arguing persistently for moving the "yum install
> condor-qmf" instructions from Chapter 2, First Run, step 1, to the beginning of
> section 3.2.
> 
> Although I think it is not a disaster to have it where it is currently in
> Chapter 2, since it notes specifically that it is only necessary if Console
> will be used with Grid, I agree with Matt that it makes more logical sense to
> move the "yum install condor-qmf" step to section 3.2 and remove the qualifying
> statement.
> 
> So the first few steps in 3.2 looks something like this:
> 
> "
> 1 Install MRG Grid using the procedures located in the MRG Grid Installation
> Guide
> 
> 2  Install the condor-qmf package. It provides QMF plugins to
> various Condor daemons:
> 
>    # yum install condor-qmf
> 
> 
> 3 Create a new file in the /etc/condor/config.d/ directory called 40QMF.config: 
> "
> 
> and Chapter 2, Start Console, Step 1 disappears

Done.

LKB

Comment 13 Jan Sarenik 2010-09-17 05:51:51 UTC
*** Bug 633680 has been marked as a duplicate of this bug. ***

Comment 14 Jan Sarenik 2010-09-17 06:29:58 UTC
Verified in Revision 3.8, as of Fri Sep 17 2010.

Both 2. and 3.2. were changed appropriately.
What does Trevor think?

Comment 15 Trevor McKay 2010-09-17 12:05:44 UTC
I think this is okay.

Comment 16 Jan Sarenik 2010-09-17 13:11:56 UTC
Thanks. Setting to verified.

Comment 17 Trevor McKay 2010-09-17 14:49:38 UTC
Apologies, Jan, time-zone damage.  Late breaking review and request on behalf of Matt.

----

from Matt:

"If it will not be used with MRG Grid, this step can be skipped." should
be removed. This is the wrong place for that language.

If they skip the install step, what about all the other steps in that
section?

-------

* Strike this sentence from step 1 

  "If it will not be used with MRG Grid, this step can be skipped."

* Add a sentence to the 3.2 overview that says

  "If the MRG Management Console will not be used with MRG Grid, this section may be skipped."

Comment 18 Lana Brindley 2010-09-19 20:52:20 UTC
(In reply to comment #17)
> Apologies, Jan, time-zone damage.  Late breaking review and request on behalf
> of Matt.
> 
> ----
> 
> from Matt:
> 
> "If it will not be used with MRG Grid, this step can be skipped." should
> be removed. This is the wrong place for that language.
> 
> If they skip the install step, what about all the other steps in that
> section?
> 
> -------
> 
> * Strike this sentence from step 1 
> 
>   "If it will not be used with MRG Grid, this step can be skipped."

Covered in #630579.

> 
> * Add a sentence to the 3.2 overview that says
> 
>   "If the MRG Management Console will not be used with MRG Grid, this section
> may be skipped."

Considering the entire section is called "Using the Console with Grid", this can be considered implicit.

LKB

Comment 19 Jan Sarenik 2010-09-22 08:34:49 UTC
Verified in Revision 3.10, Wed Sep 22 2010.