Testing the 3.4.9 client RPM

7 views
Skip to first unread message

Anthony Shortland

unread,
Nov 6, 2009, 8:10:51 PM11/6/09
to ControlTier Accounting
OK. I've had a go with the latest build of the 3.4.9 client RPM and here are my notes:


[root@centos53 tmp]# rpm -ivh ctier-client-3.4.9-1.noarch.rpm
Preparing...                ########################################### [100%]
Locking password for user ctier.
passwd: Success
   1:ctier-client           ########################################### [100%]

  • I think we should boldly commit to the future existence of a common CTL_BASE by default:

[root@centos53 ctier]# diff ctierrc.orig ctierrc
8c8
< # export CTL_BASE=/path/to/ctl/base
---
> export CTL_BASE=/opt/ctier/ctl

  • Need to move /opts/ctier/ctierrc to /opt/ctier/etc/ctierrc like the server.

  • Setup a 3.4.9 server and "Development" project elsewhere.

  • Got these errors when logging back in as ctier after the install (and before creating the CTL_BASE):

[root@centos53 ~]# su - ctier
awk: cmd. line:1: fatal: cannot open file `/opt/ctier/ctl/etc/framework.properties' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/opt/ctier/ctl/etc/framework.properties' for reading (No such file or directory)

  • Explicitly setup JAVA_HOME as required by ctl-setup:

[ctier@centos53 ~]$ export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64

  • Created a "common system-wide" CTL_BASE under /opt/ctier as the ctier user:

[ctier@centos53 ~]$ ctl-setup -n centos53 -N centos53 -s macosx
Using server hostname: macosx
.
.
.
post-setup:
     [echo] Commander extension post-setup completed.

Setup build successful.

  • Didn't see the sticky group setup that's in the server RPM, so applied manually.

  • Registered the CTL_BASE with my project:

[ctier@centos53 depots]$ ctl-depot -p Development -a create
Project depot structure created: /opt/ctier/ctl/depots/Development
Invoking external setup script: /opt/ctier/pkgs/ctl-1.4.9/bin/commander-depotsetup.xml
Beginning client setup ...
Running CTL depot setup: /opt/ctier/pkgs/ctl-1.4.9/lib/ant/controllers/ctl/depotsetupCmd.xml ...
Trying to override old definition of task document-property
CTL depot setup procedure completed.
Beginning node registration ...
Registering centos53[Node] with ctl.base: /opt/ctier/ctl, ctl.home: /opt/ctier/pkgs/ctl-1.4.9 ...
Registered node "centos53" with Workbench @ http://macosx:8080/itnav
Completed client setup. Node centos53 registered in project: "Development".

  • Added a user to the ctier group:

[user2@centos53 ~]$ id
uid=505(user2) gid=505(user2) groups=102(ctier),505(user2) context=user_u:system_r:unconfined_t

  • ... and set it up to share the common CTL_BASE:

[user2@centos53 ~]$ cat .bashrc
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# User specific aliases and functions

if [ -f /opt/ctier/ctierrc ]; then
        . /opt/ctier/ctierrc
else
        echo /opt/ctier/ctierrc not found 1>&2
fi

  • Created an object in Workbench and confirmed that the user can manage the shared depot:

[user2@centos53 ~]$ ctl-depot -p Development -a install 
"Install" command running for object: elements[ProjectBuilder]

  • Added a second user to the ctier group:

[user3@centos53 ~]$ id
uid=506(user3) gid=506(user3) groups=102(ctier),506(user3) context=user_u:system_r:unconfined_t

  • ... and set it up to establish a dedicated CTL_BASE:

[user3@centos53 ~]$ cat .bashrc 
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# User specific aliases and functions

export CTL_BASE=/home/user3/ctier/ctl

if [ -f /opt/ctier/ctierrc ]; then
        . /opt/ctier/ctierrc
else
        echo /opt/ctier/ctierrc not found 1>&2
fi

  • Got this error again:

[anthony@centos53 ~]$ su - user3
Password: 
awk: cmd. line:1: fatal: cannot open file `/home/user3/ctier/ctl/etc/framework.properties' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/home/user3/ctier/ctl/etc/framework.properties' for reading (No such file or directory)

  • Explicitly setup JAVA_HOME as required by ctl-setup:

[user3@centos53 ~]$ export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64

  • Hit the CTL_BASE directory does not exist problem:

[user3@centos53 ~]$ ctl-setup -n user3.centos53 -N centos53 -s macosx
Using server hostname: macosx
ERROR: failed generating setup preferenes: /home/user3/ctier/ctl does not exist and cannot be created
[user3@centos53 ~]$ mkdir -p  /home/user3/ctier/ctl 

  • Created the new CTL_BASE:

[user3@centos53 ~]$ ctl-setup -n user3.centos53 -N centos53 -s macosx
Using server hostname: macosx

upgradeModuleLibdirs:

inquire-properties-regenerate:
.
.
.
post-setup:
     [echo] Commander extension post-setup completed.

Setup build successful.

  • Registered with the project:

