Description of problem: The unzip package should be listed as a dependency of jenkins cartridge rpm. When I only install jenkins cartridge and ruby cartridge on node which haven't "unzip" installed by default, Creating jenkins app on the node failed. Important error info:/var/lib/openshift/5406a299adfcb3d4d00000d1/jenkins/bin/install: line 35: unzip: command not found. Version-Release number of selected component (if applicable): OpenShiftEnterpriseErrata/2.1.z/2014-09-02.2 How reproducible: Always Steps to Reproduce: 1.Setup an machine with rhel OS which haven't installed "unzip". 2.Install node component with only ruby, jenkins server cartridge, jenkins client cartridge on the machine. 3.Create an jenkins app on the node. #rhc app create jenkinsmedium jenkins Actual results: 1. 2.Successfully. 3.Failed with info: # rhc app create jenkinsmedium jenkins Using jenkins-1 (Jenkins Server) for 'jenkins' Application Options ------------------- Domain: dom1 Cartridges: jenkins-1 Gear Size: medium Scaling: no Creating application 'jenkinsmedium' ... SSH_KEY_ADD: AAAAB3NzaC1yc2EAAAABIwAAAQEAu6w+avd3hSYC7VhlYU8BCGerh5NVBQhBGPf/OPAFmVOSfgs5m7z8O2b5qw3iQ5htQEc/kUOu/MYjjGGbnxFIHRTTYXacSJ39xzpLglrdZZWngHn3SnEDfy3Lr3KKjo8uoGzRVw4QjiUFYjJl35LKbeP7Gp4PgrpEr3ldcVBc3S9RYTEY30q1mgIBzp6jgk9C1vdztBlSSy9DACR1vtWoxxnw+Rl+6cPKdZGNVD7fV1MlFdgv4yoR+F2ZjxKw2Y8fcWCB162XrjzxyB5E+Atv16nLiSa3SlAecURqfKrMqxLulMGZcf+GrmzwqLbtLFLYk2V+13y1jr27B55xfC4RMQ== + case "$1" in + version=1 + source /usr/lib/openshift/cartridge_sdk/bash/sdk ++ '[' false == true ']' ++ OO_BASH_SDK=true + source /var/lib/openshift/5406a299adfcb3d4d00000d1/jenkins//bin/util + generate_ssh_keys + mkdir -p /var/lib/openshift/5406a299adfcb3d4d00000d1/app-root/data//.ssh/ + ssh-keygen -N '' -f /var/lib/openshift/5406a299adfcb3d4d00000d1/app-root/data//.ssh/jenkins_id_rsa + chmod 0750 /var/lib/openshift/5406a299adfcb3d4d00000d1/app-root/data//.ssh/ + chmod 0640 /var/lib/openshift/5406a299adfcb3d4d00000d1/app-root/data//.ssh/jenkins_id_rsa + chmod 0640 /var/lib/openshift/5406a299adfcb3d4d00000d1/app-root/data//.ssh/jenkins_id_rsa.pub ++ cat /var/lib/openshift/5406a299adfcb3d4d00000d1/app-root/data//.ssh/jenkins_id_rsa.pub + public_key='ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAu6w+avd3hSYC7VhlYU8BCGerh5NVBQhBGPf/OPAFmVOSfgs5m7z8O2b5qw3iQ5htQEc/kUOu/MYjjGGbnxFIHRTTYXacSJ39xzpLglrdZZWngHn3SnEDfy3Lr3KKjo8uoGzRVw4QjiUFYjJl35LKbeP7Gp4PgrpEr3ldcVBc3S9RYTEY30q1mgIBzp6jgk9C1vdztBlSSy9DACR1vtWoxxnw+Rl+6cPKdZGNVD7fV1MlFdgv4yoR+F2ZjxKw2Y8fcWCB162XrjzxyB5E+Atv16nLiSa3SlAecURqfKrMqxLulMGZcf+GrmzwqLbtLFLYk2V+13y1jr27B55xfC4RMQ== 5406a299adfcb3d4d00000d1.com' + set -- ssh-rsa <snip--> <snip--> /var/lib/openshift/5406a299adfcb3d4d00000d1/jenkins/configuration/config.xml /var/lib/openshift/5406a299adfcb3d4d00000d1/jenkins/configuration/hudson.model.UpdateCenter.xml /var/lib/openshift/5406a299adfcb3d4d00000d1/jenkins/configuration/nodeMonitors.xml /var/lib/openshift/5406a299adfcb3d4d00000d1/jenkins/configuration/org.jenkinsci.main.modules.sshd.SSHD.xml /var/lib/openshift/5406a299adfcb3d4d00000d1/jenkins/configuration/plugins /var/lib/openshift/5406a299adfcb3d4d00000d1/jenkins/configuration/queue.xml /var/lib/openshift/5406a299adfcb3d4d00000d1/jenkins/configuration/userContent /var/lib/openshift/5406a299adfcb3d4d00000d1/jenkins/configuration/users /var/lib/openshift/5406a299adfcb3d4d00000d1/app-root/data/ ++ echo broker.ose21z-TEST.com ++ sed -e 's/\/*$//' + openshift_server=broker.ose21z-TEST.com + sed -i s,OPENSHIFT_SERVER,broker.ose21z-TEST.com,g /var/lib/openshift/5406a299adfcb3d4d00000d1/app-root/data//config.xml + unzip -q /usr/lib/jenkins/jenkins.war -d /var/lib/openshift/5406a299adfcb3d4d00000d1/app-root/data//war/ /var/lib/openshift/5406a299adfcb3d4d00000d1/jenkins/bin/install: line 35: unzip: command not found Expected results: Create jenkins app successfully. Additional info:
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/513fc31b5245ea0dfb09ddc57ff1378428e64909 Jenkins cart: Add "unzip" dependency The `bin/install` script depends on `unzip` being in the path, so the specfile for this package should Require the `unzip` package. Enterprise bug 1136706 https://bugzilla.redhat.com/show_bug.cgi?id=1136706
Verified on puddle ose 2.2/2014-11-26.3 Steps to verify: 1.Prepare rhel OS with no unzip installed. Install node component with only jenkins server cartridge, jenkins client cartridge on the host, 2.Create jenkins app on the node. Actual results: 1.Install successully. 2.Create jenkins app successfully. $ rhc app create jenkins jenkins-1 Application Options ------------------- Domain: domtest Cartridges: jenkins-1 Gear Size: default Scaling: no Creating application 'jenkins' ... done Jenkins created successfully. Please make note of these credentials: User: admin Password: CVFXIk1C5QKd Note: You can change your password at: https://jenkins-domtest.ose22.com/me/configure Waiting for your DNS name to be available ... done Initialized empty Git repository in /home/cloud-user/test/jenkins/.git/ The authenticity of host 'jenkins-domtest.ose22.com (10.66.78.79)' can't be established. RSA key fingerprint is af:66:37:e5:e5:87:ae:08:a2:c9:7e:ca:55:fb:e7:5e. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'jenkins-domtest.ose22.com,10.66.78.79' (RSA) to the list of known hosts. reverse mapping checking getaddrinfo for dhcp-66-78-79.eng.nay.redhat.com [10.66.78.79] failed - POSSIBLE BREAK-IN ATTEMPT! Your application 'jenkins' is now available. URL: http://jenkins-domtest.ose22.com/ SSH to: 547d1fca11490df1ec000009.com Git remote: ssh://547d1fca11490df1ec000009.com/~/git/jenkins.git/ Cloned to: /home/cloud-user/test/jenkins Run 'rhc show-app jenkins' for more details about your app.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2014-1979.html