Wakeme Presen

1,924 views
1,767 views

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,924
On SlideShare
0
From Embeds
0
Number of Embeds
748
Actions
Shares
0
Downloads
9
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide




















  • Wakeme Presen

    1. 1. Wakame
    2. 2. GUI DCM HVC HVA HVA Instance HVA Instance
    3. 3. GUI DCM HVC HVA HVA Instance HVA Instance
    4. 4. • Web API • Active Resource • Sinatra
    5. 5. Active Resource • Ruby on Rails • RESTful API
    6. 6. Active Resource • URL • Instance.create => POST /instances.json • Instance.find(:all) => GET /instances.json • URL • DCM JSON
    7. 7. Active Resource • class Instance < ActiveResource::Base self.site = 'http://id:pass@dcm.xxx.com/' end Basic • Instance.create( :account=>'A-HOGE1243', :image_storage=>'IS-4567DEFG'           :cpus=>4, ..., )
    8. 8. Active Resource • JavaScript Jester(http://github.com/thoughtbot/jester) • PHP phpActiveResource (http://github.com/lux/phpactiveresource) • POST http://xxx/instances.json
    9. 9. GUI DCM HVC HVA HVA Instance HVA Instance
    10. 10. • • •
    11. 11. • • •
    12. 12. • A 3F => NETWORK_A.3F • B 2F => NETWORK_B.2F A B C 4F 3F 2F
    13. 13. • • • A B C 4F 3F 2F
    14. 14. HVC GUI DCM HVC HVA HVA Instance HVA Instance
    15. 15. HVC • HTTP • HVC HVA •     /?action=run_instance&hva_ip=<HVAIP> &instance_uuid=<INSTANCE UUID> &instance_mac=<INSTANCE MAC ADDRES> &image=<IMAGE URL> &cpus=< CPU >&... •
    16. 16. GUI DCM HVC HVA HVA Instance HVA Instance
    17. 17. • • Active Resource instance = Instance.find(‘<UUID>’) instance.status = :online instance.save
    18. 18. Dcm • HVA/HVC/ • HVC
    19. 19. GUI DCM HVC HVA HVA Instance HVA Instance
    20. 20. Wakame 1.0 • IP • •

    ×