赞
踩
遇到的问题太多了…………当然主要还是我自己能力太差了。
注意:官方没有提供直接可用的容器镜像
Rocky
、Debian
、Ubuntu
。CentOS可以使用Rocky镜像尝试,但我目前还没有尝试。Rocky 9
版的容器镜像搭建,但是ansible执行到rabbitmq容器拉活
时会失败以下是错误日志:
# ansible报错
RUNNING HANDLER [rabbitmq : Waiting for rabbitmq to start] ********************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["docker", "exec", "rabbitmq", "rabbitmqctl", "wait", "--timeout", "60", "/var/lib/rabbitmq/mnesia/rabbitmq.pid"], "delta": "0:01:03.693724", "end": "2024-05-02 00:11:34.853491", "msg": "non-zero return code", "rc": 75, "start": "2024-05-02 00:10:31.159767", "stderr": "Error: operation wait on node rabbit@localhost timed out. Timeout value used: 60000", "stderr_lines": ["Error: operation wait on node rabbit@localhost timed out. Timeout value used: 60000"], "stdout": "Waiting for pid file '/var/lib/rabbitmq/mnesia/rabbitmq.pid' to appear", "stdout_lines": ["Waiting for pid file '/var/lib/rabbitmq/mnesia/rabbitmq.pid' to appear"]}
#dockerlog (venv) [root@localhost ~]# docker logs 7319 + sudo -E kolla_set_configs INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json INFO:__main__:Validating config file INFO:__main__:Kolla config strategy set to: COPY_ALWAYS INFO:__main__:Copying service configuration files INFO:__main__:Copying /var/lib/kolla/config_files/rabbitmq-env.conf to /etc/rabbitmq/rabbitmq-env.conf INFO:__main__:Setting permission for /etc/rabbitmq/rabbitmq-env.conf INFO:__main__:Copying /var/lib/kolla/config_files/rabbitmq.conf to /etc/rabbitmq/rabbitmq.conf INFO:__main__:Setting permission for /etc/rabbitmq/rabbitmq.conf INFO:__main__:Copying /var/lib/kolla/config_files/erl_inetrc to /etc/rabbitmq/erl_inetrc INFO:__main__:Setting permission for /etc/rabbitmq/erl_inetrc INFO:__main__:Copying /var/lib/kolla/config_files/advanced.config to /etc/rabbitmq/advanced.config INFO:__main__:Setting permission for /etc/rabbitmq/advanced.config INFO:__main__:Copying /var/lib/kolla/config_files/definitions.json to /etc/rabbitmq/definitions.json INFO:__main__:Setting permission for /etc/rabbitmq/definitions.json INFO:__main__:Deleting /etc/rabbitmq/enabled_plugins INFO:__main__:Copying /var/lib/kolla/config_files/enabled_plugins to /etc/rabbitmq/enabled_plugins INFO:__main__:Setting permission for /etc/rabbitmq/enabled_plugins INFO:__main__:Writing out command to execute INFO:__main__:Setting permission for /var/lib/rabbitmq INFO:__main__:Setting permission for /var/lib/rabbitmq/.erlang.cookie ++ cat /run_command + CMD=/usr/sbin/rabbitmq-server + ARGS= + sudo kolla_copy_cacerts + [[ ! -n '' ]] + . kolla_extend_start ++ : /var/log/kolla/rabbitmq ++ [[ -n '' ]] ++ [[ ! -d /var/log/kolla/rabbitmq ]] ++ mkdir -p /var/log/kolla/rabbitmq +++ stat -c %a /var/log/kolla/rabbitmq ++ [[ 2755 != \7\5\5 ]] ++ chmod 755 /var/log/kolla/rabbitmq Running command: '/usr/sbin/rabbitmq-server' + echo 'Running command: '\''/usr/sbin/rabbitmq-server'\''' + exec /usr/sbin/rabbitmq-server 2024-05-02 00:10:38.621854+08:00 [info] <0.222.0> Feature flags: list of feature flags found: 2024-05-02 00:10:38.655267+08:00 [info] <0.222.0> Feature flags: [ ] classic_mirrored_queue_version 2024-05-02 00:10:38.655496+08:00 [info] <0.222.0> Feature flags: [ ] classic_queue_type_delivery_support 2024-05-02 00:10:38.656139+08:00 [info] <0.222.0> Feature flags: [ ] implicit_default_bindings 2024-05-02 00:10:38.656754+08:00 [info] <0.222.0> Feature flags: [ ] maintenance_mode_status 2024-05-02 00:10:38.657182+08:00 [info] <0.222.0> Feature flags: [ ] quorum_queue 2024-05-02 00:10:38.657378+08:00 [info] <0.222.0> Feature flags: [ ] stream_queue 2024-05-02 00:10:38.657553+08:00 [info] <0.222.0> Feature flags: [ ] user_limits 2024-05-02 00:10:38.658043+08:00 [info] <0.222.0> Feature flags: [ ] virtual_host_metadata 2024-05-02 00:10:38.658409+08:00 [info] <0.222.0> Feature flags: feature flag states written to disk: yes 2024-05-02 00:10:39.605293+08:00 [notice] <0.44.0> Application syslog exited with reason: stopped 2024-05-02 00:10:39.605513+08:00 [notice] <0.222.0> Logging: switching to configured handler(s); following messages may not be visible in this log output ## ## RabbitMQ 3.10.25 ## ## ########## Copyright (c) 2007-2023 VMware, Inc. or its affiliates. ###### ## ########## Licensed under the MPL 2.0. Website: https://rabbitmq.com Erlang: 25.3.2.9 [jit] TLS Library: OpenSSL - OpenSSL 1.1.1k 25 Mar 2021 Release series support status: out of support Doc guides: https://rabbitmq.com/documentation.html Support: https://rabbitmq.com/contact.html Tutorials: https://rabbitmq.com/getstarted.html Monitoring: https://rabbitmq.com/monitoring.html Logs: /var/log/kolla/rabbitmq/rabbit@localhost.log /var/log/kolla/rabbitmq/rabbit@localhost_upgrade.log <stdout> Config file(s): /etc/rabbitmq/advanced.config /etc/rabbitmq/rabbitmq.conf Starting broker... completed with 3 plugins.
openstack
的内容移除,并指向一个新的网址。不过这个网址是错误,无法访问的
。queen
版,同时没有官方的文档…………目前先记录到这,浪费了一晚上的时间TuT
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。