-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/add vdisk UUID to list volume #5848
Feat/add vdisk UUID to list volume #5848
Conversation
@blueorangutan package |
@sureshanaparti a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2174 |
@blueorangutan test centos7 vmware-67u3 |
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
Trillian Build Failed (tid-2860) |
@DK101010 , if these sql are needed they should be added to the upgrade script, in this case in schema-41610to41700.sql |
@blueorangutan package |
@sureshanaparti a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 2190 |
vmware-base/src/main/java/com/cloud/hypervisor/vmware/mo/VirtualMachineMO.java
Outdated
Show resolved
Hide resolved
@blueorangutan package |
@nvazquez a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 2470 |
Hi @DK101010 can you please fix the open comments? Also, it seems there is an issue with packaging |
@DK101010 I verified there are some conflicts that needs to be fixed, please rebase the current main branch
|
Thanks, i will do this. |
Trillian Build Failed (tid-3830) |
@blueorangutan test centos7 vmware-67u3 keepEnv |
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
Trillian Build Failed (tid-3839) |
@@ -272,6 +291,7 @@ CREATE VIEW `cloud`.`volume_view` AS | |||
disk_offering.display_text disk_offering_display_text, | |||
disk_offering.use_local_storage, | |||
service_offering.system_use, | |||
disk_offering.system_use, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @DK101010 the build is failing because this column does not exist:
Caused by: java.sql.SQLSyntaxErrorException: Unknown column 'disk_offering.system_use' in 'field list'
at com.cloud.utils.db.ScriptRunner.runScript(ScriptRunner.java:185)
at com.cloud.utils.db.ScriptRunner.runScript(ScriptRunner.java:87)
at com.cloud.upgrade.DatabaseUpgradeChecker.runScript(DatabaseUpgradeChecker.java:215)
... 52 more
2022-04-07 13:39:12,242 DEBUG [c.c.u.d.T.Transaction] (main:null) (logid:) Rolling back the transaction: Time = 369 Name = Upgrade; called by -TransactionLegacy.rollback:888-TransactionLegacy.removeUpTo:831-TransactionLegacy.close:655-DatabaseUpgradeChecker.upgrade:314-DatabaseUpgradeChecker.check:389-CloudStackExtendedLifeCycle.checkIntegrity:64-CloudStackExtendedLifeCycle.start:54-DefaultLifecycleProcessor.doStart:178-DefaultLifecycleProcessor.access$200:54-DefaultLifecycleProcessor$LifecycleGroup.start:356-Iterable.forEach:75-DefaultLifecycleProcessor.startBeans:155
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @nvazquez, is deleted. Is cames not from me, I guess it was a little mistake during the merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DK101010 ok, I see there are conflicts again, sorry will need further fixing :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nvazquez ok :D
…/add_vdisk_uuid_to_list_volume
Hi @ravening, your pull request has merge conflicts. Can you fix the conflicts and sync your branch with the base branch? |
…/add_vdisk_uuid_to_list_volume
@blueorangutan package |
@nvazquez a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3142 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code lgtm
@blueorangutan test centos7 vmware-67u3 |
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
Trillian test result (tid-3870)
|
@blueorangutan test centos7 vmware-67u3 |
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
Trillian test result (tid-3899) |
@blueorangutan test centos7 vmware-67u3 |
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
Trillian test result (tid-3904)
|
@nvazquez please review and merge this ? |
Each VDisk on hard disk have got a uuid which starts with 600xx. Administrators needs this uuid often to identifies the right VDisk.
This PR get the vdisk uuid from vcenter and store it into the database as external_uuid in volume table. Also extend the listVolume response to add external_uuid.
Only new volumes are affected by this implementation.
Two sql update steps are necessary:
1
2
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Tested in own VMware environment.