Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-5465

ec2 api for https setting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 4.2.0
    • None
    • Management Server
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      If I configured cloudstack with https:

      { ]# cloudstack-setup-management --https } I can not configured ec2 : { ]# cloudstack-aws-api-register --apikey=$akey --secretkey=$skey --cert=/root/certs/zarcerts/cert.pem --url=https://alice22.spbu.ru:5443/awsapi/ User registration failed with http error code: 401 ]# } And in the log : { 2013-12-11 20:12:39,828 INFO [bridge.service.EC2RestServlet] (catalina-exec-int-4:null) Request header accept-encoding:identity 2013-12-11 20:12:39,828 INFO [bridge.service.EC2RestServlet] (catalina-exec-int-4:null) Request header host:alice22.spbu.ru:5443 } ...... { 2013-12-11 20:12:39,844 DEBUG [cloud.stack.CloudStackClient] (catalina-exec-int-4:null) Cloud API call + [http://127.0.0.1:8080/client/api?command=listAccounts&response=json&apikey=RGyPD5D_7HsLgNRmR18jHNxxjc_H7K0_FFCN7hICs7BYB14-5q5ZqORjT7y2m3O1r7QSBsAT-TtXTJBvXWy0UA&signature=fx1amNB4LcrlAtWaWACgvguIpNw%3D] 2013-12-11 20:12:39,854 ERROR [core.ec2.EC2Engine] (catalina-exec-int-4:null) Validate account failed! } As you can see cloudstack use setting from /usr/share/cloudstack-management/conf/ec2-service.properties { managementServer=127.0.0.1 cloudAPIPort=8080 cloudstackVersion=2.2.0 WSDLVersion=2012-08-15 keystore=xes.keystore keystorePass=apache }

      I was changed it :

      { scheme=https managementServer=127.0.0.1 cloudAPIPort=6443 cloudstackVersion=2.2.0 WSDLVersion=2012-08-15 keystore=xes.keystore keystorePass=apache }

      And restarted management.

      But i see again:
      {
      ]# cloudstack-aws-api-register --apikey=$akey --secretkey=$skey --cert=/root/certs/zarcerts/cert.pem --url=https://alice22.spbu.ru:5443/awsapi/
      User registration failed with http error code: 401
      }

      And in the log :

      {
      2013-12-11 20:22:06,183 DEBUG [cloud.stack.CloudStackClient] (catalina-exec-int-4:null) Cloud API call + http://127.0.0.1:6443/client/api?command=listAccounts&response=json&apikey=RGyPD5D_7HsLgNRmR18jHNxxjc_H7K0_FFCN7hICs7BYB14-5q5ZqORjT7y2m3O1r7QSBsAT-TtXTJBvXWy0UA&signature=fx1amNB4LcrlAtWaWACgvguIpNw%3D
      2013-12-11 20:22:06,195 ERROR [core.ec2.EC2Engine] (catalina-exec-int-4:null) Validate account failed!
      }

      !!!!! http://127.0.0.1:6443/client !!!! - May be who can understand, as I can change core.ec2 ask to https ???

      Attachments

        Activity

          People

            Unassigned Unassigned
            azaroche Andrey Zarochentsev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: