openshift
openshift copied to clipboard
[improve] check if the domain is created, otherwise raise an error
error when no domain is created
~ Contacting openshift... ~ ~ ERROR - error contacting openshift... ~ A user with rhlogin '[email protected]' does not have a registered domain. Be sure to run rhc-create-domain before using the other rhc tools. ~ error executing: rhc-domain-info --apps [email protected] --password=redsas (return code 99)
al especificar un namespace existente:
sas@ubuntu:~/devel/apps/experiment$ rhc-create-domain -l [email protected] -p redsas -n opensas Generating OpenShift Express ssh key to /home/sas/.ssh/libra_id_rsa Generating public/private rsa key pair. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/sas/.ssh/libra_id_rsa. Your public key has been saved in /home/sas/.ssh/libra_id_rsa.pub. The key fingerprint is: be:40:6e:da:ad:53:5b:90:b3:0b:e8:75:7b:40:57:f1 sas@ubuntu The key's randomart image is: +--[ RSA 2048]----+ | .. | | .. | | . . E | | = . | | ...S= | | .oo.= . | | . .++.* | | .+.o+.. | | . ooo. | +-----------------+ Problem reported from server. Response code was 400. Re-run with -d for more information.
RESULT: A namespace with name 'opensas' already exists
sas@ubuntu:~/devel/apps/experiment$ rhc-create-domain -l [email protected] -p redsas -n open-sas namespace contains non-alphanumeric characters!