obd 部署obagent时报错

用obd部署obagent时报错提示下面的错误信息,不知道可以从哪里找问题

[admin@ers1 ~]$ obd cluster deploy obagent-only -c /home/admin/rpm/obagent-only-example.yaml

Package obagent-1.0.0 is available.

[ERROR] No such install plugin for obagent-1.0.0

用 obd mirror list local 命令也能查到本地仓库里已存在

obagent | 1.0.0 | 1.el8 | x86_64 | 326b44154d298fa82fdafe9c9127699bb8ab24b7 |

[admin@ers1 mirror]$ ls -l /home/admin/.obd/mirror/local

total 270696

-rw-rw-r-- 1 admin admin 1031652 Dec 23 18:31 libobclient-2.0.0-2.el8.x86_64.rpm

-rw-rw-r-- 1 admin admin 8030896 Dec 23 18:31 obagent-1.0.0-1.el8.x86_64.rpm

-rw-rw-r-- 1 admin admin 199414632 Dec 23 18:32 obclient-2.0.0-2.el8.x86_64.rpm

-rw-rw-r-- 1 admin admin 13304516 Dec 23 18:32 ob-deploy-1.1.0-1.el8.x86_64.rpm

-rw-rw-r-- 1 admin admin 8190556 Dec 23 18:32 obproxy-3.1.0-1.el8.x86_64.rpm

-rw-rw-r-- 1 admin admin 46707172 Dec 23 18:32 oceanbase-ce-3.1.0-3.el8.x86_64.rpm

-rw-rw-r-- 1 admin admin 497772 Dec 23 18:32 oceanbase-ce-libs-3.1.0-3.el8.x86_64.rpm

可以在执行的时候加上-v 输出详细的信息贴出来看看报错的原因。

obd cluster deploy obagent-only -c /home/admin/rpm/obagent-only-example.yaml -v

谢谢你的回复请帮我看一下,我按你的命令执行如下:

[admin@drapers1 rpm]$ obd cluster deploy obagent-only -c obagent-only-example_orgi.yaml -v

  • open /home/admin/.obd/version for a+
  • Get Deploy by name
  • mkdir /home/admin/.obd/cluster/
  • Get deploy info
  • judge deploy status
  • config path is None or not
  • Create deploy by configuration path
  • mkdir /home/admin/.obd/cluster/obagent-only
  • copy obagent-only-example_orgi.yaml /home/admin/.obd/cluster/obagent-only/config.yaml
  • Get deploy configuration
  • Search best suitable repository
  • Search package for components...
  • Get obagent repository
  • mkdir /home/admin/.obd/repository
  • mkdir /home/admin/.obd/repository/obagent
  • Search obagent package from mirror
  • mkdir /home/admin/.obd/mirror
  • mkdir /home/admin/.obd/mirror/remote
  • mkdir /home/admin/.obd/mirror/local
  • md5 is None
  • name is obagent
  • arch is ['ia32e', 'x86_64', 'athlon', 'i686', 'i586', 'i486', 'i386', 'noarch']
  • release is None
  • version is None
  • get RPM package by name: obagent

version: 1.0.0

release:1.el8

arch: x86_64

md5: 326b44154d298fa82fdafe9c9127699bb8ab24b7

  • Found Package obagent-1.0.0-326b44154d298fa82fdafe9c9127699bb8ab24b7

Package obagent-1.0.0 is available.

  • Searching install plugin for components ...
  • Searching install plugin for components ...
  • Search install plugin for obagent
  • mkdir /home/admin/.obd/plugins

[ERROR] No such install plugin for obagent-1.0.0

对了,我下载的obagent的版本是obagent-1.0.0-1.el8.x86_64.rpm

1、查看一下obd的版本是什么,obd --version

2、提供一下obagent-only-example.yaml 附件。

[admin@ers1 ~]$ obd --version

OceanBase Deploy: 1.1.0

REVISION: 

BUILD_BRANCH: 

BUILD_TIME: Aug 10 2021 11:50:40OURCE

Copyright (C) 2021 OceanBase

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.



貌似不能上传附件呀

obagent-only-example.yaml文件内容如下: 

obagent:

 servers:

  # Please don't use hostname, only IP can be supported

  #- 10.61.2.237

  #- 10.61.3.235

  #- 10.61.3.248

  • name: drapers1

   ip: 10.61.2.237

  • name: drapers2

   ip: 10.61.3.235

  • name: drapers3

   ip: 10.61.3.248

 global:

  # The working directory for obagent. obagent is started under this directory. This is a required field.

  home_path: /home/admin/obagent

  # The port that pulls and manages the metrics. The default port number is 8088.

  server_port: 8088

  # Debug port for pprof. The default port number is 8089.

  pprof_port: 8089

  # Log level. The default value is INFO.

  log_level: INFO

  # Log path. The default value is log/monagent.log.

  log_path: log/monagent.log

  # Encryption method. OBD supports aes and plain. The default value is plain.

  crypto_method: plain

  # Path to store the crypto key. The default value is conf/.config_secret.key.

  # crypto_path: conf/.config_secret.key

  # Size for a single log file. Log size is measured in Megabytes. The default value is 30M.

  log_size: 30

  # Expiration time for logs. The default value is 7 days.

  log_expire_day: 7

  # The maximum number for log files. The default value is 10.

  log_file_count: 10

  # Whether to use local time for log files. The default value is true.

  # log_use_localtime: true

  # Whether to enable log compression. The default value is true.

  # log_compress: true

  # Username for HTTP authentication. The default value is admin.

  http_basic_auth_user: admin

  # Password for HTTP authentication. The default value is root.

  http_basic_auth_password: root

  # Username for debug service. The default value is admin.

  pprof_basic_auth_user: admin

  # Password for debug service. The default value is root.

  pprof_basic_auth_password: root

  # Monitor username for OceanBase Database. The user must have read access to OceanBase Database as a system tenant. The default value is root.

  monitor_user: monitor

  # Monitor password for OceanBase Database. The default value is empty. When a depends exists, OBD gets this value from the oceanbase-ce of the depends. The value is the same as the root_password in oceanbase-ce.

  monitor_password: root 

  # The SQL port for observer. The default value is 2881. When a depends exists, OBD gets this value from the oceanbase-ce of the depends. The value is the same as the mysql_port in oceanbase-ce.

  sql_port: 2881

  # The RPC port for observer. The default value is 2882. When a depends exists, OBD gets this value from the oceanbase-ce of the depends. The value is the same as the rpc_port in oceanbase-ce.

  rpc_port: 2882

  # Cluster name for OceanBase Database. When a depends exists, OBD gets this value from the oceanbase-ce of the depends. The value is the same as the appname in oceanbase-ce.

  cluster_name: obcluster

  # Cluster ID for OceanBase Database. When a depends exists, OBD gets this value from the oceanbase-ce of the depends. The value is the same as the cluster_id in oceanbase-ce.

  cluster_id: 1

  # Zone name for your observer. The default value is zone1. When a depends exists, OBD gets this value from the oceanbase-ce of the depends. The value is the same as the zone name in oceanbase-ce.

 drapers1:

  zone_name: zone1

 drapers2:

  zone_name: zone2

 drapers3:

  zone_name: zone3

  # Monitor status for OceanBase Database. Active is to enable. Inactive is to disable. The default value is active. When you deploy an cluster automatically, OBD decides whether to enable this parameter based on depends.

  ob_monitor_status: active

  # Monitor status for your host. Active is to enable. Inactive is to disable. The default value is active.

  host_monitor_status: active

  disable_http_basic_auth: false

  disable_pprof_basic_auth: false

obd 1.1.1 才开始支持部署obagent, 建议使用最新版本的obd

谢谢,升级了obd已成功部署obagent

[admin@drapers1 rpm]$ obd --version

OceanBase Deploy: 1.1.2

REVISION: 

BUILD_BRANCH: 

BUILD_TIME: Nov 03 2021 11:54:01OURCE

Copyright (C) 2021 OceanBase

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.

[admin@drapers1 rpm]$ obd cluster deploy obagent-only -c obagent-only-example.yaml

Update OceanBase-community-stable-el8 ok

Update OceanBase-development-kit-el8 ok

Package obagent-1.0.0 is available.

install obagent-1.0.0 for local ok

+---------------------------------------------------------------------------+

|                 Packages                 |

+------------+---------+---------+------------------------------------------+

| Repository | Version | Release | Md5                   |

+------------+---------+---------+------------------------------------------+

| obagent  | 1.0.0  | 1.el8  | 326b44154d298fa82fdafe9c9127699bb8ab24b7 |

+------------+---------+---------+------------------------------------------+

Repository integrity check ok

Parameter check ok

Open ssh connection ok

Remote obagent-1.0.0-326b44154d298fa82fdafe9c9127699bb8ab24b7 repository install ok

Remote obagent-1.0.0-326b44154d298fa82fdafe9c9127699bb8ab24b7 repository lib check ok

Cluster status check ok

Initializes obagent work home ok

obagent-only deployed


This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.