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.
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.
Fixed with --> https://github.com/openshift/origin-server/pull/4139
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/af38d84a2405872add6a014b04b32d3a63b326d5 Fix for bug 1028284
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’
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.
Retested this issue on devenv_4018, it can not be reproduced. thx mark it as verified.