Skip to content

Conversation

@yadvr
Copy link
Member

@yadvr yadvr commented Jun 11, 2019

When a KVM host is added to a cluster, the cluster GUID is null. In case
the KVM host fails to be added, the GUID is not set to null and if any
other hosts are added an exception is thrown by the resource manager
that does not allow addition of hosts to a cluster with existing hosts
whose GUID is null.

In case of KVM, other hosts may be added in parallel therefore this
restriction can be safely removed.

Issue references:
http://mail-archives.apache.org/mod_mbox/cloudstack-users/201604.mbox/%3Cloom.20160415T120602-157@post.gmane.org%3E
http://mail-archives.apache.org/mod_mbox/cloudstack-users/201306.mbox/%3C1F7751C3-DB29-4639-9E67-9760B07C9A5B@gmail.com%3E

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

When a KVM host is added to a cluster, the cluster GUID is null. In case
the KVM host fails to be added, the GUID is not set to null and if any
other hosts are added an exception is thrown by the resource manager
that does not allow addition of hosts to a cluster with existing hosts
whose GUID is null.

In case of KVM, other hosts may be added in parallel therefore this
restriction can be safely removed.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvr yadvr requested review from PaulAngus and borisstoyanov June 11, 2019 09:36
@yadvr yadvr added this to the 4.11.3.0 milestone Jun 11, 2019
@yadvr
Copy link
Member Author

yadvr commented Jun 11, 2019

@blueorangutan package

@yadvr
Copy link
Member Author

yadvr commented Jun 11, 2019

cc @ustcweizhou - can you review, thanks.
@blueorangutan package

@blueorangutan
Copy link

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@yadvr
Copy link
Member Author

yadvr commented Jun 11, 2019

Tested in a local centos7.6+kvm env:

  • Deployed mgmt server
  • Made sys.exit(1) in the cloudstack-setup-agent script
  • Deployed zone, added the host
  • Host error-ed out, no entries saved in cloud.host table, re-added passed

@yadvr yadvr modified the milestones: 4.11.3.0, 4.13.0.0 Jun 11, 2019
@yadvr yadvr changed the base branch from 4.11 to master June 11, 2019 10:28
@yadvr yadvr closed this Jun 11, 2019
@yadvr
Copy link
Member Author

yadvr commented Jun 11, 2019

Moved to master here: #3398

@blueorangutan
Copy link

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2879

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants