[
https://issues.apache.org/jira/browse/CLOUDSTACK-292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472467#comment-13472467
]
Sudha Ponnaganti edited comment on CLOUDSTACK-292 at 10/9/12 3:35 PM:
----------------------------------------------------------------------
swamy validated the following.
[root@rhel64 bin]# ./ec2-run-instances ef7fbe39-9006-4cc1-8a01-7cc497faffcf -n
1 --availability-zone zone2
./ec2-stop-instances f39fea4e-4563-471b-b6d2-57b175aec769
./ec2-start-instances f39fea4e-4563-471b-b6d2-57b175aec769 --connection-timeout
120 --request-timeout 120
./ec2-terminate-instances f39fea4e-4563-471b-b6d2-57b175aec769
--connection-timeout 120 --request-timeout 120
./ec2-add-group test -d 'testing'
./ec2-authorizep test -P tcp -p 22 -s 0.0.0.0/0
./ec2-run-instances ef7fbe39-9006-4cc1-8a01-7cc497faffcf -n 1
--availability-zone zone2 -g test
./ec2-describe-group
./ec2-delete-group test2
./ec2-revoke test -P tcp -p 22 -s 0.0.0.0/0
[root@rhel64 bin]# ./ec2-create-volume -s 5 --availability-zone zone2
VOLUME e6e0a648-e5bc-4356-8f13-01c91822cfba 5 zone2
Allocated 2012-10-09T20:17:47+0530
[root@rhel64 bin]# ./ec2-attach-volume e6e0a648-e5bc-4356-8f13-01c91822cfba -i
09693ad4-a87e-460a-9186-e95cb79c34b5
Required option '-d, --device DEVICE' missing (-h for usage)
[root@rhel64 bin]# ./ec2-attach-volume e6e0a648-e5bc-4356-8f13-01c91822cfba -i
09693ad4-a87e-460a-9186-e95cb79c34b5 -d /dev/sdb
ATTACHMENT e6e0a648-e5bc-4356-8f13-01c91822cfba
09693ad4-a87e-460a-9186-e95cb79c34b5 /dev/sdb Ready
2012-10-09T20:19:00+0530
[root@rhel64 bin]# ./ec2-detach-volume e6e0a648-e5bc-4356-8f13-01c91822cfba
ATTACHMENT e6e0a648-e5bc-4356-8f13-01c91822cfba Ready
1970-02-01T20:19:40+0530
[root@rhel64 bin]# ./ec2-describe-volumes
VOLUME e6e0a648-e5bc-4356-8f13-01c91822cfba 5 zone2
available 2012-10-09T20:17:47+0530
TAG volume e6e0a648-e5bc-4356-8f13-01c91822cfba
VOLUME 51c57af7-509c-4470-8612-bc8ab60e7d07 20 zone2
available 2012-10-09T20:09:19+0530
ATTACHMENT 51c57af7-509c-4470-8612-bc8ab60e7d07
09693ad4-a87e-460a-9186-e95cb79c34b5 0 attached
2012-10-09T20:09:19+0530
TAG volume 51c57af7-509c-4470-8612-bc8ab60e7d07
VOLUME 81e2e326-5130-4317-ad3d-e56ee6e83e97 20 zone2
available 2012-10-09T19:49:34+0530
ATTACHMENT 81e2e326-5130-4317-ad3d-e56ee6e83e97
f39fea4e-4563-471b-b6d2-57b175aec769 0 detached
2012-10-09T19:49:34+0530
TAG volume 81e2e326-5130-4317-ad3d-e56ee6e83e97
[root@rhel64 bin]#
[root@rhel64 bin]# ./ec2-delete-volume e6e0a648-e5bc-4356-8f13-01c91822cfba
VOLUME e6e0a648-e5bc-4356-8f13-01c91822cfba
[root@rhel64 bin]# ./ec2-describe-volumes
VOLUME 51c57af7-509c-4470-8612-bc8ab60e7d07 20 zone2
available 2012-10-09T20:09:19+0530
ATTACHMENT 51c57af7-509c-4470-8612-bc8ab60e7d07
09693ad4-a87e-460a-9186-e95cb79c34b5 0 attached
2012-10-09T20:09:19+0530
TAG volume 51c57af7-509c-4470-8612-bc8ab60e7d07
VOLUME 81e2e326-5130-4317-ad3d-e56ee6e83e97 20 zone2
available 2012-10-09T19:49:34+0530
ATTACHMENT 81e2e326-5130-4317-ad3d-e56ee6e83e97
f39fea4e-4563-471b-b6d2-57b175aec769 0 detached
2012-10-09T19:49:34+0530
TAG volume 81e2e326-5130-4317-ad3d-e56ee6e83e97
[root@rhel64 bin]#
[root@rhel64 bin]# ./ec2-create-snapshot 0e1002dc-7e55-4e29-baa6-308ac0e60de8
Read timeout. Please try again later. If this persists please visit the
AWS developer forums to see if it's the result of a known issue.
[root@rhel64 bin]# ./ec2-describe-snapshots
SNAPSHOT 2adc695e-7440-44d8-94bb-3d27f7105b15
0e1002dc-7e55-4e29-baa6-308ac0e60de8 completed
2012-10-09T20:22:49+0530 100%
49a740f4-babc-42c4-9a6e-b9090ec0b1bd:admin 10
09693ad4-a87e-460a-9186-e95cb79c34b5_a4d27b7f-29d4-4df7-9af8-78e0961a7381_20121009145249
TAG snapshot 2adc695e-7440-44d8-94bb-3d27f7105b15
[root@rhel64 bin]# ./ec2-delete-snapshot 2adc695e-7440-44d8-94bb-3d27f7105b15
SNAPSHOT 2adc695e-7440-44d8-94bb-3d27f7105b15
[root@rhel64 bin]# ./ec2-describe-snapshots
[root@rhel64 bin]#
[root@rhel64 bin]# ./ec2-delete-group test2
GROUP test2
[root@rhel64 bin]# ./ec2-revoke test -P tcp -p 22 -s 0.0.0.0/0
GROUP test
PERMISSION test ALLOWS tcp 22 22 FROM CIDR
0.0.0.0/0
[root@rhel64 bin]# ./ec2-create-volume -s 5
Required option '-z, --availability-zone ZONE' missing (-h for usage)
[root@rhel64 bin]# ./ec2-create-volume -s 5 --availability-zone zone2
VOLUME e6e0a648-e5bc-4356-8f13-01c91822cfba 5 zone2
Allocated 2012-10-09T20:17:47+0530
[root@rhel64 bin]# ./ec2-attach-volume e6e0a648-e5bc-4356-8f13-01c91822cfba -i
09693ad4-a87e-460a-9186-e95cb79c34b5
Required option '-d, --device DEVICE' missing (-h for usage)
[root@rhel64 bin]# ./ec2-attach-volume e6e0a648-e5bc-4356-8f13-01c91822cfba -i
09693ad4-a87e-460a-9186-e95cb79c34b5 -d /dev/sdb
ATTACHMENT e6e0a648-e5bc-4356-8f13-01c91822cfba
09693ad4-a87e-460a-9186-e95cb79c34b5 /dev/sdb Ready
2012-10-09T20:19:00+0530
[root@rhel64 bin]# ./ec2-detach-volume e6e0a648-e5bc-4356-8f13-01c91822cfba
ATTACHMENT e6e0a648-e5bc-4356-8f13-01c91822cfba Ready
1970-02-01T20:19:40+0530
[root@rhel64 bin]# ./ec2-describe-volumes
VOLUME e6e0a648-e5bc-4356-8f13-01c91822cfba 5 zone2
available 2012-10-09T20:17:47+0530
TAG volume e6e0a648-e5bc-4356-8f13-01c91822cfba
VOLUME 51c57af7-509c-4470-8612-bc8ab60e7d07 20 zone2
available 2012-10-09T20:09:19+0530
ATTACHMENT 51c57af7-509c-4470-8612-bc8ab60e7d07
09693ad4-a87e-460a-9186-e95cb79c34b5 0 attached
2012-10-09T20:09:19+0530
TAG volume 51c57af7-509c-4470-8612-bc8ab60e7d07
VOLUME 81e2e326-5130-4317-ad3d-e56ee6e83e97 20 zone2
available 2012-10-09T19:49:34+0530
ATTACHMENT 81e2e326-5130-4317-ad3d-e56ee6e83e97
f39fea4e-4563-471b-b6d2-57b175aec769 0 detached
2012-10-09T19:49:34+0530
TAG volume 81e2e326-5130-4317-ad3d-e56ee6e83e97
[root@rhel64 bin]# ./ec2-delete-volume e6e0a648-e5bc-4356-8f13-01c91822cfba
VOLUME e6e0a648-e5bc-4356-8f13-01c91822cfba
[root@rhel64 bin]# ./ec2-describe-volumes
VOLUME 51c57af7-509c-4470-8612-bc8ab60e7d07 20 zone2
available 2012-10-09T20:09:19+0530
ATTACHMENT 51c57af7-509c-4470-8612-bc8ab60e7d07
09693ad4-a87e-460a-9186-e95cb79c34b5 0 attached
2012-10-09T20:09:19+0530
TAG volume 51c57af7-509c-4470-8612-bc8ab60e7d07
VOLUME 81e2e326-5130-4317-ad3d-e56ee6e83e97 20 zone2
available 2012-10-09T19:49:34+0530
ATTACHMENT 81e2e326-5130-4317-ad3d-e56ee6e83e97
f39fea4e-4563-471b-b6d2-57b175aec769 0 detached
2012-10-09T19:49:34+0530
TAG volume 81e2e326-5130-4317-ad3d-e56ee6e83e97
(reverse-i-search)`e-v': ./ec2-describ^Cvolumes
[root@rhel64 bin]# ./ec2-create-volume -s 10 --availability-zone zone2
VOLUME 0e1002dc-7e55-4e29-baa6-308ac0e60de8 10 zone2
Allocated 2012-10-09T20:21:38+0530
[root@rhel64 bin]# ./ec2-create-snapshot 0e1002dc-7e55-4e29-baa6-308ac0e60de8
Server.InternalError: VolumeId: 7 is not in Ready state but Allocated. Cannot
take snapshot.
[root@rhel64 bin]# ./ec2-create-snapshot 0e1002dc-7e55-4e29-baa6-308ac0e60de8
Server.InternalError: VolumeId: 7 is not in Ready state but Allocated. Cannot
take snapshot.
[root@rhel64 bin]# ./ec2-attach-volume 0e1002dc-7e55-4e29-baa6-308ac0e60de8 -i
09693ad4-a87e-460a-9186-e95cb79c34b5 -d /dev/sdb
ATTACHMENT 0e1002dc-7e55-4e29-baa6-308ac0e60de8
09693ad4-a87e-460a-9186-e95cb79c34b5 /dev/sdb Ready
2012-10-09T20:22:43+0530
[root@rhel64 bin]# ./ec2-create-snapshot 0e1002dc-7e55-4e29-baa6-308ac0e60de8
Read timeout. Please try again later. If this persists please visit the
AWS developer forums to see if it's the result of a known issue.
[root@rhel64 bin]# ./ec2-describe-snapshots
SNAPSHOT 2adc695e-7440-44d8-94bb-3d27f7105b15
0e1002dc-7e55-4e29-baa6-308ac0e60de8 completed
2012-10-09T20:22:49+0530 100%
49a740f4-babc-42c4-9a6e-b9090ec0b1bd:admin 10
09693ad4-a87e-460a-9186-e95cb79c34b5_a4d27b7f-29d4-4df7-9af8-78e0961a7381_20121009145249
TAG snapshot 2adc695e-7440-44d8-94bb-3d27f7105b15
[root@rhel64 bin]# ./ec2-delete-snapshot 2adc695e-7440-44d8-94bb-3d27f7105b15
SNAPSHOT 2adc695e-7440-44d8-94bb-3d27f7105b15
[root@rhel64 bin]# ./ec2-describe-snapshots
[root@rhel64 bin]# ./ec2-create-image 09693ad4-a87e-460a-9186-e95cb79c34b5
--name tmpl1 -d tmpl1
Read timeout. Please try again later. If this persists please visit the
AWS developer forums to see if it's the result of a known issue.
[root@rhel64 bin]# ./ec2-register -n 'Image1' -a 'VHD:zone1:CentOS 5.3
(64-bit):xenserver'
http://10.147.28.6/emplates/centos53-x86_64/latest/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
--description="Image1"
Server.InternalError: Unknown zoneName value - zone1
[root@rhel64 bin]# ./ec2-register -n 'Image1' -a 'VHD:zone2:CentOS 5.3
(64-bit):xenserver'
http://10.147.28.6/emplates/centos53-x86_64/latest/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
--description="Image1"
IMAGE 181b2cbc-994a-4791-9589-709c84d36329
[root@rhel64 bin]# ./ec2-register -n 'Image2' -a 'VHD:zone2:CentOS 5.3
(64-bit):xenserver'
http://10.147.28.6/Templates/centos53-x86_64/latest/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
--description="Image2"
IMAGE 171146fe-82c6-4329-8049-dd4f82924d9d
[root@rhel64 bin]# ./ec2-register -n 'Image3' -a 'VHD:zone2:CentOS 5.3
(64-bit):xenserver'
http://10.147.28.6/templates/centos53-x86_64/latest/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
--description="Image3"
746 ./ec2-create-volume -s 5
747 ./ec2-create-volume -s 5 --availability-zone zone2
748 ./ec2-attach-volume e6e0a648-e5bc-4356-8f13-01c91822cfba -i
09693ad4-a87e-460a-9186-e95cb79c34b5
749 ./ec2-attach-volume e6e0a648-e5bc-4356-8f13-01c91822cfba -i
09693ad4-a87e-460a-9186-e95cb79c34b5 -d /dev/sdb
750 ./ec2-detach-volume e6e0a648-e5bc-4356-8f13-01c91822cfba
751 ./ec2-describe-volumes
752 ./ec2-delete-volume e6e0a648-e5bc-4356-8f13-01c91822cfba
753 ./ec2-describe-volumes
754 ./ec2-create-volume -s 10 --availability-zone zone2
755 ./ec2-create-snapshot 0e1002dc-7e55-4e29-baa6-308ac0e60de8
756 ./ec2-attach-volume 0e1002dc-7e55-4e29-baa6-308ac0e60de8 -i
09693ad4-a87e-460a-9186-e95cb79c34b5 -d /dev/sdb
757 ./ec2-create-snapshot 0e1002dc-7e55-4e29-baa6-308ac0e60de8
758 ./ec2-describe-snapshots
759 ./ec2-delete-snapshot 2adc695e-7440-44d8-94bb-3d27f7105b15
760 ./ec2-describe-snapshots
761 ./ec2-create-image 09693ad4-a87e-460a-9186-e95cb79c34b5 --name tmpl1 -d
tmpl1
762 ./ec2-register -n 'Image1' -a 'VHD:zone1:CentOS 5.3 (64-bit):xenserver'
http://10.147.28.6/emplates/centos53-x86_64/latest/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
--description="Image1"
763 ./ec2-register -n 'Image1' -a 'VHD:zone2:CentOS 5.3 (64-bit):xenserver'
http://10.147.28.6/emplates/centos53-x86_64/latest/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
--description="Image1"
764 ./ec2-register -n 'Image2' -a 'VHD:zone2:CentOS 5.3 (64-bit):xenserver'
http://10.147.28.6/Templates/centos53-x86_64/latest/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
--description="Image2"
765 ./ec2-register -n 'Image3' -a 'VHD:zone2:CentOS 5.3 (64-bit):xenserver'
http://10.147.28.6/templates/centos53-x86_64/latest/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
--description="Image3"
766 ./ec2-describe-images
767 ./ec2-deregister 10b7011f-71bb-4c4c-b9a7-9943f187e501
was (Author: sudhap):
[root@rhel64 bin]# ./ec2-run-instances ef7fbe39-9006-4cc1-8a01-7cc497faffcf
-n 1 --availability-zone zone2
./ec2-stop-instances f39fea4e-4563-471b-b6d2-57b175aec769
./ec2-start-instances f39fea4e-4563-471b-b6d2-57b175aec769 --connection-timeout
120 --request-timeout 120
./ec2-terminate-instances f39fea4e-4563-471b-b6d2-57b175aec769
--connection-timeout 120 --request-timeout 120
./ec2-add-group test -d 'testing'
./ec2-authorizep test -P tcp -p 22 -s 0.0.0.0/0
./ec2-run-instances ef7fbe39-9006-4cc1-8a01-7cc497faffcf -n 1
--availability-zone zone2 -g test
./ec2-describe-group
./ec2-delete-group test2
./ec2-revoke test -P tcp -p 22 -s 0.0.0.0/0
[root@rhel64 bin]# ./ec2-create-volume -s 5 --availability-zone zone2
VOLUME e6e0a648-e5bc-4356-8f13-01c91822cfba 5 zone2
Allocated 2012-10-09T20:17:47+0530
[root@rhel64 bin]# ./ec2-attach-volume e6e0a648-e5bc-4356-8f13-01c91822cfba -i
09693ad4-a87e-460a-9186-e95cb79c34b5
Required option '-d, --device DEVICE' missing (-h for usage)
[root@rhel64 bin]# ./ec2-attach-volume e6e0a648-e5bc-4356-8f13-01c91822cfba -i
09693ad4-a87e-460a-9186-e95cb79c34b5 -d /dev/sdb
ATTACHMENT e6e0a648-e5bc-4356-8f13-01c91822cfba
09693ad4-a87e-460a-9186-e95cb79c34b5 /dev/sdb Ready
2012-10-09T20:19:00+0530
[root@rhel64 bin]# ./ec2-detach-volume e6e0a648-e5bc-4356-8f13-01c91822cfba
ATTACHMENT e6e0a648-e5bc-4356-8f13-01c91822cfba Ready
1970-02-01T20:19:40+0530
[root@rhel64 bin]# ./ec2-describe-volumes
VOLUME e6e0a648-e5bc-4356-8f13-01c91822cfba 5 zone2
available 2012-10-09T20:17:47+0530
TAG volume e6e0a648-e5bc-4356-8f13-01c91822cfba
VOLUME 51c57af7-509c-4470-8612-bc8ab60e7d07 20 zone2
available 2012-10-09T20:09:19+0530
ATTACHMENT 51c57af7-509c-4470-8612-bc8ab60e7d07
09693ad4-a87e-460a-9186-e95cb79c34b5 0 attached
2012-10-09T20:09:19+0530
TAG volume 51c57af7-509c-4470-8612-bc8ab60e7d07
VOLUME 81e2e326-5130-4317-ad3d-e56ee6e83e97 20 zone2
available 2012-10-09T19:49:34+0530
ATTACHMENT 81e2e326-5130-4317-ad3d-e56ee6e83e97
f39fea4e-4563-471b-b6d2-57b175aec769 0 detached
2012-10-09T19:49:34+0530
TAG volume 81e2e326-5130-4317-ad3d-e56ee6e83e97
[root@rhel64 bin]#
[root@rhel64 bin]# ./ec2-delete-volume e6e0a648-e5bc-4356-8f13-01c91822cfba
VOLUME e6e0a648-e5bc-4356-8f13-01c91822cfba
[root@rhel64 bin]# ./ec2-describe-volumes
VOLUME 51c57af7-509c-4470-8612-bc8ab60e7d07 20 zone2
available 2012-10-09T20:09:19+0530
ATTACHMENT 51c57af7-509c-4470-8612-bc8ab60e7d07
09693ad4-a87e-460a-9186-e95cb79c34b5 0 attached
2012-10-09T20:09:19+0530
TAG volume 51c57af7-509c-4470-8612-bc8ab60e7d07
VOLUME 81e2e326-5130-4317-ad3d-e56ee6e83e97 20 zone2
available 2012-10-09T19:49:34+0530
ATTACHMENT 81e2e326-5130-4317-ad3d-e56ee6e83e97
f39fea4e-4563-471b-b6d2-57b175aec769 0 detached
2012-10-09T19:49:34+0530
TAG volume 81e2e326-5130-4317-ad3d-e56ee6e83e97
[root@rhel64 bin]#
[root@rhel64 bin]# ./ec2-create-snapshot 0e1002dc-7e55-4e29-baa6-308ac0e60de8
Read timeout. Please try again later. If this persists please visit the
AWS developer forums to see if it's the result of a known issue.
[root@rhel64 bin]# ./ec2-describe-snapshots
SNAPSHOT 2adc695e-7440-44d8-94bb-3d27f7105b15
0e1002dc-7e55-4e29-baa6-308ac0e60de8 completed
2012-10-09T20:22:49+0530 100%
49a740f4-babc-42c4-9a6e-b9090ec0b1bd:admin 10
09693ad4-a87e-460a-9186-e95cb79c34b5_a4d27b7f-29d4-4df7-9af8-78e0961a7381_20121009145249
TAG snapshot 2adc695e-7440-44d8-94bb-3d27f7105b15
[root@rhel64 bin]# ./ec2-delete-snapshot 2adc695e-7440-44d8-94bb-3d27f7105b15
SNAPSHOT 2adc695e-7440-44d8-94bb-3d27f7105b15
[root@rhel64 bin]# ./ec2-describe-snapshots
[root@rhel64 bin]#
[root@rhel64 bin]# ./ec2-delete-group test2
GROUP test2
[root@rhel64 bin]# ./ec2-revoke test -P tcp -p 22 -s 0.0.0.0/0
GROUP test
PERMISSION test ALLOWS tcp 22 22 FROM CIDR
0.0.0.0/0
[root@rhel64 bin]# ./ec2-create-volume -s 5
Required option '-z, --availability-zone ZONE' missing (-h for usage)
[root@rhel64 bin]# ./ec2-create-volume -s 5 --availability-zone zone2
VOLUME e6e0a648-e5bc-4356-8f13-01c91822cfba 5 zone2
Allocated 2012-10-09T20:17:47+0530
[root@rhel64 bin]# ./ec2-attach-volume e6e0a648-e5bc-4356-8f13-01c91822cfba -i
09693ad4-a87e-460a-9186-e95cb79c34b5
Required option '-d, --device DEVICE' missing (-h for usage)
[root@rhel64 bin]# ./ec2-attach-volume e6e0a648-e5bc-4356-8f13-01c91822cfba -i
09693ad4-a87e-460a-9186-e95cb79c34b5 -d /dev/sdb
ATTACHMENT e6e0a648-e5bc-4356-8f13-01c91822cfba
09693ad4-a87e-460a-9186-e95cb79c34b5 /dev/sdb Ready
2012-10-09T20:19:00+0530
[root@rhel64 bin]# ./ec2-detach-volume e6e0a648-e5bc-4356-8f13-01c91822cfba
ATTACHMENT e6e0a648-e5bc-4356-8f13-01c91822cfba Ready
1970-02-01T20:19:40+0530
[root@rhel64 bin]# ./ec2-describe-volumes
VOLUME e6e0a648-e5bc-4356-8f13-01c91822cfba 5 zone2
available 2012-10-09T20:17:47+0530
TAG volume e6e0a648-e5bc-4356-8f13-01c91822cfba
VOLUME 51c57af7-509c-4470-8612-bc8ab60e7d07 20 zone2
available 2012-10-09T20:09:19+0530
ATTACHMENT 51c57af7-509c-4470-8612-bc8ab60e7d07
09693ad4-a87e-460a-9186-e95cb79c34b5 0 attached
2012-10-09T20:09:19+0530
TAG volume 51c57af7-509c-4470-8612-bc8ab60e7d07
VOLUME 81e2e326-5130-4317-ad3d-e56ee6e83e97 20 zone2
available 2012-10-09T19:49:34+0530
ATTACHMENT 81e2e326-5130-4317-ad3d-e56ee6e83e97
f39fea4e-4563-471b-b6d2-57b175aec769 0 detached
2012-10-09T19:49:34+0530
TAG volume 81e2e326-5130-4317-ad3d-e56ee6e83e97
[root@rhel64 bin]# ./ec2-delete-volume e6e0a648-e5bc-4356-8f13-01c91822cfba
VOLUME e6e0a648-e5bc-4356-8f13-01c91822cfba
[root@rhel64 bin]# ./ec2-describe-volumes
VOLUME 51c57af7-509c-4470-8612-bc8ab60e7d07 20 zone2
available 2012-10-09T20:09:19+0530
ATTACHMENT 51c57af7-509c-4470-8612-bc8ab60e7d07
09693ad4-a87e-460a-9186-e95cb79c34b5 0 attached
2012-10-09T20:09:19+0530
TAG volume 51c57af7-509c-4470-8612-bc8ab60e7d07
VOLUME 81e2e326-5130-4317-ad3d-e56ee6e83e97 20 zone2
available 2012-10-09T19:49:34+0530
ATTACHMENT 81e2e326-5130-4317-ad3d-e56ee6e83e97
f39fea4e-4563-471b-b6d2-57b175aec769 0 detached
2012-10-09T19:49:34+0530
TAG volume 81e2e326-5130-4317-ad3d-e56ee6e83e97
(reverse-i-search)`e-v': ./ec2-describ^Cvolumes
[root@rhel64 bin]# ./ec2-create-volume -s 10 --availability-zone zone2
VOLUME 0e1002dc-7e55-4e29-baa6-308ac0e60de8 10 zone2
Allocated 2012-10-09T20:21:38+0530
[root@rhel64 bin]# ./ec2-create-snapshot 0e1002dc-7e55-4e29-baa6-308ac0e60de8
Server.InternalError: VolumeId: 7 is not in Ready state but Allocated. Cannot
take snapshot.
[root@rhel64 bin]# ./ec2-create-snapshot 0e1002dc-7e55-4e29-baa6-308ac0e60de8
Server.InternalError: VolumeId: 7 is not in Ready state but Allocated. Cannot
take snapshot.
[root@rhel64 bin]# ./ec2-attach-volume 0e1002dc-7e55-4e29-baa6-308ac0e60de8 -i
09693ad4-a87e-460a-9186-e95cb79c34b5 -d /dev/sdb
ATTACHMENT 0e1002dc-7e55-4e29-baa6-308ac0e60de8
09693ad4-a87e-460a-9186-e95cb79c34b5 /dev/sdb Ready
2012-10-09T20:22:43+0530
[root@rhel64 bin]# ./ec2-create-snapshot 0e1002dc-7e55-4e29-baa6-308ac0e60de8
Read timeout. Please try again later. If this persists please visit the
AWS developer forums to see if it's the result of a known issue.
[root@rhel64 bin]# ./ec2-describe-snapshots
SNAPSHOT 2adc695e-7440-44d8-94bb-3d27f7105b15
0e1002dc-7e55-4e29-baa6-308ac0e60de8 completed
2012-10-09T20:22:49+0530 100%
49a740f4-babc-42c4-9a6e-b9090ec0b1bd:admin 10
09693ad4-a87e-460a-9186-e95cb79c34b5_a4d27b7f-29d4-4df7-9af8-78e0961a7381_20121009145249
TAG snapshot 2adc695e-7440-44d8-94bb-3d27f7105b15
[root@rhel64 bin]# ./ec2-delete-snapshot 2adc695e-7440-44d8-94bb-3d27f7105b15
SNAPSHOT 2adc695e-7440-44d8-94bb-3d27f7105b15
[root@rhel64 bin]# ./ec2-describe-snapshots
[root@rhel64 bin]# ./ec2-create-image 09693ad4-a87e-460a-9186-e95cb79c34b5
--name tmpl1 -d tmpl1
Read timeout. Please try again later. If this persists please visit the
AWS developer forums to see if it's the result of a known issue.
[root@rhel64 bin]# ./ec2-register -n 'Image1' -a 'VHD:zone1:CentOS 5.3
(64-bit):xenserver'
http://10.147.28.6/emplates/centos53-x86_64/latest/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
--description="Image1"
Server.InternalError: Unknown zoneName value - zone1
[root@rhel64 bin]# ./ec2-register -n 'Image1' -a 'VHD:zone2:CentOS 5.3
(64-bit):xenserver'
http://10.147.28.6/emplates/centos53-x86_64/latest/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
--description="Image1"
IMAGE 181b2cbc-994a-4791-9589-709c84d36329
[root@rhel64 bin]# ./ec2-register -n 'Image2' -a 'VHD:zone2:CentOS 5.3
(64-bit):xenserver'
http://10.147.28.6/Templates/centos53-x86_64/latest/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
--description="Image2"
IMAGE 171146fe-82c6-4329-8049-dd4f82924d9d
[root@rhel64 bin]# ./ec2-register -n 'Image3' -a 'VHD:zone2:CentOS 5.3
(64-bit):xenserver'
http://10.147.28.6/templates/centos53-x86_64/latest/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
--description="Image3"
746 ./ec2-create-volume -s 5
747 ./ec2-create-volume -s 5 --availability-zone zone2
748 ./ec2-attach-volume e6e0a648-e5bc-4356-8f13-01c91822cfba -i
09693ad4-a87e-460a-9186-e95cb79c34b5
749 ./ec2-attach-volume e6e0a648-e5bc-4356-8f13-01c91822cfba -i
09693ad4-a87e-460a-9186-e95cb79c34b5 -d /dev/sdb
750 ./ec2-detach-volume e6e0a648-e5bc-4356-8f13-01c91822cfba
751 ./ec2-describe-volumes
752 ./ec2-delete-volume e6e0a648-e5bc-4356-8f13-01c91822cfba
753 ./ec2-describe-volumes
754 ./ec2-create-volume -s 10 --availability-zone zone2
755 ./ec2-create-snapshot 0e1002dc-7e55-4e29-baa6-308ac0e60de8
756 ./ec2-attach-volume 0e1002dc-7e55-4e29-baa6-308ac0e60de8 -i
09693ad4-a87e-460a-9186-e95cb79c34b5 -d /dev/sdb
757 ./ec2-create-snapshot 0e1002dc-7e55-4e29-baa6-308ac0e60de8
758 ./ec2-describe-snapshots
759 ./ec2-delete-snapshot 2adc695e-7440-44d8-94bb-3d27f7105b15
760 ./ec2-describe-snapshots
761 ./ec2-create-image 09693ad4-a87e-460a-9186-e95cb79c34b5 --name tmpl1 -d
tmpl1
762 ./ec2-register -n 'Image1' -a 'VHD:zone1:CentOS 5.3 (64-bit):xenserver'
http://10.147.28.6/emplates/centos53-x86_64/latest/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
--description="Image1"
763 ./ec2-register -n 'Image1' -a 'VHD:zone2:CentOS 5.3 (64-bit):xenserver'
http://10.147.28.6/emplates/centos53-x86_64/latest/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
--description="Image1"
764 ./ec2-register -n 'Image2' -a 'VHD:zone2:CentOS 5.3 (64-bit):xenserver'
http://10.147.28.6/Templates/centos53-x86_64/latest/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
--description="Image2"
765 ./ec2-register -n 'Image3' -a 'VHD:zone2:CentOS 5.3 (64-bit):xenserver'
http://10.147.28.6/templates/centos53-x86_64/latest/f59f18fb-ae94-4f97-afd2-f84755767aca.vhd.bz2
--description="Image3"
766 ./ec2-describe-images
767 ./ec2-deregister 10b7011f-71bb-4c4c-b9a7-9943f187e501
> AWS - Not able to make any soap calls.
> --------------------------------------
>
> Key: CLOUDSTACK-292
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-292
> Project: CloudStack
> Issue Type: Bug
> Components: Management Server
> Affects Versions: 4.0.0
> Environment: Tested with:
> Git Revision: 434c69ac7c2139247eef0c3c41738e5f6d62b87f
> Git URL: https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
> Tested on management-server on rhen 6.3.
> Reporter: Sangeetha Hariharan
> Assignee: Rohit Yadav
> Priority: Blocker
> Fix For: 4.0.0
>
>
> Install management server rhel 6.3.
> Set up a basic zone.
> Set enable.ec2.api=true
> Restart management server.
> 1. Create a user and generate
> - Your account's API key and Secret key
> 2. Generate a private key and a self-signed X.509 certificate.
> $ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout
> /path/to/private_key.pem -out /path/to/cert.pem
> 3. Register the mapping from the X.509 certificate to your accounts API keys
> with CloudStack using cloudstack-aws-api-register script.
> $ cloudstack-aws-api-register --apikey=<User’s Cloudstack API key>
> --secretkey=<User’s CloudStack Secret key> --cert=</path/to/cert.pem>
> --url=http://<cloud-stack-server>:7080/awsapi
> user registeration succeeds.
>
> 4.Setup the necessary environment variables for the EC2 tools.
> $ export EC2_ACCESS_KEY=<CloudStack API key>
> $ export EC2_SECRET_KEY=<CloudStack Secret key>
> $ export EC2_CERT=/path/to/cert.pem
> $ export EC2_PRIVATE_KEY=/path/to/private_key.pem
> $ export EC2_URL=http://cloud-stack-hostname:7080/awsapi
> $export EC2_HOME=/path/to/EC2_installation_directory
> Now try to make any SOAP api call.
> /root/ec2tool/ec2-api-tools-1.3-62308/bin
> . ./setup.sh
> I see the following exception :
> [root@Host41-4 bin]# ./ec2-describe-images
> Unexpected error:
> org.codehaus.xfire.fault.XFireFault: Unexpected close tag </body>; expected
> </HR>.
> at [row,col {unknown-source}]: [31,187]
> at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
> at org.codehaus.xfire.client.Client.onReceive(Client.java:410)
> at
> org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.j
> ava:139)
> at
> org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
> at
> org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java: 26)
> at
> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:13 1)
> at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
> at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
> at org.codehaus.xfire.client.Client.invoke(Client.java:336)
> at
> org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
> at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
> at $Proxy12.describeImages(Unknown Source)
> at
> com.amazon.aes.webservices.client.Jec2.describeImages(Jec2.java:529)
> at
> com.amazon.aes.webservices.client.cmd.DescribeImages.invokeOnline(Describ
> eImages.java:157)
> at
> com.amazon.aes.webservices.client.cmd.BaseCmd.invoke(BaseCmd.java:795)
> at
> com.amazon.aes.webservices.client.cmd.DescribeImages.main(DescribeImages.
> java:181)
> Caused by: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag
> </body>; expe cted </HR>.
> at [row,col {unknown-source}]: [31,187]
> at
> com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:60 5)
> at
> com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461)
> at
> com.ctc.wstx.sr.BasicStreamReader.reportWrongEndElem(BasicStreamReader.ja
> va:3256)
> at
> com.ctc.wstx.sr.BasicStreamReader.readEndElem(BasicStreamReader.java:3198 )
> at
> com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:283 0)
> at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
> at
> org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHand
> ler.java:44)
> at
> org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:13 1)
> at org.codehaus.xfire.client.Client.onReceive(Client.java:406)
> ... 14 more
> In catalina.out , I see the following error:
> java.lang.NoClassDefFoundError:
> org/apache/ws/commons/schema/resolver/URIResolver
> at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516)
> at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436)
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
> at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:615)
> at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
> at
> com.cloud.bridge.service.EC2MainServlet.doGetOrPost(EC2MainServlet.java:102)
> at
> com.cloud.bridge.service.EC2MainServlet.doPost(EC2MainServlet.java:77)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
> at
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:679)
--
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