Skip to content

packaging: bundle cmk in cloudstack-management package#8574

Merged
weizhouapache merged 1 commit intoapache:4.19from
shapeblue:bundle-cmk
Feb 9, 2024
Merged

packaging: bundle cmk in cloudstack-management package#8574
weizhouapache merged 1 commit intoapache:4.19from
shapeblue:bundle-cmk

Conversation

@yadvr
Copy link
Copy Markdown
Member

@yadvr yadvr commented Jan 30, 2024

This bundles latest cmk release in cloudstack-management package, so admins won't need to install it for typical first-install use.

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)
  • build/CI

This bundles latest cmk release in cloudstack-management package, so
admins won't need to install it for typical first-install use.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvr
Copy link
Copy Markdown
Member Author

yadvr commented Jan 30, 2024

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@rohityadavcloud a [SL] 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.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1925040) 30.82% compared to head (ff2ef3b) 23.00%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8574      +/-   ##
============================================
- Coverage     30.82%   23.00%   -7.82%     
+ Complexity    34014    23766   -10248     
============================================
  Files          5341     5209     -132     
  Lines        375027   352985   -22042     
  Branches      54554    50562    -3992     
============================================
- Hits         115592    81196   -34396     
- Misses       244155   260139   +15984     
+ Partials      15280    11650    -3630     
Flag Coverage Δ
simulator-marvin-tests 24.64% <ø> (-0.07%) ⬇️
uitests 4.39% <ø> (ø)
unit-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DaanHoogland
Copy link
Copy Markdown
Contributor

@rohityadavcloud how can we install a management server without cmk? or is it the intention that this is no longer possible?

@yadvr
Copy link
Copy Markdown
Member Author

yadvr commented Jan 30, 2024

@DaanHoogland sorry, I don't understand your question. The PR intends to bundle cmk with the cloudstack-management pkg, this was a popular QA/admin request.

@blueorangutan
Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8470

@weizhouapache
Copy link
Copy Markdown
Member

@rohityadavcloud how can we install a management server without cmk? or is it the intention that this is no longer possible?

with this change, cmk will always be installed on mgmt server.
is there any user dislike installing cmk on mgmt server ? I do not see any issue of it.

Copy link
Copy Markdown
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code lgtm

/usr/bin/cmk will be overwritted if it already exists, right ?

@yadvr
Copy link
Copy Markdown
Member Author

yadvr commented Jan 30, 2024

@weizhouapache unfortunately if /usr/bin/cmk exists then yes, it will be overwritten by cloudstack-management pkg provided CLI. If you'd prefer, I can create a new rpm/deb pkg called cloudstack-cli that bundles/installs cmk ?

@weizhouapache
Copy link
Copy Markdown
Member

@weizhouapache unfortunately if /usr/bin/cmk exists then yes, it will be overwritten by cloudstack-management pkg provided CLI. If you'd prefer, I can create a new rpm/deb pkg called cloudstack-cli that bundles/installs cmk ?

@rohityadavcloud
I just wanted to confirm it.
I think it is not needed. no problem to overwrite the existing cmk.

@DaanHoogland
Copy link
Copy Markdown
Contributor

well, not a 👎 but I think it should be installed separately.

@weizhouapache
Copy link
Copy Markdown
Member

well, not a 👎 but I think it should be installed separately.

currently it is.

wget https:///xxxxx -O /usr/bin/cmk
chmod +x /usr/bin/cmk

@yadvr yadvr changed the base branch from main to 4.19 February 5, 2024 08:48
@yadvr
Copy link
Copy Markdown
Member Author

yadvr commented Feb 5, 2024

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@rohityadavcloud a [SL] 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.

@blueorangutan
Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 8523

Copy link
Copy Markdown
Member

@kiranchavala kiranchavala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with OL8 and Ubuntu22

The cmk package is installed under /usr/bin/cmk and the tool is working fine

Loaded in-built API cache. Failed to read API cache, please run 'sync'.
Apache CloudStack 🐵 CloudMonkey 6.3.0
Report issues: https://github.com/apache/cloudstack-cloudmonkey/issues

(localcloud) 🐱 > list zones
{
  "count": 1,
  "zone": [
    {
      "allocationstate": "Enabled",
      "allowuserspecifyvrmtu": false,
      "dhcpprovider": "VirtualRouter",
      "dns1": "10.0.32.1",
      "dns2": "8.8.8.8",
      "guestcidraddress": "10.1.1.0/24",
      "hasannotations": false,
      "id": "7f08660c-443c-4351-88c4-611d44961bc6",
      "internaldns1": "10.0.32.1",
      "internaldns2": "8.8.4.4",
      "localstorageenabled": false,
      "name": "ref-trl-6320-k-Mu22-kiran-chavala",
      "networktype": "Advanced",
      "routerprivateinterfacemaxmtu": 1500,
      "routerpublicinterfacemaxmtu": 1500,
      "securitygroupsenabled": false,
      "tags": [],
      "type": "Core",
      "zonetoken": "037b5229-490e-3dd9-9343-58e1c1088699"
    }
  ]
}
(l

@weizhouapache
Copy link
Copy Markdown
Member

merging based on approvals and manua testing

@weizhouapache weizhouapache merged commit 27520f8 into apache:4.19 Feb 9, 2024
@DaanHoogland DaanHoogland deleted the bundle-cmk branch February 9, 2024 13:40
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Feb 20, 2024
This bundles latest cmk release in cloudstack-management package, so
admins won't need to install it for typical first-install use.

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

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

5 participants