Bug 1028284 - Should not create a medium gear in small node by adding cartridge with NODE_PROFILE enable.
Summary: Should not create a medium gear in small node by adding cartridge with NODE_P...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: Abhishek Gupta
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-08 05:48 UTC by zhaozhanqi
Modified: 2015-05-14 23:32 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-24 03:29:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description zhaozhanqi 2013-11-08 05:48:11 UTC
Description of problem:
Given a small scaling app created. Add a medium gear db cartridge for this app by restapi. It will return error: No nodes available. If the problem persists please contact Red Hat support. But actually, the DB medium gear has been created in the small node. Thus some operation like 'rhc app show $app" or 'rhc domain show' will be blocked with error "Unable to complete the requested operation due to: No nodes available. If the problem persists please contact Red Hat support. 
Reference ID: ab6cf774b9c919554b845afb40ed9a4f"

the multi-node env condition is:
1. enable the NODE_PROFILE
2. no medium node.

Version-Release number of selected component (if applicable):
devenv_4003

How reproducible:
always

Steps to Reproduce:
1. Create multi-node env(1 district include 2 small node) and make sure NO medium node.
2. Enable the NODE_PROFILE in /etc/openshift/plugins.d/openshift-origin-msg-broker-mcollective-dev.conf
  NODE_PROFILE_ENABLED=true
3. Create one small scalable app
   rhc app create zqphps php-5.3 -s
4. Add one medium mysql-5.3 db cartridge by restapi
  curl -s -k -H Content-Type:application/json -u user:pass https://instance/broker/rest/domains/zqd/applications/zqphps/cartridges -X POST -d '{"name":"mysql-5.1","gear_size":"medium"}'
5. rhc domain show

Actual results:
step 4:
will be show error:
No nodes available. If the problem persists please contact Red Hat support
but in fact, the medium gear has been created in one node

 694234410245577689268224]# ls
app-deployments  app-root  mysql

step 5:
rhc domain show
Unable to complete the requested operation due to: No nodes available. If the problem persists please contact Red Hat support. 
Reference ID: ab6cf774b9c919554b845afb40ed9a4f

Expected results:
This medium gear should not be created and rhc domain show 

Additional info:
if create an app with medium gear on NO medium node env,it won't create a gear in node.

Comment 1 zhaozhanqi 2013-11-08 06:19:50 UTC
In addition, the following situation should be same issue.

After adding one medium node, and then adding a medium db cartridge to small scalable app, the medium db gear still be created on small node. It should be created on medium node since gear_profile enable.

Comment 2 Abhishek Gupta 2013-11-08 22:42:15 UTC
Fixed with --> https://github.com/openshift/origin-server/pull/4139

Comment 4 zhaozhanqi 2013-11-11 03:24:47 UTC
tested this bug on devenv_4016

It still can create medium gear on small node while enable gear_profile and no medium node existing. In my opinion, it should return error, like ‘No nodes available’

Comment 5 Abhishek Gupta 2013-11-11 19:33:09 UTC
Tried it on devenv_4017 but could not reproduce this. Please provide me with an environment where this is reproducible and I will try it out.

Comment 6 zhaozhanqi 2013-11-12 03:25:47 UTC
Retested this issue on devenv_4018, it can not be reproduced. thx
  mark it as verified.


Note You need to log in before you can comment on or make changes to this bug.