[
https://issues.apache.org/jira/browse/CLOUDSTACK-1231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Parth Jagirdar reopened CLOUDSTACK-1231:
----------------------------------------
Apologies
Disregard all the comments....need to reopen.
...Parth
> cloud-install-sys-tmplt failed due to missing paths
> ---------------------------------------------------
>
> Key: CLOUDSTACK-1231
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1231
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Install and Setup
> Affects Versions: 4.1.0
> Environment: CS non oss 11 rhel 6.3
> Reporter: Parth Jagirdar
> Priority: Blocker
> Fix For: 4.1.0
>
>
> [root@asfmgmt ~]#
> /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt
> -m /mnt/secondary -u
> http://download.cloud.com/templates/acton/acton-systemvm-02062012.vhd.bz2 -h
> xenserver -F
> sed: can't read /etc/cloud/management/db.properties: No such file or directory
> sed: can't read /etc/cloud/management/db.properties: No such file or directory
> sed: can't read /etc/cloud/management/db.properties: No such file or directory
> ERROR 2005 (HY000): Unknown MySQL server host '--user=' (1)
> Unable to get template Id from database
> Installation failed
> [root@asfmgmt ~]#
>
>
> ---------
>
> [root@asfmgmt ~]# cat
> /usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt
> | grep db.properties
> dbHost=$(sed '/^\#/d' /etc/cloud/management/db.properties | grep
> 'db.cloud.host' | tail -n 1 | cut -d "=" -f2- | sed
> 's/^[[:space:]]*//;s/[[:space:]]*$//')
> dbUser=$(sed '/^\#/d' /etc/cloud/management/db.properties | grep
> 'db.cloud.username' | tail -n 1 | cut -d "=" -f2- | sed
> 's/^[[:space:]]*//;s/[[:space:]]*$//')
> if [ -f /etc/cloud/management/db.properties ]; then
> encType=$(sed '/^\#/d' /etc/cloud/management/db.properties | grep
> 'db.cloud.encryption.type' | tail -n 1 | cut -d "=" -f2- | sed
> 's/^[[:space:]]*//;s/[[:space:]]*$//')
> encPassword=$(sed '/^\#/d'
> /etc/cloud/management/db.properties | grep 'db.cloud.password' | tail -n 1 |
> cut -d "=" -f2- | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'i | sed
> 's/^ENC(\(.*\))/\1/')
> echo "Failed to decrypt DB
> password from db.properties"
> dbPassword=$(sed '/^\#/d' /etc/cloud/management/db.properties | grep
> 'db.cloud.password' | tail -n 1 | cut -d "=" -f2- | sed
> 's/^[[:space:]]*//;s/[[:space:]]*$//'i )
> [root@asfmgmt ~]#
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira