Andrey Zarochentsev created CLOUDSTACK-5465:
-----------------------------------------------
Summary: ec2 api for https setting
Key: CLOUDSTACK-5465
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5465
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: Management Server
Affects Versions: 4.2.0
Reporter: Andrey Zarochentsev
Priority: Critical
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 ???
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)