从opscenter升级datastax-agent失败

时间:2015-03-05 20:35:42

标签: datastax-enterprise datastax opscenter

使用OpsCenter 5.0.0运行Datastax Enterprise 4.5.1并尝试将OpsCenter和datastax-agents升级到OpsCenter版本5.1.0

这是AWS中2个节点的测试集群。

我从Datastax网站下载了OpsCenter 5.1.0,并成功升级了测试集群中的OpsCenter服务器。正如所料,在连接到新的OpsCenter网页后,显示一条消息,指出代理无法连接。

我尝试从OpsCenter Web UI升级代理。我以pem格式添加了AWS的凭据,用户名'ubuntu'和公钥,并运行了升级。它失败了。

在/var/log/opscenterd/opscenterd.log中,我看到以下内容:

2015-03-05 17:47:33+0000 []  WARN: Marking request e3f82540-3bd8-4d27-81dd-e40fd476dd0a as failed: Failure installing agent on 10.0.11.138.
         Standard output:
                bin/find-java
                bin/install_agent.sh
                bin/sudowrap
                ./datastax-agent.deb
                ./datastax-agent.rpm
                DataStax AMI wasn't used
                * Stopping DataStax Agent datastax-agent
                ...done.
                Reading package lists...
                Building dependency tree...
                Reading state information...
                E: Unable to locate package opscenter-agent
                Starting agent installation process for version 5.1.0
                Reading package lists...
                Building dependency tree...
                Reading state information...
                sysstat is already the newest version.
                0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                Selecting previously unselected package datastax-agent.
                (Reading database ... 82449 files and directories currently installed.)
                Preparing to unpack .../datastax-agent.deb ...
                Unpacking datastax-agent (5.1.0) ...
                Setting up datastax-agent (5.1.0) ...

                Configuration file '/etc/datastax-agent/datastax-agent-env.sh'
                ==> File on system created by you or by a script.
                ==> File also in package provided by package maintainer.
                What would you like to do about it ?  Your options are:
                Y or I  : install the package maintainer's version
                N or O  : keep your currently-installed version
                D     : show the differences between the versions
                Z     : start a shell to examine the situation
                The default action is to keep your current version.

         Exit code: 130

当我去节点时,dpkg进程仍在运行,我不得不手动杀死它。我再次从webUI运行升级过程;这次它说它很成功,但代理人仍然没有连接。

知道发生了什么,或者如何解决它?

2 个答案:

答案 0 :(得分:1)

当用户修改包中已更改的配置文件时,这是一个已知问题。对此的两种可能的解决方法是在每个节点上手动安装代理程序包,以便您可以选择程序包管理器应采取的操作;或者要恢复datastax-agent-env.sh中的更改,请通过OpsCenter安装代理,然后重新应用更改(仅当您确切知道所做的更改时才可以这样做。)

作为参考,在OpsCenter中修复此内容的内部故障单是OPSC-4495,应在即将发布的补丁版本中修复。

答案 1 :(得分:0)

您是否尝试通过sudo apt-get update && sudo apt-get upgrade datastax-agent

在每个节点上手动升级datastax-agent