| Summary: | Failed to create scalable application | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Gaoyun Pei <gpei> |
| Component: | Containers | Assignee: | Jason DeTiberus <jdetiber> |
| Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 2.0.0 | CC: | bleanhar, jdetiber, libra-onpremise-devel, lmeyer, mmasters, pruan, xtian |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ruby193-rubygem-json-1.7.3-5.el6op | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-12-16 09:11: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: | |
|
Description
Gaoyun Pei
2013-10-11 03:24:04 UTC
Access still failed on puddle [2.0/2013-10-10.2]. Tagged and built a new puddle with ruby193-rubygem-json-1.7.3-5.el6op, the version of ruby193-rubygem-json shipped with the SCL fails to open an empty file. Still failed with ruby193-rubygem-json-1.7.3-5.el6op.x86_64 on puddle 2.0/2013-10-14.3 [root@dhcp-8-133 workspace]# rhc app create app1 jbosseap -s Using jbosseap-6 (JBoss Enterprise Application Platform 6.1.0) for 'jbosseap' Application Options ------------------- Domain: 12345 Cartridges: jbosseap-6 Gear Size: default Scaling: yes Creating application 'app1' ... Unable to complete the requested operation due to: undefined method `external_port' for nil:NilClass. Reference ID: 2bed5d05babb61919fcdf200b0fe0184 Error logs in /var/log/ruby193-mcollective.log on node: ... E, [2013-10-14T19:24:20.843480 #1403] ERROR -- : openshift.rb:313:in `rescue in with_container_from_args' System proxy set for 65231=>127.12.148.1:8080 failed(1): stdout: -I rhc-app-comm 1 -d 127.12.148.1 -p tcp --dport 8080 -j ACCEPT -m comment --comment 65231 stderr: iptables: No chain/target/match by that name. : uid=6440 E, [2013-10-14T19:24:20.843762 #1403] ERROR -- : openshift.rb:314:in `rescue in with_container_from_args' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.16.0/lib/openshift-origin-node/model/frontend_proxy.rb:173:in `block in add' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.16.0/lib/openshift-origin-node/model/frontend_proxy.rb:153:in `each' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.16.0/lib/openshift-origin-node/model/frontend_proxy.rb:153:in `add' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-container-selinux-0.3.0/lib/openshift/runtime/containerization/selinux_container.rb:217:in `create_public_endpoint' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.16.0/lib/openshift-origin-node/model/application_container_ext/cartridge_actions.rb:204:in `create_public_endpoint' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.16.0/lib/openshift-origin-node/model/application_container_ext/cartridge_actions.rb:163:in `block in create_public_endpoints' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.16.0/lib/openshift-origin-node/model/application_container_ext/cartridge_actions.rb:154:in `each' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.16.0/lib/openshift-origin-node/model/application_container_ext/cartridge_actions.rb:154:in `create_public_endpoints' /opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:833:in `block in oo_expose_port' /opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:302:in `with_container_from_args' /opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:832:in `oo_expose_port' /opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:140:in `execute_action' /opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:196:in `block in execute_parallel_action' /opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:189:in `each' /opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:189:in `execute_parallel_action' /opt/rh/ruby193/root/usr/share/ruby/mcollective/rpc/agent.rb:86:in `handlemsg' /opt/rh/ruby193/root/usr/share/ruby/mcollective/agents.rb:126:in `block (2 levels) in dispatch' /opt/rh/ruby193/root/usr/share/ruby/timeout.rb:69:in `timeout' /opt/rh/ruby193/root/usr/share/ruby/mcollective/agents.rb:125:in `block in dispatch' ... ... E, [2013-10-14T19:24:21.374178 #1403] ERROR -- : openshift.rb:313:in `rescue in with_container_from_args' Backup file does not exist E, [2013-10-14T19:24:21.374350 #1403] ERROR -- : openshift.rb:314:in `rescue in with_container_from_args' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.16.0/lib/openshift-origin-node/model/gear_registry.rb:141:in `restore_from_backup' /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.16.0/lib/openshift-origin-node/model/application_container_ext/cartridge_actions.rb:1155:in `update_cluster' /opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:1000:in `block in oo_update_cluster' /opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:302:in `with_container_from_args' /opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:999:in `oo_update_cluster' /opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:140:in `execute_action' /opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/agent/openshift.rb:105:in `cartridge_do_action' /opt/rh/ruby193/root/usr/share/ruby/mcollective/rpc/agent.rb:86:in `handlemsg' /opt/rh/ruby193/root/usr/share/ruby/mcollective/agents.rb:126:in `block (2 levels) in dispatch' /opt/rh/ruby193/root/usr/share/ruby/timeout.rb:69:in `timeout' /opt/rh/ruby193/root/usr/share/ruby/mcollective/agents.rb:125:in `block in dispatch' I, [2013-10-14T19:24:21.374498 #1403] INFO -- : openshift.rb:151:in `execute_action' Finished executing action [update-cluster] (1) I, [2013-10-14T19:24:21.382827 #1403] INFO -- : openshift.rb:115:in `cartridge_do_action' cartridge_do_action failed (1) ------ Backup file does not exist ------) ... *** Bug 1019495 has been marked as a duplicate of this bug. *** From the debug output, it appears that the rhc-app-comm chain had not been created:
E, [2013-10-14T19:24:20.843480 #1403] ERROR -- : openshift.rb:313:in `rescue in with_container_from_args' System proxy set for 65231=>127.12.148.1:8080 failed(1): stdout: -I rhc-app-comm 1 -d 127.12.148.1 -p tcp --dport 8080 -j ACCEPT -m comment --comment 65231
stderr: iptables: No chain/target/match by that name.
It turns out there was a tiny typo in the installation script that prevented it from creating the iptables chain. That typo has been fixed by the following commit:
https://github.com/openshift/openshift-extras/commit/52519bf82fb2d9c32fc8d79872616922a9f59589
Verify this bug with this fix. Scalable app could be created successfully now. [root@broker ~]# rhc app create app jbosseap -s Using jbosseap-6 (JBoss Enterprise Application Platform 6.1.0) for 'jbosseap' Application Options ------------------- Domain: 1 Cartridges: jbosseap-6 Gear Size: default Scaling: yes Creating application 'app' ... done Waiting for your DNS name to be available ... done Initialized empty Git repository in /root/app/.git/ The authenticity of host 'app-1.example.com (192.168.59.209)' can't be established. RSA key fingerprint is 13:7f:0f:8a:d4:51:55:22:58:34:ce:f9:83:4c:da:ed. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'app-1.example.com' (RSA) to the list of known hosts. Your application 'app' is now available. URL: http://app-1.example.com/ SSH to: 52609c9b6892df826b00003b.com Git remote: ssh://52609c9b6892df826b00003b.com/~/git/app.git/ Cloned to: /root/app Run 'rhc show-app app' for more details about your app. [root@broker ~]# rhc show-app app app @ http://app-1.example.com/ (uuid: 52609c9b6892df826b00003b) ---------------------------------------------------------------- Domain: 1 Created: 10:27 PM Gears: 1 (defaults to small) Git URL: ssh://52609c9b6892df826b00003b.com/~/git/app.git/ SSH: 52609c9b6892df826b00003b.com jbosseap-6 (JBoss Enterprise Application Platform 6.1.0) -------------------------------------------------------- Scaling: x1 (minimum: 1, maximum: available) on small gears haproxy-1.4 (Web Load Balancer) ------------------------------- Gears: Located with jbosseap-6 Checked the latest installation script, the error was fixed. Verified on puddle 2.0/2013-10-29.2, create scalable app successfully. |