Remote Execution Plugin - Feedback

Hi Marek & Ivan,

I could not install the Plugin from nightly due to dependencies issues, so
I played a little bit with the old one from Stable (0.0.4):

Question:

  • for how long (day/month/years) are the Reports stored under “Monitor =>
    Jobs/Tasks”?
  • what value is needed under the "search Query" to perform a Job on a "Host
    Collections"?

Feature Request if possible: (please let me know if I should open a
ticket)

  • add "run_job" link to "Host Collections => Collection Actions"
  • add column "date & time" to "Job invocations" under "Monitor => Jobs"

Issues: (I did not find any bug report, but I´m not sure if its working on
newer release – so please let me know if I should open a ticket for the
issues):

-By running a command on more than 6 single hosts following message is
displayed
PGError: ERROR: value too long for type character varying(255) : INSERT
INTO "targetings" ("bookmark_id", "created_at", "resolved_at",
"search_query", "targeting_type", "updated_at", "user_id") VALUES ($1, $2,
$3, $4, $5, $6, $7) RETURNING "id"

  • SSH Connection for Remote Execution is failing if .bashrc on Remote Host
    has some echo command like ‘echo “hello”’
    Exception: TypeError no implicit conversion of Net::SSH::Connection::Channel
    into StringException: TypeError no implicit conversion of Net::SSH::
    Connection::Channel into String

Thanks,
Christian

Another small feature request:
push remete execution script on client to other place (e.g: /var/tmp
instead of /tmp)

  • It could be for Security Reasons that /tmp is mounted as noexec and in
    that case the Remote Execution will fail with "Permission Denied" in Details
    even it was displayed as ok in the Overview
  • In addition it could be also that /tmp is mounted as tmpfs, in that case
    I will loose tracking too in case of a reboot…

best regards,
Christian

> Hi Marek & Ivan,

> I could not install the Plugin from nightly due to dependencies issues, so I
> played a little bit with the old one from Stable (0.0.4):

> Question:
> - for how long ( day / month / years ) are the Reports stored under “ Monitor
> => Jobs / Tasks ”?
> - what value is needed under the "search Query" to perform a Job on a "Host
> Collections" ?

By default, we don't clean the tasks, but foreman-tasks provide a way how to clean old tasks, see
https://github.com/theforeman/foreman-tasks#tasks-cleanup . I've failed an issue to track this

··· ----- Original Message -----

Feature Request if possible: (please let me know if I should open a ticket)

  • add “run_job” link to “Host Collections => Collection Actions”
  • add column “date & time” to “Job invocations” under “Monitor => Jobs”

Issues: (I did not find any bug report, but I´m not sure if its working on
newer release – so please let me know if I should open a ticket for the
issues):

  • By running a command on more than 6 single hosts following message is
    displayed
    PGError : ERROR : value too long for type character varying ( 255 ) : INSERT
    INTO “targetings” ( “bookmark_id” , “created_at” , “resolved_at” ,
    “search_query” , “targeting_type” , “updated_at” , “user_id” ) VALUES ( $1 ,
    $2 , $3 , $4 , $5 , $6 , $7 ) RETURNING “id”
  • SSH Connection for Remote Execution is failing if . bashrc on Remote Host
    has some echo command like ‘ echo “ hello ”’
    Exception : TypeError no implicit conversion of Net :: SSH :: Connection ::
    Channel into StringException : TypeError no implicit conversion of Net ::
    SSH :: Connection :: Channel into String

Thanks,
Christian

You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com .
To post to this group, send email to foreman-users@googlegroups.com .
Visit this group at http://groups.google.com/group/foreman-users .
For more options, visit https://groups.google.com/d/optout .

> > Hi Marek & Ivan,
>

> > I could not install the Plugin from nightly due to dependencies issues, so
> > I
> > played a little bit with the old one from Stable (0.0.4):
>

> > Question:
>
> > - for how long ( day / month / years ) are the Reports stored under “
> > Monitor
> > => Jobs / Tasks ”?
>
> > - what value is needed under the "search Query" to perform a Job on a "Host
> > Collections" ?
>

> By default, we don't clean the tasks, but foreman-tasks provide a way how to
> clean old tasks, see
> https://github.com/theforeman/foreman-tasks#tasks-cleanup . I've failed an
> issue to track this

Premature send: Feature #11993: Cleanup configuration for execution jobs - Foreman Remote Execution - Foreman

> > Feature Request if possible: (please let me know if I should open a ticket)
>
> > - add "run_job" link to "Host Collections => Collection Actions"
>

This will be part of getting the support into Katello workflow

> > - add column "date & time" to "Job invocations" under "Monitor => Jobs"
>

Tracking in Feature #11994: Add invocation times to the job index page - Foreman Remote Execution - Foreman

> > Issues: (I did not find any bug report, but I´m not sure if its working on
> > newer release – so please let me know if I should open a ticket for the
> > issues):
>
> > - By running a command on more than 6 single hosts following message is
> > displayed
>
> > PGError : ERROR : value too long for type character varying ( 255 ) :
> > INSERT
> > INTO "targetings" ( "bookmark_id" , "created_at" , "resolved_at" ,
> > "search_query" , "targeting_type" , "updated_at" , "user_id" ) VALUES ( $1
> > ,
> > $2 , $3 , $4 , $5 , $6 , $7 ) RETURNING "id"
>

> > - SSH Connection for Remote Execution is failing if . bashrc on Remote Host
> > has some echo command like ‘ echo “ hello ”’
>
> > Exception : TypeError no implicit conversion of Net :: SSH :: Connection ::
> > Channel into StringException : TypeError no implicit conversion of Net ::
> > SSH :: Connection :: Channel into String
>

This was fixed in 0.0.5 and will be available in next version we backport to 1.9 repo (it takes a bit longer than expected due to the review process, but we should
have it in soon)

Thanks for the feedback!

– Ivan

··· ----- Original Message ----- > ----- Original Message -----

Thanks,

Christian

You received this message because you are subscribed to the Google Groups
"Foreman users" group.

To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com .

To post to this group, send email to foreman-users@googlegroups.com .

Visit this group at http://groups.google.com/group/foreman-users .

For more options, visit https://groups.google.com/d/optout .

> Another small feature request:
> push remete execution script on client to other place (e.g: /var/tmp
> instead of /tmp)
> - It could be for Security Reasons that /tmp is mounted as noexec and in
> that case the Remote Execution will fail with "Permission Denied" in Details
> even it was displayed as ok in the Overview
> - In addition it could be also that /tmp is mounted as tmpfs, in that case
> I will loose tracking too in case of a reboot…

Good point, added an issue here Bug #11995: Make local_working_dir and remote_working_dir configurable and use better defaults - Foreman Remote Execution - Foreman

– Ivan

··· ----- Original Message -----

best regards,
Christian


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.