Bug 986860

Summary: Fail to add Jenkins-client cartridge to a scaled app
Product: OpenShift Online Reporter: Zhe Wang <zhewang>
Component: ContainersAssignee: Rajat Chopra <rchopra>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: rpenta, xtian
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: 2013-08-07 22:55:45 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:
Embargoed:
Attachments:
Description Flags
Correspoindnig error msg in mcollective.log
none
Correspoindnig error msg in development.log none

Description Zhe Wang 2013-07-22 09:27:19 UTC
Description of problem:
Given a scaling app with auto scaling disabled, it fails to add a Jenkins-client cartridge to it after scaling it up. On the other hand, there is no such problem if we do not scale up the app before adding Jekins-client cartridge.

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

How reproducible:
always

Steps to Reproduce:
1. create a scaling app

2. disable its auto scaling by touching a disable_auto_scaling marker

3. push the marker to its repo

4. scale up the app with REST API

5. create a Jenkins server app

6. embed a Jenkins-client cartridge to this app

7. check the gear groups of this app via REST API

Actual results:
Adding a Jenkins-client cartridge to the scaled up app fails with the error below:

Using jenkins-client-1.4 (Jenkins Client 1.4) for 'jenkins-client'
Adding jenkins-client-1.4 to application 'srb9' ... Unexpected error: User does not exist in cgroups: 447847664739953338744832

Moreover, in Step 7, it turns out that the UUID in the error in Step 6 referrs to the scaled-up gear.

Expected results:
It should be successful to add a Jenkins-client cartridge to a scaled app.

Additional info:

Comment 1 Zhe Wang 2013-07-22 09:47:04 UTC
Created attachment 776828 [details]
Correspoindnig error msg in mcollective.log

Comment 2 Zhe Wang 2013-07-22 09:47:36 UTC
Created attachment 776829 [details]
Correspoindnig error msg in development.log

Comment 3 Zhe Wang 2013-07-29 08:58:15 UTC
The bug has been fixed in devenv_3574, and the steps are identical to those in the description.

Result:

[zhe@fedora run106]$ rhc cartridge add jenkins-client -a spy27
Using jenkins-client-1.4 (Jenkins Client 1.4) for 'jenkins-client'
Adding jenkins-client-1.4 to application 'spy27' ... done

jenkins-client-1.4 (Jenkins Client 1.4)
---------------------------------------
  Gears:   Located with python-2.7, haproxy-1.4
  Job URL: https://jenkins-dev3574tst.dev.rhcloud.com/job/spy27-build/

Associated with job 'spy27-build' in Jenkins server.

Would you please move this bug to ON_QA, so that I can archive this bug as VERIFIED then.

Thanks,
Zhe Wang

Comment 4 Rajat Chopra 2013-07-29 19:09:47 UTC
Fixed with rev#0bc92a9d4b75514bf667eacdf356581b055d6b6c

Comment 5 Zhe Wang 2013-07-30 02:01:34 UTC
Move the bug to VERIFIED referring to Comment #3.