Skip to content

CLOUDSTACK-8580: user can view, expunge and restore VMs#593

Closed
borisroman wants to merge 1 commit into
apache:masterfrom
borisroman:master
Closed

CLOUDSTACK-8580: user can view, expunge and restore VMs#593
borisroman wants to merge 1 commit into
apache:masterfrom
borisroman:master

Conversation

@borisroman
Copy link
Copy Markdown
Contributor

Users are now able to view, expunge and recover their vm's themselves. Two configuration options are added to allow this behaviour on a global or per account scale. Configuration options default to false.

… vm's themselves. Two configuration options are added to allow this behaviour on a global or per account scale. Configuration options default to false.
@asfbot
Copy link
Copy Markdown

asfbot commented Jul 15, 2015

cloudstack-pull-rats #57 SUCCESS
This pull request looks good

@asfbot
Copy link
Copy Markdown

asfbot commented Jul 15, 2015

cloudstack-pull-requests #754 SUCCESS
This pull request looks good

@DaanHoogland
Copy link
Copy Markdown
Contributor

Can you add the description of the functionality is short to the pr title?

for instance 'CLOUDSTACK-8580: user access to deleted VMs'

@borisroman borisroman changed the title CLOUDSTACK-8580 CLOUDSTACK-8580: user can view, expunge and restore VMs Jul 15, 2015
@borisroman
Copy link
Copy Markdown
Contributor Author

Added description to title.

@asfbot
Copy link
Copy Markdown

asfbot commented Jul 15, 2015

cloudstack-pull-rats #60 ABORTED

@asfbot
Copy link
Copy Markdown

asfbot commented Jul 15, 2015

cloudstack-pull-rats #61 ABORTED

@asfbot
Copy link
Copy Markdown

asfbot commented Jul 15, 2015

cloudstack-pull-requests #757 SUCCESS
This pull request looks good

@asfbot
Copy link
Copy Markdown

asfbot commented Jul 15, 2015

cloudstack-pull-requests #758 UNSTABLE
Looks like there's a problem with this pull request

@wilderrodrigues
Copy link
Copy Markdown
Contributor

LGTM 👍

@DaanHoogland
Copy link
Copy Markdown
Contributor

no comments on the code but can you describe and add tests?

@wido
Copy link
Copy Markdown
Contributor

wido commented Jul 16, 2015

LGTM

A test would be welcome indeed

@kishankavala
Copy link
Copy Markdown
Contributor

LGTM.
Yes some tests would be good to validate expunge/recover behavior when the config is set to true/false for an account

@wido
Copy link
Copy Markdown
Contributor

wido commented Jul 17, 2015

Since this one got 3 LGTM's but there are outstanding test requests, how to proceed? Do I merge it or wait for the tests?

@DaanHoogland
Copy link
Copy Markdown
Contributor

Wido, I want tests but if three other people want to merge it I'm not going to stand between them and the repo on my own. (btw I shouldn't have to)

@sebgoa
Copy link
Copy Markdown
Member

sebgoa commented Jul 17, 2015

@wido same as @DaanHoogland here, ideal case we would have marvin tests…but...

@wilderrodrigues
Copy link
Copy Markdown
Contributor

@wido @DaanHoogland @borisroman @Runseb

I will test it manually before proceeding with a merge. I will also add an integration test for that and send in a new PR.

Cheers,
Wilder

@wilderrodrigues
Copy link
Copy Markdown
Contributor

Perhaps a bit more of detail on the PR description, like test steps.

I had to look at the diff of the code in order to find the new configuration key. Due to that, will have to restart the tests - had create account / VM and destroyed VM. :(

No worries, just a hint. ;)

Cheers,
Wilder

@wilderrodrigues
Copy link
Copy Markdown
Contributor

Hi guys,

I tested the PR and it works fine. Below the steps I followed:

  1. Change configuration option
  2. create a new user account
    a. type set as USER
  3. Log out from admin and login is as the new user
  4. Create a VM
  5. Destroy the VM

Was not able to see any option to restore the VM. Is it suppose to work only via cloudmonkey?

Check the image bellow.

image

And the global settings:

image

@wilderrodrigues
Copy link
Copy Markdown
Contributor

Okay, guys... never mind.

I see now that I have to set 2 new values, not just one.

@wilderrodrigues
Copy link
Copy Markdown
Contributor

Creating 2 VMs via cloudmonkey

(local) 🐵 > deploy virtualmachine displayname=isovm networkids=61fb9ffe-cf5e-4a09-9470-e0800685f74d templateid=2853716f-311a-11e5-b59a-5254001daa61 zoneid=38d556a7-39e5-4b70-9ce2-9bed1a16abc5 serviceofferingid=5ffbfb25-7df3-4b00-b053-cda67b5b46a9

(local) 🐵 > deploy virtualmachine displayname=isovm2 networkids=61fb9ffe-cf5e-4a09-9470-e0800685f74d templateid=2853716f-311a-11e5-b59a-5254001daa61 zoneid=38d556a7-39e5-4b70-9ce2-9bed1a16abc5 serviceofferingid=5ffbfb25-7df3-4b00-b053-cda67b5b46a9

Destroying 1 VM via cloudmonkey (no expunge)

(local) 🐵 > destroy virtualmachine id=ecaeb2f4-27fa-4d40-8a72-762232f17cc4

Recovering 1 VM via cloudmonkey

(local) 🐵 > recover virtualmachine id=ecaeb2f4-27fa-4d40-8a72-762232f17cc4

Starting 1 VM via cloudmonkey

(local) 🐵 > start virtualmachine id=ecaeb2f4-27fa-4d40-8a72-762232f17cc4

image

Destroying 1 VM via cloudmonkey (expunge)

(local) 🐵 > destroy virtualmachine id=ecaeb2f4-27fa-4d40-8a72-762232f17cc4 expunge=true

image

All L-super-GTM 👍

Merging... :)

@asfgit asfgit closed this in 2984acc Jul 23, 2015
maneesha-p pushed a commit to maneesha-p/cloudstack that referenced this pull request Jul 31, 2015
… vm's themselves. Two configuration options are added to allow this behaviour on a global or per account scale. Configuration options default to false.

Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com>

This closes apache#593
yadvr pushed a commit that referenced this pull request Jan 20, 2021
* Improve vApps properties section adding categories and sort order

* fix vapps property with select error

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

Co-authored-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants