Repository navigation
Conversation
|
cloudstack-pull-requests #278 SUCCESS |
|
Can you add some unit/marvin tests? |
|
LGTM, I guess unit tests would be cool. |
|
Code looks good, although I didn't test it yet. Before I do, I'd like to understand why do you want to push this to 4.5 and not to master? |
|
@sudhansu7 there is a question here from @remibergsma , can you answer it so it can get merged. |
|
@remibergsma @Runseb |
|
@sudhansu7 Let's first merge this to master, then it can go to 4.5. I just tried to merge your PR on master and that seems to work just fine so that is nice. There were two other questions: about unit tests and one about the commit message. If you could respond to that please? In the mean time, I'll go ahead and give it a test run. |
listing the hosts for migration for instance with tag While preparing the suitable hosts we are accidentally removing the incompatible (host does not have host tag) hosts from otherhost list( incorrect use of List.retainAll).
fac22e3 to
b593657
Compare
listing the hosts for migration for instance with tag
Added marvin test for this issue.
Steps
1. Create a Compute service offering with the tag.
2. Create a Guest VM with the compute service offering
created above.
3. find hosts to migrate the vm crated above
Validations
1. Ensure that the offering is created with the
tag.The listServiceOffering API should list show tag
2. findHostsForMigration cmd should list both suitable
and not-suitable hosts
|
@remibergsma @karuturi Sudhansus-MAC:cloudstack sudhansu$ nosetests --with-marvin --marvin-config=setup/dev/advanced.cfg ./test/integration/smoke/find_hosts_for_migration.py ==== Marvin Init Started ==== === Marvin Parse Config Successful === === Marvin Setting TestData Successful=== ==== Log Folder Path: /tmp//MarvinLogs//Jul_03_2015_17_38_01_JVMT7H. All logs will be available here ==== === Marvin Init Logging Successful=== ==== Marvin Init Successful ==== Ran 1 test in 27.003s OK Sudhansus-MAC:cloudstack sudhansu$ cat /tmp//MarvinLogs/find_hosts_for_migration_FKMWAR/runinfo.txt | grep -i 'Suitable Hosts' |
|
Awesome @sudhansu7. Congratulations on the first marvin test 👍 :) |
Fixes #335 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
…running management server (apache#335) * Run recalculation recurrent task only in the longest running management server * Fix timeout and recalculation when no child domains (cherry picked from commit 3f35e3a6ef24017d2f63613ca4362521b1ee78b6) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This adds the missing commit to the fix apache#335 from the upstream PR: apache#7977 (cherry picked from commit b5f77f9c3b53af7e8b05730da9807a2c9eb017a5) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
…ing the hosts for migration for instance with tag
While preparing the suitable hosts we are accidentally removing the incompatible (host does not have host tag) hosts from other host list(incorrect use of List.retainAll).