[user3@centos53 ~]$ ctl-depot -p Development -a create
Project depot structure created: /home/user3/ctier/ctl/depots/Development
Invoking external setup script: /opt/ctier/pkgs/ctl-1.4.9/bin/commander-depotsetup.xml
Beginning client setup ...
Running CTL depot setup: /opt/ctier/pkgs/ctl-1.4.9/lib/ant/controllers/ctl/depotsetupCmd.xml ...
Trying to override old definition of task document-property
CTL depot setup procedure completed.
Beginning node registration ...
Registering user3.centos53[Node] with ctl.base: /home/user3/ctier/ctl, ctl.home: /opt/ctier/pkgs/ctl-1.4.9 ...
Registered node "user3.centos53" with Workbench @ http://macosx:8080/itnav
Completed client setup. Node user3.centos53 registered in project: "Development".

  • Assigned a deployed an object:

[user3@centos53 ~]$ ctl-depot -p Development -a install 
"Install" command running for object: elements[ProjectBuilder]

A few tweaks and we're there!

Anthony.















Alex-SF

unread,
Nov 6, 2009, 8:19:30 PM11/6/09
to ControlTier
Is this error due to the .ctierrc being read and that user's CTL_BASE
does not yet exist and the bash_completion.sh thus barf?

[root@centos53 ~]# su - ctier
awk: cmd. line:1: fatal: cannot open file `/opt/ctier/ctl/etc/
framework.properties' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/opt/ctier/ctl/etc/
framework.properties' for reading (No such file or directory)


On Nov 6, 5:10 pm, Anthony Shortland <anth...@controltier.com> wrote:
> OK. I've had a go with the latest build of the 3.4.9 client RPM and  
> here are my notes:
>
> Downloadedhttp://dev01.controltier.com:8080/jackrabbit/repository/workbench/pkg...
> Registered node "centos53" with Workbench @http://macosx:8080/itnav
> framework.properties' for reading (No such file or directory)
> awk: cmd. line:1: fatal: cannot open file `/home/user3/ctier/ctl/etc/
> Beginning client setup ...
> Running CTL depot setup: /opt/ctier/pkgs/ctl-1.4.9/lib/ant/controllers/
> ctl/depotsetupCmd.xml ...
> Trying to override old definition of task document-property
> CTL depot setup procedure completed.
> Beginning node registration ...
> Registering user3.centos53[Node] with ctl.base: /home/user3/ctier/ctl,  
> ctl.home: /opt/ctier/pkgs/ctl-1.4.9 ...
> Registered node "user3.centos53" with Workbench @http://macosx:8080/itnav

Greg Schueler

unread,
Nov 6, 2009, 8:34:32 PM11/6/09
to contr...@googlegroups.com
Yes if you source ctierrc which loads bash_completion, prior to doing ctl-setup that will cause the error message

perhaps the bash_completion should just exit quietly if those files are not found

Anthony Shortland

unread,
Nov 6, 2009, 8:47:59 PM11/6/09
to contr...@googlegroups.com
Ah ... but if you set the CTL_BASE and source the file before ctl-setup you see this error ... so I consider this a bug.

Greg Schueler

unread,
Nov 6, 2009, 9:34:18 PM11/6/09
to contr...@googlegroups.com

Anthony Shortland

unread,
Nov 10, 2009, 4:24:31 PM11/10/09
to ControlTier Accounting
Hi Greg,

I've completed testing today's client RPM:

Anthonys-MacBook-Pro:Downloads anthony$ ls -l ctier-client-3.4.9-1.noarch.rpm 
-rw-r--r--@ 1 anthony  anthony  47078112 Nov 10 10:06 ctier-client-3.4.9-1.noarch.rpm



[root@centos53 ~]# su - ctier
awk: cmd. line:1: fatal: cannot open file `/etc/framework.properties' for reading (No such file or directory)
awk: cmd. line:1: fatal: cannot open file `/etc/framework.properties' for reading (No such file or directory)


[ctier@centos53 ~]$ diff etc/ctierrc etc/ctierrc.orig 
8,10c8
< if [ -z "$CTL_BASE" ] ; then
<       export CTL_BASE=/opt/ctier/ctl
< fi
---
> # export CTL_BASE=/path/to/ctl/base

  • Created the common CTL_BASE without problem:

[ctier@centos53 ~]$ export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
[ctier@centos53 ~]$ ctl-setup -n centos53 -N centos53 -s macosx
Using server hostname: macosx
.
.
.

Setup build successful.


  • Confirmed that a ctier group member can share the common CTL_BASE after the permissions are corrected.
  • Confirmed that a ctier group member can setup their own CTL_BASE ($HOME/ctier/ctl) and deploy objects without problem.

Looks like there's still some life in an existing bug and two new ones, but we're almost there!

Anthony.

On Nov 6, 2009, at 5:48 PM, Anthony Shortland wrote:

And I agree ... "the bash_completion should just exit quietly if those files are not found"

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "ControlTier" group.
To post to this group, send email to contr...@googlegroups.com
To unsubscribe from this group, send email to controltier...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/controltier?hl=en
http://wiki.controltier.org
-~----------~----~----~----~------~----~------~--~---




Anthony Shortland
Professional Services | DTO Solutions, Inc. | mobile: 650.215.3117 aim: anthony....@me.com yahoo: anthony.shortland irc.freenode.net: #controltier skype: anthony.shortland ]

ControlTier Software Inc. is now DTO Solutions Inc. The ControlTier open source project remains: http://www.controltier.org



Reply all
Reply to author
Forward
0 new messages