Bug 989831

Summary: Met "undefined local variable or method `uuid' for main:Object" when disable cgroups via oo-cgroup-disable.
Product: OpenShift Online Reporter: Liang Xia <lxia>
Component: ContainersAssignee: Rob Millner <rmillner>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: mfisher, rmillner
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:58:08 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:

Description Liang Xia 2013-07-30 03:13:55 UTC
Description of problem:
Trying to disalbe all cgroups via oo-cgroup-disable -a , "undefined local variable or method `uuid' for main:Object" shown.

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

How reproducible:
always

Steps to Reproduce:
1.oo-cgroup-disable -a
2.oo-cgroup-disable --with-all-containers
3.

Actual results:
[root@ip-10-164-36-98 ~]# oo-cgroup-disable -a
undefined local variable or method `uuid' for main:Object
[root@ip-10-164-36-98 ~]# oo-cgroup-disable --with-all-containers   
undefined local variable or method `uuid' for main:Object

Expected results:
all cgroups disabled successfully.

Additional info:
[root@ip-10-164-36-98 ~]# oo-cgroup-disable 
== Synopsis

/usr/bin/oo-cgroup-disable: Disable cgroups for a gear
  This command must be run as root.

== Usage

To disable cgroups for a gear with UUID:
/usr/bin/oo-cgroup-disable --with-container-uuid UUID

To disable cgroups for all gears:
/usr/bin/oo-cgroup-disable --with-all-containers

== List of arguments
  -c|--with-container-uuid  gear_uuid   Unique identifier for the gear (mandatory)
  -a|--with-all-containers              Run on all gears
  -d|--debug                            Enable debug mode
  -h|--help                             Print this message

Comment 1 Liang Xia 2013-07-30 08:05:11 UTC
This can be reproduced in devenv_3582

[root@ip-10-62-17-76 ~]# oo-cgroup-disable -a
undefined local variable or method `uuid' for main:Object
[root@ip-10-62-17-76 ~]# oo-cgroup-disable --with-all-containers
undefined local variable or method `uuid' for main:Object

Comment 2 Rob Millner 2013-07-30 17:44:38 UTC
Pull request:
https://github.com/openshift/origin-server/pull/3226

Comment 3 openshift-github-bot 2013-07-30 19:51:09 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/8dd237f7541b82ec9b0819f850dace488269b79d
Bug 989831 - Fix incorrect variable.

Comment 4 Liang Xia 2013-07-31 03:00:03 UTC
Verified on devenv_3588. Can execute the command, without errors.