Enable create snapshot on cloud.yaml

Hello,

I need to enable create snapshot on cloud view. I did that by these steps:

  • Backup cloud.yaml: cp /etc/one/sunstone-views/cloud.yaml /etc/one/sunstone-views/cloud.yaml.org
  • Modify cloud.yaml:

    tabs:
    provision-tab:
    panel_tabs:
    vm_info_tab: false
    vm_capacity_tab: false
    vm_storage_tab: true
    vm_network_tab: true
    vm_snapshot_tab: true

    actions: &provisionactions

    VM.snapshot_create: true
    VM.snapshot_revert: true
    VM.snapshot_delete: true
  • I login to sunstone with oneadmin user and change to cloud view: http://prntscr.com/bqsjk5
  • When I click “takes snapshot” button, I was redirected to sunstone home page.
  • When I click “storages” tab and click “snapshot” button, I got the error message “csrftoken”:
  • http://prntscr.com/bqslnx
  • Log sunstone:
    Sat Jul 09 08:47:34 2016 [I]: X.X.X.X - - [09/Jul/2016:08:47:34 -0700] “GET /vm/4/monitor?monitor_resources=MONITORING%2FCPU%2CMONITORING%2FMEMORY%2CMONITORING%2FNETTX%2CMONITORING%2FNETRX&csrftoken=00487d829104e78dc58ead1865c2f067 HTTP/1.1” 200 - 0.0644
    Sat Jul 09 08:48:24 2016 [I]: X.X.X.X - - [09/Jul/2016:08:48:24 -0700] “GET /VM.disk_snapshot_create HTTP/1.1” 401 - 0.0060

Whats wrong with my settings ? Please give me some advice for enable snapshot feature on cloud view.

Regards,

vynt opennebula@discoursemail.com writes:

Hello,

Hello,

[…]

  • I login to sunstone with oneadmin user and change to cloud view: http://prntscr.com/bqsjk5
  • When I click “takes snapshot” button, I was redirected to sunstone home page.
  • When I click “storages” tab and click “snapshot” button, I got the error message “csrftoken”:
  • http://prntscr.com/bqslnx
  • Log sunstone:
    Sat Jul 09 08:47:34 2016 [I]: X.X.X.X - - [09/Jul/2016:08:47:34 -0700] “GET /vm/4/monitor?monitor_resources=MONITORING%2FCPU%2CMONITORING%2FMEMORY%2CMONITORING%2FNETTX%2CMONITORING%2FNETRX&csrftoken=00487d829104e78dc58ead1865c2f067 HTTP/1.1” 200 - 0.0644
    Sat Jul 09 08:48:24 2016 [I]: X.X.X.X - - [09/Jul/2016:08:48:24 -0700] “GET /VM.disk_snapshot_create HTTP/1.1” 401 - 0.0060

Whats worong with my settings ? Please give me some advice for enable snapshot feature on cloud view.

It’s already reported[1] and fixed for 5.0.2[2].

The RC > stable transition was a little to quick for us, so we made some
reports after 5.0.0 was out :-/

Regards.

Footnotes:
[1] https://dev.opennebula.org/issues/4615

[2] https://dev.opennebula.org/versions/85

Daniel Dehennin
Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF
Fingerprint: 3E69 014E 5C23 50E8 9ED6 2AAD CC1E 9E5B 7A6F E2DF

Hello DaD,

Thank you for quick reply. I will update to RC version and test it again.

Regards,

Hi,

i currently got the same issue with a current ONE 5.4 version and the cloud view with enabled “Snapshot-Tab”. Any ideas?

Best Sebastian

Hi Sebastian,

this is the issue for this problem:
https://dev.opennebula.org/issues/5308