반응형
Openstsck에서 Message queue는 Rabbitmq pkg를 사용하며 Controller node에서만 설치를 한다.
PKG Install
[root@controller ~]# yum install -y rabbitmq-server
Daemon을 시작하고 상태를 확인한다.
[root@controller ~]# systemctl enable rabbitmq-server.service
Created symlink from /etc/systemd/system/multi-user.target.wants/rabbitmq-server.service to /usr/lib/systemd/system/rabbitmq-server.service.
[root@controller ~]# systemctl restart rabbitmq-server.service
[root@controller ~]# systemctl status rabbitmq-server.service
● rabbitmq-server.service - RabbitMQ broker
Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: disabled)
Active: active (running) since 목 2019-10-31 16:50:30 KST; 5s ago
Process: 4743 ExecStop=/bin/sh -c while ps -p $MAINPID >/dev/null 2>&1; do sleep 1; done (code=exited, status=0/SUCCESS)
Process: 4600 ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl stop (code=exited, status=0/SUCCESS)
Main PID: 4752 (beam.smp)
Status: "Initialized"
CGroup: /system.slice/rabbitmq-server.service
├─4752 /usr/lib64/erlang/erts-8.3.5.3/bin/beam.smp -W w -A 128 -P 1048576 -t 5000000 -stbt db -zdbbl 128000 -K true -- -root /usr/li...
├─5035 erl_child_setup 1024
├─5053 inet_gethost 4
└─5054 inet_gethost 4
10월 31 16:50:28 ibcontroller systemd[1]: Starting RabbitMQ broker...
10월 31 16:50:29 ibcontroller rabbitmq-server[4752]: RabbitMQ 3.6.16. Copyright (C) 2007-2018 Pivotal Software, Inc.
10월 31 16:50:29 ibcontroller rabbitmq-server[4752]: ## ## Licensed under the MPL. See http://www.rabbitmq.com/
10월 31 16:50:29 ibcontroller rabbitmq-server[4752]: ## ##
10월 31 16:50:29 ibcontroller rabbitmq-server[4752]: ########## Logs: /var/log/rabbitmq/rabbit@ibcontroller.log
10월 31 16:50:29 ibcontroller rabbitmq-server[4752]: ###### ## /var/log/rabbitmq/rabbit@ibcontroller-sasl.log
10월 31 16:50:29 ibcontroller rabbitmq-server[4752]: ##########
10월 31 16:50:29 ibcontroller rabbitmq-server[4752]: Starting broker...
10월 31 16:50:30 ibcontroller systemd[1]: Started RabbitMQ broker.
10월 31 16:50:30 ibcontroller rabbitmq-server[4752]: completed with 0 plugins.
[root@ibcontroller ~]#
Openstack에서 사용할 계정을 생성 하고 확인한다.
[root@controller ~]# rabbitmqctl add_user openstack RABBITMQ_PASS
Creating user "openstack"
## 계정 생성 확인
[root@controller ~]# rabbitmqctl list_users
Listing users
openstack []
guest [administrator]
생성된 계정에 권한을 설정하고 확인한다.
[root@controller ~]# rabbitmqctl set_permissions openstack ".*" ".*" ".*"
Setting permissions for user "openstack" in vhost "/"
[root@controller ~]# rabbitmqctl list_permissions
Listing permissions in vhost "/"
openstack .* .* .*
guest .* .* .*
반응형
'IT > Openstack' 카테고리의 다른 글
[Openstack - Train] Centos에 설치하기(1) - etcd설정 (0) | 2019.10.31 |
---|---|
[Openstack - Train] Centos에 설치하기(1) - Memcached 설정 (0) | 2019.10.31 |
[Openstack - Train] Centos에 설치하기(1) - SQL Database Install (0) | 2019.10.31 |
[Openstack - Train] Centos에 설치하기(1) - Repository 설정 (0) | 2019.10.31 |
[Openstack-rocky] Ubuntu에 Openstack 설치 하기(5) - neutron(network) 설치 (0) | 2019.08.16 |