Bug 1121067
Summary: | Succeed to add cartridge even with invalid template url via oo-cartridge | |||
---|---|---|---|---|
Product: | OpenShift Online | Reporter: | Wenjing Zheng <wzheng> | |
Component: | Containers | Assignee: | Jhon Honce <jhonce> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 2.x | CC: | jokerman, mmccomas | |
Target Milestone: | --- | |||
Target Release: | 2.x | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1123891 (view as bug list) | Environment: | ||
Last Closed: | 2014-10-10 00:49:04 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: | 1123891 |
Description
Wenjing Zheng
2014-07-18 09:56:32 UTC
I get the error message using the new code. Using oo-cartridge, the cartridge is always added to the gear whether there is an error or not. Merging code to master: https://github.com/openshift/origin-server/pull/5634 Test on devenv_4992. the error appears like below but the cartridge can be added: [root@ip-10-144-207-61 ~]# oo-cartridge --with-container-uuid 123456 --action add --with-cartridge-name perl-5.10 --with-template-url git@123 Cartridge add failed CLIENT_ERROR: Source code repository URL protocol must be one of: git, git@, http, https, ftp, ftps, rsync, file: rc(130 [root@ip-10-144-207-61 ~]# oo-cartridge --with-container-uuid 123456 --action add --with-cartridge-name perl-5.10 --with-template-url file://123 Cartridge add failed CLIENT_ERROR: Source code repository could not be cloned: 'file://123'. Please verify the repository is correct and contact support.: rc(131 [root@ip-10-144-207-61 ~]# oo-cartridge --with-container-uuid 123456 --action add --with-cartridge-name perl-5.10 --with-template-url git:123 Cartridge add failed CLIENT_ERROR: The provided source code repository URL is not valid (bad URI(is not URI?): git:123): rc(130 If the cartridge won't be influenced by template url, it can be added anyway, can the warning be more clear, like "cartridge add succeeded, however there is a warning about ...."? Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/1ede045bcad26236f10e004b0a70916766e430b8 Bug 1121067 - Updated error messages Verified on devenv_5008, for the cartridge can be added even providing incorrect template url, so the warning message displays "Cartridge add succeeded". |