[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Pod not passing deployment tests



On Wed, Jan 6, 2016 at 9:35 AM, François VILLAIN
<f villain linkbynet com> wrote:
>
> This is what i get (I just started another deploy manually):
>
> # sudo docker ps
> CONTAINER ID        IMAGE                                                              COMMAND          CREATED                STATUS              PORTS            NAMES
> 9e332c821d82        openshift/origin-pod:v1.1.0.1                     "/pod"                   4 minutes ago       Up 4 minutes                            k8s_POD.f61fe19_phpfpm-app-2-8g07w_test_9cfb7546-b481-11e5-8adb-0a57f8bdd6b3_0fa51bbd
>
> # sudo docker inspect 9e332c821d82
> [
> {
>     "Id": "9e332c821d828d16202dbaca8511936ffb6dfd86a13c4595b4f9511b30c6a14a",
>     "Created": "2016-01-06T14:27:28.296408249Z",
>     "Path": "/pod",
>     "Args": [],
>     "State": {
>         "Running": true,
>         "Paused": false,
>         "Restarting": false,
>         "OOMKilled": false,
>         "Dead": false,
>         "Pid": 7739,
>         "ExitCode": 0,
>         "Error": "",
>         "StartedAt": "2016-01-06T14:27:29.339842008Z",
>         "FinishedAt": "0001-01-01T00:00:00Z"
>     },
>     "Image": "04d505e60cd48657230be57fcaa8a490b3c48b0d0217a632f3a5bf7e3ffc4302",
>     "NetworkSettings": {
>         "Bridge": "",
>         "EndpointID": "15137677eb35d24abf9840b60ab68aeb824aec91b90dd77b48d41bd78737131a",
>         "Gateway": "10.1.1.1",
>         "GlobalIPv6Address": "",
>         "GlobalIPv6PrefixLen": 0,
>         "HairpinMode": false,
>         "IPAddress": "10.1.1.4",
>         "IPPrefixLen": 24,
>         "IPv6Gateway": "",
>         "LinkLocalIPv6Address": "",
>         "LinkLocalIPv6PrefixLen": 0,
>         "MacAddress": "02:42:0a:01:01:04",
>         "NetworkID": "777c1fc8f94a1b06445092cf2441d0423f5f2f1b51fe500a27c76f4121953369",
>         "PortMapping": null,
>         "Ports": {},
>         "SandboxKey": "/var/run/docker/netns/9e332c821d82",
>         "SecondaryIPAddresses": null,
>         "SecondaryIPv6Addresses": null
>     },
>     "ResolvConfPath": "/var/lib/docker/containers/9e332c821d828d16202dbaca8511936ffb6dfd86a13c4595b4f9511b30c6a14a/resolv.conf",
>     "HostnamePath": "/var/lib/docker/containers/9e332c821d828d16202dbaca8511936ffb6dfd86a13c4595b4f9511b30c6a14a/hostname",
>     "HostsPath": "/var/lib/docker/containers/9e332c821d828d16202dbaca8511936ffb6dfd86a13c4595b4f9511b30c6a14a/hosts",
>     "LogPath": "/var/lib/docker/containers/9e332c821d828d16202dbaca8511936ffb6dfd86a13c4595b4f9511b30c6a14a/9e332c821d828d16202dbaca8511936ffb6dfd86a13c4595b4f9511b30c6a14a-json.log",
>     "Name": "/k8s_POD.f61fe19_phpfpm-app-2-8g07w_test_9cfb7546-b481-11e5-8adb-0a57f8bdd6b3_0fa51bbd",
>     "RestartCount": 0,
>     "Driver": "devicemapper",
>     "ExecDriver": "native-0.2",
>     "MountLabel": "system_u:object_r:svirt_sandbox_file_t:s0:c6,c0",
>     "ProcessLabel": "system_u:system_r:svirt_lxc_net_t:s0:c6,c0",
>     "AppArmorProfile": "",
>     "ExecIDs": null,
>     "HostConfig": {
>         "Binds": null,
>         "ContainerIDFile": "",
>         "LxcConf": null,
>         "Memory": 0,
>         "MemorySwap": -1,
>         "CpuShares": 2,
>         "CpuPeriod": 0,
>         "CpusetCpus": "",
>         "CpusetMems": "",
>         "CpuQuota": 0,
>         "BlkioWeight": 0,
>         "OomKillDisable": false,
>         "MemorySwappiness": null,
>         "Privileged": false,
>         "PortBindings": null,
>         "Links": null,
>         "PublishAllPorts": false,
>         "Dns": [
>             "10.100.134.27",
>             "10.100.0.2"
>         ],
>         "DnsSearch": [
>             "test.svc.cluster.local",
>             "svc.cluster.local",
>             "cluster.local",
>             "eu-west-1.compute.internal"
>         ],
>         "ExtraHosts": null,
>         "VolumesFrom": null,
>         "Devices": null,
>         "NetworkMode": "default",
>         "IpcMode": "",
>         "PidMode": "",
>         "UTSMode": "",
>         "CapAdd": null,
>         "CapDrop": null,
>         "GroupAdd": null,
>         "RestartPolicy": {
>             "Name": "",
>             "MaximumRetryCount": 0
>         },
>         "SecurityOpt": [
>             "label:level:s0:c6,c0"
>         ],
>         "ReadonlyRootfs": false,
>         "Ulimits": null,
>         "LogConfig": {
>             "Type": "json-file",
>             "Config": {}
>         },
>         "CgroupParent": "",
>         "ConsoleSize": [
>             0,
>             0
>         ]
>     },
>     "GraphDriver": {
>         "Name": "devicemapper",
>         "Data": {
>             "DeviceId": "4090",
>             "DeviceName": "docker-202:1-50348421-9e332c821d828d16202dbaca8511936ffb6dfd86a13c4595b4f9511b30c6a14a",
>             "DeviceSize": "107374182400"
>         }
>     },
>     "Mounts": [],
>     "Config": {
>         "Hostname": "phpfpm-app-2-8g07w",
>         "Domainname": "",
>         "User": "",
>         "AttachStdin": false,
>         "AttachStdout": false,
>         "AttachStderr": false,
>         "ExposedPorts": null,
>         "PublishService": "",
>         "Tty": false,
>         "OpenStdin": false,
>         "StdinOnce": false,
>         "Env": [
>             "NGINX_APP_SERVICE_PORT=80",
>             "PHPFPM_APP_PORT_9000_TCP=tcp://172.30.164.254:9000",
>             "KUBERNETES_PORT_53_UDP_PROTO=udp",
>             "KUBERNETES_PORT_53_TCP=tcp://172.30.0.1:53",
>             "KUBERNETES_PORT_53_TCP_PROTO=tcp",
>             "NGINX_APP_SERVICE_HOST=172.30.152.11",
>             "NGINX_APP_PORT_80_TCP_ADDR=172.30.152.11",
>             "KUBERNETES_SERVICE_HOST=172.30.0.1",
>             "KUBERNETES_SERVICE_PORT_HTTPS=443",
>             "KUBERNETES_PORT_443_TCP_PROTO=tcp",
>             "PHPFPM_APP_PORT_9000_TCP_PORT=9000",
>             "KUBERNETES_PORT_53_UDP_ADDR=172.30.0.1",
>             "NGINX_APP_PORT_80_TCP_PROTO=tcp",
>             "KUBERNETES_PORT_443_TCP=tcp://172.30.0.1:443",
>             "KUBERNETES_PORT_443_TCP_PORT=443",
>             "KUBERNETES_PORT_53_UDP_PORT=53",
>             "NGINX_APP_PORT=tcp://172.30.152.11:80",
>             "PHPFPM_APP_SERVICE_HOST=172.30.164.254",
>             "KUBERNETES_SERVICE_PORT=443",
>             "KUBERNETES_PORT_53_UDP=udp://172.30.0.1:53",
>             "KUBERNETES_PORT_53_TCP_PORT=53",
>             "NGINX_APP_PORT_80_TCP_PORT=80",
>             "PHPFPM_APP_PORT=tcp://172.30.164.254:9000",
>             "PHPFPM_APP_PORT_9000_TCP_PROTO=tcp",
>             "NGINX_APP_PORT_80_TCP=tcp://172.30.152.11:80",
>             "PHPFPM_APP_SERVICE_PORT_PHPFPM=9000",
>             "PHPFPM_APP_PORT_9000_TCP_ADDR=172.30.164.254",
>             "KUBERNETES_SERVICE_PORT_DNS=53",
>             "KUBERNETES_SERVICE_PORT_DNS_TCP=53",
>             "NGINX_APP_SERVICE_PORT_HTTP=80",
>             "PHPFPM_APP_SERVICE_PORT=9000",
>             "KUBERNETES_PORT=tcp://172.30.0.1:443",
>             "KUBERNETES_PORT_443_TCP_ADDR=172.30.0.1",
>             "KUBERNETES_PORT_53_TCP_ADDR=172.30.0.1"
>         ],
>         "Cmd": null,
>         "Image": "openshift/origin-pod:v1.1.0.1",
>         "Volumes": null,
>         "VolumeDriver": "",
>         "WorkingDir": "",
>         "Entrypoint": [
>             "/pod"
>         ],
>         "NetworkDisabled": false,
>         "MacAddress": "",
>         "OnBuild": null,
>         "Labels": {
>             "io.kubernetes.pod.name": "test/phpfpm-app-2-8g07w",
>             "io.kubernetes.pod.terminationGracePeriod": "30"
>         }
>     }
> }
> ]
>
> ---------------------
> François Villain
> DevOps - AAIO

François,

Is this the only container you see? The one you are looking at is the
Kube networking container which isn’t the same as the app container. I
notice that you didn’t use “docker ps -a” which will also show dead
containers. Could you try that and see if there’s another failed
container?

> ________________________________________
> De : Dan Mace <dmace redhat com>
> Envoyé : mercredi 6 janvier 2016 14:46
> À : François VILLAIN
> Cc : Michalis Kargakis; users lists openshift redhat com
> Objet : Re: Pod not passing deployment tests
>
> François,
>
> Do you have access to the docker daemon in this environment? I’d be
> interested to see the output of `docker ps -a` and then a `docker
> inspect` of your app container which may have failed to start or be
> created.
>
> Michalis, regarding the recreate strategy: even when using the rolling
> strategy, the deployer will always start with recreate for the initial
> deployment since the “legacy” Kubernetes rolling updater doesn’t
> support initial rollouts (only transitions between two existing RCs).
>
> On Wed, Jan 6, 2016 at 6:15 AM, François VILLAIN
> <f villain linkbynet com> wrote:
>> I first tried without the probes , but wasn't any more successful
>>
>> I have another DC in my template indeed.
>>
>>
>> Here is the full template file i created : http://pastebin.com/EZJaCeQj
>>
>>
>>
>> ---------------------
>> François Villain
>> DevOps - AAIO
>>
>>
>>
>> ________________________________
>> De : Michalis Kargakis <mkargaki redhat com>
>> Envoyé : mercredi 6 janvier 2016 12:10
>> À : François VILLAIN
>> Cc : users lists openshift redhat com
>> Objet : Re: Pod not passing deployment tests
>>
>> Hi François,
>>
>> can you deploy the app if you remove the probes?
>> Also it's really strange that you are specifying a Rolling strategy but in
>> the logs it seems that Recreate is running.
>> Do you have any other DCs in your template?
>>
>> On Wed, Jan 6, 2016 at 11:11 AM, François VILLAIN <f villain linkbynet com>
>> wrote:
>>>
>>> Hi,
>>>
>>>
>>> I'm having trouble deploying a pod running a php-fpm daemon (on port
>>> 9000).
>>> I created a DeploymentConfig in my template for that:
>>>
>>>
>>>   - kind: DeploymentConfig
>>>     apiVersion: v1
>>>     metadata:
>>>       name: "phpfpm-${SERVICE_NAME}"
>>>       annotations:
>>>         description: How to deploy the PHP App
>>>     spec:
>>>       strategy:
>>>         type: Rolling
>>>       replicas: 1
>>>       selector:
>>>         name: "phpfpm-${SERVICE_NAME}"
>>>       template:
>>>         metadata:
>>>           name: "phpfpm-${SERVICE_NAME}"
>>>           labels:
>>>             name: "phpfpm-${SERVICE_NAME}"
>>>         spec:
>>>           volumes: []
>>>           containers:
>>>             - name: "phpfpm-${SERVICE_NAME}"
>>>               imagePullPolicy: 'Always'
>>>               image: "test/sample-phpinfo:latest"
>>>               ports:
>>>                 - containerPort: 9000
>>>               env: []
>>>               readinessProbe:
>>>                 timeoutSeconds: 1
>>>                 initialDelaySeconds: 5
>>>                 tcpSocket:
>>>                   port: 9000
>>>               livenessProbe:
>>>                 timeoutSeconds: 1
>>>                 initialDelaySeconds: 5
>>>                 tcpSocket:
>>>                   port: 9000
>>>
>>>
>>> And here is what i get in the deployment step:
>>>
>>> 1 I0104 14:57:09.139422       1 deployer.go:196] Deploying
>>> test/phpfpm-app-1 for the first time (replicas: 1)
>>> 2 I0104 14:57:09.143539       1 recreate.go:105] Scaling test/phpfpm-app-1
>>> to 1 before performing acceptance check
>>> 3 I0104 14:57:11.194413       1 recreate.go:110] Performing acceptance
>>> check of test/phpfpm-app-1
>>> 4 I0104 14:57:11.195425       1 lifecycle.go:379] Waiting 600 seconds for
>>> pods owned by deployment "test/phpfpm-app-1" to become ready (checking every
>>> 1 seconds; 0 pods previously accepted)
>>> 5 F0104 15:07:11.195704       1 deployer.go:65] update acceptor rejected
>>> test/phpfpm-app-1: pods for deployment "test/phpfpm-app-1" took longer than
>>> 600 seconds to become ready
>>>
>>> Ca someone please tell me what's wrong ?
>>>
>>>
>>> I got a same pod with a nginx instance perfectly working btw, so i guess
>>> something is bad but i can't figure ou what
>>>
>>>  exactly...
>>>
>>> ---------------------
>>> François Villain
>>> DevOps - AAIO
>>>
>>>
>>> _______________________________________________
>>> users mailing list
>>> users lists openshift redhat com
>>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>>
>>
>>
>> _______________________________________________
>> users mailing list
>> users lists openshift redhat com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]