openshift-cartridge-osbs
openshift-cartridge-osbs copied to clipboard
${OPENSHIFT_CLOUD_DOMAIN} missing
This is funny; I have OSBS running for two client apps, but the cron logs that the osbs/bin/cron-snapshot constructs invalid client host name, causing it fail like this:
Tue May 26 03:45:54 EDT 2015: START daily cron run
/var/lib/openshift/xxxx/app-root/runtime/repo//.openshift/cron/daily/appname: ssh: Could not resolve hostname appname-namespace.: Name or service not known
In the cron-snapshot, there is the line ssh_cmd+="${uuid}@${app}-${OPENSHIFT_NAMESPACE}.${OPENSHIFT_CLOUD_DOMAIN} "
and when cron script is run manually, the name is resolved ok, so i guess it must be related to the cron execution environment. In the OSBS console the clients are shown as their FQDN, and the OPENSHIFT_CLOUD_DOMAIN env is listed ok when checking the export.
This is annoying, and the osbs/bin/cron-snapshot is for root only, so cannot hardcode rhcloud.com there. Maybe I need to duplicate the git repo for the cartridge, replace it, and re-install osbs from the customized repo.
Or is there any other more official workaround?