incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohit Yadav (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-257) 400 error When registering an account with cloudstack-aws-api-register
Date Fri, 05 Oct 2012 12:16:03 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13470263#comment-13470263
] 

Rohit Yadav commented on CLOUDSTACK-257:
----------------------------------------

What we worked out on IRC, Pedro is probably working on a patch;
diff --git a/cloud.spec b/cloud.spec
index 342b525..5aa20c3 100644
--- a/cloud.spec
+++ b/cloud.spec
@@ -405,17 +405,17 @@ if [ "$1" == "1" ] ; then
 fi
 
 if [ "$1" == "1" ] ; then
-    root=/usr/share/cloud/bridge
+    root=/usr/share/cloud/bridge/
     target=/usr/share/cloud/management/
 
     if [ ! -e $target/webapps/awsapi ]; then
-        ln -s $root/webapps/awsapi $target/webapps/awsapi
+        ln -s $root/webapps7080/awsapi $target/webapps/awsapi
     fi
 
     jars=`ls $root/lib`
     for j in $jars
     do
-        cp -f $root/lib/$j $root/webapps/awsapi/WEB-INF/lib/
+        cp -f $root/lib/$j $root/webapps7080/awsapi/WEB-INF/lib/
     done
 
     confs="cloud-bridge.properties ec2-service.properties"
@@ -425,6 +425,15 @@ if [ "$1" == "1" ] ; then
     done
 fi
 
+%post aws-api
+  ln -s %{_datadir}/cloud/bridge/webapps7080 %{_datadir}/cloud/bridge/webapps
+
+%postun aws-api
+# Remove symlink while uninstalling
+if [ "$1" == "0" ] ; then
+  rm -f %{_datadir}/cloud/bridge/webapps
+fi
+
 %files utils
 %defattr(0644,root,root,0755)
 %{_javadir}/%{name}-utils.jar
                
> 400 error When registering an account with cloudstack-aws-api-register
> ----------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-257
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-257
>             Project: CloudStack
>          Issue Type: Bug
>          Components: AWSAPI
>    Affects Versions: pre-4.0.0
>         Environment: Centos 6.3
> non-oss build 60
>            Reporter: Pedro Navarro PĂ©rez
>            Assignee: Likitha Shetty
>         Attachments: api-server.log, management-server.log
>
>
> 1. Fresh install
> 2. Enable the EC2 service via global configuration settings
> 3. Generate API keys for the user
> 4. Call cloudstack-aws-api-register with the input parameters.
> Error User registration failed with http error code: 400

--
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

Mime
View raw message