[Zun] openstack appcontainer create Error

Hongbin Lu hongbin034 at gmail.com
Wed May 1 01:33:44 UTC 2019


Hi Alejandro,

It looks your etcd cluster failed to elect a leader. You might want to
check your etcd log for details, and bring your etcd cluster back to
healthy state. Unfortunately, I don't have operational experience with
etcd. You would need to look at their admin guide for help:
https://coreos.com/etcd/docs/latest/v2/admin_guide.html . In the worst
case, remove and re-install etcd could work.

Best regards,
Hongbin

On Tue, Apr 30, 2019 at 5:32 PM Alejandro Ruiz Bermejo <
arbermejo0417 at gmail.com> wrote:

> Hi, i'm installing Zun in Openstack Queens with Ubuntu 18.04.1 LTS, i
> already have configured docker and kuyr-libnetwork. I'm following the guide
> at https://docs.openstack.org/zun/queens/install/index.html. I followed
> all the steps of the installation at  controller node and everything
> resulted without problems.
>
> After finished the installation direction at compute node  the *systemctl
> status zun-compute* have the following errors
>
> root at compute /h/team# systemctl status zun-compute
> ● zun-compute.service - OpenStack Container Service Compute Agent
>    Loaded: loaded (/etc/systemd/system/zun-compute.service; enabled;
> vendor preset: enabled)
>    Active: active (running) since Tue 2019-04-30 16:46:56 UTC; 4h 26min ago
>  Main PID: 2072 (zun-compute)
>     Tasks: 1 (limit: 4915)
>    CGroup: /system.slice/zun-compute.service
>            └─2072 /usr/bin/python /usr/local/bin/zun-compute
>
> Apr 30 16:46:56 compute systemd[1]: Started OpenStack Container Service
> Compute Agent.
> Apr 30 16:46:57 compute zun-compute[2072]: 2019-04-30 16:46:57.929 2072
> INFO zun.cmd.compute [-] Starting server in PID 2072
> Apr 30 16:46:57 compute zun-compute[2072]: 2019-04-30 16:46:57.941 2072
> INFO zun.container.driver [-] Loading container driver
> 'docker.driver.DockerDriver'
> Apr 30 16:46:58 compute zun-compute[2072]: 2019-04-30 16:46:58.028 2072
> INFO zun.container.driver [-] Loading container driver
> 'docker.driver.DockerDriver'
> Apr 30 16:48:33 compute zun-compute[2072]: 2019-04-30 16:48:33.645 2072
> INFO zun.image.driver [req-7e0b8325-1e09-4410-80f4-af807cbc0420
> a16c6ef0319b4643a4ec8e56a1d025cb 59065d8f970b467aa94ef7b35f1edab5 default -
> -] Loading container image driver 'glance'
> Apr 30 16:48:33 compute zun-compute[2072]: 2019-04-30 16:48:33.911 2072
> INFO zun.image.driver [req-7e0b8325-1e09-4410-80f4-af807cbc0420
> a16c6ef0319b4643a4ec8e56a1d025cb 59065d8f970b467aa94ef7b35f1edab5 default -
> -] Loading container image driver 'glance'
> Apr 30 16:48:35 compute zun-compute[2072]: 2019-04-30 16:48:35.455 2072
> INFO zun.image.driver [req-7e0b8325-1e09-4410-80f4-af807cbc0420
> 16c6ef0319b4643a4ec8e56a1d025cb 59065d8f970b467aa94ef7b35f1edab5 default -
> -] Loading container image driver 'glance'
> Apr 30 16:48:35 compute zun-compute[2072]: 2019-04-30 16:48:35.939 2072
> ERROR zun.image.glance.driver [req-7e0b8325-1e09-4410-80f4-af807cbc0420
> a16c6ef0319b4643a4ec8e56a1d025cb 59065d8f970b467aa94ef7b35f1edab5 default -
> -] Imae cirros was not found in glance: ImageNotFound: Image cirros could
> not be found.
> Apr 30 16:48:35 compute zun-compute[2072]: 2019-04-30 16:48:35.940 2072
> INFO zun.image.driver [req-7e0b8325-1e09-4410-80f4-af807cbc0420
> a16c6ef0319b4643a4ec8e56a1d025cb 59065d8f970b467aa94ef7b35f1edab5 default -
> -] Loading container image driver 'docker'
> Apr 30 16:48:55 compute zun-compute[2072]: 2019-04-30 16:48:55.011 2072
> ERROR zun.compute.manager [req-7bfa764a-45b8-4e2f-ac70-84d8bb71b135 - - - -
> -] Error occurred while calling Docker create API: Docker internal error:
> 500 Server Error: Internal Server Error ("failed to update store for object
> typpe *libnetwork.endpointCnt: client: etcd member http://controller:2379
> has no leader").: DockerError: Docker internal error: 500 Server Error:
> Internal Server Error ("failed to update store for object type
> *libnetwork.endpointtCnt: client: etcd member http://controller:2379 has
> no leader").
>
> Also *systemctl status docker* show the next output
>
> root at compute /h/team# systemctl status docker
> ● docker.service - Docker Application Container Engine
>    Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor
> preset: enabled)
>   Drop-In: /etc/systemd/system/docker.service.d
>            └─docker.conf, http-proxy.conf, https-proxy.conf
>    Active: active (running) since Tue 2019-04-30 16:46:25 UTC; 4h 18min ago
>      Docs: https://docs.docker.com
>  Main PID: 1777 (dockerd)
>     Tasks: 21
>    CGroup: /system.slice/docker.service
>            └─1777 /usr/bin/dockerd --group zun -H tcp://compute:2375 -H
> unix:///var/run/docker.sock --cluster-store etcd://controller:2379
>
> Apr 30 16:46:20 compute dockerd[1777]:
> time="2019-04-30T16:46:20.815305836Z" level=warning msg="Your kernel does
> not support cgroup rt runtime"
> Apr 30 16:46:20 compute dockerd[1777]:
> time="2019-04-30T16:46:20.815933695Z" level=info msg="Loading containers:
> start."
> Apr 30 16:46:24 compute dockerd[1777]:
> time="2019-04-30T16:46:24.378526837Z" level=info msg="Default bridge
> (docker0) is assigned with an IP address 17
> Apr 30 16:46:24 compute dockerd[1777]:
> time="2019-04-30T16:46:24.572558877Z" level=info msg="Loading containers:
> done."
> Apr 30 16:46:25 compute dockerd[1777]:
> time="2019-04-30T16:46:25.198101219Z" level=info msg="Docker daemon"
> commit=e8ff056 graphdriver(s)=overlay2 vers
> Apr 30 16:46:25 compute dockerd[1777]:
> time="2019-04-30T16:46:25.198211373Z" level=info msg="Daemon has completed
> initialization"
> Apr 30 16:46:25 compute dockerd[1777]:
> time="2019-04-30T16:46:25.232286069Z" level=info msg="API listen on
> /var/run/docker.sock"
> Apr 30 16:46:25 compute dockerd[1777]:
> time="2019-04-30T16:46:25.232318790Z" level=info msg="API listen on
> 10.8.9.58:2375"
> Apr 30 16:46:25 compute systemd[1]: Started Docker Application Container
> Engine.
> Apr 30 16:48:55 compute dockerd[1777]:
> time="2019-04-30T16:48:55.009820439Z" level=error msg="Handler for POST
> /v1.26/networks/create returned error: failed to update store for object
> type *libnetwork.endpointCnt: client: etcd member http://controller:2379
> has no leader"
>
>
> When i try to launch an app container as the guide says it shows an Error
> state and when i run opentack appcontainer show this is the reason of the
> error
> status_reason     | Docker internal error: 500 Server Error: Internal
> Server Error ("failed to update store for object type
> *libnetwork.endpointCnt: client: etcd member http://controller:2379 has
> no leader")
>
> I had some troubles installing Kuryr-libnetwork besides that i didn't had
> any othet problem during the installation of Zun
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20190430/2be23bc0/attachment-0001.html>


More information about the openstack-discuss mailing list