Bug 861556
Summary: | [US2597][fork]the open4 module is not supported in win7-ruby-1.9 env | ||
---|---|---|---|
Product: | OKD | Reporter: | Rony Gong 🔥 <qgong> |
Component: | oc | Assignee: | Fabiano Franz <ffranz> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 2.x | CC: | ccoleman, ffranz, johnp, pruan |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | fork_ami_US2597_US2599_US2813_US2817_US2872_US2816_US2814_226 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-11-06 18:48:07 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
Rony Gong 🔥
2012-09-29 07:06:31 UTC
Output on windows won't be as nice because we had to combine the stderr and stdout streams but it works now verified with rhc-0.99.3.gem Peter Ruan@PRUAN-WIN7 ~ $ rhc app create -a myapp -t php-5.3 -pvostok08 -d Submitting form: rhlogin: pruan debug: true Contacting https://ec2-107-20-89-18.compute-1.amazonaws.com Creating application: myapp in pp1234 Contacting https://ec2-107-20-89-18.compute-1.amazonaws.com Response from server: DEBUG: Exit Code: 0 api_c: ["placeholder"] broker_c: ["namespace", "rhlogin", "ssh", "app_uuid", "debug", "alter", "cartrid ge", "cart_type", "action", "app_name", "api"] API version: 1.1.3 DEBUG: 'myapp' creation returned success. Now your new domain name is being propagated worldwide (this might take a minute )... Pulling new repo down git clone ssh://4e0a331aa863495f90c05e09139f2f5d.rhcloud.com/~ /git/myapp.git/ myapp Checking if the application is available #1 Application myapp is available at: http://myapp-pp1234.dev.rhcloud.com/ Git URL: ssh://4e0a331aa863495f90c05e09139f2f5d.rhcloud.com/~ /git/myapp.git/ To make changes to 'myapp', commit to myapp/. Successfully created application: myapp Retest on fork_ami_US2597_US2599_US2813_US2817_US2872_US2816_US2814_209, failed and my git version is git version 1.7.11.msysgit.1 , in my win7_ruby_1.9 C:\Users\Win7x64>rhc app create q3jboss jbossas-7 Password: ********** Creating application 'q3jboss' ============================== Namespace: qgong1 Cartridge: jbossas-7 Gear Size: default Scaling: no Your application's domain name is being propagated worldwide (this might take a minute)... The authenticity of host 'q3jboss-qgong1.dev.rhcloud.com (50.19.31.106)' can't b e established. RSA key fingerprint is 4a:31:0a:9f:0e:55:d0:98:b0:b3:75:64:82:81:a1:62. Are you sure you want to continue connecting (yes/no)? yes Cloning into 'q3jboss'... Warning: Permanently added 'q3jboss-qgong1.dev.rhcloud.com' (RSA) to the list of known hosts. Error while adding config values to git - error: wrong number of arguments usage: git config [options] Config file location --global use global config file --system use system config file --local use repository config file -f, --file <file> use given config file Action --get get value: name [value-regex] --get-all get all values: key [value-regex] --get-regexp get values for regexp: name-regex [value-regex] --replace-all replace all matching variables: name value [value_regex] --add adds a new variable: name value --unset removes a variable: name [value-regex] --unset-all removes all matches: name [value-regex] --rename-section rename section: old-name new-name --remove-section remove a section: name -l, --list list all -e, --edit opens an editor --get-color <slot> find the color configured: [default] --get-colorbool <slot> find the color setting: [stdout-is-tty] Type --bool value is "true" or "false" --int value is decimal number --bool-or-int value is --bool or --int --path value is a path (file or directory name) Other -z, --null terminate values with NUL byte --includes respect include directives on lookup C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-0.99.4/lib/rhc/commands/app.rb:388:in `r un_nslookup': undefined local variable or method `rest_app' for #<RHC::Commands: :App:0x3114420> (NameError) from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-0.99.4/lib/rhc/commands/app .rb:401:in `windows_nslookup_bug?' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-0.99.4/lib/rhc/commands/app .rb:88:in `rescue in create' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-0.99.4/lib/rhc/commands/app .rb:84:in `create' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-0.99.4/lib/rhc/commands.rb: 129:in `block (3 levels) in to_commander' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.2/lib/commander/c ommand.rb:180:in `call' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.2/lib/commander/c ommand.rb:180:in `call' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.2/lib/commander/c ommand.rb:155:in `run' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.2/lib/commander/r unner.rb:402:in `run_active_command' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-0.99.4/lib/rhc/command_runn er.rb:48:in `run!' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/commander-4.1.2/lib/commander/d elegates.rb:11:in `run!' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-0.99.4/lib/rhc/cli.rb:40:in `start' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rhc-0.99.4/bin/rhc:21:in `<top (required)>' from C:/Ruby193/bin/rhc:23:in `load' from C:/Ruby193/bin/rhc:23:in `<main>' C:\Users\Win7x64>git --version git version 1.7.11.msysgit.1 popen4 requires additional gems on Windows, and fork is not supported in all envs. Seems like there needs to be a fallback here. That isn't the issue anymore. The problem right now is the windows shell doesn't execute "cmd; cmd" the same way a unix shell does - that is easy to fix. There also seems to be a traceback, most likely from a typo in the windows nslookup path that is being triggered by the git-config command failure. Fixed in fork_ami_US2597_US2599_US2813_US2817_US2872_US2816_US2814_226. Verified on fork_ami_US2597_US2599_US2813_US2817_US2872_US2816_US2814_226. Win7x64@WIN7X64-PC ~ $rhc app create qs2ruby19 ruby-1.9 -s Creating application 'qs2ruby19' ================================ Namespace: qgong5 Cartridge: ruby-1.9 Gear Size: default Scaling: yes Your application's domain name is being propagated worldwide (this might take a minute)... Cloning into 'qs2ruby19'... Warning: Permanently added 'qs2ruby19-qgong5.dev.rhcloud.com' (RSA) to the list of known hosts. qs2ruby19 @ http://qs2ruby19-qgong5.dev.rhcloud.com/ ==================================================== Created: Oct 10 9:53 PM UUID: 8ca06b4c74224ce1af80e7cc1d549871 Git URL: ssh://8ca06b4c74224ce1af80e7cc1d549871.rhcloud.com/~/git/qs2ruby19.git/ SSH URL: ssh://8ca06b4c74224ce1af80e7cc1d549871.rhcloud.com Cartridges: ruby-1.9 haproxy-1.4 RESULT: Application qs2ruby19 was created. |