Bug 1192557
| Summary: | Application creation failure when specifying --from-code=empty along with db cartridge | |||
|---|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Maciej Szulik <maszulik> | |
| Component: | Image | Assignee: | Maciej Szulik <maszulik> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> | |
| Severity: | urgent | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 2.x | CC: | jokerman, mmccomas, ruliu, wzheng | |
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1202514 (view as bug list) | Environment: | ||
| Last Closed: | 2015-04-21 18:01:11 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1202514 | |||
|
Description
Maciej Szulik
2015-02-13 16:59:07 UTC
PR solving this is issue is here https://github.com/openshift/origin-server/pull/6074 Commits pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/eb1f5e3bb40be1af8f427f5837bc1ac8a996f6a7 Bug 1192557 - Fixed creating application using --from-code=empty when database cartridge is also specified. https://github.com/openshift/origin-server/commit/83d07c09735a06a0e7540b976e1ad81f0f60487c Merge pull request #6074 from soltysh/bug1192557 Merged by openshift-bot Reopen on devenv_5433. The app can be create successfully without previous error, but when try to access db after ssh to app, the similar error appears (mysql and postgresql works well with empty git repo): [errapp-w.dev.rhcloud.com 54e2f9e091494a669c000001]\> mongo MongoDB shell version: 2.4.9 connecting to: 127.1.244.2:27017/admin Tue Feb 17 03:31:02.781 Error: couldn't connect to server 127.1.244.2:27017 at src/mongo/shell/mongo.js:147 exception: connect failed Checked no devenv_5444 (ami-60ecbd08) works OK. Tried on devenv_5449:
1. Create an app with empty repo and there's no error:
$ rhc app create errapp nodejs-0.10 mongodb-2.4 --from-code=empty --no-git
Application Options
-------------------
Domain: ruliu0
Cartridges: nodejs-0.10, mongodb-2.4
Source Code: empty
Gear Size: default
Scaling: no
Creating application 'errapp' ... An empty Git repository has been created for your application. Use 'git push' to add your code.
done
...
2. SSH into the app and then access the db. No connection error:
$ rhc ssh errapp
[errapp-ruliu0.dev.rhcloud.com 54ed7639075437a983000001]\> mongo
MongoDB shell version: 2.4.9
connecting to: 127.1.244.2:27017/admin
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
>
|