[
https://issues.apache.org/jira/browse/CLOUDSTACK-321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ilya musayev resolved CLOUDSTACK-321.
-------------------------------------
Resolution: Fixed
@@ -22,20 +22,20 @@
file_count=$((file_count+1))
SSHKEY_SERVER_IP=$(grep dhcp-server-identifier $DHCP_FILE |
tail -1 | awk '{print $NF}' | tr -d '\;')
- if [ -n $SSHKEY_SERVER_IP ]
+ if [ -n "$SSHKEY_SERVER_IP" ]
then
- logger -t "cloud" "Sending request to ssh key server at
$SSHKEY_SERVER_IP"
+ logger -t "cloud-ssh" "Sending request to ssh key
server at $SSHKEY_SERVER_IP"
publickey=$(wget -t 3 -T 20 -O -
http://$SSHKEY_SERVER_IP/latest/public-keys 2>/dev/null)
if [ $? -eq 0 ]
then
- logger -t "cloud" "Got response from server at
$SSHKEY_SERVER_IP"
+ logger -t "cloud-ssh" "Got response from server
at $SSHKEY_SERVER_IP"
keys_received=1
break
fi
else
- logger -t "cloud" "Could not find ssh key server IP in
$DHCP_FILE"
+ logger -t "cloud-ssh" "Could not find ssh key server IP
in $DHCP_FILE"
fi
fi
done
@@ -43,7 +43,7 @@
# did we find the keys anywhere?
if [ "$keys_received" == "0" ]
then
- logger -t "cloud" "Failed to get ssh keys from any server"
+ logger -t "cloud-ssh" "Failed to get ssh keys from any server"
exit 1
fi
> fix bug in cloud-set-guest-sshkey.in
> ------------------------------------
>
> Key: CLOUDSTACK-321
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-321
> Project: CloudStack
> Issue Type: Improvement
> Components: Usage
> Affects Versions: 4.0.0
> Environment: linux guest vms
> Reporter: ilya musayev
> Priority: Minor
> Labels: patch
> Fix For: 4.0.0
>
> Original Estimate: 10m
> Remaining Estimate: 10m
>
> cloud-set-guest-sshkey.in currently available on cloudstack.org download
> patch needs enhacement when it does variable check, the variable that is
> being checked must be in double quotes
--
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