| Summary: | Should give proper reason in event that memory and cpu are exceeded in dc | ||
|---|---|---|---|
| Product: | OKD | Reporter: | XiaochuanWang <xiaocwan> |
| Component: | Deployments | Assignee: | Michail Kargakis <mkargaki> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | zhou ying <yinzhou> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.x | CC: | aos-bugs, maszulik, pweil |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-05-12 17:10:30 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
XiaochuanWang
2016-03-15 08:29:58 UTC
This is a regression. We moved emitting events in the deployment controller from the rc to the dc (generally speaking just by looking at the dc should be enough in order to debug your app) and shadowed some errors that shouldn't be shadowed:) https://github.com/openshift/origin/pull/8015 fixes the shadowing, once it merges you will be able to see the actual error instead of <nil>. Commit pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/85f2ebed5e043721e87c6edb851cbfe71c23486d Bug 1317783: avoid shadowing errors in the deployment controller Just FYI, I tested on latst origin(on devenv-rhel7_3734) again and get the error message " Error updating deployment cqrhj/database-1 status to Pending"
oadm v1.1.4-16-gb5da002
kubernetes v1.2.0-origin-41-g91d3e75
$ oc get events
FIRSTSEEN LASTSEEN COUNT NAME KIND SUBOBJECT TYPE REASON SOURCE MESSAGE
4m 4m 1 database-1-deploy Pod Normal Scheduled {default-scheduler } Successfully assigned database-1-deploy to ip-172-18-5-28.ec2.internal
4m 4m 1 database-1-deploy Pod spec.containers{deployment} Normal Pulled {kubelet ip-172-18-5-28.ec2.internal} Container image "openshift/origin-deployer:v1.1.4" already present on machine
4m 4m 1 database-1-deploy Pod spec.containers{deployment} Normal Created {kubelet ip-172-18-5-28.ec2.internal} Created container with docker id 5d2bb9fb6f11
4m 4m 1 database-1-deploy Pod spec.containers{deployment} Normal Started {kubelet ip-172-18-5-28.ec2.internal} Started container with docker id 5d2bb9fb6f11
3m 3m 1 database-1-xjkp4 Pod Normal Scheduled {default-scheduler } Successfully assigned database-1-xjkp4 to ip-172-18-5-28.ec2.internal
3m 3m 1 database-1-xjkp4 Pod spec.containers{ruby-helloworld-database} Normal Pulled {kubelet ip-172-18-5-28.ec2.internal} Container image "openshift/mysql-55-centos7" already present on machine
3m 3m 1 database-1-xjkp4 Pod spec.containers{ruby-helloworld-database} Normal Created {kubelet ip-172-18-5-28.ec2.internal} Created container with docker id 2b782e5f002a
3m 3m 1 database-1-xjkp4 Pod spec.containers{ruby-helloworld-database} Normal Started {kubelet ip-172-18-5-28.ec2.internal} Started container with docker id 2b782e5f002a
3m 3m 1 database-1 ReplicationController Normal SuccessfulCreate {replication-controller } Created pod: database-1-xjkp4
4m 4m 1 database DeploymentConfig Normal DeploymentCreated {deploymentconfig-controller } Created new deployment "database-1" for version 1
4m 4m 1 database DeploymentConfig Warning FailedUpdate {deployer } Error updating deployment cqrhj/database-1 status to Pending
I don't think you are using my code changes because as a matter of fact I have changed that error message 1) by rewording it and 2) to include the error (see https://github.com/openshift/origin/pull/8015/files#diff-fa925ff7d2acc462649ccd349e76d981R230). Also instead of the wordier `oc get events` try `oc describe dc/database`. It should have all the deploymentconfig events. This is verified on latest origin openshift v3.2.0.4 kubernetes v1.2.0-origin-41-g91d3e75 etcd 2.2.5 Got the expected message as below: Error creating deployer pod for xiaocwan-q/database-2: pods "database-2-deploy" is forbidden: [Maximum cpu usage per Pod is 500m, but limit is 1100m., Maximum memory usage per Pod is 750Mi, but limit is 796917760., Maximum cpu usage per Container is 500m, but limit is 1100m., Maximum memory usage per Container is 750Mi, but limit is 760Mi.] |