*** sapd1 has joined #senlin | 01:22 | |
sapd1 | Hi everyone. I'm installing senlin, But I get this error when run every command call to senlin-api. http://paste.openstack.org/show/736345/ | 01:26 |
---|---|---|
dtruong | what version of senlin are you using? Rocky? | 01:27 |
dtruong | sapd1 ^ | 01:27 |
sapd1 | dtruong: Yes. I'm running Rocky from ubuntu repository. | 01:27 |
sapd1 | dtruong: this is my configuration file: http://paste.openstack.org/show/736346/ | 01:29 |
dtruong | are you making requests to the REST API and you get those errors? | 01:30 |
sapd1 | dtruong: yes | 01:31 |
dtruong | can you show us the request? | 01:31 |
sapd1 | I run the command " openstack --debug cluster build info" | 01:32 |
sapd1 | I think API can't connect to message queue. | 01:32 |
dtruong | are there any error messages in the logs when you start up senlin-api or senlin-engine? | 01:33 |
sapd1 | Nope | 01:34 |
sapd1 | dtruong: http://paste.openstack.org/show/736347/ | 01:35 |
sapd1 | I don't see any connection to mysql | 01:35 |
dtruong | this only happens when senlin-engine is not running | 01:45 |
dtruong | is senlin-engine up and running correctly? | 01:46 |
sapd1 | dtruong: I have two containers which are running senlin service. | 01:47 |
dtruong | are you exposing the senlin ports in the containers? | 01:47 |
sapd1 | I run senlin-engine inside senlin-api container. So it's working now. | 01:47 |
*** JudeCross has joined #senlin | 01:48 | |
*** JudeCross has quit IRC | 01:48 | |
*** JudeCross has joined #senlin | 01:48 | |
sapd1 | yes. I'm using containers to run senlin services. | 01:48 |
dtruong | but are you exposing port 8778 in both containerse? | 01:49 |
sapd1 | no. I only expose port 8778 for senlin-api container. | 01:50 |
sapd1 | infact I'm using port 8777. Because nova-placement-api is using port 8778 | 01:50 |
dtruong | ok, that's fine | 01:51 |
dtruong | but you have to expose that port in the senlin-engine container as well | 01:51 |
dtruong | then it should work | 01:51 |
sapd1 | senlin-engine does not listen on any port. So when we expose this port It does not make sense. | 01:52 |
sapd1 | two cotnainers can't expose same port. | 01:53 |
JudeCross | Yeah you're right the way we did was use --net=host | 01:56 |
JudeCross | I can give you my whole docker run command if that would be helpful for you? | 01:57 |
sapd1 | JudeCross: so which method do senlin-api and senlin-engine communicate with each other? | 01:58 |
JudeCross | it is done through RPC calls via rabbit. | 02:02 |
JudeCross | So your containers "should" just need the ability to communicate with Rabbit. | 02:02 |
sapd1 | JudeCross: yes. It can connect to rabbitmq. So when we use rabbit for message queue. Do we need senlin-api and senlin-engine on same host. (use network_mode=host) | 02:05 |
JudeCross | You shouldn't need to no. and no the engine and api do not need to be on the same host. | 02:08 |
openstackgerrit | sapd proposed openstack/senlin-dashboard master: Fix missing auth_url when create senlinclient https://review.openstack.org/620767 | 02:09 |
JudeCross | As far as I remember I used --net=host to simplify things. | 02:09 |
sapd1 | JudeCross: Do you run multiple api and engine? | 02:11 |
JudeCross | Yeah | 02:11 |
JudeCross | Two API and two engine | 02:12 |
sapd1 | JudeCross: Senlin-dashboard has many bugs. | 02:20 |
JudeCross | Yes it does... | 02:21 |
JudeCross | That is something I am going to be targeting here shortly to try and get it into good shape. | 02:21 |
*** JudeCross has quit IRC | 02:39 | |
*** JudeCross has joined #senlin | 03:11 | |
*** JudeCross has quit IRC | 03:15 | |
sapd1 | dtruong: How to specify version of API when request to API? | 03:52 |
sapd1 | I don't know environment key. | 03:53 |
sapd1 | API version '1.0' is not supported on this method.", "type": "MethodVersionNotFound" | 03:53 |
dtruong | If you are making a request using curl, you can specify it like this: -H "OpenStack-API-Version: clustering 1.12" | 04:28 |
dtruong | If you are using the OpenStack CLI, it should already be using the correct microversion | 04:29 |
*** JudeCross has joined #senlin | 05:42 | |
*** JudeCross has quit IRC | 05:58 | |
sapd1 | dtruong: I'm using Openstack CLI, But it does not work. | 06:06 |
*** JudeCross has joined #senlin | 06:08 | |
openstackgerrit | Vieri proposed openstack/python-senlinclient master: adding a venv for py36 https://review.openstack.org/620519 | 06:35 |
*** JudeCross has quit IRC | 06:54 | |
dtruong | Can you provide us with the entire command output when running it with debug flag? | 07:09 |
sapd1 | dtruong: my command is "openstack --debug cluster node adopt --identity a1b41fab-ec6c-4bcc-bcd1-267c02dbba76 --type os.nova.server-1.0 --name server-cirros-test" | 07:21 |
sapd1 | Output: http://paste.ubuntu.com/p/3Ky6NS3HZF/ | 07:21 |
dtruong | What version of the senlin pythonclient are you using? | 07:30 |
openstackgerrit | sapd proposed openstack/senlin-dashboard master: Fix missing auth_url when create senlinclient https://review.openstack.org/620767 | 07:36 |
sapd1 | dtruong: 1.7.0 | 07:36 |
dtruong | Senlin python client for Rocky is 1.8.0: https://docs.openstack.org/releasenotes/python-senlinclient/rocky.html | 08:02 |
dtruong | Can you try with that version? | 08:03 |
*** chohoor has joined #senlin | 08:13 | |
*** chohoor has quit IRC | 08:30 | |
*** JudeCross has joined #senlin | 08:32 | |
eandersson | Also make sure you update the openstacksdk to rocky. | 08:33 |
*** sapd1 has quit IRC | 09:36 | |
*** sapd1 has joined #senlin | 09:36 | |
*** JudeCross has quit IRC | 09:39 | |
*** phuoc has quit IRC | 16:46 | |
*** JudeCross has joined #senlin | 17:00 | |
*** JudeCross has quit IRC | 17:11 | |
*** JudeCross has joined #senlin | 18:41 | |
*** phuoc has joined #senlin | 18:59 | |
openstackgerrit | Jude Cross proposed openstack/senlin master: Add action_update api to cancel actions https://review.openstack.org/618907 | 23:14 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!