You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "Roman Shaposhnik (JIRA)" <ji...@apache.org> on 2012/11/21 23:42:58 UTC
[jira] [Created] (BIGTOP-792) org.apache.bigtop.itest.posix.Service
needs to be updated to accomodate upstart/systemd
Roman Shaposhnik created BIGTOP-792:
---------------------------------------
Summary: org.apache.bigtop.itest.posix.Service needs to be updated to accomodate upstart/systemd
Key: BIGTOP-792
URL: https://issues.apache.org/jira/browse/BIGTOP-792
Project: Bigtop
Issue Type: Improvement
Components: Tests
Affects Versions: 0.5.0
Reporter: Roman Shaposhnik
Fix For: 0.5.0
With the output and return valued drastically different on latest Linux distros it seems that the Service implementation needs to be updated to accommodate upstart/systemd.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (BIGTOP-792) org.apache.bigtop.itest.posix.Service
needs to be updated to accomodate upstart/systemd
Posted by "Johnny Zhang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BIGTOP-792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Johnny Zhang updated BIGTOP-792:
--------------------------------
Attachment: BIGTOP-792.patch.txt
> org.apache.bigtop.itest.posix.Service needs to be updated to accomodate upstart/systemd
> ---------------------------------------------------------------------------------------
>
> Key: BIGTOP-792
> URL: https://issues.apache.org/jira/browse/BIGTOP-792
> Project: Bigtop
> Issue Type: Improvement
> Components: Tests
> Affects Versions: 0.5.0
> Reporter: Roman Shaposhnik
> Assignee: Johnny Zhang
> Fix For: 0.5.0
>
> Attachments: BIGTOP-792.patch.txt
>
>
> With the output and return valued drastically different on latest Linux distros it seems that the Service implementation needs to be updated to accommodate upstart/systemd.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (BIGTOP-792)
org.apache.bigtop.itest.posix.Service needs to be updated to accomodate
upstart/systemd
Posted by "Johnny Zhang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BIGTOP-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507901#comment-13507901 ]
Johnny Zhang commented on BIGTOP-792:
-------------------------------------
in systemd, only "service <SERVICE_NAME> status" output is different.
there are some examples of output of "service <SERVICE_NAME> status" in opensuse12
serviced stopped
{noformat}
hive-server.service - LSB: Starts a Hive server
Loaded: loaded (/etc/init.d/hive-server)
Active: failed (Result: exit-code) since Sat, 01 Dec 2012 03:19:48 -0500; 13min ago
Process: 11473 ExecStop=/etc/init.d/hive-server stop (code=exited, status=0/SUCCESS)
Process: 11377 ExecStart=/etc/init.d/hive-server start (code=exited, status=0/SUCCESS)
Main PID: 11388 (code=exited, status=143)
CGroup: name=systemd:/system/hive-server.service
Dec 01 03:19:42 opensuse12livecd hive-server[11377]: Starting (hive-server): ..done
Dec 01 03:19:42 opensuse12livecd hive-server[11377]: nohup: failed to run command ' ': No such fi...ry
Dec 01 03:19:43 opensuse12livecd hive-server[11377]: ...killed.
Dec 01 03:19:47 opensuse12livecd hive-server[11473]: Stopping (hive-server): ..done
{noformat}
service stopped
{noformat}
solr-server.service - LSB: Solr server
Loaded: loaded (/etc/init.d/solr-server)
Active: inactive (dead) since Sat, 01 Dec 2012 03:36:39 -0500; 1s ago
Process: 11902 ExecStop=/etc/init.d/solr-server stop (code=exited, status=0/SUCCESS)
Process: 11861 ExecStart=/etc/init.d/solr-server start (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/solr-server.service
Dec 01 03:35:05 opensuse12livecd solr-server[11861]: Solr server daemon agent is not running..failed
Dec 01 03:35:05 opensuse12livecd solr-server[11861]: Starting Solr server daemon: ..done
Dec 01 03:35:05 opensuse12livecd su[11868]: (to solr) root on none
Dec 01 03:35:07 opensuse12livecd solr-server[11861]: ...killed.
Dec 01 03:36:35 opensuse12livecd solr-server[11902]: Stopping Solr server daemon: ..done
Dec 01 03:36:35 opensuse12livecd su[11908]: (to solr) root on none
Dec 01 03:36:39 opensuse12livecd solr-server[11902]: ...killed.
{noformat}
service started
{noformat}
solr-server.service - LSB: Solr server
Loaded: loaded (/etc/init.d/solr-server)
Active: active (exited) since Sat, 01 Dec 2012 03:35:07 -0500; 5s ago
Process: 10495 ExecStop=/etc/init.d/solr-server stop (code=exited, status=0/SUCCESS)
Process: 11861 ExecStart=/etc/init.d/solr-server start (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/solr-server.service
Dec 01 03:35:05 opensuse12livecd solr-server[11861]: Solr server daemon agent is not running..failed
Dec 01 03:35:05 opensuse12livecd solr-server[11861]: Starting Solr server daemon: ..done
Dec 01 03:35:05 opensuse12livecd su[11868]: (to solr) root on none
Dec 01 03:35:07 opensuse12livecd solr-server[11861]: ...killed.
{noformat}
So, identify substring "Active: active", "Active: inactive", "Active: failed" is sufficient to identify service status.
> org.apache.bigtop.itest.posix.Service needs to be updated to accomodate upstart/systemd
> ---------------------------------------------------------------------------------------
>
> Key: BIGTOP-792
> URL: https://issues.apache.org/jira/browse/BIGTOP-792
> Project: Bigtop
> Issue Type: Improvement
> Components: Tests
> Affects Versions: 0.5.0
> Reporter: Roman Shaposhnik
> Assignee: Johnny Zhang
> Fix For: 0.5.0
>
> Attachments: BIGTOP-792.patch.txt
>
>
> With the output and return valued drastically different on latest Linux distros it seems that the Service implementation needs to be updated to accommodate upstart/systemd.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (BIGTOP-792)
org.apache.bigtop.itest.posix.Service needs to be updated to accomodate
upstart/systemd
Posted by "Roman Shaposhnik (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BIGTOP-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507719#comment-13507719 ]
Roman Shaposhnik commented on BIGTOP-792:
-----------------------------------------
@Johnny -- sure thing -- for now just update it to the point where it can handle OpenSUSE12
> org.apache.bigtop.itest.posix.Service needs to be updated to accomodate upstart/systemd
> ---------------------------------------------------------------------------------------
>
> Key: BIGTOP-792
> URL: https://issues.apache.org/jira/browse/BIGTOP-792
> Project: Bigtop
> Issue Type: Improvement
> Components: Tests
> Affects Versions: 0.5.0
> Reporter: Roman Shaposhnik
> Assignee: Johnny Zhang
> Fix For: 0.5.0
>
>
> With the output and return valued drastically different on latest Linux distros it seems that the Service implementation needs to be updated to accommodate upstart/systemd.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (BIGTOP-792)
org.apache.bigtop.itest.posix.Service needs to be updated to accomodate
upstart/systemd
Posted by "Roman Shaposhnik (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BIGTOP-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506718#comment-13506718 ]
Roman Shaposhnik commented on BIGTOP-792:
-----------------------------------------
Johnny, here's how the output is now different. E.g.: http://bigtop01.cloudera.org:8080/view/Bigtop-trunk/job/Bigtop-trunk-packagetest/label=opensuse12-slave/lastCompletedBuild/testReport/org.apache.bigtop.itest.packagesmoke/TestPackagesPseudoDistributedServices/testPackageServices_hive_metastore_/
Hence the tests are failing
> org.apache.bigtop.itest.posix.Service needs to be updated to accomodate upstart/systemd
> ---------------------------------------------------------------------------------------
>
> Key: BIGTOP-792
> URL: https://issues.apache.org/jira/browse/BIGTOP-792
> Project: Bigtop
> Issue Type: Improvement
> Components: Tests
> Affects Versions: 0.5.0
> Reporter: Roman Shaposhnik
> Assignee: Johnny Zhang
> Fix For: 0.5.0
>
>
> With the output and return valued drastically different on latest Linux distros it seems that the Service implementation needs to be updated to accommodate upstart/systemd.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (BIGTOP-792)
org.apache.bigtop.itest.posix.Service needs to be updated to accomodate
upstart/systemd
Posted by "Johnny Zhang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BIGTOP-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507699#comment-13507699 ]
Johnny Zhang commented on BIGTOP-792:
-------------------------------------
@Roman, the link you give is OpenSuse 12 using systemd. Can we update the Service class to handle systemd first? In the future, when the platforms we support using upstart, we can reopen this jira to support upstart then.
> org.apache.bigtop.itest.posix.Service needs to be updated to accomodate upstart/systemd
> ---------------------------------------------------------------------------------------
>
> Key: BIGTOP-792
> URL: https://issues.apache.org/jira/browse/BIGTOP-792
> Project: Bigtop
> Issue Type: Improvement
> Components: Tests
> Affects Versions: 0.5.0
> Reporter: Roman Shaposhnik
> Assignee: Johnny Zhang
> Fix For: 0.5.0
>
>
> With the output and return valued drastically different on latest Linux distros it seems that the Service implementation needs to be updated to accommodate upstart/systemd.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (BIGTOP-792)
org.apache.bigtop.itest.posix.Service needs to be updated to accomodate
upstart/systemd
Posted by "Bruno Mahé (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BIGTOP-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506333#comment-13506333 ]
Bruno Mahé commented on BIGTOP-792:
-----------------------------------
Most GNU/Linux distributions provide a "service"-like implementation for backward compatibility.
For instance systemd provides a service implementation on my Fedora 17
> org.apache.bigtop.itest.posix.Service needs to be updated to accomodate upstart/systemd
> ---------------------------------------------------------------------------------------
>
> Key: BIGTOP-792
> URL: https://issues.apache.org/jira/browse/BIGTOP-792
> Project: Bigtop
> Issue Type: Improvement
> Components: Tests
> Affects Versions: 0.5.0
> Reporter: Roman Shaposhnik
> Assignee: Johnny Zhang
> Fix For: 0.5.0
>
>
> With the output and return valued drastically different on latest Linux distros it seems that the Service implementation needs to be updated to accommodate upstart/systemd.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (BIGTOP-792)
org.apache.bigtop.itest.posix.Service needs to be updated to accomodate
upstart/systemd
Posted by "Johnny Zhang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BIGTOP-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506156#comment-13506156 ]
Johnny Zhang commented on BIGTOP-792:
-------------------------------------
[~rvs], I think Bigtop right now is using sysvinit to manage service daemon : we use "service <SERVICE_DAMON> start/stop/restart/status" to manage and monitor daemon.
If the Linux distro changed to system/upstart, are we still able to use "service <SERVICE_DAMON> start/stop/restart/status" to do what we used to do ? How can I try it if I install Hadoop from Bigtop trunk? Thanks!
> org.apache.bigtop.itest.posix.Service needs to be updated to accomodate upstart/systemd
> ---------------------------------------------------------------------------------------
>
> Key: BIGTOP-792
> URL: https://issues.apache.org/jira/browse/BIGTOP-792
> Project: Bigtop
> Issue Type: Improvement
> Components: Tests
> Affects Versions: 0.5.0
> Reporter: Roman Shaposhnik
> Assignee: Johnny Zhang
> Fix For: 0.5.0
>
>
> With the output and return valued drastically different on latest Linux distros it seems that the Service implementation needs to be updated to accommodate upstart/systemd.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (BIGTOP-792)
org.apache.bigtop.itest.posix.Service needs to be updated to accomodate
upstart/systemd
Posted by "Johnny Zhang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BIGTOP-792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Johnny Zhang reassigned BIGTOP-792:
-----------------------------------
Assignee: Johnny Zhang
> org.apache.bigtop.itest.posix.Service needs to be updated to accomodate upstart/systemd
> ---------------------------------------------------------------------------------------
>
> Key: BIGTOP-792
> URL: https://issues.apache.org/jira/browse/BIGTOP-792
> Project: Bigtop
> Issue Type: Improvement
> Components: Tests
> Affects Versions: 0.5.0
> Reporter: Roman Shaposhnik
> Assignee: Johnny Zhang
> Fix For: 0.5.0
>
>
> With the output and return valued drastically different on latest Linux distros it seems that the Service implementation needs to be updated to accommodate upstart/systemd.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (BIGTOP-792)
org.apache.bigtop.itest.posix.Service needs to be updated to accomodate
upstart/systemd
Posted by "Roman Shaposhnik (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BIGTOP-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506633#comment-13506633 ]
Roman Shaposhnik commented on BIGTOP-792:
-----------------------------------------
Johnny, I think Bruno answered most of you questions. Basically, the service command is still there (in emulation mode) but its output has changed on systemd-enabled systems. Which means that the org.apache.bigtop.itest.posix.Service can't determine the status of the service, etc. This needs to be fixed.
> org.apache.bigtop.itest.posix.Service needs to be updated to accomodate upstart/systemd
> ---------------------------------------------------------------------------------------
>
> Key: BIGTOP-792
> URL: https://issues.apache.org/jira/browse/BIGTOP-792
> Project: Bigtop
> Issue Type: Improvement
> Components: Tests
> Affects Versions: 0.5.0
> Reporter: Roman Shaposhnik
> Assignee: Johnny Zhang
> Fix For: 0.5.0
>
>
> With the output and return valued drastically different on latest Linux distros it seems that the Service implementation needs to be updated to accommodate upstart/systemd.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira